2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ntp 4.2.8p5.
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.8p5'
594 PACKAGE_STRING='ntp 4.2.8p5'
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
887 INSTALL_STRIP_PROGRAM
929 program_transform_name
940 ac_subst_files='calc_tickadj_opts
947 enable_option_checking
949 enable_dependency_tracking
960 enable_libopts_install
962 enable_local_libevent
965 enable_thread_support
979 enable_ignore_dns_errors
1038 enable_openssl_random
1041 enable_accurate_adjtime
1050 enable_hourly_todr_sync
1051 enable_kernel_fll_bug
1053 enable_irig_sawtooth
1062 enable_problem_tests
1064 ac_precious_vars='build_alias
1079 ac_subdirs_all='sntp'
1081 # Initialize some variables set by options.
1083 ac_init_version=false
1084 ac_unrecognized_opts=
1085 ac_unrecognized_sep=
1086 # The variables have the same names as the options, with
1087 # dashes changed to underlines.
1088 cache_file=/dev/null
1095 program_transform_name=s,x,x,
1103 # Installation directory options.
1104 # These are left unexpanded so users can "make install exec_prefix=/foo"
1105 # and all the variables that are supposed to be based on exec_prefix
1106 # by default will actually change.
1107 # Use braces instead of parens because sh, perl, etc. also accept them.
1108 # (The list follows the same order as the GNU Coding Standards.)
1109 bindir='${exec_prefix}/bin'
1110 sbindir='${exec_prefix}/sbin'
1111 libexecdir='${exec_prefix}/libexec'
1112 datarootdir='${prefix}/share'
1113 datadir='${datarootdir}'
1114 sysconfdir='${prefix}/etc'
1115 sharedstatedir='${prefix}/com'
1116 localstatedir='${prefix}/var'
1117 includedir='${prefix}/include'
1118 oldincludedir='/usr/include'
1119 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1120 infodir='${datarootdir}/info'
1125 libdir='${exec_prefix}/lib'
1126 localedir='${datarootdir}/locale'
1127 mandir='${datarootdir}/man'
1133 # If the previous option needs an argument, assign it.
1134 if test -n "$ac_prev"; then
1135 eval $ac_prev=\$ac_option
1141 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1146 # Accept the important Cygnus configure options, so we can diagnose typos.
1148 case $ac_dashdash$ac_option in
1152 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1154 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1155 bindir=$ac_optarg ;;
1157 -build | --build | --buil | --bui | --bu)
1158 ac_prev=build_alias ;;
1159 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1160 build_alias=$ac_optarg ;;
1162 -cache-file | --cache-file | --cache-fil | --cache-fi \
1163 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1164 ac_prev=cache_file ;;
1165 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1166 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1167 cache_file=$ac_optarg ;;
1169 --config-cache | -C)
1170 cache_file=config.cache ;;
1172 -datadir | --datadir | --datadi | --datad)
1174 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1175 datadir=$ac_optarg ;;
1177 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1178 | --dataroo | --dataro | --datar)
1179 ac_prev=datarootdir ;;
1180 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1181 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1182 datarootdir=$ac_optarg ;;
1184 -disable-* | --disable-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid feature name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1193 "enable_$ac_useropt"
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1198 eval enable_$ac_useropt=no ;;
1200 -docdir | --docdir | --docdi | --doc | --do)
1202 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1203 docdir=$ac_optarg ;;
1205 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1207 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1208 dvidir=$ac_optarg ;;
1210 -enable-* | --enable-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid feature name: $ac_useropt"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1219 "enable_$ac_useropt"
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1224 eval enable_$ac_useropt=\$ac_optarg ;;
1226 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1227 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1228 | --exec | --exe | --ex)
1229 ac_prev=exec_prefix ;;
1230 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1231 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1232 | --exec=* | --exe=* | --ex=*)
1233 exec_prefix=$ac_optarg ;;
1235 -gas | --gas | --ga | --g)
1236 # Obsolete; use --with-gas.
1239 -help | --help | --hel | --he | -h)
1240 ac_init_help=long ;;
1241 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1242 ac_init_help=recursive ;;
1243 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1244 ac_init_help=short ;;
1246 -host | --host | --hos | --ho)
1247 ac_prev=host_alias ;;
1248 -host=* | --host=* | --hos=* | --ho=*)
1249 host_alias=$ac_optarg ;;
1251 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1253 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1255 htmldir=$ac_optarg ;;
1257 -includedir | --includedir | --includedi | --included | --include \
1258 | --includ | --inclu | --incl | --inc)
1259 ac_prev=includedir ;;
1260 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1261 | --includ=* | --inclu=* | --incl=* | --inc=*)
1262 includedir=$ac_optarg ;;
1264 -infodir | --infodir | --infodi | --infod | --info | --inf)
1266 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1267 infodir=$ac_optarg ;;
1269 -libdir | --libdir | --libdi | --libd)
1271 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1272 libdir=$ac_optarg ;;
1274 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1275 | --libexe | --libex | --libe)
1276 ac_prev=libexecdir ;;
1277 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1278 | --libexe=* | --libex=* | --libe=*)
1279 libexecdir=$ac_optarg ;;
1281 -localedir | --localedir | --localedi | --localed | --locale)
1282 ac_prev=localedir ;;
1283 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1284 localedir=$ac_optarg ;;
1286 -localstatedir | --localstatedir | --localstatedi | --localstated \
1287 | --localstate | --localstat | --localsta | --localst | --locals)
1288 ac_prev=localstatedir ;;
1289 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1290 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1291 localstatedir=$ac_optarg ;;
1293 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1295 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1296 mandir=$ac_optarg ;;
1298 -nfp | --nfp | --nf)
1299 # Obsolete; use --without-fp.
1302 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1303 | --no-cr | --no-c | -n)
1306 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1307 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1310 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1311 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1312 | --oldin | --oldi | --old | --ol | --o)
1313 ac_prev=oldincludedir ;;
1314 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1315 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1316 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1317 oldincludedir=$ac_optarg ;;
1319 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1321 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1322 prefix=$ac_optarg ;;
1324 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1325 | --program-pre | --program-pr | --program-p)
1326 ac_prev=program_prefix ;;
1327 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1328 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1329 program_prefix=$ac_optarg ;;
1331 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1332 | --program-suf | --program-su | --program-s)
1333 ac_prev=program_suffix ;;
1334 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1335 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1336 program_suffix=$ac_optarg ;;
1338 -program-transform-name | --program-transform-name \
1339 | --program-transform-nam | --program-transform-na \
1340 | --program-transform-n | --program-transform- \
1341 | --program-transform | --program-transfor \
1342 | --program-transfo | --program-transf \
1343 | --program-trans | --program-tran \
1344 | --progr-tra | --program-tr | --program-t)
1345 ac_prev=program_transform_name ;;
1346 -program-transform-name=* | --program-transform-name=* \
1347 | --program-transform-nam=* | --program-transform-na=* \
1348 | --program-transform-n=* | --program-transform-=* \
1349 | --program-transform=* | --program-transfor=* \
1350 | --program-transfo=* | --program-transf=* \
1351 | --program-trans=* | --program-tran=* \
1352 | --progr-tra=* | --program-tr=* | --program-t=*)
1353 program_transform_name=$ac_optarg ;;
1355 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1357 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1358 pdfdir=$ac_optarg ;;
1360 -psdir | --psdir | --psdi | --psd | --ps)
1362 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1366 | -silent | --silent | --silen | --sile | --sil)
1369 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1371 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1373 sbindir=$ac_optarg ;;
1375 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1376 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1377 | --sharedst | --shareds | --shared | --share | --shar \
1379 ac_prev=sharedstatedir ;;
1380 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1381 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1382 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1384 sharedstatedir=$ac_optarg ;;
1386 -site | --site | --sit)
1388 -site=* | --site=* | --sit=*)
1391 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1393 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1394 srcdir=$ac_optarg ;;
1396 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1397 | --syscon | --sysco | --sysc | --sys | --sy)
1398 ac_prev=sysconfdir ;;
1399 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1400 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1401 sysconfdir=$ac_optarg ;;
1403 -target | --target | --targe | --targ | --tar | --ta | --t)
1404 ac_prev=target_alias ;;
1405 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1406 target_alias=$ac_optarg ;;
1408 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1411 -version | --version | --versio | --versi | --vers | -V)
1412 ac_init_version=: ;;
1415 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1416 # Reject names that are not valid shell variable names.
1417 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1418 as_fn_error $? "invalid package name: $ac_useropt"
1419 ac_useropt_orig=$ac_useropt
1420 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1421 case $ac_user_opts in
1425 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1426 ac_unrecognized_sep=', ';;
1428 eval with_$ac_useropt=\$ac_optarg ;;
1430 -without-* | --without-*)
1431 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1432 # Reject names that are not valid shell variable names.
1433 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1434 as_fn_error $? "invalid package name: $ac_useropt"
1435 ac_useropt_orig=$ac_useropt
1436 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1437 case $ac_user_opts in
1441 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1442 ac_unrecognized_sep=', ';;
1444 eval with_$ac_useropt=no ;;
1447 # Obsolete; use --with-x.
1450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1451 | --x-incl | --x-inc | --x-in | --x-i)
1452 ac_prev=x_includes ;;
1453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1455 x_includes=$ac_optarg ;;
1457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1459 ac_prev=x_libraries ;;
1460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1462 x_libraries=$ac_optarg ;;
1464 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1465 Try \`$0 --help' for more information"
1469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1470 # Reject names that are not valid shell variable names.
1471 case $ac_envvar in #(
1472 '' | [0-9]* | *[!_$as_cr_alnum]* )
1473 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1475 eval $ac_envvar=\$ac_optarg
1476 export $ac_envvar ;;
1479 # FIXME: should be removed in autoconf 3.0.
1480 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1482 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1483 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1489 if test -n "$ac_prev"; then
1490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1491 as_fn_error $? "missing argument to $ac_option"
1494 if test -n "$ac_unrecognized_opts"; then
1495 case $enable_option_checking in
1497 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1498 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1502 # Check all directory arguments for consistency.
1503 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1504 datadir sysconfdir sharedstatedir localstatedir includedir \
1505 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1506 libdir localedir mandir
1508 eval ac_val=\$$ac_var
1509 # Remove trailing slashes.
1512 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1513 eval $ac_var=\$ac_val;;
1515 # Be sure to have absolute directory names.
1517 [\\/$]* | ?:[\\/]* ) continue;;
1518 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1520 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1523 # There might be people who depend on the old broken behavior: `$host'
1524 # used to hold the argument of --host etc.
1525 # FIXME: To remove some day.
1528 target=$target_alias
1530 # FIXME: To remove some day.
1531 if test "x$host_alias" != x; then
1532 if test "x$build_alias" = x; then
1533 cross_compiling=maybe
1534 elif test "x$build_alias" != "x$host_alias"; then
1540 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1542 test "$silent" = yes && exec 6>/dev/null
1545 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1546 ac_ls_di=`ls -di .` &&
1547 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1548 as_fn_error $? "working directory cannot be determined"
1549 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1550 as_fn_error $? "pwd does not report name of working directory"
1553 # Find the source files, if location was not specified.
1554 if test -z "$srcdir"; then
1555 ac_srcdir_defaulted=yes
1556 # Try the directory containing this script, then the parent directory.
1557 ac_confdir=`$as_dirname -- "$as_myself" ||
1558 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1559 X"$as_myself" : 'X\(//\)[^/]' \| \
1560 X"$as_myself" : 'X\(//\)$' \| \
1561 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1562 $as_echo X"$as_myself" |
1563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1581 if test ! -r "$srcdir/$ac_unique_file"; then
1585 ac_srcdir_defaulted=no
1587 if test ! -r "$srcdir/$ac_unique_file"; then
1588 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1589 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1591 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1593 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1595 # When building in place, set srcdir=.
1596 if test "$ac_abs_confdir" = "$ac_pwd"; then
1599 # Remove unnecessary trailing slashes from srcdir.
1600 # Double slashes in file names in object file debugging info
1601 # mess up M-x gdb in Emacs.
1603 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1605 for ac_var in $ac_precious_vars; do
1606 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1607 eval ac_env_${ac_var}_value=\$${ac_var}
1608 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1609 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1613 # Report the --help message.
1615 if test "$ac_init_help" = "long"; then
1616 # Omit some internal or obsolete options to make the list less imposing.
1617 # This message is too long to be a string in the A/UX 3.1 sh.
1619 \`configure' configures ntp 4.2.8p5 to adapt to many kinds of systems.
1621 Usage: $0 [OPTION]... [VAR=VALUE]...
1623 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1624 VAR=VALUE. See below for descriptions of some of the useful variables.
1626 Defaults for the options are specified in brackets.
1629 -h, --help display this help and exit
1630 --help=short display options specific to this package
1631 --help=recursive display the short help of all the included packages
1632 -V, --version display version information and exit
1633 -q, --quiet, --silent do not print \`checking ...' messages
1634 --cache-file=FILE cache test results in FILE [disabled]
1635 -C, --config-cache alias for \`--cache-file=config.cache'
1636 -n, --no-create do not create output files
1637 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1639 Installation directories:
1640 --prefix=PREFIX install architecture-independent files in PREFIX
1641 [$ac_default_prefix]
1642 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1645 By default, \`make install' will install all the files in
1646 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1647 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1648 for instance \`--prefix=\$HOME'.
1650 For better control, use the options below.
1652 Fine tuning of the installation directories:
1653 --bindir=DIR user executables [EPREFIX/bin]
1654 --sbindir=DIR system admin executables [EPREFIX/sbin]
1655 --libexecdir=DIR program executables [EPREFIX/libexec]
1656 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1657 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1658 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1659 --libdir=DIR object code libraries [EPREFIX/lib]
1660 --includedir=DIR C header files [PREFIX/include]
1661 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1662 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1663 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1664 --infodir=DIR info documentation [DATAROOTDIR/info]
1665 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1666 --mandir=DIR man documentation [DATAROOTDIR/man]
1667 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp]
1668 --htmldir=DIR html documentation [DOCDIR]
1669 --dvidir=DIR dvi documentation [DOCDIR]
1670 --pdfdir=DIR pdf documentation [DOCDIR]
1671 --psdir=DIR ps documentation [DOCDIR]
1677 --program-prefix=PREFIX prepend PREFIX to installed program names
1678 --program-suffix=SUFFIX append SUFFIX to installed program names
1679 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1682 --build=BUILD configure for building on BUILD [guessed]
1683 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1687 if test -n "$ac_init_help"; then
1688 case $ac_init_help in
1689 short | recursive ) echo "Configuration of ntp 4.2.8p5:";;
1693 Optional Features and Packages:
1694 --disable-option-checking ignore unrecognized --enable/--with options
1695 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1696 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1697 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1698 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1699 --enable-silent-rules less verbose build output (undo: "make V=1")
1700 --disable-silent-rules verbose build output (undo: "make V=0")
1701 --enable-dependency-tracking
1702 do not reject slow dependency extractors
1703 --disable-dependency-tracking
1704 speeds up one-time build
1705 --with-locfile=XXX os-specific or "legacy"
1706 --enable-shared[=PKGS] build shared libraries [default=no]
1707 --enable-static[=PKGS] build static libraries [default=yes]
1708 --with-pic try to use only PIC/non-PIC objects [default=use
1710 --enable-fast-install[=PKGS]
1711 optimize for fast installation [default=yes]
1712 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1713 --with-sysroot=DIR Search for dependent libraries within DIR
1714 (or the compiler's sysroot if not specified).
1715 --disable-libtool-lock avoid locking (might break parallel builds)
1716 --disable-nls disable nls support in libopts
1717 --enable-local-libopts Use the supplied libopts tearoff code
1718 --enable-libopts-install
1719 Install libopts with client installation
1720 --with-autoopts-config specify the config-info script
1721 --enable-local-libevent Force using the supplied libevent tearoff code
1722 --with-lineeditlibs edit,editline (readline may be specified if desired)
1723 defaults: + yes, - no, s system-specific
1724 --enable-debugging + include ntpd debugging code
1725 --enable-thread-support s use threads (+ if available)
1726 --with-threads with threads [auto]
1727 --with-yielding-select with yielding select [auto]
1728 --enable-c99-snprintf s force replacement
1729 --enable-clockctl s Use /dev/clockctl for non-root clock control
1730 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1731 --enable-solarisprivs + Use Solaris privileges for non-root clock control
1732 --with-arlib - deprecated, arlib not distributed
1733 --with-net-snmp-config + =net-snmp-config
1734 --enable-libseccomp EXPERIMENTAL: enable support for libseccomp
1735 sandboxing (default is no)
1736 --with-stack-limit ? =50 (200 for openbsd) 4k pages
1737 --with-memlock ? =32 (-1 on linux) megabytes
1738 --enable-debug-timing - include processing time debugging code (costs
1740 --enable-dst-minutes =60 minutes per DST adjustment
1741 --enable-ignore-dns-errors
1742 - retry DNS queries on any error
1743 --enable-BANCOMM - Datum/Bancomm bc635/VME interface
1744 --enable-GPSVME - TrueTime GPS receiver/VME interface
1745 --enable-all-clocks + include all suitable non-PARSE clocks:
1746 --enable-ACTS s ACTS modem service
1747 --enable-ARBITER + Arbiter 1088A/B GPS receiver
1748 --enable-ARCRON-MSF + Arcron MSF receiver
1749 --enable-AS2201 + Austron 2200A/2201A GPS receiver
1750 --enable-ATOM s ATOM PPS interface
1751 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver
1752 --enable-CHU + CHU modem/decoder
1753 --enable-AUDIO-CHU s CHU audio/decoder
1754 --enable-DATUM s Datum Programmable Time System
1755 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock
1756 --enable-FG + Forum Graphic GPS
1757 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver
1758 --enable-HOPFSERIAL + hopf serial clock device
1759 --enable-HOPFPCI + hopf 6039 PCI board
1760 --enable-HPGPS + HP 58503A GPS receiver
1761 --enable-IRIG s IRIG audio decoder
1762 --enable-JJY + JJY receiver
1763 --enable-JUPITER s Rockwell Jupiter GPS receiver
1764 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver
1765 --enable-LOCAL-CLOCK + local clock reference
1766 --enable-MX4200 s Magnavox MX4200 GPS receiver
1767 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver
1768 --enable-NMEA + NMEA GPS receiver
1769 --enable-GPSD + GPSD JSON receiver
1770 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver
1771 --enable-PALISADE s Palisade clock
1772 --enable-PCF + Conrad parallel port radio clock
1773 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver
1774 --enable-RIPENCC - RIPENCC specific Trimble driver
1775 --enable-SHM s SHM clock attached thru shared memory
1776 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver
1777 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1778 --enable-TRUETIME s Kinemetrics/TrueTime receivers
1779 --enable-TT560 - TrueTime 560 IRIG-B decoder
1780 --enable-ULINK + Ultralink WWVB receiver
1781 --enable-TSYNCPCI s Spectracom TSYNC timing board
1782 --enable-WWV s WWV Audio receiver
1783 --enable-ZYFER + Zyfer GPStarplus receiver
1784 --enable-parse-clocks - include all suitable PARSE clocks:
1785 --enable-COMPUTIME s Diem Computime Radio Clock
1786 --enable-DCF7000 s ELV/DCF7000 clock
1787 --enable-HOPF6021 s HOPF 6021 clock
1788 --enable-MEINBERG s Meinberg clocks
1789 --enable-RAWDCF s DCF77 raw time code
1790 --enable-RCC8000 s RCC 8000 clock
1791 --enable-SCHMID s Schmid DCF77 clock
1792 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol
1793 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol
1794 --enable-WHARTON s WHARTON 400A Series clock
1795 --enable-VARITEXT s VARITEXT clock
1796 --enable-SEL240X s SEL240X clock
1797 --with-crypto + =openssl,libcrypto
1799 --with-openssl-libdir + =/something/reasonable
1801 --with-openssl-incdir + =/something/reasonable
1803 --without-rpath s Disable auto-added -R linker paths
1805 --enable-openssl-random Use OpenSSL's crypto random number functions, if
1806 available (default is yes)
1807 --enable-autokey + support NTP Autokey protocol
1808 --enable-kmem s read /dev/kmem for tick and/or tickadj
1809 --enable-accurate-adjtime
1810 s the adjtime() call is accurate
1811 --enable-tick=VALUE s force a value for 'tick'
1812 --enable-tickadj=VALUE s force a value for 'tickadj'
1813 --enable-simulator - build/install the NTPD simulator?
1814 --without-sntp - disable building sntp and sntp/tests
1815 --with-ntpsnmpd s Build ntpsnmpd MIB agent?
1816 --enable-slew-always s always slew the time
1817 --enable-step-slew s step and slew the time
1818 --enable-ntpdate-step s if ntpdate should step the time
1819 --enable-hourly-todr-sync
1820 s if we should sync TODR hourly
1821 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1822 --enable-bug1243-fix + use unmodified autokey session keys
1823 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter
1824 --enable-nist - if we should enable the NIST lockclock scheme
1825 --enable-ntp-signd - Provide support for Samba's signing daemon,
1827 --enable-ipv6 s use IPv6?
1829 --with-kame - =/usr/local/v6
1830 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]].
1831 --enable-saveconfig + saveconfig mechanism
1832 --enable-leap-smear - experimental leap smear code
1833 --with-gtest Use the gtest framework (Default: if it's available)
1834 --enable-problem-tests + enable tests with undiagnosed problems
1836 Some influential environment variables:
1837 CC C compiler command
1838 CFLAGS C compiler flags
1839 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1840 nonstandard directory <lib dir>
1841 LIBS libraries to pass to the linker, e.g. -l<library>
1842 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1843 you have headers in a nonstandard directory <include dir>
1845 CXX C++ compiler command
1846 CXXFLAGS C++ compiler flags
1847 YACC The `Yet Another Compiler Compiler' implementation to use.
1848 Defaults to the first program found out of: `bison -y', `byacc',
1850 YFLAGS The list of arguments that will be passed by default to $YACC.
1851 This script will default YFLAGS to the empty string to avoid a
1852 default value of `-d' given by some make applications.
1853 CXXCPP C++ preprocessor
1855 Use these variables to override the choices made by `configure' or to help
1856 it to find libraries and programs with nonstandard names/locations.
1858 Report bugs to <http://bugs.ntp.org./>.
1859 ntp home page: <http://www.ntp.org./>.
1864 if test "$ac_init_help" = "recursive"; then
1865 # If there are subdirs, report their specific --help.
1866 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1867 test -d "$ac_dir" ||
1868 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1873 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1875 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1876 # A ".." for each directory in $ac_dir_suffix.
1877 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1878 case $ac_top_builddir_sub in
1879 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1880 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1883 ac_abs_top_builddir=$ac_pwd
1884 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1885 # for backward compatibility:
1886 ac_top_builddir=$ac_top_build_prefix
1889 .) # We are building in place.
1891 ac_top_srcdir=$ac_top_builddir_sub
1892 ac_abs_top_srcdir=$ac_pwd ;;
1893 [\\/]* | ?:[\\/]* ) # Absolute name.
1894 ac_srcdir=$srcdir$ac_dir_suffix;
1895 ac_top_srcdir=$srcdir
1896 ac_abs_top_srcdir=$srcdir ;;
1898 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1899 ac_top_srcdir=$ac_top_build_prefix$srcdir
1900 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1902 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1904 cd "$ac_dir" || { ac_status=$?; continue; }
1905 # Check for guested configure.
1906 if test -f "$ac_srcdir/configure.gnu"; then
1908 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1909 elif test -f "$ac_srcdir/configure"; then
1911 $SHELL "$ac_srcdir/configure" --help=recursive
1913 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1915 cd "$ac_pwd" || { ac_status=$?; break; }
1919 test -n "$ac_init_help" && exit $ac_status
1920 if $ac_init_version; then
1922 ntp configure 4.2.8p5
1923 generated by GNU Autoconf 2.69
1925 Copyright (C) 2012 Free Software Foundation, Inc.
1926 This configure script is free software; the Free Software Foundation
1927 gives unlimited permission to copy, distribute and modify it.
1932 ## ------------------------ ##
1933 ## Autoconf initialization. ##
1934 ## ------------------------ ##
1936 # ac_fn_c_try_compile LINENO
1937 # --------------------------
1938 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1939 ac_fn_c_try_compile ()
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 rm -f conftest.$ac_objext
1943 if { { ac_try="$ac_compile"
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_compile") 2>conftest.err
1952 if test -s conftest.err; then
1953 grep -v '^ *+' conftest.err >conftest.er1
1954 cat conftest.er1 >&5
1955 mv -f conftest.er1 conftest.err
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } && {
1959 test -z "$ac_c_werror_flag" ||
1960 test ! -s conftest.err
1961 } && test -s conftest.$ac_objext; then :
1964 $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 as_fn_set_status $ac_retval
1972 } # ac_fn_c_try_compile
1974 # ac_fn_c_try_cpp LINENO
1975 # ----------------------
1976 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if { { ac_try="$ac_cpp conftest.$ac_ext"
1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1989 if test -s conftest.err; then
1990 grep -v '^ *+' conftest.err >conftest.er1
1991 cat conftest.er1 >&5
1992 mv -f conftest.er1 conftest.err
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; } > conftest.i && {
1996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1997 test ! -s conftest.err
2001 $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 as_fn_set_status $ac_retval
2011 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2012 # -------------------------------------------------------
2013 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2014 # the include files in INCLUDES and setting the cache variable VAR
2016 ac_fn_c_check_header_mongrel ()
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 if eval \${$3+:} false; then :
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval \${$3+:} false; then :
2023 $as_echo_n "(cached) " >&6
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2029 # Is the header compilable?
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2031 $as_echo_n "checking $2 usability... " >&6; }
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 ac_header_compiler=yes
2040 ac_header_compiler=no
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2044 $as_echo "$ac_header_compiler" >&6; }
2046 # Is the header present?
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2048 $as_echo_n "checking $2 presence... " >&6; }
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2053 if ac_fn_c_try_cpp "$LINENO"; then :
2054 ac_header_preproc=yes
2056 ac_header_preproc=no
2058 rm -f conftest.err conftest.i conftest.$ac_ext
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2060 $as_echo "$ac_header_preproc" >&6; }
2062 # So? What about this header?
2063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2066 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2068 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2072 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2074 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2076 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2078 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2080 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2081 ( $as_echo "## ------------------------------------ ##
2082 ## Report this to http://bugs.ntp.org./ ##
2083 ## ------------------------------------ ##"
2084 ) | sed "s/^/$as_me: WARNING: /" >&2
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2088 $as_echo_n "checking for $2... " >&6; }
2089 if eval \${$3+:} false; then :
2090 $as_echo_n "(cached) " >&6
2092 eval "$3=\$ac_header_compiler"
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096 $as_echo "$ac_res" >&6; }
2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 } # ac_fn_c_check_header_mongrel
2102 # ac_fn_c_try_run LINENO
2103 # ----------------------
2104 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2105 # that executables *can* be run.
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 if { { ac_try="$ac_link"
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115 $as_echo "$ac_try_echo"; } >&5
2116 (eval "$ac_link") 2>&5
2118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2119 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2120 { { case "(($ac_try" in
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_try") 2>&5
2128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129 test $ac_status = 0; }; }; then :
2132 $as_echo "$as_me: program exited with status $ac_status" >&5
2133 $as_echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2136 ac_retval=$ac_status
2138 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140 as_fn_set_status $ac_retval
2144 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2145 # -------------------------------------------------------
2146 # Tests whether HEADER exists and can be compiled using the include files in
2147 # INCLUDES, setting the cache variable VAR accordingly.
2148 ac_fn_c_check_header_compile ()
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2152 $as_echo_n "checking for $2... " >&6; }
2153 if eval \${$3+:} false; then :
2154 $as_echo_n "(cached) " >&6
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2161 if ac_fn_c_try_compile "$LINENO"; then :
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173 } # ac_fn_c_check_header_compile
2175 # ac_fn_c_try_link LINENO
2176 # -----------------------
2177 # Try to link conftest.$ac_ext, and return whether this succeeded.
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 rm -f conftest.$ac_objext conftest$ac_exeext
2182 if { { ac_try="$ac_link"
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 $as_echo "$ac_try_echo"; } >&5
2189 (eval "$ac_link") 2>conftest.err
2191 if test -s conftest.err; then
2192 grep -v '^ *+' conftest.err >conftest.er1
2193 cat conftest.er1 >&5
2194 mv -f conftest.er1 conftest.err
2196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197 test $ac_status = 0; } && {
2198 test -z "$ac_c_werror_flag" ||
2199 test ! -s conftest.err
2200 } && test -s conftest$ac_exeext && {
2201 test "$cross_compiling" = yes ||
2202 test -x conftest$ac_exeext
2206 $as_echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2211 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2212 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2213 # interfere with the next link command; also delete a directory that is
2214 # left behind by Apple's compiler. We do this before executing the actions.
2215 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217 as_fn_set_status $ac_retval
2219 } # ac_fn_c_try_link
2221 # ac_fn_cxx_try_compile LINENO
2222 # ----------------------------
2223 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2224 ac_fn_cxx_try_compile ()
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 rm -f conftest.$ac_objext
2228 if { { ac_try="$ac_compile"
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234 $as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_compile") 2>conftest.err
2237 if test -s conftest.err; then
2238 grep -v '^ *+' conftest.err >conftest.er1
2239 cat conftest.er1 >&5
2240 mv -f conftest.er1 conftest.err
2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243 test $ac_status = 0; } && {
2244 test -z "$ac_cxx_werror_flag" ||
2245 test ! -s conftest.err
2246 } && test -s conftest.$ac_objext; then :
2249 $as_echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255 as_fn_set_status $ac_retval
2257 } # ac_fn_cxx_try_compile
2259 # ac_fn_c_check_func LINENO FUNC VAR
2260 # ----------------------------------
2261 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2262 ac_fn_c_check_func ()
2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2266 $as_echo_n "checking for $2... " >&6; }
2267 if eval \${$3+:} false; then :
2268 $as_echo_n "(cached) " >&6
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2272 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2274 #define $2 innocuous_$2
2276 /* System header to define __stub macros and hopefully few prototypes,
2277 which can conflict with char $2 (); below.
2278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2279 <limits.h> exists even on freestanding compilers. */
2282 # include <limits.h>
2284 # include <assert.h>
2289 /* Override any GCC internal prototype to avoid an error.
2290 Use char because int might match the return type of a GCC
2291 builtin and then its argument prototype would still apply. */
2296 /* The GNU C library defines this for functions which it implements
2297 to always fail with ENOSYS. Some functions are actually named
2298 something starting with __ and the normal name is an alias. */
2299 #if defined __stub_$2 || defined __stub___$2
2311 if ac_fn_c_try_link "$LINENO"; then :
2316 rm -f core conftest.err conftest.$ac_objext \
2317 conftest$ac_exeext conftest.$ac_ext
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2321 $as_echo "$ac_res" >&6; }
2322 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2324 } # ac_fn_c_check_func
2326 # ac_fn_cxx_try_cpp LINENO
2327 # ------------------------
2328 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2329 ac_fn_cxx_try_cpp ()
2331 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332 if { { ac_try="$ac_cpp conftest.$ac_ext"
2334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2335 *) ac_try_echo=$ac_try;;
2337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2338 $as_echo "$ac_try_echo"; } >&5
2339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2341 if test -s conftest.err; then
2342 grep -v '^ *+' conftest.err >conftest.er1
2343 cat conftest.er1 >&5
2344 mv -f conftest.er1 conftest.err
2346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2347 test $ac_status = 0; } > conftest.i && {
2348 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2349 test ! -s conftest.err
2353 $as_echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2359 as_fn_set_status $ac_retval
2361 } # ac_fn_cxx_try_cpp
2363 # ac_fn_cxx_try_link LINENO
2364 # -------------------------
2365 # Try to link conftest.$ac_ext, and return whether this succeeded.
2366 ac_fn_cxx_try_link ()
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 rm -f conftest.$ac_objext conftest$ac_exeext
2370 if { { ac_try="$ac_link"
2372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2376 $as_echo "$ac_try_echo"; } >&5
2377 (eval "$ac_link") 2>conftest.err
2379 if test -s conftest.err; then
2380 grep -v '^ *+' conftest.err >conftest.er1
2381 cat conftest.er1 >&5
2382 mv -f conftest.er1 conftest.err
2384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2385 test $ac_status = 0; } && {
2386 test -z "$ac_cxx_werror_flag" ||
2387 test ! -s conftest.err
2388 } && test -s conftest$ac_exeext && {
2389 test "$cross_compiling" = yes ||
2390 test -x conftest$ac_exeext
2394 $as_echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2399 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2400 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2401 # interfere with the next link command; also delete a directory that is
2402 # left behind by Apple's compiler. We do this before executing the actions.
2403 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2404 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2405 as_fn_set_status $ac_retval
2407 } # ac_fn_cxx_try_link
2409 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2410 # -------------------------------------------
2411 # Tests whether TYPE exists after having included INCLUDES, setting cache
2412 # variable VAR accordingly.
2413 ac_fn_c_check_type ()
2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2417 $as_echo_n "checking for $2... " >&6; }
2418 if eval \${$3+:} false; then :
2419 $as_echo_n "(cached) " >&6
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2434 if ac_fn_c_try_compile "$LINENO"; then :
2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h. */
2447 if ac_fn_c_try_compile "$LINENO"; then :
2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458 $as_echo "$ac_res" >&6; }
2459 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2461 } # ac_fn_c_check_type
2463 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2464 # --------------------------------------------
2465 # Tries to find the compile-time value of EXPR in a program that includes
2466 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2468 ac_fn_c_compute_int ()
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 if test "$cross_compiling" = yes; then
2472 # Depending upon the size, compute the lo and hi bounds.
2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h. */
2479 static int test_array [1 - 2 * !(($2) >= 0)];
2481 return test_array [0];
2487 if ac_fn_c_try_compile "$LINENO"; then :
2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h. */
2496 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2498 return test_array [0];
2504 if ac_fn_c_try_compile "$LINENO"; then :
2505 ac_hi=$ac_mid; break
2507 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2508 if test $ac_lo -le $ac_mid; then
2512 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h. */
2523 static int test_array [1 - 2 * !(($2) < 0)];
2525 return test_array [0];
2531 if ac_fn_c_try_compile "$LINENO"; then :
2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h. */
2540 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2542 return test_array [0];
2548 if ac_fn_c_try_compile "$LINENO"; then :
2549 ac_lo=$ac_mid; break
2551 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2552 if test $ac_mid -le $ac_hi; then
2556 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2566 # Binary search between lo and hi bounds.
2567 while test "x$ac_lo" != "x$ac_hi"; do
2568 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h. */
2575 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2577 return test_array [0];
2583 if ac_fn_c_try_compile "$LINENO"; then :
2586 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2598 static long int longval () { return $2; }
2599 static unsigned long int ulongval () { return $2; }
2606 FILE *f = fopen ("conftest.val", "w");
2611 long int i = longval ();
2614 fprintf (f, "%ld", i);
2618 unsigned long int i = ulongval ();
2621 fprintf (f, "%lu", i);
2623 /* Do not output a trailing newline, as this causes \r\n confusion
2624 on some platforms. */
2625 return ferror (f) || fclose (f) != 0;
2631 if ac_fn_c_try_run "$LINENO"; then :
2632 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2637 conftest.$ac_objext conftest.beam conftest.$ac_ext
2641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2642 as_fn_set_status $ac_retval
2644 } # ac_fn_c_compute_int
2646 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2647 # ---------------------------------------------
2648 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2650 ac_fn_c_check_decl ()
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 as_decl_name=`echo $2|sed 's/ *(.*//'`
2654 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2656 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2657 if eval \${$3+:} false; then :
2658 $as_echo_n "(cached) " >&6
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2666 #ifndef $as_decl_name
2668 (void) $as_decl_use;
2670 (void) $as_decl_name;
2678 if ac_fn_c_try_compile "$LINENO"; then :
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2690 } # ac_fn_c_check_decl
2692 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2693 # ----------------------------------------------------
2694 # Tries to find if the field MEMBER exists in type AGGR, after including
2695 # INCLUDES, setting cache variable VAR accordingly.
2696 ac_fn_c_check_member ()
2698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2700 $as_echo_n "checking for $2.$3... " >&6; }
2701 if eval \${$4+:} false; then :
2702 $as_echo_n "(cached) " >&6
2704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2705 /* end confdefs.h. */
2717 if ac_fn_c_try_compile "$LINENO"; then :
2720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2721 /* end confdefs.h. */
2727 if (sizeof ac_aggr.$3)
2733 if ac_fn_c_try_compile "$LINENO"; then :
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2744 $as_echo "$ac_res" >&6; }
2745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2747 } # ac_fn_c_check_member
2748 cat >config.log <<_ACEOF
2749 This file contains any messages produced by compilers while
2750 running configure, to aid debugging if configure makes a mistake.
2752 It was created by ntp $as_me 4.2.8p5, which was
2753 generated by GNU Autoconf 2.69. Invocation command line was
2765 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2766 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2767 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2768 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2769 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2771 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2772 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2774 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2775 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2776 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2777 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2778 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2779 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2780 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 test -z "$as_dir" && as_dir=.
2789 $as_echo "PATH: $as_dir"
2805 # Keep a trace of the command line.
2806 # Strip out --no-create and --no-recursion so they do not pile up.
2807 # Strip out --silent because we don't want to record it for future runs.
2808 # Also quote any args containing shell meta-characters.
2809 # Make two passes to allow for proper duplicate-argument suppression.
2813 ac_must_keep_next=false
2819 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2821 | -silent | --silent | --silen | --sile | --sil)
2824 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2827 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2829 as_fn_append ac_configure_args1 " '$ac_arg'"
2830 if test $ac_must_keep_next = true; then
2831 ac_must_keep_next=false # Got value, back to normal.
2834 *=* | --config-cache | -C | -disable-* | --disable-* \
2835 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2836 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2837 | -with-* | --with-* | -without-* | --without-* | --x)
2838 case "$ac_configure_args0 " in
2839 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2842 -* ) ac_must_keep_next=true ;;
2845 as_fn_append ac_configure_args " '$ac_arg'"
2850 { ac_configure_args0=; unset ac_configure_args0;}
2851 { ac_configure_args1=; unset ac_configure_args1;}
2853 # When interrupted or exit'd, cleanup temporary files, and complete
2854 # config.log. We remove comments because anyway the quotes in there
2855 # would cause problems or look ugly.
2856 # WARNING: Use '\'' to represent an apostrophe within the trap.
2857 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2858 trap 'exit_status=$?
2859 # Save into config.log some information that might help in debugging.
2863 $as_echo "## ---------------- ##
2864 ## Cache variables. ##
2865 ## ---------------- ##"
2867 # The following way of writing the cache mishandles newlines in values,
2869 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2870 eval ac_val=\$$ac_var
2874 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2875 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2878 _ | IFS | as_nl) ;; #(
2879 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2880 *) { eval $ac_var=; unset $ac_var;} ;;
2885 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2886 *${as_nl}ac_space=\ *)
2888 "s/'\''/'\''\\\\'\'''\''/g;
2889 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2892 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2899 $as_echo "## ----------------- ##
2900 ## Output variables. ##
2901 ## ----------------- ##"
2903 for ac_var in $ac_subst_vars
2905 eval ac_val=\$$ac_var
2907 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2909 $as_echo "$ac_var='\''$ac_val'\''"
2913 if test -n "$ac_subst_files"; then
2914 $as_echo "## ------------------- ##
2915 ## File substitutions. ##
2916 ## ------------------- ##"
2918 for ac_var in $ac_subst_files
2920 eval ac_val=\$$ac_var
2922 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2924 $as_echo "$ac_var='\''$ac_val'\''"
2929 if test -s confdefs.h; then
2930 $as_echo "## ----------- ##
2937 test "$ac_signal" != 0 &&
2938 $as_echo "$as_me: caught signal $ac_signal"
2939 $as_echo "$as_me: exit $exit_status"
2941 rm -f core *.core core.conftest.* &&
2942 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2945 for ac_signal in 1 2 13 15; do
2946 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2950 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2951 rm -f -r conftest* confdefs.h
2953 $as_echo "/* confdefs.h */" > confdefs.h
2955 # Predefined preprocessor variables.
2957 cat >>confdefs.h <<_ACEOF
2958 #define PACKAGE_NAME "$PACKAGE_NAME"
2961 cat >>confdefs.h <<_ACEOF
2962 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2965 cat >>confdefs.h <<_ACEOF
2966 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_STRING "$PACKAGE_STRING"
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2977 cat >>confdefs.h <<_ACEOF
2978 #define PACKAGE_URL "$PACKAGE_URL"
2982 # Let the site file select an alternate cache file if it wants to.
2983 # Prefer an explicitly selected file to automatically selected ones.
2986 if test -n "$CONFIG_SITE"; then
2987 # We do not want a PATH search for config.site.
2988 case $CONFIG_SITE in #((
2989 -*) ac_site_file1=./$CONFIG_SITE;;
2990 */*) ac_site_file1=$CONFIG_SITE;;
2991 *) ac_site_file1=./$CONFIG_SITE;;
2993 elif test "x$prefix" != xNONE; then
2994 ac_site_file1=$prefix/share/config.site
2995 ac_site_file2=$prefix/etc/config.site
2997 ac_site_file1=$ac_default_prefix/share/config.site
2998 ac_site_file2=$ac_default_prefix/etc/config.site
3000 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3002 test "x$ac_site_file" = xNONE && continue
3003 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3005 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3006 sed 's/^/| /' "$ac_site_file" >&5
3008 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3010 as_fn_error $? "failed to load site script $ac_site_file
3011 See \`config.log' for more details" "$LINENO" 5; }
3015 if test -r "$cache_file"; then
3016 # Some versions of bash will fail to source /dev/null (special files
3017 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3018 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3020 $as_echo "$as_me: loading cache $cache_file" >&6;}
3022 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3023 *) . "./$cache_file";;
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3028 $as_echo "$as_me: creating cache $cache_file" >&6;}
3032 as_fn_append ac_header_list " stdarg.h"
3033 # Check that the precious variables saved in the cache have kept the same
3035 ac_cache_corrupted=false
3036 for ac_var in $ac_precious_vars; do
3037 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3038 eval ac_new_set=\$ac_env_${ac_var}_set
3039 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3040 eval ac_new_val=\$ac_env_${ac_var}_value
3041 case $ac_old_set,$ac_new_set in
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3044 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3045 ac_cache_corrupted=: ;;
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3048 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3049 ac_cache_corrupted=: ;;
3052 if test "x$ac_old_val" != "x$ac_new_val"; then
3053 # differences in whitespace do not lead to failure.
3054 ac_old_val_w=`echo x $ac_old_val`
3055 ac_new_val_w=`echo x $ac_new_val`
3056 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3058 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3059 ac_cache_corrupted=:
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3062 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3063 eval $ac_var=\$ac_old_val
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3066 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3068 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3071 # Pass precious variables to config.status.
3072 if test "$ac_new_set" = set; then
3074 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3075 *) ac_arg=$ac_var=$ac_new_val ;;
3077 case " $ac_configure_args " in
3078 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3079 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3083 if $ac_cache_corrupted; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3087 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3088 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3090 ## -------------------- ##
3091 ## Main body of script. ##
3092 ## -------------------- ##
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103 for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
3104 if test -f "$ac_dir/install-sh"; then
3106 ac_install_sh="$ac_aux_dir/install-sh -c"
3108 elif test -f "$ac_dir/install.sh"; then
3110 ac_install_sh="$ac_aux_dir/install.sh -c"
3112 elif test -f "$ac_dir/shtool"; then
3114 ac_install_sh="$ac_aux_dir/shtool install -c"
3118 if test -z "$ac_aux_dir"; then
3119 as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
3122 # These three variables are undocumented and unsupported,
3123 # and are intended to be withdrawn in a future Autoconf release.
3124 # They can cause serious problems if a builder's source tree is in a directory
3125 # whose full name contains unusual characters.
3126 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3127 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3128 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3132 ac_cpp='$CPP $CPPFLAGS'
3133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142 # Bump ntp_configure_cache_version for each change to configure.ac or
3143 # .m4 files which invalidates cached values from previous configure
3146 # If the change affects cache variables used only by the main NTP
3147 # configure.ac, then only its version number should be bumped, while
3148 # the subdir configure.ac version numbers should be unchanged. The
3149 # same is true for a test/variable that is used only by one subdir
3150 # being changed incompatibly; only that subdir's cache version needs
3153 # If a change affects variables shared by all NTP configure scripts,
3154 # please bump the version numbers of each. If you are not sure, the
3155 # safe choice is to bump all on any cache-invalidating change.
3157 # In order to avoid the risk of version stamp collision between -stable
3158 # and -dev branches, do not simply increment the version, instead use
3159 # the date YYYYMMDD optionally with -HHMM if there is more than one
3162 ntp_configure_cache_version=20120806
3164 # When the cache version of config.cache and configure do not
3165 # match, NTP_CACHEVERSION will flush the cache.
3171 case "$ntp_cv_main_cache_version" in
3172 $ntp_configure_cache_version)
3173 # same version, good
3177 # No cache, predates ntp_cv_main_cache_version, or is empty.
3178 case "$cache_file" in
3183 case "$NTP_CACHEVERSION_PARENT" in
3185 # Do not clear the cache immediately after it is created
3186 # empty as it is noisy. Differentiate a newly-created
3187 # config.cache from one predating the cache version
3188 # mechanism by looking for the first cached variable set
3190 case "$ac_cv_path_install" in
3192 # empty config.cache file
3197 # Parent configure just created cache from empty,
3198 # flushing would be counterproductive.
3205 # configure cache version mismatches config.cache version
3209 case "$ntp_cache_flush" in
3211 c_version="${ntp_cv_main_cache_version:-(no version found)}"
3213 # Do we flush all variables or exclude others' version stamps?
3215 case "$NTP_CACHEVERSION_PARENT" in
3217 # Clear all *_cv_* variables including our child subdirs'
3218 # ntp_cv_*_cache_version variables. This prevents subdir
3219 # configure scripts from noticing a version mismatch just
3220 # after the top configure in the invocation cleared and
3221 # recreated the cache.
3223 c_varname_list=`set |
3224 sed -n -e 's/=.*$//' \
3229 # This is not the top configure this particular invocation.
3230 # Clear all *_cv_* variables sparing the version stamps
3231 # of other configure scripts, so we don't trigger
3232 # useless repeated clearings.
3234 c_varname_list=`set |
3235 sed -n -e 's/=.*$//' \
3236 -e '/ntp_cv_.*_cache_version/d' \
3241 for c_varname in $c_varname_list
3243 { eval $c_varname=; unset $c_varname; }
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3247 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
3249 $as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3251 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
3252 { c_varname=; unset c_varname;}
3253 { c_varname_list=; unset c_varname_list;}
3254 { c_version=; unset c_version;}
3257 { ntp_cache_flush=; unset ntp_cache_flush;}
3259 # save configure version in config.cache for next time
3260 ntp_cv_main_cache_version="$ntp_configure_cache_version"
3262 # let any subdir configure.ac NTP_CACHEVERSION invocations
3263 # know they are not the top level.
3264 NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT
3267 am__api_version='1.15'
3269 # Find a good install program. We prefer a C program (faster),
3270 # so one script is as good as another. But avoid the broken or
3271 # incompatible versions:
3272 # SysV /etc/install, /usr/sbin/install
3273 # SunOS /usr/etc/install
3274 # IRIX /sbin/install
3276 # AmigaOS /C/install, which installs bootblocks on floppy discs
3277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3280 # OS/2's system install, which has a completely different semantic
3281 # ./install, which can be erroneously created by make from ./install.sh.
3282 # Reject install programs that cannot install multiple files.
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3284 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3285 if test -z "$INSTALL"; then
3286 if ${ac_cv_path_install+:} false; then :
3287 $as_echo_n "(cached) " >&6
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 test -z "$as_dir" && as_dir=.
3294 # Account for people who put trailing slashes in PATH elements.
3295 case $as_dir/ in #((
3296 ./ | .// | /[cC]/* | \
3297 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3298 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3301 # OSF1 and SCO ODT 3.0 have their own names for install.
3302 # Don't use installbsd from OSF since it installs stuff as root
3304 for ac_prog in ginstall scoinst install; do
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3307 if test $ac_prog = install &&
3308 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3309 # AIX install. It has an incompatible calling convention.
3311 elif test $ac_prog = install &&
3312 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3313 # program-specific install script used by HP pwplus--don't use.
3316 rm -rf conftest.one conftest.two conftest.dir
3317 echo one > conftest.one
3318 echo two > conftest.two
3320 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3321 test -s conftest.one && test -s conftest.two &&
3322 test -s conftest.dir/conftest.one &&
3323 test -s conftest.dir/conftest.two
3325 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3338 rm -rf conftest.one conftest.two conftest.dir
3341 if test "${ac_cv_path_install+set}" = set; then
3342 INSTALL=$ac_cv_path_install
3344 # As a last resort, use the slow shell script. Don't cache a
3345 # value for INSTALL within a source directory, because that will
3346 # break other packages using the cache if that directory is
3347 # removed, or if the value is a relative name.
3348 INSTALL=$ac_install_sh
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3352 $as_echo "$INSTALL" >&6; }
3354 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3355 # It thinks the first close brace ends the variable substitution.
3356 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3358 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3360 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3363 $as_echo_n "checking whether build environment is sane... " >&6; }
3364 # Reject unsafe characters in $srcdir or the absolute working directory
3365 # name. Accept space and tab only in the latter.
3369 *[\\\"\#\$\&\'\`$am_lf]*)
3370 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3373 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3374 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3377 # Do 'set' in a subshell so we don't clobber the current shell's
3378 # arguments. Must try -L first in case configure is actually a
3379 # symlink; some systems play weird games with the mod time of symlinks
3380 # (eg FreeBSD returns the mod time of the symlink's containing
3384 for am_try in 1 2; do
3385 echo "timestamp, slept: $am_has_slept" > conftest.file
3386 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3387 if test "$*" = "X"; then
3389 set X `ls -t "$srcdir/configure" conftest.file`
3391 if test "$*" != "X $srcdir/configure conftest.file" \
3392 && test "$*" != "X conftest.file $srcdir/configure"; then
3394 # If neither matched, then we have a broken ls. This can happen
3395 # if, for instance, CONFIG_SHELL is bash and it inherits a
3396 # broken ls alias from the environment. This has actually
3397 # happened. Such a system could not be considered "sane".
3398 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3399 alias in your environment" "$LINENO" 5
3401 if test "$2" = conftest.file || test $am_try -eq 2; then
3408 test "$2" = conftest.file
3414 as_fn_error $? "newly created file is older than distributed files!
3415 Check your system clock" "$LINENO" 5
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3418 $as_echo "yes" >&6; }
3419 # If we didn't sleep, we still need to ensure time stamps of config.status and
3420 # generated files are strictly newer.
3422 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3429 test "$program_prefix" != NONE &&
3430 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3431 # Use a double $ so make ignores it.
3432 test "$program_suffix" != NONE &&
3433 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3434 # Double any \ or $.
3435 # By default was `s,x,x', remove it if useless.
3436 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3437 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3439 # Expand $ac_aux_dir to an absolute path.
3440 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3442 if test x"${MISSING+set}" != xset; then
3445 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3447 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3450 # Use eval to expand $SHELL
3451 if eval "$MISSING --is-lightweight"; then
3452 am_missing_run="$MISSING "
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3456 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3459 if test x"${install_sh+set}" != xset; then
3462 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3464 install_sh="\${SHELL} $am_aux_dir/install-sh"
3468 # Installed binaries are usually stripped using 'strip' when the user
3469 # run "make install-strip". However 'strip' might not be the right
3470 # tool to use in cross-compilation environments, therefore Automake
3471 # will honor the 'STRIP' environment variable to overrule this program.
3472 if test "$cross_compiling" != no; then
3473 if test -n "$ac_tool_prefix"; then
3474 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3475 set dummy ${ac_tool_prefix}strip; ac_word=$2
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477 $as_echo_n "checking for $ac_word... " >&6; }
3478 if ${ac_cv_prog_STRIP+:} false; then :
3479 $as_echo_n "(cached) " >&6
3481 if test -n "$STRIP"; then
3482 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 STRIP=$ac_cv_prog_STRIP
3502 if test -n "$STRIP"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3504 $as_echo "$STRIP" >&6; }
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 $as_echo "no" >&6; }
3512 if test -z "$ac_cv_prog_STRIP"; then
3514 # Extract the first word of "strip", so it can be a program name with args.
3515 set dummy strip; ac_word=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3519 $as_echo_n "(cached) " >&6
3521 if test -n "$ac_ct_STRIP"; then
3522 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3531 ac_cv_prog_ac_ct_STRIP="strip"
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3542 if test -n "$ac_ct_STRIP"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3544 $as_echo "$ac_ct_STRIP" >&6; }
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3550 if test "x$ac_ct_STRIP" = x; then
3553 case $cross_compiling:$ac_tool_warned in
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3557 ac_tool_warned=yes ;;
3562 STRIP="$ac_cv_prog_STRIP"
3566 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3569 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3570 if test -z "$MKDIR_P"; then
3571 if ${ac_cv_path_mkdir+:} false; then :
3572 $as_echo_n "(cached) " >&6
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3578 test -z "$as_dir" && as_dir=.
3579 for ac_prog in mkdir gmkdir; do
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3582 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3583 'mkdir (GNU coreutils) '* | \
3584 'mkdir (coreutils) '* | \
3585 'mkdir (fileutils) '4.1*)
3586 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3596 test -d ./--version && rmdir ./--version
3597 if test "${ac_cv_path_mkdir+set}" = set; then
3598 MKDIR_P="$ac_cv_path_mkdir -p"
3600 # As a last resort, use the slow shell script. Don't cache a
3601 # value for MKDIR_P within a source directory, because that will
3602 # break other packages using the cache if that directory is
3603 # removed, or if the value is a relative name.
3604 MKDIR_P="$ac_install_sh -d"
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3608 $as_echo "$MKDIR_P" >&6; }
3610 for ac_prog in gawk mawk nawk awk
3612 # Extract the first word of "$ac_prog", so it can be a program name with args.
3613 set dummy $ac_prog; ac_word=$2
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615 $as_echo_n "checking for $ac_word... " >&6; }
3616 if ${ac_cv_prog_AWK+:} false; then :
3617 $as_echo_n "(cached) " >&6
3619 if test -n "$AWK"; then
3620 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3629 ac_cv_prog_AWK="$ac_prog"
3630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 if test -n "$AWK"; then
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3642 $as_echo "$AWK" >&6; }
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 $as_echo "no" >&6; }
3649 test -n "$AWK" && break
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3653 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3655 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3656 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3657 $as_echo_n "(cached) " >&6
3659 cat >conftest.make <<\_ACEOF
3662 @echo '@@@%%%=$(MAKE)=@@@%%%'
3664 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3665 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3667 eval ac_cv_prog_make_${ac_make}_set=yes;;
3669 eval ac_cv_prog_make_${ac_make}_set=no;;
3673 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3675 $as_echo "yes" >&6; }
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3680 SET_MAKE="MAKE=${MAKE-make}"
3683 rm -rf .tst 2>/dev/null
3684 mkdir .tst 2>/dev/null
3685 if test -d .tst; then
3690 rmdir .tst 2>/dev/null
3692 # Check whether --enable-silent-rules was given.
3693 if test "${enable_silent_rules+set}" = set; then :
3694 enableval=$enable_silent_rules;
3697 case $enable_silent_rules in # (((
3698 yes) AM_DEFAULT_VERBOSITY=0;;
3699 no) AM_DEFAULT_VERBOSITY=1;;
3700 *) AM_DEFAULT_VERBOSITY=1;;
3702 am_make=${MAKE-make}
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3704 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3705 if ${am_cv_make_support_nested_variables+:} false; then :
3706 $as_echo_n "(cached) " >&6
3708 if $as_echo 'TRUE=$(BAR$(V))
3714 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3715 am_cv_make_support_nested_variables=yes
3717 am_cv_make_support_nested_variables=no
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3721 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3722 if test $am_cv_make_support_nested_variables = yes; then
3724 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3726 AM_V=$AM_DEFAULT_VERBOSITY
3727 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3731 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3732 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3733 # is not polluted with repeated "-I."
3734 am__isrc=' -I$(srcdir)'
3735 # test to see if srcdir already configured
3736 if test -f $srcdir/config.status; then
3737 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3741 # test whether we have cygpath
3742 if test -z "$CYGPATH_W"; then
3743 if (cygpath --version) >/dev/null 2>/dev/null; then
3744 CYGPATH_W='cygpath -w'
3751 # Define the identity of the package.
3756 cat >>confdefs.h <<_ACEOF
3757 #define PACKAGE "$PACKAGE"
3761 cat >>confdefs.h <<_ACEOF
3762 #define VERSION "$VERSION"
3765 # Some tools Automake needs.
3767 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3770 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3773 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3776 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3779 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3781 # For better backward compatibility. To be removed once Automake 1.9.x
3782 # dies out for good. For more background, see:
3783 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3784 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3785 mkdir_p='$(MKDIR_P)'
3787 # We need awk for the "check" target (and possibly the TAP driver). The
3788 # system "awk" is bad on some platforms.
3789 # Always define AMTAR for backward compatibility. Yes, it's still used
3790 # in the wild :-( We should find a proper way to deprecate it ...
3794 # We'll loop over all known methods to create a tar archive until one works.
3795 _am_tools='gnutar pax cpio none'
3797 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3804 # POSIX will say in a future version that running "rm -f" with no argument
3805 # is OK; and we want to be able to make that assumption in our Makefile
3806 # recipes. So use an aggressive probe to check that the usage we want is
3807 # actually supported "in the wild" to an acceptable degree.
3808 # See automake bug#10828.
3809 # To make any issue more visible, cause the running configure to be aborted
3810 # by default if the 'rm' program in use doesn't match our expectations; the
3811 # user can still override this though.
3812 if rm -f && rm -fr && rm -rf; then : OK; else
3816 Your 'rm' program seems unable to run without file operands specified
3817 on the command line, even when the '-f' option is present. This is contrary
3818 to the behaviour of most rm programs out there, and not conforming with
3819 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3821 Please tell bug-automake@gnu.org about your system, including the value
3822 of your $PATH and any error possibly output before this message. This
3823 can help us improve future automake versions.
3826 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3827 echo 'Configuration will proceed anyway, since you have set the' >&2
3828 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3832 Aborting the configuration process, to ensure you take notice of the issue.
3834 You can download and install GNU coreutils to get an 'rm' implementation
3835 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3837 If you want to complete the configuration process using your problematic
3838 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3839 to "yes", and re-run configure.
3842 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3847 # Check whether --enable-silent-rules was given.
3848 if test "${enable_silent_rules+set}" = set; then :
3849 enableval=$enable_silent_rules;
3852 case $enable_silent_rules in # (((
3853 yes) AM_DEFAULT_VERBOSITY=0;;
3854 no) AM_DEFAULT_VERBOSITY=1;;
3855 *) AM_DEFAULT_VERBOSITY=0;;
3857 am_make=${MAKE-make}
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3859 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3860 if ${am_cv_make_support_nested_variables+:} false; then :
3861 $as_echo_n "(cached) " >&6
3863 if $as_echo 'TRUE=$(BAR$(V))
3869 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3870 am_cv_make_support_nested_variables=yes
3872 am_cv_make_support_nested_variables=no
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3876 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3877 if test $am_cv_make_support_nested_variables = yes; then
3879 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3881 AM_V=$AM_DEFAULT_VERBOSITY
3882 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3887 # Make sure we can run config.sub.
3888 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3889 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3892 $as_echo_n "checking build system type... " >&6; }
3893 if ${ac_cv_build+:} false; then :
3894 $as_echo_n "(cached) " >&6
3896 ac_build_alias=$build_alias
3897 test "x$ac_build_alias" = x &&
3898 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3899 test "x$ac_build_alias" = x &&
3900 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3901 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3902 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3906 $as_echo "$ac_cv_build" >&6; }
3907 case $ac_cv_build in
3909 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3912 ac_save_IFS=$IFS; IFS='-'
3918 # Remember, the first character of IFS is used to create $*,
3919 # except with old shells:
3922 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3926 $as_echo_n "checking host system type... " >&6; }
3927 if ${ac_cv_host+:} false; then :
3928 $as_echo_n "(cached) " >&6
3930 if test "x$host_alias" = x; then
3931 ac_cv_host=$ac_cv_build
3933 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3934 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3939 $as_echo "$ac_cv_host" >&6; }
3942 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3945 ac_save_IFS=$IFS; IFS='-'
3951 # Remember, the first character of IFS is used to create $*,
3952 # except with old shells:
3955 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3959 cat >>confdefs.h <<_ACEOF
3960 #define STR_SYSTEM "$host"
3963 ac_config_headers="$ac_config_headers config.h"
3966 ntp_atom_ok=${ntp_atom_ok=no}
3967 ntp_oncore_ok=${ntp_oncore_ok=no}
3968 ntp_parse_ok=${ntp_parse_ok=no}
3969 ntp_ripe_ncc_ok=${ntp_parse_ok=no}
3970 ntp_jupiter_ok=${ntp_jupiter_ok=no}
3972 DEPDIR="${am__leading_dot}deps"
3974 ac_config_commands="$ac_config_commands depfiles"
3977 am_make=${MAKE-make}
3978 cat > confinc << 'END'
3980 @echo this is the am__doit target
3983 # If we don't find an include directive, just comment out the code.
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3985 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3989 # First try GNU make style include.
3990 echo "include confinc" > confmf
3991 # Ignore all kinds of additional output from 'make'.
3992 case `$am_make -s -f confmf 2> /dev/null` in #(
3993 *the\ am__doit\ target*)
3999 # Now try BSD make style include.
4000 if test "$am__include" = "#"; then
4001 echo '.include "confinc"' > confmf
4002 case `$am_make -s -f confmf 2> /dev/null` in #(
4003 *the\ am__doit\ target*)
4004 am__include=.include
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4013 $as_echo "$_am_result" >&6; }
4014 rm -f confinc confmf
4016 # Check whether --enable-dependency-tracking was given.
4017 if test "${enable_dependency_tracking+set}" = set; then :
4018 enableval=$enable_dependency_tracking;
4021 if test "x$enable_dependency_tracking" != xno; then
4022 am_depcomp="$ac_aux_dir/depcomp"
4026 if test "x$enable_dependency_tracking" != xno; then
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 if test -n "$ac_tool_prefix"; then
4041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4042 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 $as_echo_n "checking for $ac_word... " >&6; }
4045 if ${ac_cv_prog_CC+:} false; then :
4046 $as_echo_n "(cached) " >&6
4048 if test -n "$CC"; then
4049 ac_cv_prog_CC="$CC" # Let the user override the test.
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 test -z "$as_dir" && as_dir=.
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 if test -n "$CC"; then
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4071 $as_echo "$CC" >&6; }
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074 $as_echo "no" >&6; }
4079 if test -z "$ac_cv_prog_CC"; then
4081 # Extract the first word of "gcc", so it can be a program name with args.
4082 set dummy gcc; ac_word=$2
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084 $as_echo_n "checking for $ac_word... " >&6; }
4085 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4086 $as_echo_n "(cached) " >&6
4088 if test -n "$ac_ct_CC"; then
4089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098 ac_cv_prog_ac_ct_CC="gcc"
4099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4109 if test -n "$ac_ct_CC"; then
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4111 $as_echo "$ac_ct_CC" >&6; }
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 $as_echo "no" >&6; }
4117 if test "x$ac_ct_CC" = x; then
4120 case $cross_compiling:$ac_tool_warned in
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4124 ac_tool_warned=yes ;;
4132 if test -z "$CC"; then
4133 if test -n "$ac_tool_prefix"; then
4134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4135 set dummy ${ac_tool_prefix}cc; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_CC+:} false; then :
4139 $as_echo_n "(cached) " >&6
4141 if test -n "$CC"; then
4142 ac_cv_prog_CC="$CC" # Let the user override the test.
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_CC="${ac_tool_prefix}cc"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 if test -n "$CC"; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4164 $as_echo "$CC" >&6; }
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4173 if test -z "$CC"; then
4174 # Extract the first word of "cc", so it can be a program name with args.
4175 set dummy cc; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if ${ac_cv_prog_CC+:} false; then :
4179 $as_echo_n "(cached) " >&6
4181 if test -n "$CC"; then
4182 ac_cv_prog_CC="$CC" # Let the user override the test.
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4193 ac_prog_rejected=yes
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 if test $ac_prog_rejected = yes; then
4205 # We found a bogon in the path, so make sure we never use it.
4206 set dummy $ac_cv_prog_CC
4208 if test $# != 0; then
4209 # We chose a different compiler from the bogus one.
4210 # However, it has the same basename, so the bogon will be chosen
4211 # first if we set CC to just the basename; use the full file name.
4213 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4219 if test -n "$CC"; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4221 $as_echo "$CC" >&6; }
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4229 if test -z "$CC"; then
4230 if test -n "$ac_tool_prefix"; then
4231 for ac_prog in cl.exe
4233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_prog_CC+:} false; then :
4238 $as_echo_n "(cached) " >&6
4240 if test -n "$CC"; then
4241 ac_cv_prog_CC="$CC" # Let the user override the test.
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 if test -n "$CC"; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4263 $as_echo "$CC" >&6; }
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4270 test -n "$CC" && break
4273 if test -z "$CC"; then
4275 for ac_prog in cl.exe
4277 # Extract the first word of "$ac_prog", so it can be a program name with args.
4278 set dummy $ac_prog; ac_word=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4282 $as_echo_n "(cached) " >&6
4284 if test -n "$ac_ct_CC"; then
4285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_prog_ac_ct_CC="$ac_prog"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4305 if test -n "$ac_ct_CC"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4307 $as_echo "$ac_ct_CC" >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4314 test -n "$ac_ct_CC" && break
4317 if test "x$ac_ct_CC" = x; then
4320 case $cross_compiling:$ac_tool_warned in
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4324 ac_tool_warned=yes ;;
4333 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4335 as_fn_error $? "no acceptable C compiler found in \$PATH
4336 See \`config.log' for more details" "$LINENO" 5; }
4338 # Provide some information about the compiler.
4339 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4342 for ac_option in --version -v -V -qversion; do
4343 { { ac_try="$ac_compiler $ac_option >&5"
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349 $as_echo "$ac_try_echo"; } >&5
4350 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4352 if test -s conftest.err; then
4354 ... rest of stderr output deleted ...
4355 10q' conftest.err >conftest.er1
4356 cat conftest.er1 >&5
4358 rm -f conftest.er1 conftest.err
4359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4360 test $ac_status = 0; }
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4374 ac_clean_files_save=$ac_clean_files
4375 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4376 # Try to create an executable without -o first, disregard a.out.
4377 # It will help us diagnose broken compilers, and finding out an intuition
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4380 $as_echo_n "checking whether the C compiler works... " >&6; }
4381 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4383 # The possible output files:
4384 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4387 for ac_file in $ac_files
4390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4391 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4396 if { { ac_try="$ac_link_default"
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403 (eval "$ac_link_default") 2>&5
4405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4406 test $ac_status = 0; }; then :
4407 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4408 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4409 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4410 # so that the user can short-circuit this test for compilers unknown to
4412 for ac_file in $ac_files ''
4414 test -f "$ac_file" || continue
4416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4419 # We found the default executable, but exeext='' is most
4423 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4425 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4427 # We set ac_cv_exeext here because the later test for it is not
4428 # safe: cross compilers may not add the suffix if given an `-o'
4429 # argument, so we may need to know it at that point already.
4430 # Even if this section looks crufty: it has the advantage of
4437 test "$ac_cv_exeext" = no && ac_cv_exeext=
4442 if test -z "$ac_file"; then :
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4445 $as_echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4450 as_fn_error 77 "C compiler cannot create executables
4451 See \`config.log' for more details" "$LINENO" 5; }
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4454 $as_echo "yes" >&6; }
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4457 $as_echo_n "checking for C compiler default output file name... " >&6; }
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4459 $as_echo "$ac_file" >&6; }
4460 ac_exeext=$ac_cv_exeext
4462 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4463 ac_clean_files=$ac_clean_files_save
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4465 $as_echo_n "checking for suffix of executables... " >&6; }
4466 if { { ac_try="$ac_link"
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4472 $as_echo "$ac_try_echo"; } >&5
4473 (eval "$ac_link") 2>&5
4475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4476 test $ac_status = 0; }; then :
4477 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4478 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4479 # work properly (i.e., refer to `conftest.exe'), while it won't with
4481 for ac_file in conftest.exe conftest conftest.*; do
4482 test -f "$ac_file" || continue
4484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4485 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4493 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4494 See \`config.log' for more details" "$LINENO" 5; }
4496 rm -f conftest conftest$ac_cv_exeext
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4498 $as_echo "$ac_cv_exeext" >&6; }
4500 rm -f conftest.$ac_ext
4501 EXEEXT=$ac_cv_exeext
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4509 FILE *f = fopen ("conftest.out", "w");
4510 return ferror (f) || fclose (f) != 0;
4516 ac_clean_files="$ac_clean_files conftest.out"
4517 # Check that the compiler produces executables we can run. If not, either
4518 # the compiler is broken, or we cross compile.
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4520 $as_echo_n "checking whether we are cross compiling... " >&6; }
4521 if test "$cross_compiling" != yes; then
4522 { { ac_try="$ac_link"
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528 $as_echo "$ac_try_echo"; } >&5
4529 (eval "$ac_link") 2>&5
4531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }
4533 if { ac_try='./conftest$ac_cv_exeext'
4534 { { case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4539 $as_echo "$ac_try_echo"; } >&5
4540 (eval "$ac_try") 2>&5
4542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4543 test $ac_status = 0; }; }; then
4546 if test "$cross_compiling" = maybe; then
4549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4551 as_fn_error $? "cannot run C compiled programs.
4552 If you meant to cross compile, use \`--host'.
4553 See \`config.log' for more details" "$LINENO" 5; }
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4558 $as_echo "$cross_compiling" >&6; }
4560 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4561 ac_clean_files=$ac_clean_files_save
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4563 $as_echo_n "checking for suffix of object files... " >&6; }
4564 if ${ac_cv_objext+:} false; then :
4565 $as_echo_n "(cached) " >&6
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4578 rm -f conftest.o conftest.obj
4579 if { { ac_try="$ac_compile"
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4585 $as_echo "$ac_try_echo"; } >&5
4586 (eval "$ac_compile") 2>&5
4588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4589 test $ac_status = 0; }; then :
4590 for ac_file in conftest.o conftest.obj conftest.*; do
4591 test -f "$ac_file" || continue;
4593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4599 $as_echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 as_fn_error $? "cannot compute suffix of object files: cannot compile
4605 See \`config.log' for more details" "$LINENO" 5; }
4607 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4610 $as_echo "$ac_cv_objext" >&6; }
4611 OBJEXT=$ac_cv_objext
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4614 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4615 if ${ac_cv_c_compiler_gnu+:} false; then :
4616 $as_echo_n "(cached) " >&6
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4632 if ac_fn_c_try_compile "$LINENO"; then :
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4642 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4643 if test $ac_compiler_gnu = yes; then
4648 ac_test_CFLAGS=${CFLAGS+set}
4649 ac_save_CFLAGS=$CFLAGS
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4651 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4652 if ${ac_cv_prog_cc_g+:} false; then :
4653 $as_echo_n "(cached) " >&6
4655 ac_save_c_werror_flag=$ac_c_werror_flag
4656 ac_c_werror_flag=yes
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4670 if ac_fn_c_try_compile "$LINENO"; then :
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4685 if ac_fn_c_try_compile "$LINENO"; then :
4688 ac_c_werror_flag=$ac_save_c_werror_flag
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4701 if ac_fn_c_try_compile "$LINENO"; then :
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 ac_c_werror_flag=$ac_save_c_werror_flag
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4712 $as_echo "$ac_cv_prog_cc_g" >&6; }
4713 if test "$ac_test_CFLAGS" = set; then
4714 CFLAGS=$ac_save_CFLAGS
4715 elif test $ac_cv_prog_cc_g = yes; then
4716 if test "$GCC" = yes; then
4722 if test "$GCC" = yes; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4729 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4730 if ${ac_cv_prog_cc_c89+:} false; then :
4731 $as_echo_n "(cached) " >&6
4733 ac_cv_prog_cc_c89=no
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4741 struct buf { int x; };
4742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4743 static char *e (p, i)
4749 static char *f (char * (*g) (char **, int), char **p, ...)
4754 s = g (p, va_arg (v,int));
4759 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4760 function prototypes and stuff, but not '\xHH' hex character constants.
4761 These don't provoke an error unfortunately, instead are silently treated
4762 as 'x'. The following induces an error, until -std is added to get
4763 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4764 array size at least. It's necessary to write '\x00'==0 to get something
4765 that's true only with -std. */
4766 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4768 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4769 inside strings and character constants. */
4771 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4773 int test (int i, double x);
4774 struct s1 {int (*f) (int a);};
4775 struct s2 {int (*f) (double a);};
4776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4782 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4787 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4788 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4790 CC="$ac_save_CC $ac_arg"
4791 if ac_fn_c_try_compile "$LINENO"; then :
4792 ac_cv_prog_cc_c89=$ac_arg
4794 rm -f core conftest.err conftest.$ac_objext
4795 test "x$ac_cv_prog_cc_c89" != "xno" && break
4797 rm -f conftest.$ac_ext
4802 case "x$ac_cv_prog_cc_c89" in
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4805 $as_echo "none needed" >&6; } ;;
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4808 $as_echo "unsupported" >&6; } ;;
4810 CC="$CC $ac_cv_prog_cc_c89"
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4812 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4814 if test "x$ac_cv_prog_cc_c89" != xno; then :
4819 ac_cpp='$CPP $CPPFLAGS'
4820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4825 ac_cpp='$CPP $CPPFLAGS'
4826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4830 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4831 if ${am_cv_prog_cc_c_o+:} false; then :
4832 $as_echo_n "(cached) " >&6
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4845 # Make sure it works both with $CC and with simple cc.
4846 # Following AC_PROG_CC_C_O, we do the test twice because some
4847 # compilers refuse to overwrite an existing .o file with -o,
4848 # though they will create one.
4849 am_cv_prog_cc_c_o=yes
4851 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4852 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } \
4856 && test -f conftest2.$ac_objext; then
4859 am_cv_prog_cc_c_o=no
4863 rm -f core conftest*
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4867 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4868 if test "$am_cv_prog_cc_c_o" != yes; then
4869 # Losing compiler, so override with the script.
4870 # FIXME: It is wrong to rewrite CC.
4871 # But if we don't then we get into trouble of one sort or another.
4872 # A longer-term fix would be to have automake use am__CC in this case,
4873 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4874 CC="$am_aux_dir/compile $CC"
4877 ac_cpp='$CPP $CPPFLAGS'
4878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4883 depcc="$CC" am_compiler_list=
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4886 $as_echo_n "checking dependency style of $depcc... " >&6; }
4887 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4888 $as_echo_n "(cached) " >&6
4890 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4891 # We make a subdir and do the tests there. Otherwise we can end up
4892 # making bogus files that we don't know about and never remove. For
4893 # instance it was reported that on HP-UX the gcc test will end up
4894 # making a dummy file named 'D' -- because '-MD' means "put the output
4898 # Copy depcomp to subdir because otherwise we won't find it if we're
4899 # using a relative directory.
4900 cp "$am_depcomp" conftest.dir
4902 # We will build objects and dependencies in a subdirectory because
4903 # it helps to detect inapplicable dependency modes. For instance
4904 # both Tru64's cc and ICC support -MD to output dependencies as a
4905 # side effect of compilation, but ICC will put the dependencies in
4906 # the current directory while Tru64 will put them in the object
4910 am_cv_CC_dependencies_compiler_type=none
4911 if test "$am_compiler_list" = ""; then
4912 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4915 case " $depcc " in #(
4916 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4919 for depmode in $am_compiler_list; do
4920 # Setup a source with many dependencies, because some compilers
4921 # like to wrap large dependency lists on column 80 (with \), and
4922 # we should not choose a depcomp mode which is confused by this.
4924 # We need to recreate these files for each test, as the compiler may
4925 # overwrite some of them when testing with obscure command lines.
4926 # This happens at least with the AIX C compiler.
4928 for i in 1 2 3 4 5 6; do
4929 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4930 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4931 # Solaris 10 /bin/sh.
4932 echo '/* dummy */' > sub/conftst$i.h
4934 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4936 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4937 # mode. It turns out that the SunPro C++ compiler does not properly
4938 # handle '-M -o', and we need to detect this. Also, some Intel
4939 # versions had trouble with output in subdirs.
4940 am__obj=sub/conftest.${OBJEXT-o}
4941 am__minus_obj="-o $am__obj"
4944 # This depmode causes a compiler race in universal mode.
4945 test "$am__universal" = false || continue
4948 # After this tag, mechanisms are not by side-effect, so they'll
4949 # only be used when explicitly requested.
4950 if test "x$enable_dependency_tracking" = xyes; then
4956 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4957 # This compiler won't grok '-c -o', but also, the minuso test has
4958 # not run yet. These depmodes are late enough in the game, and
4959 # so weak that their functioning should not be impacted.
4960 am__obj=conftest.${OBJEXT-o}
4965 if depmode=$depmode \
4966 source=sub/conftest.c object=$am__obj \
4967 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4968 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4969 >/dev/null 2>conftest.err &&
4970 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4971 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4972 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4973 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4974 # icc doesn't choke on unknown options, it will just issue warnings
4975 # or remarks (even with -Werror). So we grep stderr for any message
4976 # that says an option was ignored or not supported.
4977 # When given -MP, icc 7.0 and 7.1 complain thusly:
4978 # icc: Command line warning: ignoring option '-M'; no argument required
4979 # The diagnosis changed in icc 8.0:
4980 # icc: Command line remark: option '-MP' not supported
4981 if (grep 'ignoring option' conftest.err ||
4982 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4983 am_cv_CC_dependencies_compiler_type=$depmode
4992 am_cv_CC_dependencies_compiler_type=none
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4997 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4998 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5001 test "x$enable_dependency_tracking" != xno \
5002 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5004 am__fastdepCC_FALSE='#'
5006 am__fastdepCC_TRUE='#'
5007 am__fastdepCC_FALSE=
5013 ac_cpp='$CPP $CPPFLAGS'
5014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5018 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5019 # On Suns, sometimes $CPP names a directory.
5020 if test -n "$CPP" && test -d "$CPP"; then
5023 if test -z "$CPP"; then
5024 if ${ac_cv_prog_CPP+:} false; then :
5025 $as_echo_n "(cached) " >&6
5027 # Double quotes because CPP needs to be expanded
5028 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5031 for ac_c_preproc_warn_flag in '' yes
5033 # Use a header file that comes with gcc, so configuring glibc
5034 # with a fresh cross-compiler works.
5035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5036 # <limits.h> exists even on freestanding compilers.
5037 # On the NeXT, cc -E runs the code through the compiler's parser,
5038 # not just through cpp. "Syntax error" is here to catch this case.
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5042 # include <limits.h>
5044 # include <assert.h>
5048 if ac_fn_c_try_cpp "$LINENO"; then :
5051 # Broken: fails on valid input.
5054 rm -f conftest.err conftest.i conftest.$ac_ext
5056 # OK, works on sane cases. Now check whether nonexistent headers
5057 # can be detected and how.
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5060 #include <ac_nonexistent.h>
5062 if ac_fn_c_try_cpp "$LINENO"; then :
5063 # Broken: success on invalid input.
5066 # Passes both tests.
5070 rm -f conftest.err conftest.i conftest.$ac_ext
5073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5074 rm -f conftest.i conftest.err conftest.$ac_ext
5075 if $ac_preproc_ok; then :
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5088 $as_echo "$CPP" >&6; }
5090 for ac_c_preproc_warn_flag in '' yes
5092 # Use a header file that comes with gcc, so configuring glibc
5093 # with a fresh cross-compiler works.
5094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5095 # <limits.h> exists even on freestanding compilers.
5096 # On the NeXT, cc -E runs the code through the compiler's parser,
5097 # not just through cpp. "Syntax error" is here to catch this case.
5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5101 # include <limits.h>
5103 # include <assert.h>
5107 if ac_fn_c_try_cpp "$LINENO"; then :
5110 # Broken: fails on valid input.
5113 rm -f conftest.err conftest.i conftest.$ac_ext
5115 # OK, works on sane cases. Now check whether nonexistent headers
5116 # can be detected and how.
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5119 #include <ac_nonexistent.h>
5121 if ac_fn_c_try_cpp "$LINENO"; then :
5122 # Broken: success on invalid input.
5125 # Passes both tests.
5129 rm -f conftest.err conftest.i conftest.$ac_ext
5132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5133 rm -f conftest.i conftest.err conftest.$ac_ext
5134 if $ac_preproc_ok; then :
5137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5139 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5140 See \`config.log' for more details" "$LINENO" 5; }
5144 ac_cpp='$CPP $CPPFLAGS'
5145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5151 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5152 if ${ac_cv_path_GREP+:} false; then :
5153 $as_echo_n "(cached) " >&6
5155 if test -z "$GREP"; then
5156 ac_path_GREP_found=false
5157 # Loop through the user's path and test for each of PROGNAME-LIST
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5162 test -z "$as_dir" && as_dir=.
5163 for ac_prog in grep ggrep; do
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5166 as_fn_executable_p "$ac_path_GREP" || continue
5167 # Check for GNU ac_path_GREP and select it if it is found.
5168 # Check for GNU $ac_path_GREP
5169 case `"$ac_path_GREP" --version 2>&1` in
5171 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5174 $as_echo_n 0123456789 >"conftest.in"
5177 cat "conftest.in" "conftest.in" >"conftest.tmp"
5178 mv "conftest.tmp" "conftest.in"
5179 cp "conftest.in" "conftest.nl"
5180 $as_echo 'GREP' >> "conftest.nl"
5181 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5183 as_fn_arith $ac_count + 1 && ac_count=$as_val
5184 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5185 # Best one so far, save it but keep looking for a better one
5186 ac_cv_path_GREP="$ac_path_GREP"
5187 ac_path_GREP_max=$ac_count
5189 # 10*(2^10) chars as input seems more than enough
5190 test $ac_count -gt 10 && break
5192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5195 $ac_path_GREP_found && break 3
5200 if test -z "$ac_cv_path_GREP"; then
5201 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5204 ac_cv_path_GREP=$GREP
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5209 $as_echo "$ac_cv_path_GREP" >&6; }
5210 GREP="$ac_cv_path_GREP"
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5214 $as_echo_n "checking for egrep... " >&6; }
5215 if ${ac_cv_path_EGREP+:} false; then :
5216 $as_echo_n "(cached) " >&6
5218 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5219 then ac_cv_path_EGREP="$GREP -E"
5221 if test -z "$EGREP"; then
5222 ac_path_EGREP_found=false
5223 # Loop through the user's path and test for each of PROGNAME-LIST
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5228 test -z "$as_dir" && as_dir=.
5229 for ac_prog in egrep; do
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5232 as_fn_executable_p "$ac_path_EGREP" || continue
5233 # Check for GNU ac_path_EGREP and select it if it is found.
5234 # Check for GNU $ac_path_EGREP
5235 case `"$ac_path_EGREP" --version 2>&1` in
5237 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5240 $as_echo_n 0123456789 >"conftest.in"
5243 cat "conftest.in" "conftest.in" >"conftest.tmp"
5244 mv "conftest.tmp" "conftest.in"
5245 cp "conftest.in" "conftest.nl"
5246 $as_echo 'EGREP' >> "conftest.nl"
5247 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5248 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5249 as_fn_arith $ac_count + 1 && ac_count=$as_val
5250 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5251 # Best one so far, save it but keep looking for a better one
5252 ac_cv_path_EGREP="$ac_path_EGREP"
5253 ac_path_EGREP_max=$ac_count
5255 # 10*(2^10) chars as input seems more than enough
5256 test $ac_count -gt 10 && break
5258 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5261 $ac_path_EGREP_found && break 3
5266 if test -z "$ac_cv_path_EGREP"; then
5267 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5270 ac_cv_path_EGREP=$EGREP
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5276 $as_echo "$ac_cv_path_EGREP" >&6; }
5277 EGREP="$ac_cv_path_EGREP"
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5281 $as_echo_n "checking for ANSI C header files... " >&6; }
5282 if ${ac_cv_header_stdc+:} false; then :
5283 $as_echo_n "(cached) " >&6
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5300 if ac_fn_c_try_compile "$LINENO"; then :
5301 ac_cv_header_stdc=yes
5303 ac_cv_header_stdc=no
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 if test $ac_cv_header_stdc = yes; then
5308 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5315 $EGREP "memchr" >/dev/null 2>&1; then :
5318 ac_cv_header_stdc=no
5324 if test $ac_cv_header_stdc = yes; then
5325 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5332 $EGREP "free" >/dev/null 2>&1; then :
5335 ac_cv_header_stdc=no
5341 if test $ac_cv_header_stdc = yes; then
5342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5343 if test "$cross_compiling" = yes; then :
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5350 #if ((' ' & 0x0FF) == 0x020)
5351 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5352 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5354 # define ISLOWER(c) \
5355 (('a' <= (c) && (c) <= 'i') \
5356 || ('j' <= (c) && (c) <= 'r') \
5357 || ('s' <= (c) && (c) <= 'z'))
5358 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5361 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5366 for (i = 0; i < 256; i++)
5367 if (XOR (islower (i), ISLOWER (i))
5368 || toupper (i) != TOUPPER (i))
5373 if ac_fn_c_try_run "$LINENO"; then :
5376 ac_cv_header_stdc=no
5378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5379 conftest.$ac_objext conftest.beam conftest.$ac_ext
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5385 $as_echo "$ac_cv_header_stdc" >&6; }
5386 if test $ac_cv_header_stdc = yes; then
5388 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5392 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5393 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5394 inttypes.h stdint.h unistd.h
5396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5397 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5399 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5400 cat >>confdefs.h <<_ACEOF
5401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5412 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5413 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5420 if test "$MINIX" = yes; then
5422 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5425 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5428 $as_echo "#define _MINIX 1" >>confdefs.h
5435 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5442 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5443 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5444 $as_echo_n "(cached) " >&6
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5449 # define __EXTENSIONS__ 1
5450 $ac_includes_default
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 ac_cv_safe_to_define___extensions__=yes
5462 ac_cv_safe_to_define___extensions__=no
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5467 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5468 test $ac_cv_safe_to_define___extensions__ = yes &&
5469 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5471 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5473 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5475 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5477 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5482 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5483 if ${ac_cv_prog_cc_c89+:} false; then :
5484 $as_echo_n "(cached) " >&6
5486 ac_cv_prog_cc_c89=no
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5494 struct buf { int x; };
5495 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5496 static char *e (p, i)
5502 static char *f (char * (*g) (char **, int), char **p, ...)
5507 s = g (p, va_arg (v,int));
5512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5513 function prototypes and stuff, but not '\xHH' hex character constants.
5514 These don't provoke an error unfortunately, instead are silently treated
5515 as 'x'. The following induces an error, until -std is added to get
5516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5517 array size at least. It's necessary to write '\x00'==0 to get something
5518 that's true only with -std. */
5519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5521 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5522 inside strings and character constants. */
5524 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5526 int test (int i, double x);
5527 struct s1 {int (*f) (int a);};
5528 struct s2 {int (*f) (double a);};
5529 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5535 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5540 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5541 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5543 CC="$ac_save_CC $ac_arg"
5544 if ac_fn_c_try_compile "$LINENO"; then :
5545 ac_cv_prog_cc_c89=$ac_arg
5547 rm -f core conftest.err conftest.$ac_objext
5548 test "x$ac_cv_prog_cc_c89" != "xno" && break
5550 rm -f conftest.$ac_ext
5555 case "x$ac_cv_prog_cc_c89" in
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5558 $as_echo "none needed" >&6; } ;;
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5561 $as_echo "unsupported" >&6; } ;;
5563 CC="$CC $ac_cv_prog_cc_c89"
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5565 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5567 if test "x$ac_cv_prog_cc_c89" != xno; then :
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5573 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5574 if ${ac_cv_prog_cc_c99+:} false; then :
5575 $as_echo_n "(cached) " >&6
5577 ac_cv_prog_cc_c99=no
5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h. */
5582 #include <stdbool.h>
5587 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5588 #define debug(...) fprintf (stderr, __VA_ARGS__)
5589 #define showlist(...) puts (#__VA_ARGS__)
5590 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5592 test_varargs_macros (void)
5597 debug ("X = %d\n", x);
5598 showlist (The first, second, and third items.);
5599 report (x>y, "x is %d but y is %d", x, y);
5602 // Check long long types.
5603 #define BIG64 18446744073709551615ull
5604 #define BIG32 4294967295ul
5605 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5607 your preprocessor is broken;
5611 your preprocessor is broken;
5613 static long long int bignum = -9223372036854775807LL;
5614 static unsigned long long int ubignum = BIG64;
5616 struct incomplete_array
5624 const wchar_t *name;
5628 typedef const char *ccp;
5631 test_restrict (ccp restrict text)
5633 // See if C++-style comments work.
5634 // Iterate through items via the restricted pointer.
5635 // Also check for declarations in for loops.
5636 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5641 // Check varargs and va_copy.
5643 test_varargs (const char *format, ...)
5646 va_start (args, format);
5648 va_copy (args_copy, args);
5659 str = va_arg (args_copy, const char *);
5662 number = va_arg (args_copy, int);
5665 fnumber = va_arg (args_copy, double);
5680 _Bool success = false;
5683 if (test_restrict ("String literal") == 0)
5685 char *restrict newvar = "Another string";
5688 test_varargs ("s, d' f .", "string", 65, 34.234);
5689 test_varargs_macros ();
5691 // Check flexible array members.
5692 struct incomplete_array *ia =
5693 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5695 for (int i = 0; i < ia->datasize; ++i)
5696 ia->data[i] = i * 1.234;
5698 // Check named initializers.
5699 struct named_init ni = {
5701 .name = L"Test wide string",
5702 .average = 543.34343,
5707 int dynamic_array[ni.number];
5708 dynamic_array[ni.number - 1] = 543;
5710 // work around unused variable warnings
5711 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5712 || dynamic_array[ni.number - 1] != 543);
5718 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5720 CC="$ac_save_CC $ac_arg"
5721 if ac_fn_c_try_compile "$LINENO"; then :
5722 ac_cv_prog_cc_c99=$ac_arg
5724 rm -f core conftest.err conftest.$ac_objext
5725 test "x$ac_cv_prog_cc_c99" != "xno" && break
5727 rm -f conftest.$ac_ext
5732 case "x$ac_cv_prog_cc_c99" in
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5735 $as_echo "none needed" >&6; } ;;
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5738 $as_echo "unsupported" >&6; } ;;
5740 CC="$CC $ac_cv_prog_cc_c99"
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5742 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5744 if test "x$ac_cv_prog_cc_c99" != xno; then :
5754 ac_cpp='$CPP $CPPFLAGS'
5755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5758 if test -n "$ac_tool_prefix"; then
5759 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5760 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_prog_CC+:} false; then :
5764 $as_echo_n "(cached) " >&6
5766 if test -n "$CC"; then
5767 ac_cv_prog_CC="$CC" # Let the user override the test.
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 if test -n "$CC"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5789 $as_echo "$CC" >&6; }
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5797 if test -z "$ac_cv_prog_CC"; then
5799 # Extract the first word of "gcc", so it can be a program name with args.
5800 set dummy gcc; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5804 $as_echo_n "(cached) " >&6
5806 if test -n "$ac_ct_CC"; then
5807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816 ac_cv_prog_ac_ct_CC="gcc"
5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5827 if test -n "$ac_ct_CC"; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5829 $as_echo "$ac_ct_CC" >&6; }
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5835 if test "x$ac_ct_CC" = x; then
5838 case $cross_compiling:$ac_tool_warned in
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5842 ac_tool_warned=yes ;;
5850 if test -z "$CC"; then
5851 if test -n "$ac_tool_prefix"; then
5852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5853 set dummy ${ac_tool_prefix}cc; ac_word=$2
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855 $as_echo_n "checking for $ac_word... " >&6; }
5856 if ${ac_cv_prog_CC+:} false; then :
5857 $as_echo_n "(cached) " >&6
5859 if test -n "$CC"; then
5860 ac_cv_prog_CC="$CC" # Let the user override the test.
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869 ac_cv_prog_CC="${ac_tool_prefix}cc"
5870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 if test -n "$CC"; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5882 $as_echo "$CC" >&6; }
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5891 if test -z "$CC"; then
5892 # Extract the first word of "cc", so it can be a program name with args.
5893 set dummy cc; ac_word=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if ${ac_cv_prog_CC+:} false; then :
5897 $as_echo_n "(cached) " >&6
5899 if test -n "$CC"; then
5900 ac_cv_prog_CC="$CC" # Let the user override the test.
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5911 ac_prog_rejected=yes
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 if test $ac_prog_rejected = yes; then
5923 # We found a bogon in the path, so make sure we never use it.
5924 set dummy $ac_cv_prog_CC
5926 if test $# != 0; then
5927 # We chose a different compiler from the bogus one.
5928 # However, it has the same basename, so the bogon will be chosen
5929 # first if we set CC to just the basename; use the full file name.
5931 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5937 if test -n "$CC"; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5939 $as_echo "$CC" >&6; }
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5947 if test -z "$CC"; then
5948 if test -n "$ac_tool_prefix"; then
5949 for ac_prog in cl.exe
5951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954 $as_echo_n "checking for $ac_word... " >&6; }
5955 if ${ac_cv_prog_CC+:} false; then :
5956 $as_echo_n "(cached) " >&6
5958 if test -n "$CC"; then
5959 ac_cv_prog_CC="$CC" # Let the user override the test.
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 if test -n "$CC"; then
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5981 $as_echo "$CC" >&6; }
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5988 test -n "$CC" && break
5991 if test -z "$CC"; then
5993 for ac_prog in cl.exe
5995 # Extract the first word of "$ac_prog", so it can be a program name with args.
5996 set dummy $ac_prog; ac_word=$2
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998 $as_echo_n "checking for $ac_word... " >&6; }
5999 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6000 $as_echo_n "(cached) " >&6
6002 if test -n "$ac_ct_CC"; then
6003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 test -z "$as_dir" && as_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6012 ac_cv_prog_ac_ct_CC="$ac_prog"
6013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6023 if test -n "$ac_ct_CC"; then
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6025 $as_echo "$ac_ct_CC" >&6; }
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6032 test -n "$ac_ct_CC" && break
6035 if test "x$ac_ct_CC" = x; then
6038 case $cross_compiling:$ac_tool_warned in
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6042 ac_tool_warned=yes ;;
6051 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6053 as_fn_error $? "no acceptable C compiler found in \$PATH
6054 See \`config.log' for more details" "$LINENO" 5; }
6056 # Provide some information about the compiler.
6057 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6060 for ac_option in --version -v -V -qversion; do
6061 { { ac_try="$ac_compiler $ac_option >&5"
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6067 $as_echo "$ac_try_echo"; } >&5
6068 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6070 if test -s conftest.err; then
6072 ... rest of stderr output deleted ...
6073 10q' conftest.err >conftest.er1
6074 cat conftest.er1 >&5
6076 rm -f conftest.er1 conftest.err
6077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6078 test $ac_status = 0; }
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6082 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6083 if ${ac_cv_c_compiler_gnu+:} false; then :
6084 $as_echo_n "(cached) " >&6
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6100 if ac_fn_c_try_compile "$LINENO"; then :
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6110 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6111 if test $ac_compiler_gnu = yes; then
6116 ac_test_CFLAGS=${CFLAGS+set}
6117 ac_save_CFLAGS=$CFLAGS
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6119 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6120 if ${ac_cv_prog_cc_g+:} false; then :
6121 $as_echo_n "(cached) " >&6
6123 ac_save_c_werror_flag=$ac_c_werror_flag
6124 ac_c_werror_flag=yes
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6138 if ac_fn_c_try_compile "$LINENO"; then :
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6153 if ac_fn_c_try_compile "$LINENO"; then :
6156 ac_c_werror_flag=$ac_save_c_werror_flag
6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159 /* end confdefs.h. */
6169 if ac_fn_c_try_compile "$LINENO"; then :
6172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177 ac_c_werror_flag=$ac_save_c_werror_flag
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6180 $as_echo "$ac_cv_prog_cc_g" >&6; }
6181 if test "$ac_test_CFLAGS" = set; then
6182 CFLAGS=$ac_save_CFLAGS
6183 elif test $ac_cv_prog_cc_g = yes; then
6184 if test "$GCC" = yes; then
6190 if test "$GCC" = yes; then
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6197 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6198 if ${ac_cv_prog_cc_c89+:} false; then :
6199 $as_echo_n "(cached) " >&6
6201 ac_cv_prog_cc_c89=no
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6208 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6209 struct buf { int x; };
6210 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6211 static char *e (p, i)
6217 static char *f (char * (*g) (char **, int), char **p, ...)
6222 s = g (p, va_arg (v,int));
6227 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6228 function prototypes and stuff, but not '\xHH' hex character constants.
6229 These don't provoke an error unfortunately, instead are silently treated
6230 as 'x'. The following induces an error, until -std is added to get
6231 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6232 array size at least. It's necessary to write '\x00'==0 to get something
6233 that's true only with -std. */
6234 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6236 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6237 inside strings and character constants. */
6239 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6241 int test (int i, double x);
6242 struct s1 {int (*f) (int a);};
6243 struct s2 {int (*f) (double a);};
6244 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6250 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6255 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6256 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6258 CC="$ac_save_CC $ac_arg"
6259 if ac_fn_c_try_compile "$LINENO"; then :
6260 ac_cv_prog_cc_c89=$ac_arg
6262 rm -f core conftest.err conftest.$ac_objext
6263 test "x$ac_cv_prog_cc_c89" != "xno" && break
6265 rm -f conftest.$ac_ext
6270 case "x$ac_cv_prog_cc_c89" in
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6273 $as_echo "none needed" >&6; } ;;
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6276 $as_echo "unsupported" >&6; } ;;
6278 CC="$CC $ac_cv_prog_cc_c89"
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6280 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6282 if test "x$ac_cv_prog_cc_c89" != xno; then :
6287 ac_cpp='$CPP $CPPFLAGS'
6288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6293 ac_cpp='$CPP $CPPFLAGS'
6294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6298 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6299 if ${am_cv_prog_cc_c_o+:} false; then :
6300 $as_echo_n "(cached) " >&6
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6313 # Make sure it works both with $CC and with simple cc.
6314 # Following AC_PROG_CC_C_O, we do the test twice because some
6315 # compilers refuse to overwrite an existing .o file with -o,
6316 # though they will create one.
6317 am_cv_prog_cc_c_o=yes
6319 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6320 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } \
6324 && test -f conftest2.$ac_objext; then
6327 am_cv_prog_cc_c_o=no
6331 rm -f core conftest*
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6335 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6336 if test "$am_cv_prog_cc_c_o" != yes; then
6337 # Losing compiler, so override with the script.
6338 # FIXME: It is wrong to rewrite CC.
6339 # But if we don't then we get into trouble of one sort or another.
6340 # A longer-term fix would be to have automake use am__CC in this case,
6341 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6342 CC="$am_aux_dir/compile $CC"
6345 ac_cpp='$CPP $CPPFLAGS'
6346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6351 depcc="$CC" am_compiler_list=
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6354 $as_echo_n "checking dependency style of $depcc... " >&6; }
6355 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6356 $as_echo_n "(cached) " >&6
6358 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6359 # We make a subdir and do the tests there. Otherwise we can end up
6360 # making bogus files that we don't know about and never remove. For
6361 # instance it was reported that on HP-UX the gcc test will end up
6362 # making a dummy file named 'D' -- because '-MD' means "put the output
6366 # Copy depcomp to subdir because otherwise we won't find it if we're
6367 # using a relative directory.
6368 cp "$am_depcomp" conftest.dir
6370 # We will build objects and dependencies in a subdirectory because
6371 # it helps to detect inapplicable dependency modes. For instance
6372 # both Tru64's cc and ICC support -MD to output dependencies as a
6373 # side effect of compilation, but ICC will put the dependencies in
6374 # the current directory while Tru64 will put them in the object
6378 am_cv_CC_dependencies_compiler_type=none
6379 if test "$am_compiler_list" = ""; then
6380 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6383 case " $depcc " in #(
6384 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6387 for depmode in $am_compiler_list; do
6388 # Setup a source with many dependencies, because some compilers
6389 # like to wrap large dependency lists on column 80 (with \), and
6390 # we should not choose a depcomp mode which is confused by this.
6392 # We need to recreate these files for each test, as the compiler may
6393 # overwrite some of them when testing with obscure command lines.
6394 # This happens at least with the AIX C compiler.
6396 for i in 1 2 3 4 5 6; do
6397 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6398 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6399 # Solaris 10 /bin/sh.
6400 echo '/* dummy */' > sub/conftst$i.h
6402 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6404 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6405 # mode. It turns out that the SunPro C++ compiler does not properly
6406 # handle '-M -o', and we need to detect this. Also, some Intel
6407 # versions had trouble with output in subdirs.
6408 am__obj=sub/conftest.${OBJEXT-o}
6409 am__minus_obj="-o $am__obj"
6412 # This depmode causes a compiler race in universal mode.
6413 test "$am__universal" = false || continue
6416 # After this tag, mechanisms are not by side-effect, so they'll
6417 # only be used when explicitly requested.
6418 if test "x$enable_dependency_tracking" = xyes; then
6424 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6425 # This compiler won't grok '-c -o', but also, the minuso test has
6426 # not run yet. These depmodes are late enough in the game, and
6427 # so weak that their functioning should not be impacted.
6428 am__obj=conftest.${OBJEXT-o}
6433 if depmode=$depmode \
6434 source=sub/conftest.c object=$am__obj \
6435 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6436 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6437 >/dev/null 2>conftest.err &&
6438 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6439 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6440 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6441 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6442 # icc doesn't choke on unknown options, it will just issue warnings
6443 # or remarks (even with -Werror). So we grep stderr for any message
6444 # that says an option was ignored or not supported.
6445 # When given -MP, icc 7.0 and 7.1 complain thusly:
6446 # icc: Command line warning: ignoring option '-M'; no argument required
6447 # The diagnosis changed in icc 8.0:
6448 # icc: Command line remark: option '-MP' not supported
6449 if (grep 'ignoring option' conftest.err ||
6450 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6451 am_cv_CC_dependencies_compiler_type=$depmode
6460 am_cv_CC_dependencies_compiler_type=none
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6465 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6466 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6469 test "x$enable_dependency_tracking" != xno \
6470 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6472 am__fastdepCC_FALSE='#'
6474 am__fastdepCC_TRUE='#'
6475 am__fastdepCC_FALSE=
6479 # Ralf Wildenhues: With per-target flags we need CC_C_O
6480 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
6482 if test $ac_cv_c_compiler_gnu = yes; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6484 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6485 if ${ac_cv_prog_gcc_traditional+:} false; then :
6486 $as_echo_n "(cached) " >&6
6488 ac_pattern="Autoconf.*'x'"
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6495 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6496 ac_cv_prog_gcc_traditional=yes
6498 ac_cv_prog_gcc_traditional=no
6503 if test $ac_cv_prog_gcc_traditional = no; then
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6510 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6511 ac_cv_prog_gcc_traditional=yes
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6518 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6519 if test $ac_cv_prog_gcc_traditional = yes; then
6520 CC="$CC -traditional"
6537 case "$ac_cv_prog_cc_c89" in
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6540 version 4.2.5 and higher." >&5
6541 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6542 version 4.2.5 and higher." >&2;}
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
6547 $as_echo_n "checking if $CC can handle #warning... " >&6; }
6548 if ${ntp_cv_cpp_warning+:} false; then :
6549 $as_echo_n "(cached) " >&6
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6562 if ac_fn_c_try_compile "$LINENO"; then :
6563 ntp_cv_cpp_warning=yes
6565 ntp_cv_cpp_warning=no
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
6572 $as_echo "$ntp_cv_cpp_warning" >&6; }
6573 case "$ntp_cv_cpp_warning" in
6576 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
6581 $as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
6582 if ${ntp_cv_cc_attribute+:} false; then :
6583 $as_echo_n "(cached) " >&6
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6591 void foo(void) __attribute__((__noreturn__));
6597 if ac_fn_c_try_compile "$LINENO"; then :
6598 ntp_cv_cc_attribute=yes
6600 ntp_cv_cc_attribute=no
6603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
6607 $as_echo "$ntp_cv_cc_attribute" >&6; }
6608 case "$ntp_cv_cc_attribute" in
6611 $as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
6618 SAVED_CFLAGS="$CFLAGS"
6619 CFLAGS="$CFLAGS -Wstrict-overflow"
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
6621 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
6622 if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
6623 $as_echo_n "(cached) " >&6
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6636 if ac_fn_c_try_compile "$LINENO"; then :
6637 ntp_cv_gcc_Wstrict_overflow=yes
6639 ntp_cv_gcc_Wstrict_overflow=no
6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
6646 $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
6648 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
6651 CFLAGS="$SAVED_CFLAGS -Winit-self"
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
6653 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
6654 if ${ntp_cv_gcc_Winit_self+:} false; then :
6655 $as_echo_n "(cached) " >&6
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6669 if ac_fn_c_try_compile "$LINENO"; then :
6670 ntp_cv_gcc_Winit_self=yes
6672 ntp_cv_gcc_Winit_self=no
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
6680 $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
6681 CFLAGS="$SAVED_CFLAGS"
6682 { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
6684 # $ntp_cv_gcc_Winit_self is tested later to add the
6685 # flag to CFLAGS_NTP.
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
6688 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
6689 if ${ntp_cv_gc_sections_runs+:} false; then :
6690 $as_echo_n "(cached) " >&6
6693 origCFLAGS="$CFLAGS"
6694 CFLAGS="$CFLAGS -Wl,--gc-sections"
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6708 int read_success_once;
6710 fpC = fopen("conftest.c", "r");
6714 cch = fread(buf, sizeof(buf), 1, fpC);
6715 read_success_once |= (0 != cch);
6717 if (!read_success_once)
6721 if (0 != fclose(fpC))
6731 if ac_fn_c_try_link "$LINENO"; then :
6733 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
6734 ntp_cv_gc_sections_runs=no
6736 ntp_cv_gc_sections_runs=no
6737 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
6741 ntp_cv_gc_sections_runs=no
6744 rm -f core conftest.err conftest.$ac_objext \
6745 conftest$ac_exeext conftest.$ac_ext
6746 CFLAGS="$origCFLAGS"
6747 { origCFLAGS=; unset origCFLAGS;}
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
6752 $as_echo "$ntp_cv_gc_sections_runs" >&6; }
6753 case "$ntp_cv_gc_sections_runs" in
6755 LDADD_LIBNTP="-Wl,--gc-sections"
6756 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
6762 CFLAGS_NTP="$CFLAGS_NTP -Wall"
6763 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
6764 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
6765 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
6766 # CFLAGS_NTP="$CFLAGS_NTP -Werror"
6767 # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
6768 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
6769 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
6770 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
6771 CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
6772 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
6773 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
6774 case "$ntp_cv_gcc_Winit_self" in
6776 CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
6778 case "$ntp_cv_gcc_Wstrict_overflow" in
6780 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
6782 # -W[no-]strict-prototypes might be added by NTP_OPENSSL
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6787 $as_echo_n "checking additional compiler flags... " >&6; }
6788 # allow ntp_os_cflags to be preset to skip this stuff
6789 case "${ntp_os_cflags+set}" in
6798 # turn on additional headers
6799 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6802 # avoid circular dependencies in yp headers, and more
6803 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6804 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
6807 # XXX Only verified thru AIX6.
6808 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
6809 # avoid circular dependencies in yp headers
6810 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
6811 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
6812 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
6813 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
6814 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
6817 ntp_os_cflags="-DSYS_AMIGA"
6819 darwin*|macosx*|rhapsody*)
6820 ntp_os_cflags="-D_P1003_1B_VISIBLE"
6822 hpux10.*) # at least for hppa2.0-hp-hpux10.20
6827 # use Ansi compiler on HPUX, and some -Wp magic
6828 ntp_os_cflags="-Ae -Wp,-H18816"
6831 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6838 # use Ansi compiler on HPUX
6841 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6846 # do not use 64-bit compiler
6847 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
6851 ntp_os_cflags="-posix"
6853 solaris1*|solaris2.[0-5]|solaris2.5.*)
6855 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
6858 # turn on 64-bit file offset interface
6859 ntp_os_cflags="-D_LARGEFILE64_SOURCE"
6866 # Quick and dirty sanity check
6867 case "$VX_KERNEL" in
6869 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
6871 ntp_os_cflags="-DSYS_VXWORKS"
6876 case "$ntp_os_cflags" in
6878 ntp_os_cflags_msg="none needed"
6881 ntp_os_cflags_msg="$ntp_os_cflags"
6883 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
6885 $as_echo "$ntp_os_cflags_msg" >&6; }
6886 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
6889 $as_echo_n "checking additional linker flags... " >&6; }
6890 # HMS: The following might still need tweaking
6891 # allow ntp_os_ldflags to be preset to skip this stuff
6892 case "${ntp_os_ldflags+set}" in
6901 ntp_os_ldflags="-Wl,+allowdups"
6908 case "$ntp_os_ldflags" in
6910 ntp_os_ldflags_msg="none needed"
6913 ntp_os_ldflags_msg="$ntp_os_ldflags"
6915 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
6917 $as_echo "$ntp_os_ldflags_msg" >&6; }
6918 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6923 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6924 if ${ac_cv_c_bigendian+:} false; then :
6925 $as_echo_n "(cached) " >&6
6927 ac_cv_c_bigendian=unknown
6928 # See if we're dealing with a universal compiler.
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931 #ifndef __APPLE_CC__
6932 not a universal capable compiler
6937 if ac_fn_c_try_compile "$LINENO"; then :
6939 # Check for potential -arch flags. It is not universal unless
6940 # there are at least two -arch flags with different values.
6943 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6944 if test -n "$ac_prev"; then
6946 i?86 | x86_64 | ppc | ppc64)
6947 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6950 ac_cv_c_bigendian=universal
6956 elif test "x$ac_word" = "x-arch"; then
6961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962 if test $ac_cv_c_bigendian = unknown; then
6963 # See if sys/param.h defines the BYTE_ORDER macro.
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6966 #include <sys/types.h>
6967 #include <sys/param.h>
6972 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6973 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6982 if ac_fn_c_try_compile "$LINENO"; then :
6983 # It does; now see whether it defined to BIG_ENDIAN or not.
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6986 #include <sys/types.h>
6987 #include <sys/param.h>
6992 #if BYTE_ORDER != BIG_ENDIAN
7000 if ac_fn_c_try_compile "$LINENO"; then :
7001 ac_cv_c_bigendian=yes
7003 ac_cv_c_bigendian=no
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7009 if test $ac_cv_c_bigendian = unknown; then
7010 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7018 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7026 if ac_fn_c_try_compile "$LINENO"; then :
7027 # It does; now see whether it defined to _BIG_ENDIAN or not.
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7043 if ac_fn_c_try_compile "$LINENO"; then :
7044 ac_cv_c_bigendian=yes
7046 ac_cv_c_bigendian=no
7048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7052 if test $ac_cv_c_bigendian = unknown; then
7053 # Compile a test program.
7054 if test "$cross_compiling" = yes; then :
7055 # Try to guess by grepping values from an object file.
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7058 short int ascii_mm[] =
7059 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7060 short int ascii_ii[] =
7061 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7062 int use_ascii (int i) {
7063 return ascii_mm[i] + ascii_ii[i];
7065 short int ebcdic_ii[] =
7066 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7067 short int ebcdic_mm[] =
7068 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7069 int use_ebcdic (int i) {
7070 return ebcdic_mm[i] + ebcdic_ii[i];
7077 return use_ascii (foo) == use_ebcdic (foo);
7082 if ac_fn_c_try_compile "$LINENO"; then :
7083 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7084 ac_cv_c_bigendian=yes
7086 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7087 if test "$ac_cv_c_bigendian" = unknown; then
7088 ac_cv_c_bigendian=no
7090 # finding both strings is unlikely to happen, but who knows?
7091 ac_cv_c_bigendian=unknown
7095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099 $ac_includes_default
7104 /* Are we little or big endian? From Harbison&Steele. */
7108 char c[sizeof (long int)];
7111 return u.c[sizeof (long int) - 1] == 1;
7117 if ac_fn_c_try_run "$LINENO"; then :
7118 ac_cv_c_bigendian=no
7120 ac_cv_c_bigendian=yes
7122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7123 conftest.$ac_objext conftest.beam conftest.$ac_ext
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7129 $as_echo "$ac_cv_c_bigendian" >&6; }
7130 case $ac_cv_c_bigendian in #(
7132 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7138 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7142 as_fn_error $? "unknown endianness
7143 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7147 $as_echo_n "checking for working volatile... " >&6; }
7148 if ${ac_cv_c_volatile+:} false; then :
7149 $as_echo_n "(cached) " >&6
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7159 int * volatile y = (int *) 0;
7165 if ac_fn_c_try_compile "$LINENO"; then :
7166 ac_cv_c_volatile=yes
7170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7173 $as_echo "$ac_cv_c_volatile" >&6; }
7174 if test $ac_cv_c_volatile = no; then
7176 $as_echo "#define volatile /**/" >>confdefs.h
7181 ac_cpp='$CPP $CPPFLAGS'
7182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7186 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7187 # On Suns, sometimes $CPP names a directory.
7188 if test -n "$CPP" && test -d "$CPP"; then
7191 if test -z "$CPP"; then
7192 if ${ac_cv_prog_CPP+:} false; then :
7193 $as_echo_n "(cached) " >&6
7195 # Double quotes because CPP needs to be expanded
7196 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7199 for ac_c_preproc_warn_flag in '' yes
7201 # Use a header file that comes with gcc, so configuring glibc
7202 # with a fresh cross-compiler works.
7203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7204 # <limits.h> exists even on freestanding compilers.
7205 # On the NeXT, cc -E runs the code through the compiler's parser,
7206 # not just through cpp. "Syntax error" is here to catch this case.
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7210 # include <limits.h>
7212 # include <assert.h>
7216 if ac_fn_c_try_cpp "$LINENO"; then :
7219 # Broken: fails on valid input.
7222 rm -f conftest.err conftest.i conftest.$ac_ext
7224 # OK, works on sane cases. Now check whether nonexistent headers
7225 # can be detected and how.
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7228 #include <ac_nonexistent.h>
7230 if ac_fn_c_try_cpp "$LINENO"; then :
7231 # Broken: success on invalid input.
7234 # Passes both tests.
7238 rm -f conftest.err conftest.i conftest.$ac_ext
7241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7242 rm -f conftest.i conftest.err conftest.$ac_ext
7243 if $ac_preproc_ok; then :
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7256 $as_echo "$CPP" >&6; }
7258 for ac_c_preproc_warn_flag in '' yes
7260 # Use a header file that comes with gcc, so configuring glibc
7261 # with a fresh cross-compiler works.
7262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7263 # <limits.h> exists even on freestanding compilers.
7264 # On the NeXT, cc -E runs the code through the compiler's parser,
7265 # not just through cpp. "Syntax error" is here to catch this case.
7266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267 /* end confdefs.h. */
7269 # include <limits.h>
7271 # include <assert.h>
7275 if ac_fn_c_try_cpp "$LINENO"; then :
7278 # Broken: fails on valid input.
7281 rm -f conftest.err conftest.i conftest.$ac_ext
7283 # OK, works on sane cases. Now check whether nonexistent headers
7284 # can be detected and how.
7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286 /* end confdefs.h. */
7287 #include <ac_nonexistent.h>
7289 if ac_fn_c_try_cpp "$LINENO"; then :
7290 # Broken: success on invalid input.
7293 # Passes both tests.
7297 rm -f conftest.err conftest.i conftest.$ac_ext
7300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7301 rm -f conftest.i conftest.err conftest.$ac_ext
7302 if $ac_preproc_ok; then :
7305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7307 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7308 See \`config.log' for more details" "$LINENO" 5; }
7312 ac_cpp='$CPP $CPPFLAGS'
7313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7320 ac_cpp='$CPP $CPPFLAGS'
7321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7325 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7326 # On Suns, sometimes $CPP names a directory.
7327 if test -n "$CPP" && test -d "$CPP"; then
7330 if test -z "$CPP"; then
7331 if ${ac_cv_prog_CPP+:} false; then :
7332 $as_echo_n "(cached) " >&6
7334 # Double quotes because CPP needs to be expanded
7335 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7338 for ac_c_preproc_warn_flag in '' yes
7340 # Use a header file that comes with gcc, so configuring glibc
7341 # with a fresh cross-compiler works.
7342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7343 # <limits.h> exists even on freestanding compilers.
7344 # On the NeXT, cc -E runs the code through the compiler's parser,
7345 # not just through cpp. "Syntax error" is here to catch this case.
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7349 # include <limits.h>
7351 # include <assert.h>
7355 if ac_fn_c_try_cpp "$LINENO"; then :
7358 # Broken: fails on valid input.
7361 rm -f conftest.err conftest.i conftest.$ac_ext
7363 # OK, works on sane cases. Now check whether nonexistent headers
7364 # can be detected and how.
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7367 #include <ac_nonexistent.h>
7369 if ac_fn_c_try_cpp "$LINENO"; then :
7370 # Broken: success on invalid input.
7373 # Passes both tests.
7377 rm -f conftest.err conftest.i conftest.$ac_ext
7380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7381 rm -f conftest.i conftest.err conftest.$ac_ext
7382 if $ac_preproc_ok; then :
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7395 $as_echo "$CPP" >&6; }
7397 for ac_c_preproc_warn_flag in '' yes
7399 # Use a header file that comes with gcc, so configuring glibc
7400 # with a fresh cross-compiler works.
7401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7402 # <limits.h> exists even on freestanding compilers.
7403 # On the NeXT, cc -E runs the code through the compiler's parser,
7404 # not just through cpp. "Syntax error" is here to catch this case.
7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406 /* end confdefs.h. */
7408 # include <limits.h>
7410 # include <assert.h>
7414 if ac_fn_c_try_cpp "$LINENO"; then :
7417 # Broken: fails on valid input.
7420 rm -f conftest.err conftest.i conftest.$ac_ext
7422 # OK, works on sane cases. Now check whether nonexistent headers
7423 # can be detected and how.
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7426 #include <ac_nonexistent.h>
7428 if ac_fn_c_try_cpp "$LINENO"; then :
7429 # Broken: success on invalid input.
7432 # Passes both tests.
7436 rm -f conftest.err conftest.i conftest.$ac_ext
7439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7440 rm -f conftest.i conftest.err conftest.$ac_ext
7441 if $ac_preproc_ok; then :
7444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7446 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7447 See \`config.log' for more details" "$LINENO" 5; }
7451 ac_cpp='$CPP $CPPFLAGS'
7452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7456 # Do we need CXX for anything besides google test?
7458 ac_cpp='$CXXCPP $CPPFLAGS'
7459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7462 if test -z "$CXX"; then
7463 if test -n "$CCC"; then
7466 if test -n "$ac_tool_prefix"; then
7467 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7470 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if ${ac_cv_prog_CXX+:} false; then :
7474 $as_echo_n "(cached) " >&6
7476 if test -n "$CXX"; then
7477 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 if test -n "$CXX"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7499 $as_echo "$CXX" >&6; }
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7506 test -n "$CXX" && break
7509 if test -z "$CXX"; then
7511 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7513 # Extract the first word of "$ac_prog", so it can be a program name with args.
7514 set dummy $ac_prog; ac_word=$2
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7516 $as_echo_n "checking for $ac_word... " >&6; }
7517 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7518 $as_echo_n "(cached) " >&6
7520 if test -n "$ac_ct_CXX"; then
7521 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7530 ac_cv_prog_ac_ct_CXX="$ac_prog"
7531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7541 if test -n "$ac_ct_CXX"; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7543 $as_echo "$ac_ct_CXX" >&6; }
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546 $as_echo "no" >&6; }
7550 test -n "$ac_ct_CXX" && break
7553 if test "x$ac_ct_CXX" = x; then
7556 case $cross_compiling:$ac_tool_warned in
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7560 ac_tool_warned=yes ;;
7568 # Provide some information about the compiler.
7569 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7572 for ac_option in --version -v -V -qversion; do
7573 { { ac_try="$ac_compiler $ac_option >&5"
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7579 $as_echo "$ac_try_echo"; } >&5
7580 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7582 if test -s conftest.err; then
7584 ... rest of stderr output deleted ...
7585 10q' conftest.err >conftest.er1
7586 cat conftest.er1 >&5
7588 rm -f conftest.er1 conftest.err
7589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7590 test $ac_status = 0; }
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7594 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7595 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7596 $as_echo_n "(cached) " >&6
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h. */
7612 if ac_fn_cxx_try_compile "$LINENO"; then :
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7622 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7623 if test $ac_compiler_gnu = yes; then
7628 ac_test_CXXFLAGS=${CXXFLAGS+set}
7629 ac_save_CXXFLAGS=$CXXFLAGS
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7631 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7632 if ${ac_cv_prog_cxx_g+:} false; then :
7633 $as_echo_n "(cached) " >&6
7635 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7636 ac_cxx_werror_flag=yes
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7650 if ac_fn_cxx_try_compile "$LINENO"; then :
7651 ac_cv_prog_cxx_g=yes
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h. */
7665 if ac_fn_cxx_try_compile "$LINENO"; then :
7668 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7681 if ac_fn_cxx_try_compile "$LINENO"; then :
7682 ac_cv_prog_cxx_g=yes
7684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7692 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7693 if test "$ac_test_CXXFLAGS" = set; then
7694 CXXFLAGS=$ac_save_CXXFLAGS
7695 elif test $ac_cv_prog_cxx_g = yes; then
7696 if test "$GXX" = yes; then
7702 if test "$GXX" = yes; then
7709 ac_cpp='$CPP $CPPFLAGS'
7710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7714 depcc="$CXX" am_compiler_list=
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7717 $as_echo_n "checking dependency style of $depcc... " >&6; }
7718 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7719 $as_echo_n "(cached) " >&6
7721 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7722 # We make a subdir and do the tests there. Otherwise we can end up
7723 # making bogus files that we don't know about and never remove. For
7724 # instance it was reported that on HP-UX the gcc test will end up
7725 # making a dummy file named 'D' -- because '-MD' means "put the output
7729 # Copy depcomp to subdir because otherwise we won't find it if we're
7730 # using a relative directory.
7731 cp "$am_depcomp" conftest.dir
7733 # We will build objects and dependencies in a subdirectory because
7734 # it helps to detect inapplicable dependency modes. For instance
7735 # both Tru64's cc and ICC support -MD to output dependencies as a
7736 # side effect of compilation, but ICC will put the dependencies in
7737 # the current directory while Tru64 will put them in the object
7741 am_cv_CXX_dependencies_compiler_type=none
7742 if test "$am_compiler_list" = ""; then
7743 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7746 case " $depcc " in #(
7747 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7750 for depmode in $am_compiler_list; do
7751 # Setup a source with many dependencies, because some compilers
7752 # like to wrap large dependency lists on column 80 (with \), and
7753 # we should not choose a depcomp mode which is confused by this.
7755 # We need to recreate these files for each test, as the compiler may
7756 # overwrite some of them when testing with obscure command lines.
7757 # This happens at least with the AIX C compiler.
7759 for i in 1 2 3 4 5 6; do
7760 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7761 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7762 # Solaris 10 /bin/sh.
7763 echo '/* dummy */' > sub/conftst$i.h
7765 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7767 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7768 # mode. It turns out that the SunPro C++ compiler does not properly
7769 # handle '-M -o', and we need to detect this. Also, some Intel
7770 # versions had trouble with output in subdirs.
7771 am__obj=sub/conftest.${OBJEXT-o}
7772 am__minus_obj="-o $am__obj"
7775 # This depmode causes a compiler race in universal mode.
7776 test "$am__universal" = false || continue
7779 # After this tag, mechanisms are not by side-effect, so they'll
7780 # only be used when explicitly requested.
7781 if test "x$enable_dependency_tracking" = xyes; then
7787 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7788 # This compiler won't grok '-c -o', but also, the minuso test has
7789 # not run yet. These depmodes are late enough in the game, and
7790 # so weak that their functioning should not be impacted.
7791 am__obj=conftest.${OBJEXT-o}
7796 if depmode=$depmode \
7797 source=sub/conftest.c object=$am__obj \
7798 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7799 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7800 >/dev/null 2>conftest.err &&
7801 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7802 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7803 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7804 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7805 # icc doesn't choke on unknown options, it will just issue warnings
7806 # or remarks (even with -Werror). So we grep stderr for any message
7807 # that says an option was ignored or not supported.
7808 # When given -MP, icc 7.0 and 7.1 complain thusly:
7809 # icc: Command line warning: ignoring option '-M'; no argument required
7810 # The diagnosis changed in icc 8.0:
7811 # icc: Command line remark: option '-MP' not supported
7812 if (grep 'ignoring option' conftest.err ||
7813 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7814 am_cv_CXX_dependencies_compiler_type=$depmode
7823 am_cv_CXX_dependencies_compiler_type=none
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7828 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7829 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7832 test "x$enable_dependency_tracking" != xno \
7833 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7834 am__fastdepCXX_TRUE=
7835 am__fastdepCXX_FALSE='#'
7837 am__fastdepCXX_TRUE='#'
7838 am__fastdepCXX_FALSE=
7842 for ac_prog in 'bison -y' byacc
7844 # Extract the first word of "$ac_prog", so it can be a program name with args.
7845 set dummy $ac_prog; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if ${ac_cv_prog_YACC+:} false; then :
7849 $as_echo_n "(cached) " >&6
7851 if test -n "$YACC"; then
7852 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7861 ac_cv_prog_YACC="$ac_prog"
7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 YACC=$ac_cv_prog_YACC
7872 if test -n "$YACC"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7874 $as_echo "$YACC" >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7881 test -n "$YACC" && break
7883 test -n "$YACC" || YACC="yacc"
7885 if test "x$CC" != xcc; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7887 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7890 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7892 set dummy $CC; ac_cc=`$as_echo "$2" |
7893 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7894 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7895 $as_echo_n "(cached) " >&6
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7908 # Make sure it works both with $CC and with simple cc.
7909 # We do the test twice because some compilers refuse to overwrite an
7910 # existing .o file with -o, though they will create one.
7911 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7913 if { { case "(($ac_try" in
7914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915 *) ac_try_echo=$ac_try;;
7917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7918 $as_echo "$ac_try_echo"; } >&5
7919 (eval "$ac_try") 2>&5
7921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7922 test $ac_status = 0; } &&
7923 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7928 $as_echo "$ac_try_echo"; } >&5
7929 (eval "$ac_try") 2>&5
7931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7932 test $ac_status = 0; };
7934 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7935 if test "x$CC" != xcc; then
7936 # Test first that cc exists at all.
7937 if { ac_try='cc -c conftest.$ac_ext >&5'
7938 { { case "(($ac_try" in
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7943 $as_echo "$ac_try_echo"; } >&5
7944 (eval "$ac_try") 2>&5
7946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7947 test $ac_status = 0; }; }; then
7948 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7950 if { { case "(($ac_try" in
7951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952 *) ac_try_echo=$ac_try;;
7954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7955 $as_echo "$ac_try_echo"; } >&5
7956 (eval "$ac_try") 2>&5
7958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7959 test $ac_status = 0; } &&
7960 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962 *) ac_try_echo=$ac_try;;
7964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7965 $as_echo "$ac_try_echo"; } >&5
7966 (eval "$ac_try") 2>&5
7968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7969 test $ac_status = 0; };
7974 # cc exists but doesn't like -o.
7975 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7980 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7982 rm -f core conftest*
7985 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7987 $as_echo "yes" >&6; }
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 $as_echo "no" >&6; }
7992 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
7998 $as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }
8002 ac_cpp='$CPP $CPPFLAGS'
8003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009 /* end confdefs.h. */
8011 struct foo_s {int i1; int i2;};
8012 int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
8015 if ac_fn_c_try_compile "$LINENO"; then :
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8017 $as_echo "yes" >&6; }
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8022 $as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
8025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028 ac_cpp='$CPP $CPPFLAGS'
8029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
8037 $as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
8039 case "$srcdir::${force_ntp_vpath_hack-no}" in
8041 ;; # VPATH_HACK path is for VPATH builds only.
8043 ntp_vpath_hack="yes"
8046 case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
8048 ntp_vpath_hack="yes"
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
8052 $as_echo "$ntp_vpath_hack" >&6; }
8053 if test x$ntp_vpath_hack = xyes; then
8055 VPATH_HACK_FALSE='#'
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
8065 $as_echo_n "checking for install dir and man conventions... " >&6; }
8068 # Check whether --with-locfile was given.
8069 if test "${with_locfile+set}" = set; then :
8070 withval=$with_locfile;
8078 SENTINEL_DIR="$PWD" && \
8079 cd $srcdir/sntp && \
8080 case "$with_locfile" in \
8082 scripts/genLocInfo -d "$SENTINEL_DIR" \
8085 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \
8088 ) > genLocInfo.i 2> genLocInfo.err
8091 case "$GENLOCINFO" in
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
8094 $as_echo "in file $GENLOCINFOFILE" >&6; }
8095 rm genLocInfo.err genLocInfo.i
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
8099 $as_echo "failed." >&6; }
8100 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
8104 if test "$CALC_TICKADJ_MS" ; then
8105 WANT_CALC_TICKADJ_MS_TRUE=
8106 WANT_CALC_TICKADJ_MS_FALSE='#'
8108 WANT_CALC_TICKADJ_MS_TRUE='#'
8109 WANT_CALC_TICKADJ_MS_FALSE=
8154 if test -z "$NTPSWEEP_NI" ; then
8155 INSTALL_NTPSWEEP_TRUE=
8156 INSTALL_NTPSWEEP_FALSE='#'
8158 INSTALL_NTPSWEEP_TRUE='#'
8159 INSTALL_NTPSWEEP_FALSE=
8202 if test -z "$UPDATE_LEAP_NI" ; then
8203 INSTALL_UPDATE_LEAP_TRUE=
8204 INSTALL_UPDATE_LEAP_FALSE='#'
8206 INSTALL_UPDATE_LEAP_TRUE='#'
8207 INSTALL_UPDATE_LEAP_FALSE=
8212 if test -n "$ac_tool_prefix"; then
8213 for ac_prog in ar lib "link -lib"
8215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if ${ac_cv_prog_AR+:} false; then :
8220 $as_echo_n "(cached) " >&6
8222 if test -n "$AR"; then
8223 ac_cv_prog_AR="$AR" # Let the user override the test.
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 if test -n "$AR"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8245 $as_echo "$AR" >&6; }
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8252 test -n "$AR" && break
8255 if test -z "$AR"; then
8257 for ac_prog in ar lib "link -lib"
8259 # Extract the first word of "$ac_prog", so it can be a program name with args.
8260 set dummy $ac_prog; ac_word=$2
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262 $as_echo_n "checking for $ac_word... " >&6; }
8263 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8264 $as_echo_n "(cached) " >&6
8266 if test -n "$ac_ct_AR"; then
8267 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8276 ac_cv_prog_ac_ct_AR="$ac_prog"
8277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8287 if test -n "$ac_ct_AR"; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8289 $as_echo "$ac_ct_AR" >&6; }
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8296 test -n "$ac_ct_AR" && break
8299 if test "x$ac_ct_AR" = x; then
8302 case $cross_compiling:$ac_tool_warned in
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306 ac_tool_warned=yes ;;
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8315 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
8316 if ${am_cv_ar_interface+:} false; then :
8317 $as_echo_n "(cached) " >&6
8320 ac_cpp='$CPP $CPPFLAGS'
8321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8325 am_cv_ar_interface=ar
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328 int some_variable = 0;
8330 if ac_fn_c_try_compile "$LINENO"; then :
8331 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8333 (eval $am_ar_try) 2>&5
8335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8336 test $ac_status = 0; }
8337 if test "$ac_status" -eq 0; then
8338 am_cv_ar_interface=ar
8340 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8342 (eval $am_ar_try) 2>&5
8344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8345 test $ac_status = 0; }
8346 if test "$ac_status" -eq 0; then
8347 am_cv_ar_interface=lib
8349 am_cv_ar_interface=unknown
8352 rm -f conftest.lib libconftest.a
8355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357 ac_cpp='$CPP $CPPFLAGS'
8358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8364 $as_echo "$am_cv_ar_interface" >&6; }
8366 case $am_cv_ar_interface in
8370 # Microsoft lib, so override with the ar-lib wrapper script.
8371 # FIXME: It is wrong to rewrite AR.
8372 # But if we don't then we get into trouble of one sort or another.
8373 # A longer-term fix would be to have automake use am__AR in this case,
8374 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8376 AR="$am_aux_dir/ar-lib $AR"
8379 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8385 # So far, the only shared library we might use is libopts.
8386 # It's a small library - we might as well use a static version of it.
8387 # Check whether --enable-shared was given.
8388 if test "${enable_shared+set}" = set; then :
8389 enableval=$enable_shared; p=${PACKAGE-default}
8391 yes) enable_shared=yes ;;
8392 no) enable_shared=no ;;
8395 # Look at the argument we got. We use all the common list separators.
8396 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8397 for pkg in $enableval; do
8399 if test "X$pkg" = "X$p"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8421 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8426 macro_version='2.4.2'
8427 macro_revision='1.3337'
8441 ltmain="$ac_aux_dir/ltmain.sh"
8443 # Backslashify metacharacters that are still active within
8444 # double-quoted strings.
8445 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8447 # Same as above, but do not quote variable references.
8448 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8450 # Sed substitution to delay expansion of an escaped shell variable in a
8451 # double_quote_subst'ed string.
8452 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8454 # Sed substitution to delay expansion of an escaped single quote.
8455 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8457 # Sed substitution to avoid accidental globbing in evaled expressions
8458 no_glob_subst='s/\*/\\\*/g'
8460 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8461 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8462 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8465 $as_echo_n "checking how to print strings... " >&6; }
8466 # Test print first, because it will be a builtin if present.
8467 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8468 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8470 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8473 # Use this function as a fallback that always works.
8474 func_fallback_echo ()
8476 eval 'cat <<_LTECHO_EOF
8480 ECHO='func_fallback_echo'
8483 # func_echo_all arg...
8484 # Invoke $ECHO with all args, space-separated.
8491 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8492 $as_echo "printf" >&6; } ;;
8493 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8494 $as_echo "print -r" >&6; } ;;
8495 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8496 $as_echo "cat" >&6; } ;;
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8513 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8514 if ${ac_cv_path_SED+:} false; then :
8515 $as_echo_n "(cached) " >&6
8517 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8518 for ac_i in 1 2 3 4 5 6 7; do
8519 ac_script="$ac_script$as_nl$ac_script"
8521 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8522 { ac_script=; unset ac_script;}
8523 if test -z "$SED"; then
8524 ac_path_SED_found=false
8525 # Loop through the user's path and test for each of PROGNAME-LIST
8526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530 test -z "$as_dir" && as_dir=.
8531 for ac_prog in sed gsed; do
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8534 as_fn_executable_p "$ac_path_SED" || continue
8535 # Check for GNU ac_path_SED and select it if it is found.
8536 # Check for GNU $ac_path_SED
8537 case `"$ac_path_SED" --version 2>&1` in
8539 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8542 $as_echo_n 0123456789 >"conftest.in"
8545 cat "conftest.in" "conftest.in" >"conftest.tmp"
8546 mv "conftest.tmp" "conftest.in"
8547 cp "conftest.in" "conftest.nl"
8548 $as_echo '' >> "conftest.nl"
8549 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8551 as_fn_arith $ac_count + 1 && ac_count=$as_val
8552 if test $ac_count -gt ${ac_path_SED_max-0}; then
8553 # Best one so far, save it but keep looking for a better one
8554 ac_cv_path_SED="$ac_path_SED"
8555 ac_path_SED_max=$ac_count
8557 # 10*(2^10) chars as input seems more than enough
8558 test $ac_count -gt 10 && break
8560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8563 $ac_path_SED_found && break 3
8568 if test -z "$ac_cv_path_SED"; then
8569 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8577 $as_echo "$ac_cv_path_SED" >&6; }
8578 SED="$ac_cv_path_SED"
8581 test -z "$SED" && SED=sed
8582 Xsed="$SED -e 1s/^X//"
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8595 $as_echo_n "checking for fgrep... " >&6; }
8596 if ${ac_cv_path_FGREP+:} false; then :
8597 $as_echo_n "(cached) " >&6
8599 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8600 then ac_cv_path_FGREP="$GREP -F"
8602 if test -z "$FGREP"; then
8603 ac_path_FGREP_found=false
8604 # Loop through the user's path and test for each of PROGNAME-LIST
8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8609 test -z "$as_dir" && as_dir=.
8610 for ac_prog in fgrep; do
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8613 as_fn_executable_p "$ac_path_FGREP" || continue
8614 # Check for GNU ac_path_FGREP and select it if it is found.
8615 # Check for GNU $ac_path_FGREP
8616 case `"$ac_path_FGREP" --version 2>&1` in
8618 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8621 $as_echo_n 0123456789 >"conftest.in"
8624 cat "conftest.in" "conftest.in" >"conftest.tmp"
8625 mv "conftest.tmp" "conftest.in"
8626 cp "conftest.in" "conftest.nl"
8627 $as_echo 'FGREP' >> "conftest.nl"
8628 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8630 as_fn_arith $ac_count + 1 && ac_count=$as_val
8631 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8632 # Best one so far, save it but keep looking for a better one
8633 ac_cv_path_FGREP="$ac_path_FGREP"
8634 ac_path_FGREP_max=$ac_count
8636 # 10*(2^10) chars as input seems more than enough
8637 test $ac_count -gt 10 && break
8639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8642 $ac_path_FGREP_found && break 3
8647 if test -z "$ac_cv_path_FGREP"; then
8648 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8651 ac_cv_path_FGREP=$FGREP
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8657 $as_echo "$ac_cv_path_FGREP" >&6; }
8658 FGREP="$ac_cv_path_FGREP"
8661 test -z "$GREP" && GREP=grep
8681 # Check whether --with-gnu-ld was given.
8682 if test "${with_gnu_ld+set}" = set; then :
8683 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8689 if test "$GCC" = yes; then
8690 # Check if gcc -print-prog-name=ld gives a path.
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8692 $as_echo_n "checking for ld used by $CC... " >&6; }
8695 # gcc leaves a trailing carriage return which upsets mingw
8696 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8698 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8701 # Accept absolute paths.
8703 re_direlt='/[^/][^/]*/\.\./'
8704 # Canonicalize the pathname of ld
8705 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8706 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8707 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8709 test -z "$LD" && LD="$ac_prog"
8712 # If it fails, then pretend we aren't using GCC.
8716 # If it is relative, then search for the first ld in PATH.
8720 elif test "$with_gnu_ld" = yes; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8722 $as_echo_n "checking for GNU ld... " >&6; }
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8725 $as_echo_n "checking for non-GNU ld... " >&6; }
8727 if ${lt_cv_path_LD+:} false; then :
8728 $as_echo_n "(cached) " >&6
8730 if test -z "$LD"; then
8731 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8732 for ac_dir in $PATH; do
8734 test -z "$ac_dir" && ac_dir=.
8735 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8736 lt_cv_path_LD="$ac_dir/$ac_prog"
8737 # Check to see if the program is GNU ld. I'd rather use --version,
8738 # but apparently some variants of GNU ld only accept -v.
8739 # Break only if it was the GNU/non-GNU ld that we prefer.
8740 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8741 *GNU* | *'with BFD'*)
8742 test "$with_gnu_ld" != no && break
8745 test "$with_gnu_ld" != yes && break
8752 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8757 if test -n "$LD"; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8759 $as_echo "$LD" >&6; }
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8764 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8766 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8767 if ${lt_cv_prog_gnu_ld+:} false; then :
8768 $as_echo_n "(cached) " >&6
8770 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8771 case `$LD -v 2>&1 </dev/null` in
8772 *GNU* | *'with BFD'*)
8773 lt_cv_prog_gnu_ld=yes
8776 lt_cv_prog_gnu_ld=no
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8781 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8782 with_gnu_ld=$lt_cv_prog_gnu_ld
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8793 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8794 if ${lt_cv_path_NM+:} false; then :
8795 $as_echo_n "(cached) " >&6
8797 if test -n "$NM"; then
8798 # Let the user override the test.
8801 lt_nm_to_check="${ac_tool_prefix}nm"
8802 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8803 lt_nm_to_check="$lt_nm_to_check nm"
8805 for lt_tmp_nm in $lt_nm_to_check; do
8806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8807 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8809 test -z "$ac_dir" && ac_dir=.
8810 tmp_nm="$ac_dir/$lt_tmp_nm"
8811 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8812 # Check to see if the nm accepts a BSD-compat flag.
8813 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8814 # nm: unknown option "B" ignored
8815 # Tru64's nm complains that /dev/null is an invalid object file
8816 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8817 */dev/null* | *'Invalid file or object type'*)
8818 lt_cv_path_NM="$tmp_nm -B"
8822 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8824 lt_cv_path_NM="$tmp_nm -p"
8828 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8829 continue # so that we can try to find one that supports BSD flags
8838 : ${lt_cv_path_NM=no}
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8842 $as_echo "$lt_cv_path_NM" >&6; }
8843 if test "$lt_cv_path_NM" != "no"; then
8846 # Didn't find any BSD compatible name lister, look for dumpbin.
8847 if test -n "$DUMPBIN"; then :
8848 # Let the user override the test.
8850 if test -n "$ac_tool_prefix"; then
8851 for ac_prog in dumpbin "link -dump"
8853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8856 $as_echo_n "checking for $ac_word... " >&6; }
8857 if ${ac_cv_prog_DUMPBIN+:} false; then :
8858 $as_echo_n "(cached) " >&6
8860 if test -n "$DUMPBIN"; then
8861 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867 test -z "$as_dir" && as_dir=.
8868 for ac_exec_ext in '' $ac_executable_extensions; do
8869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8870 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8880 DUMPBIN=$ac_cv_prog_DUMPBIN
8881 if test -n "$DUMPBIN"; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8883 $as_echo "$DUMPBIN" >&6; }
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886 $as_echo "no" >&6; }
8890 test -n "$DUMPBIN" && break
8893 if test -z "$DUMPBIN"; then
8894 ac_ct_DUMPBIN=$DUMPBIN
8895 for ac_prog in dumpbin "link -dump"
8897 # Extract the first word of "$ac_prog", so it can be a program name with args.
8898 set dummy $ac_prog; ac_word=$2
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8900 $as_echo_n "checking for $ac_word... " >&6; }
8901 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8902 $as_echo_n "(cached) " >&6
8904 if test -n "$ac_ct_DUMPBIN"; then
8905 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911 test -z "$as_dir" && as_dir=.
8912 for ac_exec_ext in '' $ac_executable_extensions; do
8913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8914 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8924 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8925 if test -n "$ac_ct_DUMPBIN"; then
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8927 $as_echo "$ac_ct_DUMPBIN" >&6; }
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930 $as_echo "no" >&6; }
8934 test -n "$ac_ct_DUMPBIN" && break
8937 if test "x$ac_ct_DUMPBIN" = x; then
8940 case $cross_compiling:$ac_tool_warned in
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8944 ac_tool_warned=yes ;;
8946 DUMPBIN=$ac_ct_DUMPBIN
8950 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8952 DUMPBIN="$DUMPBIN -symbols"
8960 if test "$DUMPBIN" != ":"; then
8964 test -z "$NM" && NM=nm
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8972 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8973 if ${lt_cv_nm_interface+:} false; then :
8974 $as_echo_n "(cached) " >&6
8976 lt_cv_nm_interface="BSD nm"
8977 echo "int some_variable = 0;" > conftest.$ac_ext
8978 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8979 (eval "$ac_compile" 2>conftest.err)
8980 cat conftest.err >&5
8981 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8982 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8983 cat conftest.err >&5
8984 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8985 cat conftest.out >&5
8986 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8987 lt_cv_nm_interface="MS dumpbin"
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8992 $as_echo "$lt_cv_nm_interface" >&6; }
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8995 $as_echo_n "checking whether ln -s works... " >&6; }
8997 if test "$LN_S" = "ln -s"; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8999 $as_echo "yes" >&6; }
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9002 $as_echo "no, using $LN_S" >&6; }
9005 # find the maximum length of command line arguments
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9007 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9008 if ${lt_cv_sys_max_cmd_len+:} false; then :
9009 $as_echo_n "(cached) " >&6
9016 # On DJGPP, this test can blow up pretty badly due to problems in libc
9017 # (any single argument exceeding 2000 bytes causes a buffer overrun
9018 # during glob expansion). Even if it were fixed, the result of this
9019 # check would be larger than it should be.
9020 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9024 # Under GNU Hurd, this test is not required because there is
9025 # no limit to the length of command line arguments.
9026 # Libtool will interpret -1 as no limit whatsoever
9027 lt_cv_sys_max_cmd_len=-1;
9030 cygwin* | mingw* | cegcc*)
9031 # On Win9x/ME, this test blows up -- it succeeds, but takes
9032 # about 5 minutes as the teststring grows exponentially.
9033 # Worse, since 9x/ME are not pre-emptively multitasking,
9034 # you end up with a "frozen" computer, even though with patience
9035 # the test eventually succeeds (with a max line length of 256k).
9036 # Instead, let's just punt: use the minimum linelength reported by
9037 # all of the supported platforms: 8192 (on NT/2K/XP).
9038 lt_cv_sys_max_cmd_len=8192;
9042 # On MiNT this can take a long time and run out of memory.
9043 lt_cv_sys_max_cmd_len=8192;
9047 # On AmigaOS with pdksh, this test takes hours, literally.
9048 # So we just punt and use a minimum line length of 8192.
9049 lt_cv_sys_max_cmd_len=8192;
9052 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9053 # This has been around since 386BSD, at least. Likely further.
9054 if test -x /sbin/sysctl; then
9055 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9056 elif test -x /usr/sbin/sysctl; then
9057 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9059 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9061 # And add a safety zone
9062 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9067 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9068 lt_cv_sys_max_cmd_len=196608
9072 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9073 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9074 # nice to cause kernel panics so lets avoid the loop below.
9075 # First set a reasonable default.
9076 lt_cv_sys_max_cmd_len=16384
9078 if test -x /sbin/sysconfig; then
9079 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9080 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9085 lt_cv_sys_max_cmd_len=102400
9087 sysv5* | sco5v6* | sysv4.2uw2*)
9088 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9089 if test -n "$kargmax"; then
9090 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9092 lt_cv_sys_max_cmd_len=32768
9096 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9097 if test -n "$lt_cv_sys_max_cmd_len"; then
9098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9099 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9101 # Make teststring a little bigger before we do anything with it.
9102 # a 1K string should be a reasonable start.
9103 for i in 1 2 3 4 5 6 7 8 ; do
9104 teststring=$teststring$teststring
9106 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9107 # If test is not a shell built-in, we'll probably end up computing a
9108 # maximum length that is only half of the actual maximum length, but
9110 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9111 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9112 test $i != 17 # 1/2 MB should be enough
9115 teststring=$teststring$teststring
9117 # Only check the string length outside the loop.
9118 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9120 # Add a significant safety factor because C++ compilers can tack on
9121 # massive amounts of additional arguments before passing them to the
9122 # linker. It appears as though 1/2 is a usable value.
9123 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9130 if test -n $lt_cv_sys_max_cmd_len ; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9132 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9135 $as_echo "none" >&6; }
9137 max_cmd_len=$lt_cv_sys_max_cmd_len
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9149 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9150 # Try some XSI features
9153 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9155 && eval 'test $(( 1 + 1 )) -eq 2 \
9156 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9159 $as_echo "$xsi_shell" >&6; }
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9163 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9165 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9167 && lt_shell_append=yes
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9169 $as_echo "$lt_shell_append" >&6; }
9172 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9182 # test EBCDIC or ASCII
9183 case `echo X|tr X '\101'` in
9184 A) # ASCII based system
9185 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9186 lt_SP2NL='tr \040 \012'
9187 lt_NL2SP='tr \015\012 \040\040'
9189 *) # EBCDIC based system
9190 lt_SP2NL='tr \100 \n'
9191 lt_NL2SP='tr \r\n \100\100'
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9204 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9205 if ${lt_cv_to_host_file_cmd+:} false; then :
9206 $as_echo_n "(cached) " >&6
9211 *-*-mingw* ) # actually msys
9212 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9215 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9217 * ) # otherwise, assume *nix
9218 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9224 *-*-mingw* ) # actually msys
9225 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9228 lt_cv_to_host_file_cmd=func_convert_file_noop
9230 * ) # otherwise, assume *nix
9231 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9235 * ) # unhandled hosts (and "normal" native builds)
9236 lt_cv_to_host_file_cmd=func_convert_file_noop
9242 to_host_file_cmd=$lt_cv_to_host_file_cmd
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9244 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9251 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9252 if ${lt_cv_to_tool_file_cmd+:} false; then :
9253 $as_echo_n "(cached) " >&6
9255 #assume ordinary cross tools, or native build.
9256 lt_cv_to_tool_file_cmd=func_convert_file_noop
9260 *-*-mingw* ) # actually msys
9261 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9269 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9271 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9278 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9279 if ${lt_cv_ld_reload_flag+:} false; then :
9280 $as_echo_n "(cached) " >&6
9282 lt_cv_ld_reload_flag='-r'
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9285 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9286 reload_flag=$lt_cv_ld_reload_flag
9287 case $reload_flag in
9289 *) reload_flag=" $reload_flag" ;;
9291 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9293 cygwin* | mingw* | pw32* | cegcc*)
9294 if test "$GCC" != yes; then
9299 if test "$GCC" = yes; then
9300 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9302 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9315 if test -n "$ac_tool_prefix"; then
9316 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9317 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9319 $as_echo_n "checking for $ac_word... " >&6; }
9320 if ${ac_cv_prog_OBJDUMP+:} false; then :
9321 $as_echo_n "(cached) " >&6
9323 if test -n "$OBJDUMP"; then
9324 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330 test -z "$as_dir" && as_dir=.
9331 for ac_exec_ext in '' $ac_executable_extensions; do
9332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9333 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9343 OBJDUMP=$ac_cv_prog_OBJDUMP
9344 if test -n "$OBJDUMP"; then
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9346 $as_echo "$OBJDUMP" >&6; }
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349 $as_echo "no" >&6; }
9354 if test -z "$ac_cv_prog_OBJDUMP"; then
9355 ac_ct_OBJDUMP=$OBJDUMP
9356 # Extract the first word of "objdump", so it can be a program name with args.
9357 set dummy objdump; ac_word=$2
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9359 $as_echo_n "checking for $ac_word... " >&6; }
9360 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9361 $as_echo_n "(cached) " >&6
9363 if test -n "$ac_ct_OBJDUMP"; then
9364 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9370 test -z "$as_dir" && as_dir=.
9371 for ac_exec_ext in '' $ac_executable_extensions; do
9372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9373 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9383 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9384 if test -n "$ac_ct_OBJDUMP"; then
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9386 $as_echo "$ac_ct_OBJDUMP" >&6; }
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9389 $as_echo "no" >&6; }
9392 if test "x$ac_ct_OBJDUMP" = x; then
9395 case $cross_compiling:$ac_tool_warned in
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9399 ac_tool_warned=yes ;;
9401 OBJDUMP=$ac_ct_OBJDUMP
9404 OBJDUMP="$ac_cv_prog_OBJDUMP"
9407 test -z "$OBJDUMP" && OBJDUMP=objdump
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9418 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9419 if ${lt_cv_deplibs_check_method+:} false; then :
9420 $as_echo_n "(cached) " >&6
9422 lt_cv_file_magic_cmd='$MAGIC_CMD'
9423 lt_cv_file_magic_test_file=
9424 lt_cv_deplibs_check_method='unknown'
9425 # Need to set the preceding variable on all platforms that support
9426 # interlibrary dependencies.
9427 # 'none' -- dependencies not supported.
9428 # `unknown' -- same as none, but documents that we really don't know.
9429 # 'pass_all' -- all dependencies passed with no checks.
9430 # 'test_compile' -- check by making test program.
9431 # 'file_magic [[regex]]' -- check by looking for files in library path
9432 # which responds to the $file_magic_cmd with a given extended regex.
9433 # If you have `file' or equivalent on your system and you're not sure
9434 # whether `pass_all' will *always* work, you probably want this one.
9438 lt_cv_deplibs_check_method=pass_all
9442 lt_cv_deplibs_check_method=pass_all
9446 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9447 lt_cv_file_magic_cmd='/usr/bin/file -L'
9448 lt_cv_file_magic_test_file=/shlib/libc.so
9452 # func_win32_libid is a shell function defined in ltmain.sh
9453 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9454 lt_cv_file_magic_cmd='func_win32_libid'
9458 # Base MSYS/MinGW do not provide the 'file' command needed by
9459 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9460 # unless we find 'file', for example because we are cross-compiling.
9461 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
9462 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
9463 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9464 lt_cv_file_magic_cmd='func_win32_libid'
9466 # Keep this pattern in sync with the one in func_win32_libid.
9467 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9468 lt_cv_file_magic_cmd='$OBJDUMP -f'
9473 # use the weaker test based on 'objdump'. See mingw*.
9474 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9475 lt_cv_file_magic_cmd='$OBJDUMP -f'
9478 darwin* | rhapsody*)
9479 lt_cv_deplibs_check_method=pass_all
9482 freebsd* | dragonfly*)
9483 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9486 # Not sure whether the presence of OpenBSD here was a mistake.
9487 # Let's accept both of them until this is cleared up.
9488 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9489 lt_cv_file_magic_cmd=/usr/bin/file
9490 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9494 lt_cv_deplibs_check_method=pass_all
9499 lt_cv_deplibs_check_method=pass_all
9503 lt_cv_deplibs_check_method=pass_all
9506 hpux10.20* | hpux11*)
9507 lt_cv_file_magic_cmd=/usr/bin/file
9510 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9511 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9514 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]'
9515 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9518 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9519 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9525 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9526 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9529 irix5* | irix6* | nonstopux*)
9531 *-32|*"-32 ") libmagic=32-bit;;
9532 *-n32|*"-n32 ") libmagic=N32;;
9533 *-64|*"-64 ") libmagic=64-bit;;
9534 *) libmagic=never-match;;
9536 lt_cv_deplibs_check_method=pass_all
9539 # This must be Linux ELF.
9540 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9541 lt_cv_deplibs_check_method=pass_all
9545 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9546 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9548 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9553 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9554 lt_cv_file_magic_cmd=/usr/bin/file
9555 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9559 lt_cv_deplibs_check_method=pass_all
9563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9566 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9570 osf3* | osf4* | osf5*)
9571 lt_cv_deplibs_check_method=pass_all
9575 lt_cv_deplibs_check_method=pass_all
9579 lt_cv_deplibs_check_method=pass_all
9582 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9583 lt_cv_deplibs_check_method=pass_all
9587 case $host_vendor in
9589 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]'
9590 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9593 lt_cv_deplibs_check_method=pass_all
9596 lt_cv_file_magic_cmd='/bin/file'
9597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9600 lt_cv_file_magic_cmd='/bin/file'
9601 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9602 lt_cv_file_magic_test_file=/lib/libc.so
9605 lt_cv_deplibs_check_method=pass_all
9608 lt_cv_deplibs_check_method=pass_all
9614 lt_cv_deplibs_check_method=pass_all
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9620 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9624 if test "$build" = "$host"; then
9627 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9630 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9636 file_magic_cmd=$lt_cv_file_magic_cmd
9637 deplibs_check_method=$lt_cv_deplibs_check_method
9638 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9661 if test -n "$ac_tool_prefix"; then
9662 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9663 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9665 $as_echo_n "checking for $ac_word... " >&6; }
9666 if ${ac_cv_prog_DLLTOOL+:} false; then :
9667 $as_echo_n "(cached) " >&6
9669 if test -n "$DLLTOOL"; then
9670 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9676 test -z "$as_dir" && as_dir=.
9677 for ac_exec_ext in '' $ac_executable_extensions; do
9678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9679 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9689 DLLTOOL=$ac_cv_prog_DLLTOOL
9690 if test -n "$DLLTOOL"; then
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9692 $as_echo "$DLLTOOL" >&6; }
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695 $as_echo "no" >&6; }
9700 if test -z "$ac_cv_prog_DLLTOOL"; then
9701 ac_ct_DLLTOOL=$DLLTOOL
9702 # Extract the first word of "dlltool", so it can be a program name with args.
9703 set dummy dlltool; ac_word=$2
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705 $as_echo_n "checking for $ac_word... " >&6; }
9706 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9707 $as_echo_n "(cached) " >&6
9709 if test -n "$ac_ct_DLLTOOL"; then
9710 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9716 test -z "$as_dir" && as_dir=.
9717 for ac_exec_ext in '' $ac_executable_extensions; do
9718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9719 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9729 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9730 if test -n "$ac_ct_DLLTOOL"; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9732 $as_echo "$ac_ct_DLLTOOL" >&6; }
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; }
9738 if test "x$ac_ct_DLLTOOL" = x; then
9741 case $cross_compiling:$ac_tool_warned in
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9745 ac_tool_warned=yes ;;
9747 DLLTOOL=$ac_ct_DLLTOOL
9750 DLLTOOL="$ac_cv_prog_DLLTOOL"
9753 test -z "$DLLTOOL" && DLLTOOL=dlltool
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9765 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9766 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9767 $as_echo_n "(cached) " >&6
9769 lt_cv_sharedlib_from_linklib_cmd='unknown'
9772 cygwin* | mingw* | pw32* | cegcc*)
9773 # two different shell functions defined in ltmain.sh
9774 # decide which to use based on capabilities of $DLLTOOL
9775 case `$DLLTOOL --help 2>&1` in
9776 *--identify-strict*)
9777 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9780 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9785 # fallback: assume linklib IS sharedlib
9786 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9792 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9793 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9794 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9802 if test -n "$ac_tool_prefix"; then
9805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808 $as_echo_n "checking for $ac_word... " >&6; }
9809 if ${ac_cv_prog_AR+:} false; then :
9810 $as_echo_n "(cached) " >&6
9812 if test -n "$AR"; then
9813 ac_cv_prog_AR="$AR" # Let the user override the test.
9815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9819 test -z "$as_dir" && as_dir=.
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9822 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9833 if test -n "$AR"; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9835 $as_echo "$AR" >&6; }
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 $as_echo "no" >&6; }
9842 test -n "$AR" && break
9845 if test -z "$AR"; then
9849 # Extract the first word of "$ac_prog", so it can be a program name with args.
9850 set dummy $ac_prog; ac_word=$2
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9852 $as_echo_n "checking for $ac_word... " >&6; }
9853 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9854 $as_echo_n "(cached) " >&6
9856 if test -n "$ac_ct_AR"; then
9857 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9863 test -z "$as_dir" && as_dir=.
9864 for ac_exec_ext in '' $ac_executable_extensions; do
9865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9866 ac_cv_prog_ac_ct_AR="$ac_prog"
9867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9876 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9877 if test -n "$ac_ct_AR"; then
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9879 $as_echo "$ac_ct_AR" >&6; }
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9882 $as_echo "no" >&6; }
9886 test -n "$ac_ct_AR" && break
9889 if test "x$ac_ct_AR" = x; then
9892 case $cross_compiling:$ac_tool_warned in
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9896 ac_tool_warned=yes ;;
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9916 $as_echo_n "checking for archiver @FILE support... " >&6; }
9917 if ${lt_cv_ar_at_file+:} false; then :
9918 $as_echo_n "(cached) " >&6
9921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9922 /* end confdefs.h. */
9932 if ac_fn_c_try_compile "$LINENO"; then :
9933 echo conftest.$ac_objext > conftest.lst
9934 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9936 (eval $lt_ar_try) 2>&5
9938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9939 test $ac_status = 0; }
9940 if test "$ac_status" -eq 0; then
9941 # Ensure the archiver fails upon bogus file names.
9942 rm -f conftest.$ac_objext libconftest.a
9943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9944 (eval $lt_ar_try) 2>&5
9946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9947 test $ac_status = 0; }
9948 if test "$ac_status" -ne 0; then
9952 rm -f conftest.* libconftest.a
9955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9959 $as_echo "$lt_cv_ar_at_file" >&6; }
9961 if test "x$lt_cv_ar_at_file" = xno; then
9964 archiver_list_spec=$lt_cv_ar_at_file
9973 if test -n "$ac_tool_prefix"; then
9974 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9975 set dummy ${ac_tool_prefix}strip; ac_word=$2
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9977 $as_echo_n "checking for $ac_word... " >&6; }
9978 if ${ac_cv_prog_STRIP+:} false; then :
9979 $as_echo_n "(cached) " >&6
9981 if test -n "$STRIP"; then
9982 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988 test -z "$as_dir" && as_dir=.
9989 for ac_exec_ext in '' $ac_executable_extensions; do
9990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9991 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10001 STRIP=$ac_cv_prog_STRIP
10002 if test -n "$STRIP"; then
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10004 $as_echo "$STRIP" >&6; }
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10007 $as_echo "no" >&6; }
10012 if test -z "$ac_cv_prog_STRIP"; then
10014 # Extract the first word of "strip", so it can be a program name with args.
10015 set dummy strip; ac_word=$2
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10017 $as_echo_n "checking for $ac_word... " >&6; }
10018 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10019 $as_echo_n "(cached) " >&6
10021 if test -n "$ac_ct_STRIP"; then
10022 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025 for as_dir in $PATH
10028 test -z "$as_dir" && as_dir=.
10029 for ac_exec_ext in '' $ac_executable_extensions; do
10030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10031 ac_cv_prog_ac_ct_STRIP="strip"
10032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10041 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10042 if test -n "$ac_ct_STRIP"; then
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10044 $as_echo "$ac_ct_STRIP" >&6; }
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047 $as_echo "no" >&6; }
10050 if test "x$ac_ct_STRIP" = x; then
10053 case $cross_compiling:$ac_tool_warned in
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10057 ac_tool_warned=yes ;;
10062 STRIP="$ac_cv_prog_STRIP"
10065 test -z "$STRIP" && STRIP=:
10072 if test -n "$ac_tool_prefix"; then
10073 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10074 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076 $as_echo_n "checking for $ac_word... " >&6; }
10077 if ${ac_cv_prog_RANLIB+:} false; then :
10078 $as_echo_n "(cached) " >&6
10080 if test -n "$RANLIB"; then
10081 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084 for as_dir in $PATH
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10090 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10100 RANLIB=$ac_cv_prog_RANLIB
10101 if test -n "$RANLIB"; then
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10103 $as_echo "$RANLIB" >&6; }
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106 $as_echo "no" >&6; }
10111 if test -z "$ac_cv_prog_RANLIB"; then
10112 ac_ct_RANLIB=$RANLIB
10113 # Extract the first word of "ranlib", so it can be a program name with args.
10114 set dummy ranlib; ac_word=$2
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10116 $as_echo_n "checking for $ac_word... " >&6; }
10117 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10118 $as_echo_n "(cached) " >&6
10120 if test -n "$ac_ct_RANLIB"; then
10121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10124 for as_dir in $PATH
10127 test -z "$as_dir" && as_dir=.
10128 for ac_exec_ext in '' $ac_executable_extensions; do
10129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10130 ac_cv_prog_ac_ct_RANLIB="ranlib"
10131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10140 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10141 if test -n "$ac_ct_RANLIB"; then
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10143 $as_echo "$ac_ct_RANLIB" >&6; }
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10146 $as_echo "no" >&6; }
10149 if test "x$ac_ct_RANLIB" = x; then
10152 case $cross_compiling:$ac_tool_warned in
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10156 ac_tool_warned=yes ;;
10158 RANLIB=$ac_ct_RANLIB
10161 RANLIB="$ac_cv_prog_RANLIB"
10164 test -z "$RANLIB" && RANLIB=:
10171 # Determine commands to create old-style static archives.
10172 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10173 old_postinstall_cmds='chmod 644 $oldlib'
10174 old_postuninstall_cmds=
10176 if test -n "$RANLIB"; then
10179 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10182 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10185 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10190 lock_old_archive_extraction=yes ;;
10192 lock_old_archive_extraction=no ;;
10233 # If no C compiler was specified, use CC.
10236 # If no C compiler flags were specified, use CFLAGS.
10237 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10239 # Allow CC to be a program name with arguments.
10243 # Check for command to grab the raw symbol name followed by C symbol from nm.
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10245 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10246 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10247 $as_echo_n "(cached) " >&6
10250 # These are sane defaults that work on at least a few old systems.
10251 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10253 # Character class describing NM global symbol codes.
10254 symcode='[BCDEGRST]'
10256 # Regexp to match symbols that can be accessed directly from C.
10257 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10259 # Define system-specific variables.
10264 cygwin* | mingw* | pw32* | cegcc*)
10265 symcode='[ABCDGISTW]'
10268 if test "$host_cpu" = ia64; then
10269 symcode='[ABCDEGRST]'
10272 irix* | nonstopux*)
10273 symcode='[BCDEGRST]'
10276 symcode='[BCDEGQRST]'
10287 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10295 # If we're using GNU nm, then use its standard symbol codes.
10296 case `$NM -V 2>&1` in
10297 *GNU* | *'with BFD'*)
10298 symcode='[ABCDGIRSTW]' ;;
10301 # Transform an extracted symbol line into a proper C declaration.
10302 # Some systems (esp. on ia64) link data and code symbols differently,
10303 # so use this general approach.
10304 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10306 # Transform an extracted symbol line into symbol name and symbol address
10307 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10308 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
10310 # Handle CRLF in mingw tool chain
10314 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10318 # Try without a prefix underscore, then with it.
10319 for ac_symprfx in "" "_"; do
10321 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10322 symxfrm="\\1 $ac_symprfx\\2 \\2"
10324 # Write the raw and C identifiers.
10325 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10326 # Fake it for dumpbin and say T for any non-static function
10327 # and D for any global variable.
10328 # Also find C++ and __fastcall symbols from MSVC++,
10329 # which start with @ or ?.
10330 lt_cv_sys_global_symbol_pipe="$AWK '"\
10331 " {last_section=section; section=\$ 3};"\
10332 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10333 " \$ 0!~/External *\|/{next};"\
10334 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10335 " {if(hide[section]) next};"\
10336 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10337 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10338 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
10339 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10340 " ' prfx=^$ac_symprfx"
10342 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10344 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10346 # Check to see that the pipe works correctly.
10350 cat > conftest.$ac_ext <<_LT_EOF
10355 void nm_test_func(void);
10356 void nm_test_func(void){}
10360 int main(){nm_test_var='a';nm_test_func();return(0);}
10363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10364 (eval $ac_compile) 2>&5
10366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10367 test $ac_status = 0; }; then
10368 # Now try to grab the symbols.
10370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10371 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10374 test $ac_status = 0; } && test -s "$nlist"; then
10375 # Try sorting and uniquifying the output.
10376 if sort "$nlist" | uniq > "$nlist"T; then
10377 mv -f "$nlist"T "$nlist"
10382 # Make sure that we snagged all the symbols we need.
10383 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10384 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10385 cat <<_LT_EOF > conftest.$ac_ext
10386 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10387 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
10388 /* DATA imports from DLLs on WIN32 con't be const, because runtime
10389 relocations are performed -- see ld's documentation on pseudo-relocs. */
10390 # define LT_DLSYM_CONST
10391 #elif defined(__osf__)
10392 /* This system does not cope well with relocations in const data. */
10393 # define LT_DLSYM_CONST
10395 # define LT_DLSYM_CONST const
10403 # Now generate the symbol file.
10404 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10406 cat <<_LT_EOF >> conftest.$ac_ext
10408 /* The mapping between symbol names and symbols. */
10409 LT_DLSYM_CONST struct {
10413 lt__PROGRAM__LTX_preloaded_symbols[] =
10415 { "@PROGRAM@", (void *) 0 },
10417 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10418 cat <<\_LT_EOF >> conftest.$ac_ext
10422 /* This works around a problem in FreeBSD linker */
10423 #ifdef FREEBSD_WORKAROUND
10424 static const void *lt_preloaded_setup() {
10425 return lt__PROGRAM__LTX_preloaded_symbols;
10433 # Now try linking the two files.
10434 mv conftest.$ac_objext conftstm.$ac_objext
10435 lt_globsym_save_LIBS=$LIBS
10436 lt_globsym_save_CFLAGS=$CFLAGS
10437 LIBS="conftstm.$ac_objext"
10438 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10440 (eval $ac_link) 2>&5
10442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10443 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10446 LIBS=$lt_globsym_save_LIBS
10447 CFLAGS=$lt_globsym_save_CFLAGS
10449 echo "cannot find nm_test_func in $nlist" >&5
10452 echo "cannot find nm_test_var in $nlist" >&5
10455 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10458 echo "$progname: failed program was:" >&5
10459 cat conftest.$ac_ext >&5
10461 rm -rf conftest* conftst*
10463 # Do not use the global_symbol_pipe unless it works.
10464 if test "$pipe_works" = yes; then
10467 lt_cv_sys_global_symbol_pipe=
10473 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10474 lt_cv_sys_global_symbol_to_cdecl=
10476 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10478 $as_echo "failed" >&6; }
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10481 $as_echo "ok" >&6; }
10484 # Response file support.
10485 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10486 nm_file_list_spec='@'
10487 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10488 nm_file_list_spec='@'
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10518 $as_echo_n "checking for sysroot... " >&6; }
10520 # Check whether --with-sysroot was given.
10521 if test "${with_sysroot+set}" = set; then :
10522 withval=$with_sysroot;
10529 case ${with_sysroot} in #(
10531 if test "$GCC" = yes; then
10532 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10536 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
10542 $as_echo "${with_sysroot}" >&6; }
10543 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10548 $as_echo "${lt_sysroot:-no}" >&6; }
10554 # Check whether --enable-libtool-lock was given.
10555 if test "${enable_libtool_lock+set}" = set; then :
10556 enableval=$enable_libtool_lock;
10559 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10561 # Some flags need to be propagated to the compiler or linker for good
10565 # Find out which ABI we are using.
10566 echo 'int i;' > conftest.$ac_ext
10567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10568 (eval $ac_compile) 2>&5
10570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10571 test $ac_status = 0; }; then
10572 case `/usr/bin/file conftest.$ac_objext` in
10574 HPUX_IA64_MODE="32"
10577 HPUX_IA64_MODE="64"
10584 # Find out which ABI we are using.
10585 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10587 (eval $ac_compile) 2>&5
10589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10590 test $ac_status = 0; }; then
10591 if test "$lt_cv_prog_gnu_ld" = yes; then
10592 case `/usr/bin/file conftest.$ac_objext` in
10594 LD="${LD-ld} -melf32bsmip"
10597 LD="${LD-ld} -melf32bmipn32"
10600 LD="${LD-ld} -melf64bmip"
10604 case `/usr/bin/file conftest.$ac_objext` in
10620 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10621 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10622 # Find out which ABI we are using.
10623 echo 'int i;' > conftest.$ac_ext
10624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10625 (eval $ac_compile) 2>&5
10627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10628 test $ac_status = 0; }; then
10629 case `/usr/bin/file conftest.o` in
10632 x86_64-*kfreebsd*-gnu)
10633 LD="${LD-ld} -m elf_i386_fbsd"
10636 LD="${LD-ld} -m elf_i386"
10638 ppc64-*linux*|powerpc64-*linux*)
10639 LD="${LD-ld} -m elf32ppclinux"
10642 LD="${LD-ld} -m elf_s390"
10645 LD="${LD-ld} -m elf32_sparc"
10651 x86_64-*kfreebsd*-gnu)
10652 LD="${LD-ld} -m elf_x86_64_fbsd"
10655 LD="${LD-ld} -m elf_x86_64"
10657 ppc*-*linux*|powerpc*-*linux*)
10658 LD="${LD-ld} -m elf64ppc"
10660 s390*-*linux*|s390*-*tpf*)
10661 LD="${LD-ld} -m elf64_s390"
10664 LD="${LD-ld} -m elf64_sparc"
10674 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10675 SAVE_CFLAGS="$CFLAGS"
10676 CFLAGS="$CFLAGS -belf"
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10678 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10679 if ${lt_cv_cc_needs_belf+:} false; then :
10680 $as_echo_n "(cached) " >&6
10683 ac_cpp='$CPP $CPPFLAGS'
10684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689 /* end confdefs.h. */
10699 if ac_fn_c_try_link "$LINENO"; then :
10700 lt_cv_cc_needs_belf=yes
10702 lt_cv_cc_needs_belf=no
10704 rm -f core conftest.err conftest.$ac_objext \
10705 conftest$ac_exeext conftest.$ac_ext
10707 ac_cpp='$CPP $CPPFLAGS'
10708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10714 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10715 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10716 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10717 CFLAGS="$SAVE_CFLAGS"
10721 # Find out which ABI we are using.
10722 echo 'int i;' > conftest.$ac_ext
10723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10724 (eval $ac_compile) 2>&5
10726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10727 test $ac_status = 0; }; then
10728 case `/usr/bin/file conftest.o` in
10730 case $lt_cv_prog_gnu_ld in
10731 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10733 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10745 need_locks="$enable_libtool_lock"
10747 if test -n "$ac_tool_prefix"; then
10748 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10749 set dummy ${ac_tool_prefix}mt; ac_word=$2
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10751 $as_echo_n "checking for $ac_word... " >&6; }
10752 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10753 $as_echo_n "(cached) " >&6
10755 if test -n "$MANIFEST_TOOL"; then
10756 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759 for as_dir in $PATH
10762 test -z "$as_dir" && as_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10765 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10775 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10776 if test -n "$MANIFEST_TOOL"; then
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10778 $as_echo "$MANIFEST_TOOL" >&6; }
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781 $as_echo "no" >&6; }
10786 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10787 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10788 # Extract the first word of "mt", so it can be a program name with args.
10789 set dummy mt; ac_word=$2
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10791 $as_echo_n "checking for $ac_word... " >&6; }
10792 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10793 $as_echo_n "(cached) " >&6
10795 if test -n "$ac_ct_MANIFEST_TOOL"; then
10796 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799 for as_dir in $PATH
10802 test -z "$as_dir" && as_dir=.
10803 for ac_exec_ext in '' $ac_executable_extensions; do
10804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10805 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10815 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10816 if test -n "$ac_ct_MANIFEST_TOOL"; then
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10818 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821 $as_echo "no" >&6; }
10824 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10827 case $cross_compiling:$ac_tool_warned in
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10831 ac_tool_warned=yes ;;
10833 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10836 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10839 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10841 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10842 if ${lt_cv_path_mainfest_tool+:} false; then :
10843 $as_echo_n "(cached) " >&6
10845 lt_cv_path_mainfest_tool=no
10846 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10847 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10848 cat conftest.err >&5
10849 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10850 lt_cv_path_mainfest_tool=yes
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10855 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10856 if test "x$lt_cv_path_mainfest_tool" != xyes; then
10866 rhapsody* | darwin*)
10867 if test -n "$ac_tool_prefix"; then
10868 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10869 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10871 $as_echo_n "checking for $ac_word... " >&6; }
10872 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10873 $as_echo_n "(cached) " >&6
10875 if test -n "$DSYMUTIL"; then
10876 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10879 for as_dir in $PATH
10882 test -z "$as_dir" && as_dir=.
10883 for ac_exec_ext in '' $ac_executable_extensions; do
10884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10885 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10895 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10896 if test -n "$DSYMUTIL"; then
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10898 $as_echo "$DSYMUTIL" >&6; }
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901 $as_echo "no" >&6; }
10906 if test -z "$ac_cv_prog_DSYMUTIL"; then
10907 ac_ct_DSYMUTIL=$DSYMUTIL
10908 # Extract the first word of "dsymutil", so it can be a program name with args.
10909 set dummy dsymutil; ac_word=$2
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10911 $as_echo_n "checking for $ac_word... " >&6; }
10912 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10913 $as_echo_n "(cached) " >&6
10915 if test -n "$ac_ct_DSYMUTIL"; then
10916 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919 for as_dir in $PATH
10922 test -z "$as_dir" && as_dir=.
10923 for ac_exec_ext in '' $ac_executable_extensions; do
10924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10925 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10935 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10936 if test -n "$ac_ct_DSYMUTIL"; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10938 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941 $as_echo "no" >&6; }
10944 if test "x$ac_ct_DSYMUTIL" = x; then
10947 case $cross_compiling:$ac_tool_warned in
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10951 ac_tool_warned=yes ;;
10953 DSYMUTIL=$ac_ct_DSYMUTIL
10956 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10959 if test -n "$ac_tool_prefix"; then
10960 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10961 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963 $as_echo_n "checking for $ac_word... " >&6; }
10964 if ${ac_cv_prog_NMEDIT+:} false; then :
10965 $as_echo_n "(cached) " >&6
10967 if test -n "$NMEDIT"; then
10968 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971 for as_dir in $PATH
10974 test -z "$as_dir" && as_dir=.
10975 for ac_exec_ext in '' $ac_executable_extensions; do
10976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10977 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10987 NMEDIT=$ac_cv_prog_NMEDIT
10988 if test -n "$NMEDIT"; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10990 $as_echo "$NMEDIT" >&6; }
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993 $as_echo "no" >&6; }
10998 if test -z "$ac_cv_prog_NMEDIT"; then
10999 ac_ct_NMEDIT=$NMEDIT
11000 # Extract the first word of "nmedit", so it can be a program name with args.
11001 set dummy nmedit; ac_word=$2
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11003 $as_echo_n "checking for $ac_word... " >&6; }
11004 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11005 $as_echo_n "(cached) " >&6
11007 if test -n "$ac_ct_NMEDIT"; then
11008 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011 for as_dir in $PATH
11014 test -z "$as_dir" && as_dir=.
11015 for ac_exec_ext in '' $ac_executable_extensions; do
11016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11017 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11027 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11028 if test -n "$ac_ct_NMEDIT"; then
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11030 $as_echo "$ac_ct_NMEDIT" >&6; }
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033 $as_echo "no" >&6; }
11036 if test "x$ac_ct_NMEDIT" = x; then
11039 case $cross_compiling:$ac_tool_warned in
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11043 ac_tool_warned=yes ;;
11045 NMEDIT=$ac_ct_NMEDIT
11048 NMEDIT="$ac_cv_prog_NMEDIT"
11051 if test -n "$ac_tool_prefix"; then
11052 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11053 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11055 $as_echo_n "checking for $ac_word... " >&6; }
11056 if ${ac_cv_prog_LIPO+:} false; then :
11057 $as_echo_n "(cached) " >&6
11059 if test -n "$LIPO"; then
11060 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063 for as_dir in $PATH
11066 test -z "$as_dir" && as_dir=.
11067 for ac_exec_ext in '' $ac_executable_extensions; do
11068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11069 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11079 LIPO=$ac_cv_prog_LIPO
11080 if test -n "$LIPO"; then
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11082 $as_echo "$LIPO" >&6; }
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085 $as_echo "no" >&6; }
11090 if test -z "$ac_cv_prog_LIPO"; then
11092 # Extract the first word of "lipo", so it can be a program name with args.
11093 set dummy lipo; ac_word=$2
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11095 $as_echo_n "checking for $ac_word... " >&6; }
11096 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11097 $as_echo_n "(cached) " >&6
11099 if test -n "$ac_ct_LIPO"; then
11100 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103 for as_dir in $PATH
11106 test -z "$as_dir" && as_dir=.
11107 for ac_exec_ext in '' $ac_executable_extensions; do
11108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11109 ac_cv_prog_ac_ct_LIPO="lipo"
11110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11120 if test -n "$ac_ct_LIPO"; then
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11122 $as_echo "$ac_ct_LIPO" >&6; }
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125 $as_echo "no" >&6; }
11128 if test "x$ac_ct_LIPO" = x; then
11131 case $cross_compiling:$ac_tool_warned in
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11135 ac_tool_warned=yes ;;
11140 LIPO="$ac_cv_prog_LIPO"
11143 if test -n "$ac_tool_prefix"; then
11144 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11145 set dummy ${ac_tool_prefix}otool; ac_word=$2
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11147 $as_echo_n "checking for $ac_word... " >&6; }
11148 if ${ac_cv_prog_OTOOL+:} false; then :
11149 $as_echo_n "(cached) " >&6
11151 if test -n "$OTOOL"; then
11152 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11155 for as_dir in $PATH
11158 test -z "$as_dir" && as_dir=.
11159 for ac_exec_ext in '' $ac_executable_extensions; do
11160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11161 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11171 OTOOL=$ac_cv_prog_OTOOL
11172 if test -n "$OTOOL"; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11174 $as_echo "$OTOOL" >&6; }
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 $as_echo "no" >&6; }
11182 if test -z "$ac_cv_prog_OTOOL"; then
11184 # Extract the first word of "otool", so it can be a program name with args.
11185 set dummy otool; ac_word=$2
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11187 $as_echo_n "checking for $ac_word... " >&6; }
11188 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11189 $as_echo_n "(cached) " >&6
11191 if test -n "$ac_ct_OTOOL"; then
11192 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195 for as_dir in $PATH
11198 test -z "$as_dir" && as_dir=.
11199 for ac_exec_ext in '' $ac_executable_extensions; do
11200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11201 ac_cv_prog_ac_ct_OTOOL="otool"
11202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11211 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11212 if test -n "$ac_ct_OTOOL"; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11214 $as_echo "$ac_ct_OTOOL" >&6; }
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11217 $as_echo "no" >&6; }
11220 if test "x$ac_ct_OTOOL" = x; then
11223 case $cross_compiling:$ac_tool_warned in
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11227 ac_tool_warned=yes ;;
11232 OTOOL="$ac_cv_prog_OTOOL"
11235 if test -n "$ac_tool_prefix"; then
11236 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11237 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11239 $as_echo_n "checking for $ac_word... " >&6; }
11240 if ${ac_cv_prog_OTOOL64+:} false; then :
11241 $as_echo_n "(cached) " >&6
11243 if test -n "$OTOOL64"; then
11244 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247 for as_dir in $PATH
11250 test -z "$as_dir" && as_dir=.
11251 for ac_exec_ext in '' $ac_executable_extensions; do
11252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11253 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 OTOOL64=$ac_cv_prog_OTOOL64
11264 if test -n "$OTOOL64"; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11266 $as_echo "$OTOOL64" >&6; }
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269 $as_echo "no" >&6; }
11274 if test -z "$ac_cv_prog_OTOOL64"; then
11275 ac_ct_OTOOL64=$OTOOL64
11276 # Extract the first word of "otool64", so it can be a program name with args.
11277 set dummy otool64; ac_word=$2
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11279 $as_echo_n "checking for $ac_word... " >&6; }
11280 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11281 $as_echo_n "(cached) " >&6
11283 if test -n "$ac_ct_OTOOL64"; then
11284 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287 for as_dir in $PATH
11290 test -z "$as_dir" && as_dir=.
11291 for ac_exec_ext in '' $ac_executable_extensions; do
11292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11293 ac_cv_prog_ac_ct_OTOOL64="otool64"
11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11303 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11304 if test -n "$ac_ct_OTOOL64"; then
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11306 $as_echo "$ac_ct_OTOOL64" >&6; }
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309 $as_echo "no" >&6; }
11312 if test "x$ac_ct_OTOOL64" = x; then
11315 case $cross_compiling:$ac_tool_warned in
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11319 ac_tool_warned=yes ;;
11321 OTOOL64=$ac_ct_OTOOL64
11324 OTOOL64="$ac_cv_prog_OTOOL64"
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11354 $as_echo_n "checking for -single_module linker flag... " >&6; }
11355 if ${lt_cv_apple_cc_single_mod+:} false; then :
11356 $as_echo_n "(cached) " >&6
11358 lt_cv_apple_cc_single_mod=no
11359 if test -z "${LT_MULTI_MODULE}"; then
11360 # By default we will add the -single_module flag. You can override
11361 # by either setting the environment variable LT_MULTI_MODULE
11362 # non-empty at configure time, or by adding -multi_module to the
11364 rm -rf libconftest.dylib*
11365 echo "int foo(void){return 1;}" > conftest.c
11366 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11367 -dynamiclib -Wl,-single_module conftest.c" >&5
11368 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11369 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11371 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11372 lt_cv_apple_cc_single_mod=yes
11374 cat conftest.err >&5
11376 rm -rf libconftest.dylib*
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11381 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11383 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11384 if ${lt_cv_ld_exported_symbols_list+:} false; then :
11385 $as_echo_n "(cached) " >&6
11387 lt_cv_ld_exported_symbols_list=no
11388 save_LDFLAGS=$LDFLAGS
11389 echo "_main" > conftest.sym
11390 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h. */
11402 if ac_fn_c_try_link "$LINENO"; then :
11403 lt_cv_ld_exported_symbols_list=yes
11405 lt_cv_ld_exported_symbols_list=no
11407 rm -f core conftest.err conftest.$ac_objext \
11408 conftest$ac_exeext conftest.$ac_ext
11409 LDFLAGS="$save_LDFLAGS"
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11413 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11415 $as_echo_n "checking for -force_load linker flag... " >&6; }
11416 if ${lt_cv_ld_force_load+:} false; then :
11417 $as_echo_n "(cached) " >&6
11419 lt_cv_ld_force_load=no
11420 cat > conftest.c << _LT_EOF
11421 int forced_loaded() { return 2;}
11423 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11424 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11425 echo "$AR cru libconftest.a conftest.o" >&5
11426 $AR cru libconftest.a conftest.o 2>&5
11427 echo "$RANLIB libconftest.a" >&5
11428 $RANLIB libconftest.a 2>&5
11429 cat > conftest.c << _LT_EOF
11430 int main() { return 0;}
11432 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11433 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11435 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11436 lt_cv_ld_force_load=yes
11438 cat conftest.err >&5
11440 rm -f conftest.err libconftest.a conftest conftest.c
11441 rm -rf conftest.dSYM
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11445 $as_echo "$lt_cv_ld_force_load" >&6; }
11447 rhapsody* | darwin1.[012])
11448 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11450 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11451 darwin*) # darwin 5.x on
11452 # if running on 10.5 or later, the deployment target defaults
11453 # to the OS version, if on x86, and 10.4, the deployment
11454 # target defaults to 10.4. Don't you love it?
11455 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11456 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11457 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11459 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11461 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11465 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11466 _lt_dar_single_mod='$single_module'
11468 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11469 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11471 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11473 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11474 _lt_dsymutil='~$DSYMUTIL $lib || :'
11481 for ac_header in dlfcn.h
11483 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11485 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11486 cat >>confdefs.h <<_ACEOF
11487 #define HAVE_DLFCN_H 1
11497 func_stripname_cnf ()
11500 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11501 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11503 } # func_stripname_cnf
11516 enable_win32_dll=no
11520 # Check whether --enable-static was given.
11521 if test "${enable_static+set}" = set; then :
11522 enableval=$enable_static; p=${PACKAGE-default}
11524 yes) enable_static=yes ;;
11525 no) enable_static=no ;;
11528 # Look at the argument we got. We use all the common list separators.
11529 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11530 for pkg in $enableval; do
11532 if test "X$pkg" = "X$p"; then
11552 # Check whether --with-pic was given.
11553 if test "${with_pic+set}" = set; then :
11554 withval=$with_pic; pic_mode="$withval"
11560 test -z "$pic_mode" && pic_mode=default
11568 # Check whether --enable-fast-install was given.
11569 if test "${enable_fast_install+set}" = set; then :
11570 enableval=$enable_fast_install; p=${PACKAGE-default}
11572 yes) enable_fast_install=yes ;;
11573 no) enable_fast_install=no ;;
11575 enable_fast_install=no
11576 # Look at the argument we got. We use all the common list separators.
11577 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11578 for pkg in $enableval; do
11580 if test "X$pkg" = "X$p"; then
11581 enable_fast_install=yes
11588 enable_fast_install=yes
11601 # This can be used to rebuild libtool when needed
11602 LIBTOOL_DEPS="$ltmain"
11604 # Always use our own libtool.
11605 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11632 test -z "$LN_S" && LN_S="ln -s"
11647 if test -n "${ZSH_VERSION+set}" ; then
11648 setopt NO_GLOB_SUBST
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11652 $as_echo_n "checking for objdir... " >&6; }
11653 if ${lt_cv_objdir+:} false; then :
11654 $as_echo_n "(cached) " >&6
11656 rm -f .libs 2>/dev/null
11657 mkdir .libs 2>/dev/null
11658 if test -d .libs; then
11661 # MS-DOS does not allow filenames that begin with a dot.
11664 rmdir .libs 2>/dev/null
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11667 $as_echo "$lt_cv_objdir" >&6; }
11668 objdir=$lt_cv_objdir
11674 cat >>confdefs.h <<_ACEOF
11675 #define LT_OBJDIR "$lt_cv_objdir/"
11683 # AIX sometimes has problems with the GCC collect2 program. For some
11684 # reason, if we set the COLLECT_NAMES environment variable, the problems
11685 # vanish in a puff of smoke.
11686 if test "X${COLLECT_NAMES+set}" != Xset; then
11688 export COLLECT_NAMES
11693 # Global variables:
11695 can_build_shared=yes
11697 # All known linkers require a `.a' archive for static linking (except MSVC,
11698 # which needs '.lib').
11701 with_gnu_ld="$lt_cv_prog_gnu_ld"
11704 old_CFLAGS="$CFLAGS"
11706 # Set sane defaults for various variables
11707 test -z "$CC" && CC=cc
11708 test -z "$LTCC" && LTCC=$CC
11709 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11710 test -z "$LD" && LD=ld
11711 test -z "$ac_objext" && ac_objext=o
11713 for cc_temp in $compiler""; do
11715 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11716 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11721 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11724 # Only perform the check for file, if the check method requires it
11725 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11726 case $deplibs_check_method in
11728 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11730 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11731 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11732 $as_echo_n "(cached) " >&6
11736 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11739 lt_save_MAGIC_CMD="$MAGIC_CMD"
11740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11741 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11742 for ac_dir in $ac_dummy; do
11744 test -z "$ac_dir" && ac_dir=.
11745 if test -f $ac_dir/${ac_tool_prefix}file; then
11746 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11747 if test -n "$file_magic_test_file"; then
11748 case $deplibs_check_method in
11750 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11751 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11752 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11753 $EGREP "$file_magic_regex" > /dev/null; then
11758 *** Warning: the command libtool uses to detect shared libraries,
11759 *** $file_magic_cmd, produces output that libtool cannot recognize.
11760 *** The result is that libtool may fail to recognize shared libraries
11761 *** as such. This will affect the creation of libtool libraries that
11762 *** depend on shared libraries, but programs linked with such libtool
11763 *** libraries will work regardless of this problem. Nevertheless, you
11764 *** may want to report the problem to your system manager and/or to
11765 *** bug-libtool@gnu.org
11775 MAGIC_CMD="$lt_save_MAGIC_CMD"
11780 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11781 if test -n "$MAGIC_CMD"; then
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11783 $as_echo "$MAGIC_CMD" >&6; }
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11793 if test -z "$lt_cv_path_MAGIC_CMD"; then
11794 if test -n "$ac_tool_prefix"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11796 $as_echo_n "checking for file... " >&6; }
11797 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11798 $as_echo_n "(cached) " >&6
11802 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11805 lt_save_MAGIC_CMD="$MAGIC_CMD"
11806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11807 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11808 for ac_dir in $ac_dummy; do
11810 test -z "$ac_dir" && ac_dir=.
11811 if test -f $ac_dir/file; then
11812 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11813 if test -n "$file_magic_test_file"; then
11814 case $deplibs_check_method in
11816 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11817 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11818 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11819 $EGREP "$file_magic_regex" > /dev/null; then
11824 *** Warning: the command libtool uses to detect shared libraries,
11825 *** $file_magic_cmd, produces output that libtool cannot recognize.
11826 *** The result is that libtool may fail to recognize shared libraries
11827 *** as such. This will affect the creation of libtool libraries that
11828 *** depend on shared libraries, but programs linked with such libtool
11829 *** libraries will work regardless of this problem. Nevertheless, you
11830 *** may want to report the problem to your system manager and/or to
11831 *** bug-libtool@gnu.org
11841 MAGIC_CMD="$lt_save_MAGIC_CMD"
11846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11847 if test -n "$MAGIC_CMD"; then
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11849 $as_echo "$MAGIC_CMD" >&6; }
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852 $as_echo "no" >&6; }
11865 # Use C for the default configuration in the libtool script
11869 ac_cpp='$CPP $CPPFLAGS'
11870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11875 # Source file extension for C test sources.
11878 # Object file extension for compiled C test sources.
11882 # Code to be used in simple compile tests
11883 lt_simple_compile_test_code="int some_variable = 0;"
11885 # Code to be used in simple link tests
11886 lt_simple_link_test_code='int main(){return(0);}'
11894 # If no C compiler was specified, use CC.
11897 # If no C compiler flags were specified, use CFLAGS.
11898 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11900 # Allow CC to be a program name with arguments.
11903 # Save the default compiler, since it gets overwritten when the other
11904 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11905 compiler_DEFAULT=$CC
11907 # save warnings/boilerplate of simple test code
11908 ac_outfile=conftest.$ac_objext
11909 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11910 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11911 _lt_compiler_boilerplate=`cat conftest.err`
11914 ac_outfile=conftest.$ac_objext
11915 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11916 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11917 _lt_linker_boilerplate=`cat conftest.err`
11922 ## There is no encapsulation within the following macros, do not change
11923 ## the running order or otherwise move them around unless you know exactly
11924 ## what you are doing...
11925 if test -n "$compiler"; then
11927 lt_prog_compiler_no_builtin_flag=
11929 if test "$GCC" = yes; then
11930 case $cc_basename in
11932 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11934 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11938 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11939 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11940 $as_echo_n "(cached) " >&6
11942 lt_cv_prog_compiler_rtti_exceptions=no
11943 ac_outfile=conftest.$ac_objext
11944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11945 lt_compiler_flag="-fno-rtti -fno-exceptions"
11946 # Insert the option either (1) after the last *FLAGS variable, or
11947 # (2) before a word containing "conftest.", or (3) at the end.
11948 # Note that $ac_compile itself does not contain backslashes and begins
11949 # with a dollar sign (not a hyphen), so the echo should work correctly.
11950 # The option is referenced via a variable to avoid confusing sed.
11951 lt_compile=`echo "$ac_compile" | $SED \
11952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11954 -e 's:$: $lt_compiler_flag:'`
11955 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11956 (eval "$lt_compile" 2>conftest.err)
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 if (exit $ac_status) && test -s "$ac_outfile"; then
11961 # The compiler can only warn and ignore the option if not recognized
11962 # So say no if there are warnings other than the usual output.
11963 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11966 lt_cv_prog_compiler_rtti_exceptions=yes
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11973 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11975 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11976 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11988 lt_prog_compiler_wl=
11989 lt_prog_compiler_pic=
11990 lt_prog_compiler_static=
11993 if test "$GCC" = yes; then
11994 lt_prog_compiler_wl='-Wl,'
11995 lt_prog_compiler_static='-static'
11999 # All AIX code is PIC.
12000 if test "$host_cpu" = ia64; then
12001 # AIX 5 now supports IA64 processor
12002 lt_prog_compiler_static='-Bstatic'
12009 # see comment about AmigaOS4 .so support
12010 lt_prog_compiler_pic='-fPIC'
12013 # FIXME: we need at least 68020 code to build shared libraries, but
12014 # adding the `-m68020' flag to GCC prevents building anything better,
12016 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12021 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12022 # PIC is the default for these OSes.
12025 mingw* | cygwin* | pw32* | os2* | cegcc*)
12026 # This hack is so that the source file can tell whether it is being
12027 # built for inclusion in a dll (and should export symbols for example).
12028 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12029 # (--disable-auto-import) libraries
12030 lt_prog_compiler_pic='-DDLL_EXPORT'
12033 darwin* | rhapsody*)
12034 # PIC is the default on this platform
12035 # Common symbols not allowed in MH_DYLIB files
12036 lt_prog_compiler_pic='-fno-common'
12040 # PIC is the default for Haiku.
12041 # The "-static" flag exists, but is broken.
12042 lt_prog_compiler_static=
12046 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12047 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12048 # sets the default TLS model and affects inlining.
12054 lt_prog_compiler_pic='-fPIC'
12060 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12061 # Instead, we relocate shared libraries at runtime.
12065 # Just because we use GCC doesn't mean we suddenly get shared libraries
12066 # on systems that don't support them.
12067 lt_prog_compiler_can_build_shared=no
12072 # QNX uses GNU C++, but need to define -shared option too, otherwise
12073 # it will coredump.
12074 lt_prog_compiler_pic='-fPIC -shared'
12078 if test -d /usr/nec; then
12079 lt_prog_compiler_pic=-Kconform_pic
12084 lt_prog_compiler_pic='-fPIC'
12088 case $cc_basename in
12089 nvcc*) # Cuda Compiler Driver 2.2
12090 lt_prog_compiler_wl='-Xlinker '
12091 lt_prog_compiler_pic='-Xcompiler -fPIC'
12095 # PORTME Check for flag to pass linker flags through the system compiler.
12098 lt_prog_compiler_wl='-Wl,'
12099 if test "$host_cpu" = ia64; then
12100 # AIX 5 now supports IA64 processor
12101 lt_prog_compiler_static='-Bstatic'
12103 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12107 mingw* | cygwin* | pw32* | os2* | cegcc*)
12108 # This hack is so that the source file can tell whether it is being
12109 # built for inclusion in a dll (and should export symbols for example).
12110 lt_prog_compiler_pic='-DDLL_EXPORT'
12113 hpux9* | hpux10* | hpux11*)
12114 lt_prog_compiler_wl='-Wl,'
12115 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12116 # not for PA HP-UX.
12122 lt_prog_compiler_pic='+Z'
12125 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12126 lt_prog_compiler_static='${wl}-a ${wl}archive'
12129 irix5* | irix6* | nonstopux*)
12130 lt_prog_compiler_wl='-Wl,'
12131 # PIC (with -KPIC) is the default.
12132 lt_prog_compiler_static='-non_shared'
12135 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12136 case $cc_basename in
12137 # old Intel for x86_64 which still supported -KPIC.
12139 lt_prog_compiler_wl='-Wl,'
12140 lt_prog_compiler_pic='-KPIC'
12141 lt_prog_compiler_static='-static'
12143 # icc used to be incompatible with GCC.
12144 # ICC 10 doesn't accept -KPIC any more.
12146 lt_prog_compiler_wl='-Wl,'
12147 lt_prog_compiler_pic='-fPIC'
12148 lt_prog_compiler_static='-static'
12150 # Lahey Fortran 8.1.
12152 lt_prog_compiler_wl='-Wl,'
12153 lt_prog_compiler_pic='--shared'
12154 lt_prog_compiler_static='--static'
12157 # NAG Fortran compiler
12158 lt_prog_compiler_wl='-Wl,-Wl,,'
12159 lt_prog_compiler_pic='-PIC'
12160 lt_prog_compiler_static='-Bstatic'
12162 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12163 # Portland Group compilers (*not* the Pentium gcc compiler,
12164 # which looks to be a dead project)
12165 lt_prog_compiler_wl='-Wl,'
12166 lt_prog_compiler_pic='-fpic'
12167 lt_prog_compiler_static='-Bstatic'
12170 lt_prog_compiler_wl='-Wl,'
12171 # All Alpha code is PIC.
12172 lt_prog_compiler_static='-non_shared'
12174 xl* | bgxl* | bgf* | mpixl*)
12175 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12176 lt_prog_compiler_wl='-Wl,'
12177 lt_prog_compiler_pic='-qpic'
12178 lt_prog_compiler_static='-qstaticlink'
12181 case `$CC -V 2>&1 | sed 5q` in
12182 *Sun\ F* | *Sun*Fortran*)
12183 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12184 lt_prog_compiler_pic='-KPIC'
12185 lt_prog_compiler_static='-Bstatic'
12186 lt_prog_compiler_wl=''
12190 lt_prog_compiler_pic='-KPIC'
12191 lt_prog_compiler_static='-Bstatic'
12192 lt_prog_compiler_wl='-Wl,'
12200 lt_prog_compiler_pic='-KPIC'
12201 lt_prog_compiler_static='-Bstatic'
12205 # QNX uses GNU C++, but need to define -shared option too, otherwise
12206 # it will coredump.
12207 lt_prog_compiler_pic='-fPIC -shared'
12210 osf3* | osf4* | osf5*)
12211 lt_prog_compiler_wl='-Wl,'
12212 # All OSF/1 code is PIC.
12213 lt_prog_compiler_static='-non_shared'
12217 lt_prog_compiler_static='-non_shared'
12221 lt_prog_compiler_pic='-KPIC'
12222 lt_prog_compiler_static='-Bstatic'
12223 case $cc_basename in
12224 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12225 lt_prog_compiler_wl='-Qoption ld ';;
12227 lt_prog_compiler_wl='-Wl,';;
12232 lt_prog_compiler_wl='-Qoption ld '
12233 lt_prog_compiler_pic='-PIC'
12234 lt_prog_compiler_static='-Bstatic'
12237 sysv4 | sysv4.2uw2* | sysv4.3*)
12238 lt_prog_compiler_wl='-Wl,'
12239 lt_prog_compiler_pic='-KPIC'
12240 lt_prog_compiler_static='-Bstatic'
12244 if test -d /usr/nec ;then
12245 lt_prog_compiler_pic='-Kconform_pic'
12246 lt_prog_compiler_static='-Bstatic'
12250 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12251 lt_prog_compiler_wl='-Wl,'
12252 lt_prog_compiler_pic='-KPIC'
12253 lt_prog_compiler_static='-Bstatic'
12257 lt_prog_compiler_wl='-Wl,'
12258 lt_prog_compiler_can_build_shared=no
12262 lt_prog_compiler_pic='-pic'
12263 lt_prog_compiler_static='-Bstatic'
12267 lt_prog_compiler_can_build_shared=no
12273 # For platforms which do not support PIC, -DPIC is meaningless:
12275 lt_prog_compiler_pic=
12278 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12283 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12284 if ${lt_cv_prog_compiler_pic+:} false; then :
12285 $as_echo_n "(cached) " >&6
12287 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12290 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12291 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12294 # Check to make sure the PIC flag actually works.
12296 if test -n "$lt_prog_compiler_pic"; then
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12298 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12299 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12300 $as_echo_n "(cached) " >&6
12302 lt_cv_prog_compiler_pic_works=no
12303 ac_outfile=conftest.$ac_objext
12304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12305 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12306 # Insert the option either (1) after the last *FLAGS variable, or
12307 # (2) before a word containing "conftest.", or (3) at the end.
12308 # Note that $ac_compile itself does not contain backslashes and begins
12309 # with a dollar sign (not a hyphen), so the echo should work correctly.
12310 # The option is referenced via a variable to avoid confusing sed.
12311 lt_compile=`echo "$ac_compile" | $SED \
12312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12314 -e 's:$: $lt_compiler_flag:'`
12315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12316 (eval "$lt_compile" 2>conftest.err)
12318 cat conftest.err >&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 if (exit $ac_status) && test -s "$ac_outfile"; then
12321 # The compiler can only warn and ignore the option if not recognized
12322 # So say no if there are warnings other than the usual output.
12323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12326 lt_cv_prog_compiler_pic_works=yes
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12333 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12335 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12336 case $lt_prog_compiler_pic in
12338 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12341 lt_prog_compiler_pic=
12342 lt_prog_compiler_can_build_shared=no
12358 # Check to make sure the static flag actually works.
12360 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12362 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12363 if ${lt_cv_prog_compiler_static_works+:} false; then :
12364 $as_echo_n "(cached) " >&6
12366 lt_cv_prog_compiler_static_works=no
12367 save_LDFLAGS="$LDFLAGS"
12368 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12369 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12370 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12371 # The linker can only warn and ignore the option if not recognized
12372 # So say no if there are warnings
12373 if test -s conftest.err; then
12374 # Append any errors to the config.log.
12375 cat conftest.err 1>&5
12376 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12378 if diff conftest.exp conftest.er2 >/dev/null; then
12379 lt_cv_prog_compiler_static_works=yes
12382 lt_cv_prog_compiler_static_works=yes
12386 LDFLAGS="$save_LDFLAGS"
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12390 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12392 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12395 lt_prog_compiler_static=
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12405 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12406 if ${lt_cv_prog_compiler_c_o+:} false; then :
12407 $as_echo_n "(cached) " >&6
12409 lt_cv_prog_compiler_c_o=no
12410 $RM -r conftest 2>/dev/null
12414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12416 lt_compiler_flag="-o out/conftest2.$ac_objext"
12417 # Insert the option either (1) after the last *FLAGS variable, or
12418 # (2) before a word containing "conftest.", or (3) at the end.
12419 # Note that $ac_compile itself does not contain backslashes and begins
12420 # with a dollar sign (not a hyphen), so the echo should work correctly.
12421 lt_compile=`echo "$ac_compile" | $SED \
12422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12424 -e 's:$: $lt_compiler_flag:'`
12425 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12426 (eval "$lt_compile" 2>out/conftest.err)
12428 cat out/conftest.err >&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12432 # The compiler can only warn and ignore the option if not recognized
12433 # So say no if there are warnings
12434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12435 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12436 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12437 lt_cv_prog_compiler_c_o=yes
12442 # SGI C++ compiler will create directory out/ii_files/ for
12443 # template instantiation
12444 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12445 $RM out/* && rmdir out
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12452 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12460 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12461 if ${lt_cv_prog_compiler_c_o+:} false; then :
12462 $as_echo_n "(cached) " >&6
12464 lt_cv_prog_compiler_c_o=no
12465 $RM -r conftest 2>/dev/null
12469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12471 lt_compiler_flag="-o out/conftest2.$ac_objext"
12472 # Insert the option either (1) after the last *FLAGS variable, or
12473 # (2) before a word containing "conftest.", or (3) at the end.
12474 # Note that $ac_compile itself does not contain backslashes and begins
12475 # with a dollar sign (not a hyphen), so the echo should work correctly.
12476 lt_compile=`echo "$ac_compile" | $SED \
12477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12479 -e 's:$: $lt_compiler_flag:'`
12480 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12481 (eval "$lt_compile" 2>out/conftest.err)
12483 cat out/conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12487 # The compiler can only warn and ignore the option if not recognized
12488 # So say no if there are warnings
12489 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12490 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12491 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12492 lt_cv_prog_compiler_c_o=yes
12497 # SGI C++ compiler will create directory out/ii_files/ for
12498 # template instantiation
12499 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12500 $RM out/* && rmdir out
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12507 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12512 hard_links="nottested"
12513 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12514 # do not overwrite the value of need_locks provided by the user
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12516 $as_echo_n "checking if we can lock with hard links... " >&6; }
12519 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12521 ln conftest.a conftest.b 2>&5 || hard_links=no
12522 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12524 $as_echo "$hard_links" >&6; }
12525 if test "$hard_links" = no; then
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12527 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12540 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12543 allow_undefined_flag=
12544 always_export_symbols=no
12546 archive_expsym_cmds=
12547 compiler_needs_object=no
12548 enable_shared_with_static_runtimes=no
12549 export_dynamic_flag_spec=
12550 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12551 hardcode_automatic=no
12553 hardcode_direct_absolute=no
12554 hardcode_libdir_flag_spec=
12555 hardcode_libdir_flag_spec_ld=
12556 hardcode_libdir_separator=
12557 hardcode_minus_L=no
12558 hardcode_shlibpath_var=unsupported
12560 link_all_deplibs=unknown
12562 module_expsym_cmds=
12563 old_archive_from_new_cmds=
12564 old_archive_from_expsyms_cmds=
12565 thread_safe_flag_spec=
12566 whole_archive_flag_spec=
12567 # include_expsyms should be a list of space-separated symbols to be *always*
12568 # included in the symbol list
12570 # exclude_expsyms can be an extended regexp of symbols to exclude
12571 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12572 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12573 # as well as any symbol that contains `d'.
12574 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12575 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12576 # platforms (ab)use it in PIC code, but their linkers get confused if
12577 # the symbol is explicitly referenced. Since portable code cannot
12578 # rely on this symbol name, it's probably fine to never include it in
12579 # preloaded symbol tables.
12580 # Exclude shared library initialization/finalization symbols.
12581 extract_expsyms_cmds=
12584 cygwin* | mingw* | pw32* | cegcc*)
12585 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12586 # When not using gcc, we currently assume that we are using
12587 # Microsoft Visual C++.
12588 if test "$GCC" != yes; then
12593 # we just hope/assume this is gcc and not c89 (= MSVC++)
12603 # On some targets, GNU ld is compatible enough with the native linker
12604 # that we're better off using the native interface for both.
12605 lt_use_gnu_ld_interface=no
12606 if test "$with_gnu_ld" = yes; then
12609 # The AIX port of GNU ld has always aspired to compatibility
12610 # with the native linker. However, as the warning in the GNU ld
12611 # block says, versions before 2.19.5* couldn't really create working
12612 # shared libraries, regardless of the interface used.
12613 case `$LD -v 2>&1` in
12614 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12615 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12616 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12618 lt_use_gnu_ld_interface=yes
12623 lt_use_gnu_ld_interface=yes
12628 if test "$lt_use_gnu_ld_interface" = yes; then
12629 # If archive_cmds runs LD, not CC, wlarc should be empty
12632 # Set some defaults for GNU ld with shared library support. These
12633 # are reset later if shared libraries are not supported. Putting them
12634 # here allows them to be overridden if necessary.
12635 runpath_var=LD_RUN_PATH
12636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12637 export_dynamic_flag_spec='${wl}--export-dynamic'
12638 # ancient GNU ld didn't support --whole-archive et. al.
12639 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12640 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12642 whole_archive_flag_spec=
12644 supports_anon_versioning=no
12645 case `$LD -v 2>&1` in
12646 *GNU\ gold*) supports_anon_versioning=yes ;;
12647 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12648 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12649 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12650 *\ 2.11.*) ;; # other 2.11 versions
12651 *) supports_anon_versioning=yes ;;
12654 # See if GNU ld supports shared libraries.
12657 # On AIX/PPC, the GNU linker is very broken
12658 if test "$host_cpu" != ia64; then
12662 *** Warning: the GNU linker, at least up to release 2.19, is reported
12663 *** to be unable to reliably create shared libraries on AIX.
12664 *** Therefore, libtool is disabling shared libraries support. If you
12665 *** really care for shared libraries, you may want to install binutils
12666 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12667 *** You will then need to restart the configuration process.
12676 # see comment about AmigaOS4 .so support
12677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12678 archive_expsym_cmds=''
12681 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)'
12682 hardcode_libdir_flag_spec='-L$libdir'
12683 hardcode_minus_L=yes
12689 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12690 allow_undefined_flag=unsupported
12691 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12692 # support --undefined. This deserves some investigation. FIXME
12693 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12699 cygwin* | mingw* | pw32* | cegcc*)
12700 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12701 # as there is no search path for DLLs.
12702 hardcode_libdir_flag_spec='-L$libdir'
12703 export_dynamic_flag_spec='${wl}--export-all-symbols'
12704 allow_undefined_flag=unsupported
12705 always_export_symbols=no
12706 enable_shared_with_static_runtimes=yes
12707 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'
12708 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12710 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12712 # If the export-symbols file already is a .def file (1st line
12713 # is EXPORTS), use it as is; otherwise, prepend...
12714 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12715 cp $export_symbols $output_objdir/$soname.def;
12717 echo EXPORTS > $output_objdir/$soname.def;
12718 cat $export_symbols >> $output_objdir/$soname.def;
12720 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12728 link_all_deplibs=yes
12733 hardcode_shlibpath_var=no
12734 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12735 export_dynamic_flag_spec='${wl}-E'
12736 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12737 # Instead, shared libraries are loaded at an image base (0x10000000 by
12738 # default) and relocated if they conflict, which is a slow very memory
12739 # consuming and fragmenting process. To avoid this, we pick a random,
12740 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12741 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12742 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12743 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'
12746 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12748 if test "$host_os" = linux-dietlibc; then
12749 case $cc_basename in
12750 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12753 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12754 && test "$tmp_diet" = no
12756 tmp_addflag=' $pic_flag'
12757 tmp_sharedflag='-shared'
12758 case $cc_basename,$host_cpu in
12759 pgcc*) # Portland Group C compiler
12760 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'
12761 tmp_addflag=' $pic_flag'
12763 pgf77* | pgf90* | pgf95* | pgfortran*)
12764 # Portland Group f77 and f90 compilers
12765 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'
12766 tmp_addflag=' $pic_flag -Mnomain' ;;
12767 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12768 tmp_addflag=' -i_dynamic' ;;
12769 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12770 tmp_addflag=' -i_dynamic -nofor_main' ;;
12771 ifc* | ifort*) # Intel Fortran compiler
12772 tmp_addflag=' -nofor_main' ;;
12773 lf95*) # Lahey Fortran 8.1
12774 whole_archive_flag_spec=
12775 tmp_sharedflag='--shared' ;;
12776 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12777 tmp_sharedflag='-qmkshrobj'
12779 nvcc*) # Cuda Compiler Driver 2.2
12780 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'
12781 compiler_needs_object=yes
12784 case `$CC -V 2>&1 | sed 5q` in
12785 *Sun\ C*) # Sun C 5.9
12786 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'
12787 compiler_needs_object=yes
12788 tmp_sharedflag='-G' ;;
12789 *Sun\ F*) # Sun Fortran 8.3
12790 tmp_sharedflag='-G' ;;
12792 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12794 if test "x$supports_anon_versioning" = xyes; then
12795 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12796 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12797 echo "local: *; };" >> $output_objdir/$libname.ver~
12798 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12801 case $cc_basename in
12802 xlf* | bgf* | bgxlf* | mpixlf*)
12803 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12804 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12805 hardcode_libdir_flag_spec=
12806 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12807 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12808 if test "x$supports_anon_versioning" = xyes; then
12809 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12810 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12811 echo "local: *; };" >> $output_objdir/$libname.ver~
12812 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12823 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12826 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12827 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12832 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12836 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12837 *** create shared libraries on Solaris systems. Therefore, libtool
12838 *** is disabling shared libraries support. We urge you to upgrade GNU
12839 *** binutils to release 2.9.1 or newer. Another option is to modify
12840 *** your PATH or compiler configuration so that the native linker is
12841 *** used, and then restart.
12844 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12845 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12846 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12852 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12853 case `$LD -v 2>&1` in
12854 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12858 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12859 *** reliably create shared libraries on SCO systems. Therefore, libtool
12860 *** is disabling shared libraries support. We urge you to upgrade GNU
12861 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12862 *** your PATH or compiler configuration so that the native linker is
12863 *** used, and then restart.
12868 # For security reasons, it is highly recommended that you always
12869 # use absolute paths for naming shared libraries, and exclude the
12870 # DT_RUNPATH tag from executables and libraries. But doing so
12871 # requires that you compile everything twice, which is a pain.
12872 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12875 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12884 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12886 hardcode_direct=yes
12887 hardcode_shlibpath_var=no
12891 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12892 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12893 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12900 if test "$ld_shlibs" = no; then
12902 hardcode_libdir_flag_spec=
12903 export_dynamic_flag_spec=
12904 whole_archive_flag_spec=
12907 # PORTME fill in a description of your system's linker (not GNU ld)
12910 allow_undefined_flag=unsupported
12911 always_export_symbols=yes
12912 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'
12913 # Note: this linker hardcodes the directories in LIBPATH if there
12914 # are no directories specified by -L.
12915 hardcode_minus_L=yes
12916 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12917 # Neither direct hardcoding nor static linking is supported with a
12919 hardcode_direct=unsupported
12924 if test "$host_cpu" = ia64; then
12925 # On IA64, the linker does run time linking by default, so we don't
12926 # have to do anything special.
12927 aix_use_runtimelinking=no
12928 exp_sym_flag='-Bexport'
12931 # If we're using GNU nm, then we don't want the "-C" option.
12932 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12933 # Also, AIX nm treats weak defined symbols like other global
12934 # defined symbols, whereas GNU nm marks them as "W".
12935 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12936 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12938 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12940 aix_use_runtimelinking=no
12942 # Test if we are trying to use run time linking or normal
12943 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12944 # need to do runtime linking.
12945 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12946 for ld_flag in $LDFLAGS; do
12947 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12948 aix_use_runtimelinking=yes
12955 exp_sym_flag='-bexport'
12956 no_entry_flag='-bnoentry'
12959 # When large executables or shared objects are built, AIX ld can
12960 # have problems creating the table of contents. If linking a library
12961 # or program results in "error TOC overflow" add -mminimal-toc to
12962 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12963 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12966 hardcode_direct=yes
12967 hardcode_direct_absolute=yes
12968 hardcode_libdir_separator=':'
12969 link_all_deplibs=yes
12970 file_list_spec='${wl}-f,'
12972 if test "$GCC" = yes; then
12973 case $host_os in aix4.[012]|aix4.[012].*)
12974 # We only want to do this on AIX 4.2 and lower, the check
12975 # below for broken collect2 doesn't work under 4.3+
12976 collect2name=`${CC} -print-prog-name=collect2`
12977 if test -f "$collect2name" &&
12978 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12980 # We have reworked collect2
12983 # We have old collect2
12984 hardcode_direct=unsupported
12985 # It fails to find uninstalled libraries when the uninstalled
12986 # path is not listed in the libpath. Setting hardcode_minus_L
12987 # to unsupported forces relinking
12988 hardcode_minus_L=yes
12989 hardcode_libdir_flag_spec='-L$libdir'
12990 hardcode_libdir_separator=
12994 shared_flag='-shared'
12995 if test "$aix_use_runtimelinking" = yes; then
12996 shared_flag="$shared_flag "'${wl}-G'
13000 if test "$host_cpu" = ia64; then
13001 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13002 # chokes on -Wl,-G. The following line is correct:
13005 if test "$aix_use_runtimelinking" = yes; then
13006 shared_flag='${wl}-G'
13008 shared_flag='${wl}-bM:SRE'
13013 export_dynamic_flag_spec='${wl}-bexpall'
13014 # It seems that -bexpall does not export symbols beginning with
13015 # underscore (_), so it is better to generate a list of symbols to export.
13016 always_export_symbols=yes
13017 if test "$aix_use_runtimelinking" = yes; then
13018 # Warning - without using the other runtime loading flags (-brtl),
13019 # -berok will link without error, but may produce a broken library.
13020 allow_undefined_flag='-berok'
13021 # Determine the default libpath from the value encoded in an
13022 # empty executable.
13023 if test "${lt_cv_aix_libpath+set}" = set; then
13024 aix_libpath=$lt_cv_aix_libpath
13026 if ${lt_cv_aix_libpath_+:} false; then :
13027 $as_echo_n "(cached) " >&6
13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h. */
13040 if ac_fn_c_try_link "$LINENO"; then :
13042 lt_aix_libpath_sed='
13043 /Import File Strings/,/^$/ {
13045 s/^0 *\([^ ]*\) *$/\1/
13049 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13050 # Check for a 64-bit object if we didn't find anything.
13051 if test -z "$lt_cv_aix_libpath_"; then
13052 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13055 rm -f core conftest.err conftest.$ac_objext \
13056 conftest$ac_exeext conftest.$ac_ext
13057 if test -z "$lt_cv_aix_libpath_"; then
13058 lt_cv_aix_libpath_="/usr/lib:/lib"
13063 aix_libpath=$lt_cv_aix_libpath_
13066 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13067 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13069 if test "$host_cpu" = ia64; then
13070 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13071 allow_undefined_flag="-z nodefs"
13072 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"
13074 # Determine the default libpath from the value encoded in an
13075 # empty executable.
13076 if test "${lt_cv_aix_libpath+set}" = set; then
13077 aix_libpath=$lt_cv_aix_libpath
13079 if ${lt_cv_aix_libpath_+:} false; then :
13080 $as_echo_n "(cached) " >&6
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h. */
13093 if ac_fn_c_try_link "$LINENO"; then :
13095 lt_aix_libpath_sed='
13096 /Import File Strings/,/^$/ {
13098 s/^0 *\([^ ]*\) *$/\1/
13102 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13103 # Check for a 64-bit object if we didn't find anything.
13104 if test -z "$lt_cv_aix_libpath_"; then
13105 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13108 rm -f core conftest.err conftest.$ac_objext \
13109 conftest$ac_exeext conftest.$ac_ext
13110 if test -z "$lt_cv_aix_libpath_"; then
13111 lt_cv_aix_libpath_="/usr/lib:/lib"
13116 aix_libpath=$lt_cv_aix_libpath_
13119 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13120 # Warning - without using the other run time loading flags,
13121 # -berok will link without error, but may produce a broken library.
13122 no_undefined_flag=' ${wl}-bernotok'
13123 allow_undefined_flag=' ${wl}-berok'
13124 if test "$with_gnu_ld" = yes; then
13125 # We only use this code for GNU lds that support --whole-archive.
13126 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13128 # Exported symbols can be pulled into shared objects from archives
13129 whole_archive_flag_spec='$convenience'
13131 archive_cmds_need_lc=yes
13132 # This is similar to how AIX traditionally builds its shared libraries.
13133 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13141 # see comment about AmigaOS4 .so support
13142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13143 archive_expsym_cmds=''
13146 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)'
13147 hardcode_libdir_flag_spec='-L$libdir'
13148 hardcode_minus_L=yes
13154 export_dynamic_flag_spec=-rdynamic
13157 cygwin* | mingw* | pw32* | cegcc*)
13158 # When not using gcc, we currently assume that we are using
13159 # Microsoft Visual C++.
13160 # hardcode_libdir_flag_spec is actually meaningless, as there is
13161 # no search path for DLLs.
13162 case $cc_basename in
13165 hardcode_libdir_flag_spec=' '
13166 allow_undefined_flag=unsupported
13167 always_export_symbols=yes
13169 # Tell ltmain to make .lib files, not .a files.
13171 # Tell ltmain to make .dll files, not .so files.
13173 # FIXME: Setting linknames here is a bad hack.
13174 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13175 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13176 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13178 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13180 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13182 # The linker will not automatically build a static lib if we build a DLL.
13183 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13184 enable_shared_with_static_runtimes=yes
13185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13187 old_postinstall_cmds='chmod 644 $oldlib'
13188 postlink_cmds='lt_outputfile="@OUTPUT@"~
13189 lt_tool_outputfile="@TOOL_OUTPUT@"~
13190 case $lt_outputfile in
13193 lt_outputfile="$lt_outputfile.exe"
13194 lt_tool_outputfile="$lt_tool_outputfile.exe"
13197 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13198 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13199 $RM "$lt_outputfile.manifest";
13203 # Assume MSVC wrapper
13204 hardcode_libdir_flag_spec=' '
13205 allow_undefined_flag=unsupported
13206 # Tell ltmain to make .lib files, not .a files.
13208 # Tell ltmain to make .dll files, not .so files.
13210 # FIXME: Setting linknames here is a bad hack.
13211 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13212 # The linker will automatically build a .lib file if we build a DLL.
13213 old_archive_from_new_cmds='true'
13214 # FIXME: Should let the user specify the lib program.
13215 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13216 enable_shared_with_static_runtimes=yes
13221 darwin* | rhapsody*)
13224 archive_cmds_need_lc=no
13226 hardcode_automatic=yes
13227 hardcode_shlibpath_var=unsupported
13228 if test "$lt_cv_ld_force_load" = "yes"; then
13229 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\"`'
13231 whole_archive_flag_spec=''
13233 link_all_deplibs=yes
13234 allow_undefined_flag="$_lt_dar_allow_undefined"
13235 case $cc_basename in
13236 ifort*) _lt_dar_can_shared=yes ;;
13237 *) _lt_dar_can_shared=$GCC ;;
13239 if test "$_lt_dar_can_shared" = "yes"; then
13240 output_verbose_link_cmd=func_echo_all
13241 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13242 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13243 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}"
13244 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}"
13253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13254 hardcode_libdir_flag_spec='-L$libdir'
13255 hardcode_shlibpath_var=no
13262 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13263 # support. Future versions do this automatically, but an explicit c++rt0.o
13264 # does not break anything, and helps significantly (at the cost of a little
13267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13268 hardcode_libdir_flag_spec='-R$libdir'
13269 hardcode_direct=yes
13270 hardcode_shlibpath_var=no
13273 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13276 hardcode_direct=yes
13277 hardcode_minus_L=yes
13278 hardcode_shlibpath_var=no
13281 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13282 freebsd* | dragonfly*)
13283 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13284 hardcode_libdir_flag_spec='-R$libdir'
13285 hardcode_direct=yes
13286 hardcode_shlibpath_var=no
13290 if test "$GCC" = yes; then
13291 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13293 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13295 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13296 hardcode_libdir_separator=:
13297 hardcode_direct=yes
13299 # hardcode_minus_L: Not really in the search PATH,
13300 # but as the default location of the library.
13301 hardcode_minus_L=yes
13302 export_dynamic_flag_spec='${wl}-E'
13306 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13307 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13309 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13311 if test "$with_gnu_ld" = no; then
13312 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13313 hardcode_libdir_flag_spec_ld='+b $libdir'
13314 hardcode_libdir_separator=:
13315 hardcode_direct=yes
13316 hardcode_direct_absolute=yes
13317 export_dynamic_flag_spec='${wl}-E'
13318 # hardcode_minus_L: Not really in the search PATH,
13319 # but as the default location of the library.
13320 hardcode_minus_L=yes
13325 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13328 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13331 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13334 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13340 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13343 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13347 # Older versions of the 11.00 compiler do not understand -b yet
13348 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13350 $as_echo_n "checking if $CC understands -b... " >&6; }
13351 if ${lt_cv_prog_compiler__b+:} false; then :
13352 $as_echo_n "(cached) " >&6
13354 lt_cv_prog_compiler__b=no
13355 save_LDFLAGS="$LDFLAGS"
13356 LDFLAGS="$LDFLAGS -b"
13357 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13358 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13359 # The linker can only warn and ignore the option if not recognized
13360 # So say no if there are warnings
13361 if test -s conftest.err; then
13362 # Append any errors to the config.log.
13363 cat conftest.err 1>&5
13364 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13366 if diff conftest.exp conftest.er2 >/dev/null; then
13367 lt_cv_prog_compiler__b=yes
13370 lt_cv_prog_compiler__b=yes
13374 LDFLAGS="$save_LDFLAGS"
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13378 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13380 if test x"$lt_cv_prog_compiler__b" = xyes; then
13381 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13383 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13389 if test "$with_gnu_ld" = no; then
13390 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13391 hardcode_libdir_separator=:
13396 hardcode_shlibpath_var=no
13399 hardcode_direct=yes
13400 hardcode_direct_absolute=yes
13401 export_dynamic_flag_spec='${wl}-E'
13403 # hardcode_minus_L: Not really in the search PATH,
13404 # but as the default location of the library.
13405 hardcode_minus_L=yes
13411 irix5* | irix6* | nonstopux*)
13412 if test "$GCC" = yes; then
13413 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'
13414 # Try to use the -exported_symbol ld option, if it does not
13415 # work, assume that -exports_file does not work either and
13416 # implicitly export all symbols.
13417 # This should be the same for all languages, so no per-tag cache variable.
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13419 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13420 if ${lt_cv_irix_exported_symbol+:} false; then :
13421 $as_echo_n "(cached) " >&6
13423 save_LDFLAGS="$LDFLAGS"
13424 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426 /* end confdefs.h. */
13427 int foo (void) { return 0; }
13429 if ac_fn_c_try_link "$LINENO"; then :
13430 lt_cv_irix_exported_symbol=yes
13432 lt_cv_irix_exported_symbol=no
13434 rm -f core conftest.err conftest.$ac_objext \
13435 conftest$ac_exeext conftest.$ac_ext
13436 LDFLAGS="$save_LDFLAGS"
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13439 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13440 if test "$lt_cv_irix_exported_symbol" = yes; then
13441 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'
13444 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'
13445 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'
13447 archive_cmds_need_lc='no'
13448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13449 hardcode_libdir_separator=:
13451 link_all_deplibs=yes
13455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13458 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13460 hardcode_libdir_flag_spec='-R$libdir'
13461 hardcode_direct=yes
13462 hardcode_shlibpath_var=no
13466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13467 hardcode_direct=yes
13468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13469 hardcode_libdir_separator=:
13470 hardcode_shlibpath_var=no
13477 if test -f /usr/libexec/ld.so; then
13478 hardcode_direct=yes
13479 hardcode_shlibpath_var=no
13480 hardcode_direct_absolute=yes
13481 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13482 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13483 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13484 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13485 export_dynamic_flag_spec='${wl}-E'
13488 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13489 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13490 hardcode_libdir_flag_spec='-R$libdir'
13493 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13494 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13504 hardcode_libdir_flag_spec='-L$libdir'
13505 hardcode_minus_L=yes
13506 allow_undefined_flag=unsupported
13507 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13508 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13512 if test "$GCC" = yes; then
13513 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13514 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'
13516 allow_undefined_flag=' -expect_unresolved \*'
13517 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'
13519 archive_cmds_need_lc='no'
13520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13521 hardcode_libdir_separator=:
13524 osf4* | osf5*) # as osf3* with the addition of -msym flag
13525 if test "$GCC" = yes; then
13526 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13527 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'
13528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13530 allow_undefined_flag=' -expect_unresolved \*'
13531 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'
13532 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~
13533 $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'
13535 # Both c and cxx compiler support -rpath directly
13536 hardcode_libdir_flag_spec='-rpath $libdir'
13538 archive_cmds_need_lc='no'
13539 hardcode_libdir_separator=:
13543 no_undefined_flag=' -z defs'
13544 if test "$GCC" = yes; then
13546 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13547 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13548 $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'
13550 case `$CC -V 2>&1` in
13553 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13554 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13555 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13559 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13560 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13561 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13565 hardcode_libdir_flag_spec='-R$libdir'
13566 hardcode_shlibpath_var=no
13568 solaris2.[0-5] | solaris2.[0-5].*) ;;
13570 # The compiler driver will combine and reorder linker options,
13571 # but understands `-z linker_flag'. GCC discards it without `$wl',
13572 # but is careful enough not to reorder.
13573 # Supported since Solaris 2.6 (maybe 2.5.1?)
13574 if test "$GCC" = yes; then
13575 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13577 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13581 link_all_deplibs=yes
13585 if test "x$host_vendor" = xsequent; then
13586 # Use $CC to link under sequent, because it throws in some extra .o
13587 # files that make .init and .fini sections work.
13588 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13590 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13592 hardcode_libdir_flag_spec='-L$libdir'
13593 hardcode_direct=yes
13594 hardcode_minus_L=yes
13595 hardcode_shlibpath_var=no
13599 case $host_vendor in
13601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13602 hardcode_direct=yes # is this really true???
13605 ## LD is ld it makes a PLAMLIB
13606 ## CC just makes a GrossModule.
13607 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13608 reload_cmds='$CC -r -o $output$reload_objs'
13612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13613 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13616 runpath_var='LD_RUN_PATH'
13617 hardcode_shlibpath_var=no
13621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13622 hardcode_shlibpath_var=no
13623 export_dynamic_flag_spec='-Bexport'
13627 if test -d /usr/nec; then
13628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13629 hardcode_shlibpath_var=no
13630 runpath_var=LD_RUN_PATH
13631 hardcode_runpath_var=yes
13636 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13637 no_undefined_flag='${wl}-z,text'
13638 archive_cmds_need_lc=no
13639 hardcode_shlibpath_var=no
13640 runpath_var='LD_RUN_PATH'
13642 if test "$GCC" = yes; then
13643 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13644 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13646 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13651 sysv5* | sco3.2v5* | sco5v6*)
13652 # Note: We can NOT use -z defs as we might desire, because we do not
13653 # link with -lc, and that would cause any symbols used from libc to
13654 # always be unresolved, which means just about no library would
13655 # ever link correctly. If we're not using GNU ld we use -z text
13656 # though, which does catch some bad symbols but isn't as heavy-handed
13658 no_undefined_flag='${wl}-z,text'
13659 allow_undefined_flag='${wl}-z,nodefs'
13660 archive_cmds_need_lc=no
13661 hardcode_shlibpath_var=no
13662 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13663 hardcode_libdir_separator=':'
13664 link_all_deplibs=yes
13665 export_dynamic_flag_spec='${wl}-Bexport'
13666 runpath_var='LD_RUN_PATH'
13668 if test "$GCC" = yes; then
13669 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13670 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13672 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13679 hardcode_libdir_flag_spec='-L$libdir'
13680 hardcode_shlibpath_var=no
13688 if test x$host_vendor = xsni; then
13690 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13691 export_dynamic_flag_spec='${wl}-Blargedynsym'
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13698 $as_echo "$ld_shlibs" >&6; }
13699 test "$ld_shlibs" = no && can_build_shared=no
13701 with_gnu_ld=$with_gnu_ld
13718 # Do we need to explicitly link libc?
13720 case "x$archive_cmds_need_lc" in
13722 # Assume -lc should be added
13723 archive_cmds_need_lc=yes
13725 if test "$enable_shared" = yes && test "$GCC" = yes; then
13726 case $archive_cmds in
13728 # FIXME: we may have to deal with multi-command sequences.
13731 # Test whether the compiler implicitly links with -lc since on some
13732 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13733 # to ld, don't add -lc before -lgcc.
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13735 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13736 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13737 $as_echo_n "(cached) " >&6
13740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13743 (eval $ac_compile) 2>&5
13745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13746 test $ac_status = 0; } 2>conftest.err; then
13749 libobjs=conftest.$ac_objext
13751 wl=$lt_prog_compiler_wl
13752 pic_flag=$lt_prog_compiler_pic
13758 lt_save_allow_undefined_flag=$allow_undefined_flag
13759 allow_undefined_flag=
13760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13761 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13764 test $ac_status = 0; }
13766 lt_cv_archive_cmds_need_lc=no
13768 lt_cv_archive_cmds_need_lc=yes
13770 allow_undefined_flag=$lt_save_allow_undefined_flag
13772 cat conftest.err 1>&5
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13778 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13779 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13943 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13945 if test "$GCC" = yes; then
13947 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13948 *) lt_awk_arg="/^libraries:/" ;;
13951 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13952 *) lt_sed_strip_eq="s,=/,/,g" ;;
13954 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13955 case $lt_search_path_spec in
13957 # if the path contains ";" then we assume it to be the separator
13958 # otherwise default to the standard path separator (i.e. ":") - it is
13959 # assumed that no part of a normal pathname contains ";" but that should
13960 # okay in the real world where ";" in dirpaths is itself problematic.
13961 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13964 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13967 # Ok, now we have the path, separated by spaces, we can step through it
13968 # and add multilib dir if necessary.
13969 lt_tmp_lt_search_path_spec=
13970 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13971 for lt_sys_path in $lt_search_path_spec; do
13972 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13973 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13975 test -d "$lt_sys_path" && \
13976 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13979 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13980 BEGIN {RS=" "; FS="/|\n";} {
13983 for (lt_i = NF; lt_i > 0; lt_i--) {
13984 if ($lt_i != "" && $lt_i != ".") {
13985 if ($lt_i == "..") {
13988 if (lt_count == 0) {
13989 lt_foo="/" $lt_i lt_foo;
13996 if (lt_foo != "") { lt_freq[lt_foo]++; }
13997 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13999 # AWK program above erroneously prepends '/' to C:/dos/paths
14002 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14003 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14005 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14007 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14009 library_names_spec=
14010 libname_spec='lib$name'
14014 postuninstall_cmds=
14018 shlibpath_overrides_runpath=unknown
14020 dynamic_linker="$host_os ld.so"
14021 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14022 need_lib_prefix=unknown
14023 hardcode_into_libs=no
14025 # when you set need_version to no, make sure it does not cause -set_version
14026 # flags to be left without arguments
14027 need_version=unknown
14032 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14033 shlibpath_var=LIBPATH
14035 # AIX 3 has no versioning support, so we append a major version to the name.
14036 soname_spec='${libname}${release}${shared_ext}$major'
14043 hardcode_into_libs=yes
14044 if test "$host_cpu" = ia64; then
14045 # AIX 5 supports IA64
14046 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14047 shlibpath_var=LD_LIBRARY_PATH
14049 # With GCC up to 2.95.x, collect2 would create an import file
14050 # for dependence libraries. The import file would start with
14051 # the line `#! .'. This would cause the generated library to
14052 # depend on `.', always an invalid library. This was fixed in
14053 # development snapshots of GCC prior to 3.0.
14055 aix4 | aix4.[01] | aix4.[01].*)
14056 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14058 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14061 can_build_shared=no
14065 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14066 # soname into executable. Probably we can add versioning support to
14067 # collect2, so additional links can be useful in future.
14068 if test "$aix_use_runtimelinking" = yes; then
14069 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14070 # instead of lib<name>.a to let people know that these are not
14071 # typical AIX shared libraries.
14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14074 # We preserve .a as extension for shared libraries through AIX4.2
14075 # and later when we are not doing run time linking.
14076 library_names_spec='${libname}${release}.a $libname.a'
14077 soname_spec='${libname}${release}${shared_ext}$major'
14079 shlibpath_var=LIBPATH
14086 # Since July 2007 AmigaOS4 officially supports .so libraries.
14087 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14091 library_names_spec='$libname.ixlibrary $libname.a'
14092 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14093 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14099 library_names_spec='${libname}${shared_ext}'
14100 dynamic_linker="$host_os ld.so"
14101 shlibpath_var=LIBRARY_PATH
14107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14108 soname_spec='${libname}${release}${shared_ext}$major'
14109 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14110 shlibpath_var=LD_LIBRARY_PATH
14111 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14112 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14113 # the default ld.so.conf also contains /usr/contrib/lib and
14114 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14115 # libtool to hard-code these into programs
14118 cygwin* | mingw* | pw32* | cegcc*)
14119 version_type=windows
14124 case $GCC,$cc_basename in
14127 library_names_spec='$libname.dll.a'
14128 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14129 postinstall_cmds='base_file=`basename \${file}`~
14130 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14131 dldir=$destdir/`dirname \$dlpath`~
14132 test -d \$dldir || mkdir -p \$dldir~
14133 $install_prog $dir/$dlname \$dldir/$dlname~
14134 chmod a+x \$dldir/$dlname~
14135 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14136 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14138 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14139 dlpath=$dir/\$dldll~
14141 shlibpath_overrides_runpath=yes
14145 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14146 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14148 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14151 # MinGW DLLs use traditional 'lib' prefix
14152 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14155 # pw32 DLLs use 'pw' prefix rather than 'lib'
14156 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14159 dynamic_linker='Win32 ld.exe'
14164 libname_spec='$name'
14165 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14166 library_names_spec='${libname}.dll.lib'
14170 sys_lib_search_path_spec=
14173 for lt_path in $LIB
14176 # Let DOS variable expansion print the short 8.3 style file name.
14177 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14178 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14181 # Convert to MSYS style.
14182 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14185 # Convert to unix form, then to dos form, then back to unix form
14186 # but this time dos style (no spaces!) so that the unix form looks
14187 # like /cygdrive/c/PROGRA~1:/cygdr...
14188 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14189 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14190 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14193 sys_lib_search_path_spec="$LIB"
14194 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14195 # It is most probably a Windows format PATH.
14196 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14198 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14200 # FIXME: find the short name or the path components, as spaces are
14201 # common. (e.g. "Program Files" -> "PROGRA~1")
14205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14206 postinstall_cmds='base_file=`basename \${file}`~
14207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14208 dldir=$destdir/`dirname \$dlpath`~
14209 test -d \$dldir || mkdir -p \$dldir~
14210 $install_prog $dir/$dlname \$dldir/$dlname'
14211 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14212 dlpath=$dir/\$dldll~
14214 shlibpath_overrides_runpath=yes
14215 dynamic_linker='Win32 link.exe'
14219 # Assume MSVC wrapper
14220 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14221 dynamic_linker='Win32 ld.exe'
14224 # FIXME: first we should search . and the directory the executable is in
14228 darwin* | rhapsody*)
14229 dynamic_linker="$host_os dyld"
14230 version_type=darwin
14233 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14234 soname_spec='${libname}${release}${major}$shared_ext'
14235 shlibpath_overrides_runpath=yes
14236 shlibpath_var=DYLD_LIBRARY_PATH
14237 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14239 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14240 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14248 soname_spec='${libname}${release}${shared_ext}$major'
14249 shlibpath_var=LD_LIBRARY_PATH
14256 freebsd* | dragonfly*)
14257 # DragonFly does not have aout. When/if they implement a new
14258 # versioning mechanism, adjust this.
14259 if test -x /usr/bin/objformat; then
14260 objformat=`/usr/bin/objformat`
14263 freebsd[123]*) objformat=aout ;;
14264 *) objformat=elf ;;
14267 version_type=freebsd-$objformat
14268 case $version_type in
14270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14279 shlibpath_var=LD_LIBRARY_PATH
14282 shlibpath_overrides_runpath=yes
14284 freebsd3.[01]* | freebsdelf3.[01]*)
14285 shlibpath_overrides_runpath=yes
14286 hardcode_into_libs=yes
14288 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14289 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14290 shlibpath_overrides_runpath=no
14291 hardcode_into_libs=yes
14293 *) # from 4.6 on, and DragonFly
14294 shlibpath_overrides_runpath=yes
14295 hardcode_into_libs=yes
14304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14305 soname_spec='${libname}${release}${shared_ext}$major'
14306 shlibpath_var=LD_LIBRARY_PATH
14307 hardcode_into_libs=yes
14314 dynamic_linker="$host_os runtime_loader"
14315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14316 soname_spec='${libname}${release}${shared_ext}$major'
14317 shlibpath_var=LIBRARY_PATH
14318 shlibpath_overrides_runpath=yes
14319 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14320 hardcode_into_libs=yes
14323 hpux9* | hpux10* | hpux11*)
14324 # Give a soname corresponding to the major version so that dld.sl refuses to
14325 # link against other versions.
14332 hardcode_into_libs=yes
14333 dynamic_linker="$host_os dld.so"
14334 shlibpath_var=LD_LIBRARY_PATH
14335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14337 soname_spec='${libname}${release}${shared_ext}$major'
14338 if test "X$HPUX_IA64_MODE" = X32; then
14339 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14341 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14347 hardcode_into_libs=yes
14348 dynamic_linker="$host_os dld.sl"
14349 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14352 soname_spec='${libname}${release}${shared_ext}$major'
14353 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14358 dynamic_linker="$host_os dld.sl"
14359 shlibpath_var=SHLIB_PATH
14360 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14362 soname_spec='${libname}${release}${shared_ext}$major'
14365 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14366 postinstall_cmds='chmod 555 $lib'
14367 # or fails outright, so override atomically:
14368 install_override_mode=555
14375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14376 soname_spec='${libname}${release}${shared_ext}$major'
14377 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14378 shlibpath_var=LD_LIBRARY_PATH
14379 shlibpath_overrides_runpath=no
14380 hardcode_into_libs=yes
14383 irix5* | irix6* | nonstopux*)
14385 nonstopux*) version_type=nonstopux ;;
14387 if test "$lt_cv_prog_gnu_ld" = yes; then
14395 soname_spec='${libname}${release}${shared_ext}$major'
14396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14398 irix5* | nonstopux*)
14399 libsuff= shlibsuff=
14402 case $LD in # libtool.m4 will add one of these switches to LD
14403 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14404 libsuff= shlibsuff= libmagic=32-bit;;
14405 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14406 libsuff=32 shlibsuff=N32 libmagic=N32;;
14407 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14408 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14409 *) libsuff= shlibsuff= libmagic=never-match;;
14413 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14414 shlibpath_overrides_runpath=no
14415 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14416 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14417 hardcode_into_libs=yes
14420 # No shared lib support for Linux oldld, aout, or coff.
14421 linux*oldld* | linux*aout* | linux*coff*)
14425 # This must be Linux ELF.
14426 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14431 soname_spec='${libname}${release}${shared_ext}$major'
14432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14433 shlibpath_var=LD_LIBRARY_PATH
14434 shlibpath_overrides_runpath=no
14436 # Some binutils ld are patched to set DT_RUNPATH
14437 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14438 $as_echo_n "(cached) " >&6
14440 lt_cv_shlibpath_overrides_runpath=no
14441 save_LDFLAGS=$LDFLAGS
14442 save_libdir=$libdir
14443 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14444 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446 /* end confdefs.h. */
14456 if ac_fn_c_try_link "$LINENO"; then :
14457 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14458 lt_cv_shlibpath_overrides_runpath=yes
14461 rm -f core conftest.err conftest.$ac_objext \
14462 conftest$ac_exeext conftest.$ac_ext
14463 LDFLAGS=$save_LDFLAGS
14464 libdir=$save_libdir
14468 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14470 # This implies no fast_install, which is unacceptable.
14471 # Some rework will be needed to allow for fast_install
14472 # before this can be enabled.
14473 hardcode_into_libs=yes
14475 # Append ld.so.conf contents to the search path
14476 if test -f /etc/ld.so.conf; then
14477 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' ' '`
14478 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14481 # We used to test for /lib/ld.so.1 and disable shared libraries on
14482 # powerpc, because MkLinux only supported shared libraries with the
14483 # GNU dynamic linker. Since this was broken with cross compilers,
14484 # most powerpc-linux boxes support dynamic linking these days and
14485 # people can always --disable-shared, the test was removed, and we
14486 # assume the GNU/Linux dynamic linker is in use.
14487 dynamic_linker='GNU/Linux ld.so'
14494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14497 dynamic_linker='NetBSD (a.out) ld.so'
14499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14500 soname_spec='${libname}${release}${shared_ext}$major'
14501 dynamic_linker='NetBSD ld.elf_so'
14503 shlibpath_var=LD_LIBRARY_PATH
14504 shlibpath_overrides_runpath=yes
14505 hardcode_into_libs=yes
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511 shlibpath_var=LD_LIBRARY_PATH
14512 shlibpath_overrides_runpath=yes
14519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14520 soname_spec='${libname}${release}${shared_ext}$major'
14521 shlibpath_var=LD_LIBRARY_PATH
14522 shlibpath_overrides_runpath=no
14523 hardcode_into_libs=yes
14524 dynamic_linker='ldqnx.so'
14529 sys_lib_dlsearch_path_spec="/usr/lib"
14531 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14533 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14534 *) need_version=no ;;
14536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14538 shlibpath_var=LD_LIBRARY_PATH
14539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14541 openbsd2.[89] | openbsd2.[89].*)
14542 shlibpath_overrides_runpath=no
14545 shlibpath_overrides_runpath=yes
14549 shlibpath_overrides_runpath=yes
14554 libname_spec='$name'
14557 library_names_spec='$libname${shared_ext} $libname.a'
14558 dynamic_linker='OS/2 ld.exe'
14559 shlibpath_var=LIBPATH
14562 osf3* | osf4* | osf5*)
14566 soname_spec='${libname}${release}${shared_ext}$major'
14567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14568 shlibpath_var=LD_LIBRARY_PATH
14569 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14570 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14582 soname_spec='${libname}${release}${shared_ext}$major'
14583 shlibpath_var=LD_LIBRARY_PATH
14584 shlibpath_overrides_runpath=yes
14585 hardcode_into_libs=yes
14586 # ldd complains unless libraries are executable
14587 postinstall_cmds='chmod +x $lib'
14592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14593 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14594 shlibpath_var=LD_LIBRARY_PATH
14595 shlibpath_overrides_runpath=yes
14596 if test "$with_gnu_ld" = yes; then
14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14605 soname_spec='${libname}${release}${shared_ext}$major'
14606 shlibpath_var=LD_LIBRARY_PATH
14607 case $host_vendor in
14609 shlibpath_overrides_runpath=no
14611 runpath_var=LD_RUN_PATH
14619 shlibpath_overrides_runpath=no
14620 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14626 if test -d /usr/nec ;then
14628 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14629 soname_spec='$libname${shared_ext}.$major'
14630 shlibpath_var=LD_LIBRARY_PATH
14634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14635 version_type=freebsd-elf
14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14639 soname_spec='${libname}${release}${shared_ext}$major'
14640 shlibpath_var=LD_LIBRARY_PATH
14641 shlibpath_overrides_runpath=yes
14642 hardcode_into_libs=yes
14643 if test "$with_gnu_ld" = yes; then
14644 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14646 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14649 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14653 sys_lib_dlsearch_path_spec='/usr/lib'
14657 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662 shlibpath_var=LD_LIBRARY_PATH
14663 shlibpath_overrides_runpath=no
14664 hardcode_into_libs=yes
14669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14670 soname_spec='${libname}${release}${shared_ext}$major'
14671 shlibpath_var=LD_LIBRARY_PATH
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14679 $as_echo "$dynamic_linker" >&6; }
14680 test "$dynamic_linker" = no && can_build_shared=no
14682 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14683 if test "$GCC" = yes; then
14684 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14687 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14688 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14690 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14691 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14786 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14788 if test -n "$hardcode_libdir_flag_spec" ||
14789 test -n "$runpath_var" ||
14790 test "X$hardcode_automatic" = "Xyes" ; then
14792 # We can hardcode non-existent directories.
14793 if test "$hardcode_direct" != no &&
14794 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14795 # have to relink, otherwise we might link with an installed library
14796 # when we should be linking with a yet-to-be-installed one
14797 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14798 test "$hardcode_minus_L" != no; then
14799 # Linking always hardcodes the temporary library directory.
14800 hardcode_action=relink
14802 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14803 hardcode_action=immediate
14806 # We cannot hardcode anything, or else we can only hardcode existing
14808 hardcode_action=unsupported
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14811 $as_echo "$hardcode_action" >&6; }
14813 if test "$hardcode_action" = relink ||
14814 test "$inherit_rpath" = yes; then
14815 # Fast installation is not supported
14816 enable_fast_install=no
14817 elif test "$shlibpath_overrides_runpath" = yes ||
14818 test "$enable_shared" = no; then
14819 # Fast installation is not necessary
14820 enable_fast_install=needless
14828 if test "x$enable_dlopen" != xyes; then
14829 enable_dlopen=unknown
14830 enable_dlopen_self=unknown
14831 enable_dlopen_self_static=unknown
14838 lt_cv_dlopen="load_add_on"
14840 lt_cv_dlopen_self=yes
14843 mingw* | pw32* | cegcc*)
14844 lt_cv_dlopen="LoadLibrary"
14849 lt_cv_dlopen="dlopen"
14854 # if libdl is installed we need to link against it
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14856 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14857 if ${ac_cv_lib_dl_dlopen+:} false; then :
14858 $as_echo_n "(cached) " >&6
14860 ac_check_lib_save_LIBS=$LIBS
14862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863 /* end confdefs.h. */
14865 /* Override any GCC internal prototype to avoid an error.
14866 Use char because int might match the return type of a GCC
14867 builtin and then its argument prototype would still apply. */
14880 if ac_fn_c_try_link "$LINENO"; then :
14881 ac_cv_lib_dl_dlopen=yes
14883 ac_cv_lib_dl_dlopen=no
14885 rm -f core conftest.err conftest.$ac_objext \
14886 conftest$ac_exeext conftest.$ac_ext
14887 LIBS=$ac_check_lib_save_LIBS
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14890 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14891 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14892 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14895 lt_cv_dlopen="dyld"
14897 lt_cv_dlopen_self=yes
14904 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14905 if test "x$ac_cv_func_shl_load" = xyes; then :
14906 lt_cv_dlopen="shl_load"
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14909 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14910 if ${ac_cv_lib_dld_shl_load+:} false; then :
14911 $as_echo_n "(cached) " >&6
14913 ac_check_lib_save_LIBS=$LIBS
14915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14916 /* end confdefs.h. */
14918 /* Override any GCC internal prototype to avoid an error.
14919 Use char because int might match the return type of a GCC
14920 builtin and then its argument prototype would still apply. */
14928 return shl_load ();
14933 if ac_fn_c_try_link "$LINENO"; then :
14934 ac_cv_lib_dld_shl_load=yes
14936 ac_cv_lib_dld_shl_load=no
14938 rm -f core conftest.err conftest.$ac_objext \
14939 conftest$ac_exeext conftest.$ac_ext
14940 LIBS=$ac_check_lib_save_LIBS
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14943 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14944 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14945 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14947 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14948 if test "x$ac_cv_func_dlopen" = xyes; then :
14949 lt_cv_dlopen="dlopen"
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14952 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14953 if ${ac_cv_lib_dl_dlopen+:} false; then :
14954 $as_echo_n "(cached) " >&6
14956 ac_check_lib_save_LIBS=$LIBS
14958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14959 /* end confdefs.h. */
14961 /* Override any GCC internal prototype to avoid an error.
14962 Use char because int might match the return type of a GCC
14963 builtin and then its argument prototype would still apply. */
14976 if ac_fn_c_try_link "$LINENO"; then :
14977 ac_cv_lib_dl_dlopen=yes
14979 ac_cv_lib_dl_dlopen=no
14981 rm -f core conftest.err conftest.$ac_objext \
14982 conftest$ac_exeext conftest.$ac_ext
14983 LIBS=$ac_check_lib_save_LIBS
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14986 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14987 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14988 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14991 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14992 if ${ac_cv_lib_svld_dlopen+:} false; then :
14993 $as_echo_n "(cached) " >&6
14995 ac_check_lib_save_LIBS=$LIBS
14996 LIBS="-lsvld $LIBS"
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
15000 /* Override any GCC internal prototype to avoid an error.
15001 Use char because int might match the return type of a GCC
15002 builtin and then its argument prototype would still apply. */
15015 if ac_fn_c_try_link "$LINENO"; then :
15016 ac_cv_lib_svld_dlopen=yes
15018 ac_cv_lib_svld_dlopen=no
15020 rm -f core conftest.err conftest.$ac_objext \
15021 conftest$ac_exeext conftest.$ac_ext
15022 LIBS=$ac_check_lib_save_LIBS
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15025 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15026 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15027 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15030 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15031 if ${ac_cv_lib_dld_dld_link+:} false; then :
15032 $as_echo_n "(cached) " >&6
15034 ac_check_lib_save_LIBS=$LIBS
15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15039 /* Override any GCC internal prototype to avoid an error.
15040 Use char because int might match the return type of a GCC
15041 builtin and then its argument prototype would still apply. */
15049 return dld_link ();
15054 if ac_fn_c_try_link "$LINENO"; then :
15055 ac_cv_lib_dld_dld_link=yes
15057 ac_cv_lib_dld_dld_link=no
15059 rm -f core conftest.err conftest.$ac_objext \
15060 conftest$ac_exeext conftest.$ac_ext
15061 LIBS=$ac_check_lib_save_LIBS
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15064 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15065 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15066 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15087 if test "x$lt_cv_dlopen" != xno; then
15093 case $lt_cv_dlopen in
15095 save_CPPFLAGS="$CPPFLAGS"
15096 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15098 save_LDFLAGS="$LDFLAGS"
15099 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15102 LIBS="$lt_cv_dlopen_libs $LIBS"
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15105 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15106 if ${lt_cv_dlopen_self+:} false; then :
15107 $as_echo_n "(cached) " >&6
15109 if test "$cross_compiling" = yes; then :
15110 lt_cv_dlopen_self=cross
15112 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15113 lt_status=$lt_dlunknown
15114 cat > conftest.$ac_ext <<_LT_EOF
15115 #line $LINENO "configure"
15116 #include "confdefs.h"
15125 # define LT_DLGLOBAL RTLD_GLOBAL
15128 # define LT_DLGLOBAL DL_GLOBAL
15130 # define LT_DLGLOBAL 0
15134 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15135 find out it does not work in some platform. */
15136 #ifndef LT_DLLAZY_OR_NOW
15138 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15141 # define LT_DLLAZY_OR_NOW DL_LAZY
15144 # define LT_DLLAZY_OR_NOW RTLD_NOW
15147 # define LT_DLLAZY_OR_NOW DL_NOW
15149 # define LT_DLLAZY_OR_NOW 0
15156 /* When -fvisbility=hidden is used, assume the code has been annotated
15157 correspondingly for the symbols needed. */
15158 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15159 int fnord () __attribute__((visibility("default")));
15162 int fnord () { return 42; }
15165 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15166 int status = $lt_dlunknown;
15170 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15173 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15174 else puts (dlerror ());
15176 /* dlclose (self); */
15184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15185 (eval $ac_link) 2>&5
15187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15188 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15189 (./conftest; exit; ) >&5 2>/dev/null
15191 case x$lt_status in
15192 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15193 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15194 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15197 # compilation failed
15198 lt_cv_dlopen_self=no
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15206 $as_echo "$lt_cv_dlopen_self" >&6; }
15208 if test "x$lt_cv_dlopen_self" = xyes; then
15209 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15211 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15212 if ${lt_cv_dlopen_self_static+:} false; then :
15213 $as_echo_n "(cached) " >&6
15215 if test "$cross_compiling" = yes; then :
15216 lt_cv_dlopen_self_static=cross
15218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15219 lt_status=$lt_dlunknown
15220 cat > conftest.$ac_ext <<_LT_EOF
15221 #line $LINENO "configure"
15222 #include "confdefs.h"
15231 # define LT_DLGLOBAL RTLD_GLOBAL
15234 # define LT_DLGLOBAL DL_GLOBAL
15236 # define LT_DLGLOBAL 0
15240 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15241 find out it does not work in some platform. */
15242 #ifndef LT_DLLAZY_OR_NOW
15244 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15247 # define LT_DLLAZY_OR_NOW DL_LAZY
15250 # define LT_DLLAZY_OR_NOW RTLD_NOW
15253 # define LT_DLLAZY_OR_NOW DL_NOW
15255 # define LT_DLLAZY_OR_NOW 0
15262 /* When -fvisbility=hidden is used, assume the code has been annotated
15263 correspondingly for the symbols needed. */
15264 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15265 int fnord () __attribute__((visibility("default")));
15268 int fnord () { return 42; }
15271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15272 int status = $lt_dlunknown;
15276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15279 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15280 else puts (dlerror ());
15282 /* dlclose (self); */
15290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15291 (eval $ac_link) 2>&5
15293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15294 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15295 (./conftest; exit; ) >&5 2>/dev/null
15297 case x$lt_status in
15298 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15299 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15300 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15303 # compilation failed
15304 lt_cv_dlopen_self_static=no
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15312 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15315 CPPFLAGS="$save_CPPFLAGS"
15316 LDFLAGS="$save_LDFLAGS"
15321 case $lt_cv_dlopen_self in
15322 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15323 *) enable_dlopen_self=unknown ;;
15326 case $lt_cv_dlopen_self_static in
15327 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15328 *) enable_dlopen_self_static=unknown ;;
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15351 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15352 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15353 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15354 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15356 $as_echo "yes" >&6; }
15358 # FIXME - insert some real tests, host_os isn't really good enough
15361 if test -n "$STRIP" ; then
15362 striplib="$STRIP -x"
15363 old_striplib="$STRIP -S"
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15365 $as_echo "yes" >&6; }
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15368 $as_echo "no" >&6; }
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15373 $as_echo "no" >&6; }
15389 # Report which library types will actually be built
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15391 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15393 $as_echo "$can_build_shared" >&6; }
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15396 $as_echo_n "checking whether to build shared libraries... " >&6; }
15397 test "$can_build_shared" = "no" && enable_shared=no
15399 # On AIX, shared libraries and static libraries use the same namespace, and
15400 # are all built from PIC.
15403 test "$enable_shared" = yes && enable_static=no
15404 if test -n "$RANLIB"; then
15405 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15406 postinstall_cmds='$RANLIB $lib'
15411 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15412 test "$enable_shared" = yes && enable_static=no
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15417 $as_echo "$enable_shared" >&6; }
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15420 $as_echo_n "checking whether to build static libraries... " >&6; }
15421 # Make sure either enable_shared or enable_static is yes.
15422 test "$enable_shared" = yes || enable_static=yes
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15424 $as_echo "$enable_static" >&6; }
15431 ac_cpp='$CPP $CPPFLAGS'
15432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15438 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15439 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15440 (test "X$CXX" != "Xg++"))) ; then
15442 ac_cpp='$CXXCPP $CPPFLAGS'
15443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15447 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15448 if test -z "$CXXCPP"; then
15449 if ${ac_cv_prog_CXXCPP+:} false; then :
15450 $as_echo_n "(cached) " >&6
15452 # Double quotes because CXXCPP needs to be expanded
15453 for CXXCPP in "$CXX -E" "/lib/cpp"
15455 ac_preproc_ok=false
15456 for ac_cxx_preproc_warn_flag in '' yes
15458 # Use a header file that comes with gcc, so configuring glibc
15459 # with a fresh cross-compiler works.
15460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15461 # <limits.h> exists even on freestanding compilers.
15462 # On the NeXT, cc -E runs the code through the compiler's parser,
15463 # not just through cpp. "Syntax error" is here to catch this case.
15464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15465 /* end confdefs.h. */
15467 # include <limits.h>
15469 # include <assert.h>
15473 if ac_fn_cxx_try_cpp "$LINENO"; then :
15476 # Broken: fails on valid input.
15479 rm -f conftest.err conftest.i conftest.$ac_ext
15481 # OK, works on sane cases. Now check whether nonexistent headers
15482 # can be detected and how.
15483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15484 /* end confdefs.h. */
15485 #include <ac_nonexistent.h>
15487 if ac_fn_cxx_try_cpp "$LINENO"; then :
15488 # Broken: success on invalid input.
15491 # Passes both tests.
15495 rm -f conftest.err conftest.i conftest.$ac_ext
15498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15499 rm -f conftest.i conftest.err conftest.$ac_ext
15500 if $ac_preproc_ok; then :
15505 ac_cv_prog_CXXCPP=$CXXCPP
15508 CXXCPP=$ac_cv_prog_CXXCPP
15510 ac_cv_prog_CXXCPP=$CXXCPP
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15513 $as_echo "$CXXCPP" >&6; }
15514 ac_preproc_ok=false
15515 for ac_cxx_preproc_warn_flag in '' yes
15517 # Use a header file that comes with gcc, so configuring glibc
15518 # with a fresh cross-compiler works.
15519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15520 # <limits.h> exists even on freestanding compilers.
15521 # On the NeXT, cc -E runs the code through the compiler's parser,
15522 # not just through cpp. "Syntax error" is here to catch this case.
15523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15524 /* end confdefs.h. */
15526 # include <limits.h>
15528 # include <assert.h>
15532 if ac_fn_cxx_try_cpp "$LINENO"; then :
15535 # Broken: fails on valid input.
15538 rm -f conftest.err conftest.i conftest.$ac_ext
15540 # OK, works on sane cases. Now check whether nonexistent headers
15541 # can be detected and how.
15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h. */
15544 #include <ac_nonexistent.h>
15546 if ac_fn_cxx_try_cpp "$LINENO"; then :
15547 # Broken: success on invalid input.
15550 # Passes both tests.
15554 rm -f conftest.err conftest.i conftest.$ac_ext
15557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15558 rm -f conftest.i conftest.err conftest.$ac_ext
15559 if $ac_preproc_ok; then :
15562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15564 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15565 See \`config.log' for more details" "$LINENO" 5; }
15569 ac_cpp='$CPP $CPPFLAGS'
15570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15575 _lt_caught_CXX_error=yes
15579 ac_cpp='$CXXCPP $CPPFLAGS'
15580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15584 archive_cmds_need_lc_CXX=no
15585 allow_undefined_flag_CXX=
15586 always_export_symbols_CXX=no
15587 archive_expsym_cmds_CXX=
15588 compiler_needs_object_CXX=no
15589 export_dynamic_flag_spec_CXX=
15590 hardcode_direct_CXX=no
15591 hardcode_direct_absolute_CXX=no
15592 hardcode_libdir_flag_spec_CXX=
15593 hardcode_libdir_flag_spec_ld_CXX=
15594 hardcode_libdir_separator_CXX=
15595 hardcode_minus_L_CXX=no
15596 hardcode_shlibpath_var_CXX=unsupported
15597 hardcode_automatic_CXX=no
15598 inherit_rpath_CXX=no
15600 module_expsym_cmds_CXX=
15601 link_all_deplibs_CXX=unknown
15602 old_archive_cmds_CXX=$old_archive_cmds
15603 reload_flag_CXX=$reload_flag
15604 reload_cmds_CXX=$reload_cmds
15605 no_undefined_flag_CXX=
15606 whole_archive_flag_spec_CXX=
15607 enable_shared_with_static_runtimes_CXX=no
15609 # Source file extension for C++ test sources.
15612 # Object file extension for compiled C++ test sources.
15616 # No sense in running all these tests if we already determined that
15617 # the CXX compiler isn't working. Some variables (like enable_shared)
15618 # are currently assumed to apply to all compilers on this platform,
15619 # and will be corrupted by setting them based on a non-working compiler.
15620 if test "$_lt_caught_CXX_error" != yes; then
15621 # Code to be used in simple compile tests
15622 lt_simple_compile_test_code="int some_variable = 0;"
15624 # Code to be used in simple link tests
15625 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15627 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15634 # If no C compiler was specified, use CC.
15637 # If no C compiler flags were specified, use CFLAGS.
15638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15640 # Allow CC to be a program name with arguments.
15644 # save warnings/boilerplate of simple test code
15645 ac_outfile=conftest.$ac_objext
15646 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15647 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15648 _lt_compiler_boilerplate=`cat conftest.err`
15651 ac_outfile=conftest.$ac_objext
15652 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15653 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15654 _lt_linker_boilerplate=`cat conftest.err`
15658 # Allow CC to be a program name with arguments.
15660 lt_save_CFLAGS=$CFLAGS
15664 lt_save_with_gnu_ld=$with_gnu_ld
15665 lt_save_path_LD=$lt_cv_path_LD
15666 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15667 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15669 $as_unset lt_cv_prog_gnu_ld
15671 if test -n "${lt_cv_path_LDCXX+set}"; then
15672 lt_cv_path_LD=$lt_cv_path_LDCXX
15674 $as_unset lt_cv_path_LD
15676 test -z "${LDCXX+set}" || LD=$LDCXX
15681 for cc_temp in $compiler""; do
15683 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15684 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15689 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15692 if test -n "$compiler"; then
15693 # We don't want -fno-exception when compiling C++ code, so set the
15694 # no_builtin_flag separately
15695 if test "$GXX" = yes; then
15696 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15698 lt_prog_compiler_no_builtin_flag_CXX=
15701 if test "$GXX" = yes; then
15702 # Set up default GNU C++ configuration
15706 # Check whether --with-gnu-ld was given.
15707 if test "${with_gnu_ld+set}" = set; then :
15708 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15714 if test "$GCC" = yes; then
15715 # Check if gcc -print-prog-name=ld gives a path.
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15717 $as_echo_n "checking for ld used by $CC... " >&6; }
15720 # gcc leaves a trailing carriage return which upsets mingw
15721 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15723 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15726 # Accept absolute paths.
15728 re_direlt='/[^/][^/]*/\.\./'
15729 # Canonicalize the pathname of ld
15730 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15731 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15732 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15734 test -z "$LD" && LD="$ac_prog"
15737 # If it fails, then pretend we aren't using GCC.
15741 # If it is relative, then search for the first ld in PATH.
15742 with_gnu_ld=unknown
15745 elif test "$with_gnu_ld" = yes; then
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15747 $as_echo_n "checking for GNU ld... " >&6; }
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15750 $as_echo_n "checking for non-GNU ld... " >&6; }
15752 if ${lt_cv_path_LD+:} false; then :
15753 $as_echo_n "(cached) " >&6
15755 if test -z "$LD"; then
15756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15757 for ac_dir in $PATH; do
15759 test -z "$ac_dir" && ac_dir=.
15760 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15761 lt_cv_path_LD="$ac_dir/$ac_prog"
15762 # Check to see if the program is GNU ld. I'd rather use --version,
15763 # but apparently some variants of GNU ld only accept -v.
15764 # Break only if it was the GNU/non-GNU ld that we prefer.
15765 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15766 *GNU* | *'with BFD'*)
15767 test "$with_gnu_ld" != no && break
15770 test "$with_gnu_ld" != yes && break
15777 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15781 LD="$lt_cv_path_LD"
15782 if test -n "$LD"; then
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15784 $as_echo "$LD" >&6; }
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15787 $as_echo "no" >&6; }
15789 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15791 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15792 if ${lt_cv_prog_gnu_ld+:} false; then :
15793 $as_echo_n "(cached) " >&6
15795 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15796 case `$LD -v 2>&1 </dev/null` in
15797 *GNU* | *'with BFD'*)
15798 lt_cv_prog_gnu_ld=yes
15801 lt_cv_prog_gnu_ld=no
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15806 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15807 with_gnu_ld=$lt_cv_prog_gnu_ld
15815 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15816 # archiving commands below assume that GNU ld is being used.
15817 if test "$with_gnu_ld" = yes; then
15818 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15819 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15821 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15822 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15824 # If archive_cmds runs LD, not CC, wlarc should be empty
15825 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15826 # investigate it a little bit more. (MM)
15829 # ancient GNU ld didn't support --whole-archive et. al.
15830 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15831 $GREP 'no-whole-archive' > /dev/null; then
15832 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15834 whole_archive_flag_spec_CXX=
15840 # A generic and very simple default shared library creation
15841 # command for GNU C++ for the case where it uses the native
15842 # linker, instead of GNU ld. If possible, this setting should
15843 # overridden to take advantage of the native linker features on
15844 # the platform it is being used on.
15845 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15848 # Commands to make compiler produce verbose output that lists
15849 # what "hidden" libraries, object files and flags are used when
15850 # linking a shared library.
15851 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15859 # PORTME: fill in a description of your system's C++ link characteristics
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15861 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15865 # FIXME: insert proper C++ library support
15869 if test "$host_cpu" = ia64; then
15870 # On IA64, the linker does run time linking by default, so we don't
15871 # have to do anything special.
15872 aix_use_runtimelinking=no
15873 exp_sym_flag='-Bexport'
15876 aix_use_runtimelinking=no
15878 # Test if we are trying to use run time linking or normal
15879 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15880 # need to do runtime linking.
15881 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15882 for ld_flag in $LDFLAGS; do
15885 aix_use_runtimelinking=yes
15893 exp_sym_flag='-bexport'
15894 no_entry_flag='-bnoentry'
15897 # When large executables or shared objects are built, AIX ld can
15898 # have problems creating the table of contents. If linking a library
15899 # or program results in "error TOC overflow" add -mminimal-toc to
15900 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15901 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15903 archive_cmds_CXX=''
15904 hardcode_direct_CXX=yes
15905 hardcode_direct_absolute_CXX=yes
15906 hardcode_libdir_separator_CXX=':'
15907 link_all_deplibs_CXX=yes
15908 file_list_spec_CXX='${wl}-f,'
15910 if test "$GXX" = yes; then
15911 case $host_os in aix4.[012]|aix4.[012].*)
15912 # We only want to do this on AIX 4.2 and lower, the check
15913 # below for broken collect2 doesn't work under 4.3+
15914 collect2name=`${CC} -print-prog-name=collect2`
15915 if test -f "$collect2name" &&
15916 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15918 # We have reworked collect2
15921 # We have old collect2
15922 hardcode_direct_CXX=unsupported
15923 # It fails to find uninstalled libraries when the uninstalled
15924 # path is not listed in the libpath. Setting hardcode_minus_L
15925 # to unsupported forces relinking
15926 hardcode_minus_L_CXX=yes
15927 hardcode_libdir_flag_spec_CXX='-L$libdir'
15928 hardcode_libdir_separator_CXX=
15931 shared_flag='-shared'
15932 if test "$aix_use_runtimelinking" = yes; then
15933 shared_flag="$shared_flag "'${wl}-G'
15937 if test "$host_cpu" = ia64; then
15938 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15939 # chokes on -Wl,-G. The following line is correct:
15942 if test "$aix_use_runtimelinking" = yes; then
15943 shared_flag='${wl}-G'
15945 shared_flag='${wl}-bM:SRE'
15950 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15951 # It seems that -bexpall does not export symbols beginning with
15952 # underscore (_), so it is better to generate a list of symbols to
15954 always_export_symbols_CXX=yes
15955 if test "$aix_use_runtimelinking" = yes; then
15956 # Warning - without using the other runtime loading flags (-brtl),
15957 # -berok will link without error, but may produce a broken library.
15958 allow_undefined_flag_CXX='-berok'
15959 # Determine the default libpath from the value encoded in an empty
15961 if test "${lt_cv_aix_libpath+set}" = set; then
15962 aix_libpath=$lt_cv_aix_libpath
15964 if ${lt_cv_aix_libpath__CXX+:} false; then :
15965 $as_echo_n "(cached) " >&6
15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h. */
15978 if ac_fn_cxx_try_link "$LINENO"; then :
15980 lt_aix_libpath_sed='
15981 /Import File Strings/,/^$/ {
15983 s/^0 *\([^ ]*\) *$/\1/
15987 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15988 # Check for a 64-bit object if we didn't find anything.
15989 if test -z "$lt_cv_aix_libpath__CXX"; then
15990 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15993 rm -f core conftest.err conftest.$ac_objext \
15994 conftest$ac_exeext conftest.$ac_ext
15995 if test -z "$lt_cv_aix_libpath__CXX"; then
15996 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16001 aix_libpath=$lt_cv_aix_libpath__CXX
16004 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16006 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16008 if test "$host_cpu" = ia64; then
16009 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16010 allow_undefined_flag_CXX="-z nodefs"
16011 archive_expsym_cmds_CXX="\$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"
16013 # Determine the default libpath from the value encoded in an
16014 # empty executable.
16015 if test "${lt_cv_aix_libpath+set}" = set; then
16016 aix_libpath=$lt_cv_aix_libpath
16018 if ${lt_cv_aix_libpath__CXX+:} false; then :
16019 $as_echo_n "(cached) " >&6
16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h. */
16032 if ac_fn_cxx_try_link "$LINENO"; then :
16034 lt_aix_libpath_sed='
16035 /Import File Strings/,/^$/ {
16037 s/^0 *\([^ ]*\) *$/\1/
16041 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16042 # Check for a 64-bit object if we didn't find anything.
16043 if test -z "$lt_cv_aix_libpath__CXX"; then
16044 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16047 rm -f core conftest.err conftest.$ac_objext \
16048 conftest$ac_exeext conftest.$ac_ext
16049 if test -z "$lt_cv_aix_libpath__CXX"; then
16050 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16055 aix_libpath=$lt_cv_aix_libpath__CXX
16058 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16059 # Warning - without using the other run time loading flags,
16060 # -berok will link without error, but may produce a broken library.
16061 no_undefined_flag_CXX=' ${wl}-bernotok'
16062 allow_undefined_flag_CXX=' ${wl}-berok'
16063 if test "$with_gnu_ld" = yes; then
16064 # We only use this code for GNU lds that support --whole-archive.
16065 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16067 # Exported symbols can be pulled into shared objects from archives
16068 whole_archive_flag_spec_CXX='$convenience'
16070 archive_cmds_need_lc_CXX=yes
16071 # This is similar to how AIX traditionally builds its shared
16073 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16079 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16080 allow_undefined_flag_CXX=unsupported
16081 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16082 # support --undefined. This deserves some investigation. FIXME
16083 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16090 case $cc_basename in
16092 # FIXME: insert proper C++ library support
16098 cygwin* | mingw* | pw32* | cegcc*)
16099 case $GXX,$cc_basename in
16102 # hardcode_libdir_flag_spec is actually meaningless, as there is
16103 # no search path for DLLs.
16104 hardcode_libdir_flag_spec_CXX=' '
16105 allow_undefined_flag_CXX=unsupported
16106 always_export_symbols_CXX=yes
16107 file_list_spec_CXX='@'
16108 # Tell ltmain to make .lib files, not .a files.
16110 # Tell ltmain to make .dll files, not .so files.
16112 # FIXME: Setting linknames here is a bad hack.
16113 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16114 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16115 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16117 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16119 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16121 # The linker will not automatically build a static lib if we build a DLL.
16122 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16123 enable_shared_with_static_runtimes_CXX=yes
16125 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16126 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16127 lt_tool_outputfile="@TOOL_OUTPUT@"~
16128 case $lt_outputfile in
16131 lt_outputfile="$lt_outputfile.exe"
16132 lt_tool_outputfile="$lt_tool_outputfile.exe"
16135 func_to_tool_file "$lt_outputfile"~
16136 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16137 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16138 $RM "$lt_outputfile.manifest";
16143 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16144 # as there is no search path for DLLs.
16145 hardcode_libdir_flag_spec_CXX='-L$libdir'
16146 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
16147 allow_undefined_flag_CXX=unsupported
16148 always_export_symbols_CXX=no
16149 enable_shared_with_static_runtimes_CXX=yes
16151 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16152 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16153 # If the export-symbols file already is a .def file (1st line
16154 # is EXPORTS), use it as is; otherwise, prepend...
16155 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16156 cp $export_symbols $output_objdir/$soname.def;
16158 echo EXPORTS > $output_objdir/$soname.def;
16159 cat $export_symbols >> $output_objdir/$soname.def;
16161 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16168 darwin* | rhapsody*)
16171 archive_cmds_need_lc_CXX=no
16172 hardcode_direct_CXX=no
16173 hardcode_automatic_CXX=yes
16174 hardcode_shlibpath_var_CXX=unsupported
16175 if test "$lt_cv_ld_force_load" = "yes"; then
16176 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16178 whole_archive_flag_spec_CXX=''
16180 link_all_deplibs_CXX=yes
16181 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16182 case $cc_basename in
16183 ifort*) _lt_dar_can_shared=yes ;;
16184 *) _lt_dar_can_shared=$GCC ;;
16186 if test "$_lt_dar_can_shared" = "yes"; then
16187 output_verbose_link_cmd=func_echo_all
16188 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16189 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16190 archive_expsym_cmds_CXX="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}"
16191 module_expsym_cmds_CXX="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}"
16192 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16193 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
16194 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
16204 case $cc_basename in
16206 # FIXME: insert proper C++ library support
16210 # Green Hills C++ Compiler
16211 # FIXME: insert proper C++ library support
16215 # FIXME: insert proper C++ library support
16222 # C++ shared libraries reported to be fairly broken before
16228 archive_cmds_need_lc_CXX=no
16231 freebsd* | dragonfly*)
16232 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16241 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16242 link_all_deplibs_CXX=yes
16246 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16247 hardcode_libdir_separator_CXX=:
16248 export_dynamic_flag_spec_CXX='${wl}-E'
16249 hardcode_direct_CXX=yes
16250 hardcode_minus_L_CXX=yes # Not in the search PATH,
16251 # but as the default
16252 # location of the library.
16254 case $cc_basename in
16256 # FIXME: insert proper C++ library support
16260 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16261 # Commands to make compiler produce verbose output that lists
16262 # what "hidden" libraries, object files and flags are used when
16263 # linking a shared library.
16265 # There doesn't appear to be a way to prevent this compiler from
16266 # explicitly linking system object files so we need to strip them
16267 # from the output so that they don't get included in the library
16269 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16272 if test "$GXX" = yes; then
16273 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16275 # FIXME: insert proper C++ library support
16283 if test $with_gnu_ld = no; then
16284 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16285 hardcode_libdir_separator_CXX=:
16291 export_dynamic_flag_spec_CXX='${wl}-E'
16297 hardcode_direct_CXX=no
16298 hardcode_shlibpath_var_CXX=no
16301 hardcode_direct_CXX=yes
16302 hardcode_direct_absolute_CXX=yes
16303 hardcode_minus_L_CXX=yes # Not in the search PATH,
16304 # but as the default
16305 # location of the library.
16309 case $cc_basename in
16311 # FIXME: insert proper C++ library support
16317 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16320 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16323 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16326 # Commands to make compiler produce verbose output that lists
16327 # what "hidden" libraries, object files and flags are used when
16328 # linking a shared library.
16330 # There doesn't appear to be a way to prevent this compiler from
16331 # explicitly linking system object files so we need to strip them
16332 # from the output so that they don't get included in the library
16334 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16337 if test "$GXX" = yes; then
16338 if test $with_gnu_ld = no; then
16341 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16344 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16347 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16352 # FIXME: insert proper C++ library support
16360 hardcode_direct_CXX=no
16361 hardcode_shlibpath_var_CXX=no
16362 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16363 export_dynamic_flag_spec_CXX='${wl}-E'
16364 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16365 # Instead, shared libraries are loaded at an image base (0x10000000 by
16366 # default) and relocated if they conflict, which is a slow very memory
16367 # consuming and fragmenting process. To avoid this, we pick a random,
16368 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16369 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16370 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16371 archive_expsym_cmds_CXX='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'
16374 case $cc_basename in
16377 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16379 # Archives containing C++ object files must be created using
16380 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16381 # necessary to make sure instantiated templates are included
16383 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16386 if test "$GXX" = yes; then
16387 if test "$with_gnu_ld" = no; then
16388 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
16390 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
16393 link_all_deplibs_CXX=yes
16396 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16397 hardcode_libdir_separator_CXX=:
16398 inherit_rpath_CXX=yes
16401 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16402 case $cc_basename in
16404 # Kuck and Associates, Inc. (KAI) C++ Compiler
16406 # KCC will only create a shared library if the output file
16407 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16408 # to its proper name (with version) after linking.
16409 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16410 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
16411 # Commands to make compiler produce verbose output that lists
16412 # what "hidden" libraries, object files and flags are used when
16413 # linking a shared library.
16415 # There doesn't appear to be a way to prevent this compiler from
16416 # explicitly linking system object files so we need to strip them
16417 # from the output so that they don't get included in the library
16419 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16421 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16422 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16424 # Archives containing C++ object files must be created using
16425 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16426 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16431 # version 8.0 and above of icpc choke on multiply defined symbols
16432 # if we add $predep_objects and $postdep_objects, however 7.1 and
16433 # earlier do not add the objects themselves.
16434 case `$CC -V 2>&1` in
16436 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16437 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16439 *) # Version 8.0 or newer
16442 ia64*) tmp_idyn=' -i_dynamic';;
16444 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16445 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16448 archive_cmds_need_lc_CXX=no
16449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16450 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16451 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16454 # Portland Group C++ compiler
16456 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16457 prelink_cmds_CXX='tpldir=Template.dir~
16459 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16460 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16461 old_archive_cmds_CXX='tpldir=Template.dir~
16463 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16464 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16466 archive_cmds_CXX='tpldir=Template.dir~
16468 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16469 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16470 archive_expsym_cmds_CXX='tpldir=Template.dir~
16472 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16473 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16475 *) # Version 6 and above use weak symbols
16476 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16477 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16481 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16482 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16483 whole_archive_flag_spec_CXX='${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'
16487 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16488 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
16490 runpath_var=LD_RUN_PATH
16491 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16492 hardcode_libdir_separator_CXX=:
16494 # Commands to make compiler produce verbose output that lists
16495 # what "hidden" libraries, object files and flags are used when
16496 # linking a shared library.
16498 # There doesn't appear to be a way to prevent this compiler from
16499 # explicitly linking system object files so we need to strip them
16500 # from the output so that they don't get included in the library
16502 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
16504 xl* | mpixl* | bgxl*)
16505 # IBM XL 8.0 on PPC, with GNU ld
16506 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16507 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16508 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16509 if test "x$supports_anon_versioning" = xyes; then
16510 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16511 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16512 echo "local: *; };" >> $output_objdir/$libname.ver~
16513 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16517 case `$CC -V 2>&1 | sed 5q` in
16520 no_undefined_flag_CXX=' -zdefs'
16521 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16522 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
16523 hardcode_libdir_flag_spec_CXX='-R$libdir'
16524 whole_archive_flag_spec_CXX='${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'
16525 compiler_needs_object_CXX=yes
16527 # Not sure whether something based on
16528 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16530 output_verbose_link_cmd='func_echo_all'
16532 # Archives containing C++ object files must be created using
16533 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16534 # necessary to make sure instantiated templates are included
16536 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16544 # FIXME: insert proper C++ library support
16549 # FIXME: insert proper C++ library support
16554 case $cc_basename in
16556 # FIXME: insert proper C++ library support
16560 # FIXME: insert proper C++ library support
16567 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16568 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16570 hardcode_libdir_flag_spec_CXX='-R$libdir'
16571 hardcode_direct_CXX=yes
16572 hardcode_shlibpath_var_CXX=no
16574 # Workaround some broken pre-1.5 toolchains
16575 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16583 # C++ shared libraries are fairly broken
16588 if test -f /usr/libexec/ld.so; then
16589 hardcode_direct_CXX=yes
16590 hardcode_shlibpath_var_CXX=no
16591 hardcode_direct_absolute_CXX=yes
16592 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16593 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16594 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16595 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16596 export_dynamic_flag_spec_CXX='${wl}-E'
16597 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16599 output_verbose_link_cmd=func_echo_all
16605 osf3* | osf4* | osf5*)
16606 case $cc_basename in
16608 # Kuck and Associates, Inc. (KAI) C++ Compiler
16610 # KCC will only create a shared library if the output file
16611 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16612 # to its proper name (with version) after linking.
16613 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16615 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16616 hardcode_libdir_separator_CXX=:
16618 # Archives containing C++ object files must be created using
16619 # the KAI C++ compiler.
16621 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16622 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16626 # Rational C++ 2.4.1
16627 # FIXME: insert proper C++ library support
16633 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16634 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16635 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16638 allow_undefined_flag_CXX=' -expect_unresolved \*'
16639 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16640 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16641 echo "-hidden">> $lib.exp~
16642 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
16644 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16648 hardcode_libdir_separator_CXX=:
16650 # Commands to make compiler produce verbose output that lists
16651 # what "hidden" libraries, object files and flags are used when
16652 # linking a shared library.
16654 # There doesn't appear to be a way to prevent this compiler from
16655 # explicitly linking system object files so we need to strip them
16656 # from the output so that they don't get included in the library
16658 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16661 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16662 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16665 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
16668 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
16672 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16673 hardcode_libdir_separator_CXX=:
16675 # Commands to make compiler produce verbose output that lists
16676 # what "hidden" libraries, object files and flags are used when
16677 # linking a shared library.
16678 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16681 # FIXME: insert proper C++ library support
16689 # FIXME: insert proper C++ library support
16694 case $cc_basename in
16697 # FIXME: insert proper C++ library support
16702 # FIXME: insert proper C++ library support
16706 # FIXME: insert proper C++ library support
16713 case $cc_basename in
16715 # Sun C++ 4.2, 5.x and Centerline C++
16716 archive_cmds_need_lc_CXX=yes
16717 no_undefined_flag_CXX=' -zdefs'
16718 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16719 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16720 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16722 hardcode_libdir_flag_spec_CXX='-R$libdir'
16723 hardcode_shlibpath_var_CXX=no
16725 solaris2.[0-5] | solaris2.[0-5].*) ;;
16727 # The compiler driver will combine and reorder linker options,
16728 # but understands `-z linker_flag'.
16729 # Supported since Solaris 2.6 (maybe 2.5.1?)
16730 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16733 link_all_deplibs_CXX=yes
16735 output_verbose_link_cmd='func_echo_all'
16737 # Archives containing C++ object files must be created using
16738 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16739 # necessary to make sure instantiated templates are included
16741 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16744 # Green Hills C++ Compiler
16745 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16747 # The C++ compiler must be used to create the archive.
16748 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16751 # GNU C++ compiler with Solaris linker
16752 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16753 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16754 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16755 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16756 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16757 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16759 # Commands to make compiler produce verbose output that lists
16760 # what "hidden" libraries, object files and flags are used when
16761 # linking a shared library.
16762 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16764 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16766 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16767 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16768 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16770 # Commands to make compiler produce verbose output that lists
16771 # what "hidden" libraries, object files and flags are used when
16772 # linking a shared library.
16773 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16776 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16778 solaris2.[0-5] | solaris2.[0-5].*) ;;
16780 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16788 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16789 no_undefined_flag_CXX='${wl}-z,text'
16790 archive_cmds_need_lc_CXX=no
16791 hardcode_shlibpath_var_CXX=no
16792 runpath_var='LD_RUN_PATH'
16794 case $cc_basename in
16796 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16797 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16800 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16801 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16806 sysv5* | sco3.2v5* | sco5v6*)
16807 # Note: We can NOT use -z defs as we might desire, because we do not
16808 # link with -lc, and that would cause any symbols used from libc to
16809 # always be unresolved, which means just about no library would
16810 # ever link correctly. If we're not using GNU ld we use -z text
16811 # though, which does catch some bad symbols but isn't as heavy-handed
16813 no_undefined_flag_CXX='${wl}-z,text'
16814 allow_undefined_flag_CXX='${wl}-z,nodefs'
16815 archive_cmds_need_lc_CXX=no
16816 hardcode_shlibpath_var_CXX=no
16817 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16818 hardcode_libdir_separator_CXX=':'
16819 link_all_deplibs_CXX=yes
16820 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16821 runpath_var='LD_RUN_PATH'
16823 case $cc_basename in
16825 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16826 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16827 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16828 '"$old_archive_cmds_CXX"
16829 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16830 '"$reload_cmds_CXX"
16833 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16834 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16840 case $cc_basename in
16842 # NonStop-UX NCC 3.20
16843 # FIXME: insert proper C++ library support
16847 # FIXME: insert proper C++ library support
16854 # FIXME: insert proper C++ library support
16859 # FIXME: insert proper C++ library support
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16865 $as_echo "$ld_shlibs_CXX" >&6; }
16866 test "$ld_shlibs_CXX" = no && can_build_shared=no
16872 ## There is no encapsulation within the following macros, do not change
16873 ## the running order or otherwise move them around unless you know exactly
16874 ## what you are doing...
16875 # Dependencies to place before and after the object being linked:
16876 predep_objects_CXX=
16877 postdep_objects_CXX=
16880 compiler_lib_search_path_CXX=
16882 cat > conftest.$ac_ext <<_LT_EOF
16886 Foo (void) { a = 0; }
16893 _lt_libdeps_save_CFLAGS=$CFLAGS
16894 case "$CC $CFLAGS " in #(
16895 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16896 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16900 (eval $ac_compile) 2>&5
16902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16903 test $ac_status = 0; }; then
16904 # Parse the compiler output and extract the necessary
16905 # objects, libraries and library flags.
16907 # Sentinel used to keep track of whether or not we are before
16908 # the conftest object file.
16909 pre_test_object_deps_done=no
16911 for p in `eval "$output_verbose_link_cmd"`; do
16912 case ${prev}${p} in
16915 # Some compilers place space between "-{L,R}" and the path.
16916 # Remove the space.
16917 if test $p = "-L" ||
16918 test $p = "-R"; then
16923 # Expand the sysroot to ease extracting the directories later.
16924 if test -z "$prev"; then
16926 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16927 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16928 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16932 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16934 if test "$pre_test_object_deps_done" = no; then
16937 # Internal compiler library paths should come after those
16938 # provided the user. The postdeps already come after the
16939 # user supplied libs so there is no need to process them.
16940 if test -z "$compiler_lib_search_path_CXX"; then
16941 compiler_lib_search_path_CXX="${prev}${p}"
16943 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16946 # The "-l" case would never come before the object being
16947 # linked, so don't bother handling this case.
16950 if test -z "$postdeps_CXX"; then
16951 postdeps_CXX="${prev}${p}"
16953 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16959 *.lto.$objext) ;; # Ignore GCC LTO objects
16961 # This assumes that the test object file only shows up
16962 # once in the compiler output.
16963 if test "$p" = "conftest.$objext"; then
16964 pre_test_object_deps_done=yes
16968 if test "$pre_test_object_deps_done" = no; then
16969 if test -z "$predep_objects_CXX"; then
16970 predep_objects_CXX="$p"
16972 predep_objects_CXX="$predep_objects_CXX $p"
16975 if test -z "$postdep_objects_CXX"; then
16976 postdep_objects_CXX="$p"
16978 postdep_objects_CXX="$postdep_objects_CXX $p"
16983 *) ;; # Ignore the rest.
16991 echo "libtool.m4: error: problem compiling CXX test program"
16994 $RM -f confest.$objext
16995 CFLAGS=$_lt_libdeps_save_CFLAGS
16997 # PORTME: override above test on systems where it is broken
17000 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17001 # hack all around it, let's just trust "g++" to DTRT.
17002 predep_objects_CXX=
17003 postdep_objects_CXX=
17008 case `$CC -V 2>&1 | sed 5q` in
17012 # The more standards-conforming stlport4 library is
17013 # incompatible with the Cstd library. Avoid specifying
17014 # it if it's in CXXFLAGS. Ignore libCrun as
17015 # -library=stlport4 depends on it.
17016 case " $CXX $CXXFLAGS " in
17017 *" -library=stlport4 "*)
17018 solaris_use_stlport4=yes
17022 if test "$solaris_use_stlport4" != yes; then
17023 postdeps_CXX='-library=Cstd -library=Crun'
17030 case $cc_basename in
17032 # The more standards-conforming stlport4 library is
17033 # incompatible with the Cstd library. Avoid specifying
17034 # it if it's in CXXFLAGS. Ignore libCrun as
17035 # -library=stlport4 depends on it.
17036 case " $CXX $CXXFLAGS " in
17037 *" -library=stlport4 "*)
17038 solaris_use_stlport4=yes
17042 # Adding this requires a known-good setup of shared libraries for
17043 # Sun compiler versions before 5.6, else PIC objects from an old
17044 # archive will be linked into the output, leading to subtle bugs.
17045 if test "$solaris_use_stlport4" != yes; then
17046 postdeps_CXX='-library=Cstd -library=Crun'
17054 case " $postdeps_CXX " in
17055 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17057 compiler_lib_search_dirs_CXX=
17058 if test -n "${compiler_lib_search_path_CXX}"; then
17059 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17092 lt_prog_compiler_wl_CXX=
17093 lt_prog_compiler_pic_CXX=
17094 lt_prog_compiler_static_CXX=
17097 # C++ specific cases for pic, static, wl, etc.
17098 if test "$GXX" = yes; then
17099 lt_prog_compiler_wl_CXX='-Wl,'
17100 lt_prog_compiler_static_CXX='-static'
17104 # All AIX code is PIC.
17105 if test "$host_cpu" = ia64; then
17106 # AIX 5 now supports IA64 processor
17107 lt_prog_compiler_static_CXX='-Bstatic'
17114 # see comment about AmigaOS4 .so support
17115 lt_prog_compiler_pic_CXX='-fPIC'
17118 # FIXME: we need at least 68020 code to build shared libraries, but
17119 # adding the `-m68020' flag to GCC prevents building anything better,
17121 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17126 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17127 # PIC is the default for these OSes.
17129 mingw* | cygwin* | os2* | pw32* | cegcc*)
17130 # This hack is so that the source file can tell whether it is being
17131 # built for inclusion in a dll (and should export symbols for example).
17132 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17133 # (--disable-auto-import) libraries
17134 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17136 darwin* | rhapsody*)
17137 # PIC is the default on this platform
17138 # Common symbols not allowed in MH_DYLIB files
17139 lt_prog_compiler_pic_CXX='-fno-common'
17142 # DJGPP does not support shared libraries at all
17143 lt_prog_compiler_pic_CXX=
17146 # PIC is the default for Haiku.
17147 # The "-static" flag exists, but is broken.
17148 lt_prog_compiler_static_CXX=
17151 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17152 # Instead, we relocate shared libraries at runtime.
17155 if test -d /usr/nec; then
17156 lt_prog_compiler_pic_CXX=-Kconform_pic
17160 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17161 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17162 # sets the default TLS model and affects inlining.
17167 lt_prog_compiler_pic_CXX='-fPIC'
17172 # QNX uses GNU C++, but need to define -shared option too, otherwise
17173 # it will coredump.
17174 lt_prog_compiler_pic_CXX='-fPIC -shared'
17177 lt_prog_compiler_pic_CXX='-fPIC'
17183 # All AIX code is PIC.
17184 if test "$host_cpu" = ia64; then
17185 # AIX 5 now supports IA64 processor
17186 lt_prog_compiler_static_CXX='-Bstatic'
17188 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17192 case $cc_basename in
17194 # Green Hills C++ Compiler
17195 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17199 mingw* | cygwin* | os2* | pw32* | cegcc*)
17200 # This hack is so that the source file can tell whether it is being
17201 # built for inclusion in a dll (and should export symbols for example).
17202 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17205 case $cc_basename in
17207 lt_prog_compiler_pic_CXX='-KPIC'
17210 # Green Hills C++ Compiler
17211 lt_prog_compiler_pic_CXX='-pic'
17217 freebsd* | dragonfly*)
17218 # FreeBSD uses GNU C++
17220 hpux9* | hpux10* | hpux11*)
17221 case $cc_basename in
17223 lt_prog_compiler_wl_CXX='-Wl,'
17224 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17225 if test "$host_cpu" != ia64; then
17226 lt_prog_compiler_pic_CXX='+Z'
17230 lt_prog_compiler_wl_CXX='-Wl,'
17231 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17237 lt_prog_compiler_pic_CXX='+Z'
17246 # This is c89, which is MS Visual C++ (no shared libs)
17247 # Anyone wants to do a port?
17249 irix5* | irix6* | nonstopux*)
17250 case $cc_basename in
17252 lt_prog_compiler_wl_CXX='-Wl,'
17253 lt_prog_compiler_static_CXX='-non_shared'
17254 # CC pic flag -KPIC is the default.
17260 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17261 case $cc_basename in
17264 lt_prog_compiler_wl_CXX='--backend -Wl,'
17265 lt_prog_compiler_pic_CXX='-fPIC'
17268 # old Intel C++ for x86_64 which still supported -KPIC.
17269 lt_prog_compiler_wl_CXX='-Wl,'
17270 lt_prog_compiler_pic_CXX='-KPIC'
17271 lt_prog_compiler_static_CXX='-static'
17274 # Intel C++, used to be incompatible with GCC.
17275 # ICC 10 doesn't accept -KPIC any more.
17276 lt_prog_compiler_wl_CXX='-Wl,'
17277 lt_prog_compiler_pic_CXX='-fPIC'
17278 lt_prog_compiler_static_CXX='-static'
17281 # Portland Group C++ compiler
17282 lt_prog_compiler_wl_CXX='-Wl,'
17283 lt_prog_compiler_pic_CXX='-fpic'
17284 lt_prog_compiler_static_CXX='-Bstatic'
17288 # Make sure the PIC flag is empty. It appears that all Alpha
17289 # Linux and Compaq Tru64 Unix objects are PIC.
17290 lt_prog_compiler_pic_CXX=
17291 lt_prog_compiler_static_CXX='-non_shared'
17293 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17294 # IBM XL 8.0, 9.0 on PPC and BlueGene
17295 lt_prog_compiler_wl_CXX='-Wl,'
17296 lt_prog_compiler_pic_CXX='-qpic'
17297 lt_prog_compiler_static_CXX='-qstaticlink'
17300 case `$CC -V 2>&1 | sed 5q` in
17303 lt_prog_compiler_pic_CXX='-KPIC'
17304 lt_prog_compiler_static_CXX='-Bstatic'
17305 lt_prog_compiler_wl_CXX='-Qoption ld '
17316 case $cc_basename in
17318 lt_prog_compiler_pic_CXX='-W c,exportall'
17327 # QNX uses GNU C++, but need to define -shared option too, otherwise
17328 # it will coredump.
17329 lt_prog_compiler_pic_CXX='-fPIC -shared'
17331 osf3* | osf4* | osf5*)
17332 case $cc_basename in
17334 lt_prog_compiler_wl_CXX='--backend -Wl,'
17337 # Rational C++ 2.4.1
17338 lt_prog_compiler_pic_CXX='-pic'
17341 # Digital/Compaq C++
17342 lt_prog_compiler_wl_CXX='-Wl,'
17343 # Make sure the PIC flag is empty. It appears that all Alpha
17344 # Linux and Compaq Tru64 Unix objects are PIC.
17345 lt_prog_compiler_pic_CXX=
17346 lt_prog_compiler_static_CXX='-non_shared'
17355 case $cc_basename in
17357 # Sun C++ 4.2, 5.x and Centerline C++
17358 lt_prog_compiler_pic_CXX='-KPIC'
17359 lt_prog_compiler_static_CXX='-Bstatic'
17360 lt_prog_compiler_wl_CXX='-Qoption ld '
17363 # Green Hills C++ Compiler
17364 lt_prog_compiler_pic_CXX='-PIC'
17371 case $cc_basename in
17374 lt_prog_compiler_pic_CXX='-pic'
17375 lt_prog_compiler_static_CXX='-Bstatic'
17379 lt_prog_compiler_pic_CXX='-pic'
17385 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17386 case $cc_basename in
17388 lt_prog_compiler_wl_CXX='-Wl,'
17389 lt_prog_compiler_pic_CXX='-KPIC'
17390 lt_prog_compiler_static_CXX='-Bstatic'
17395 case $cc_basename in
17397 # NonStop-UX NCC 3.20
17398 lt_prog_compiler_pic_CXX='-KPIC'
17407 lt_prog_compiler_can_build_shared_CXX=no
17413 # For platforms which do not support PIC, -DPIC is meaningless:
17415 lt_prog_compiler_pic_CXX=
17418 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17423 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17424 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17425 $as_echo_n "(cached) " >&6
17427 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17430 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17431 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17434 # Check to make sure the PIC flag actually works.
17436 if test -n "$lt_prog_compiler_pic_CXX"; then
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17438 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17439 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17440 $as_echo_n "(cached) " >&6
17442 lt_cv_prog_compiler_pic_works_CXX=no
17443 ac_outfile=conftest.$ac_objext
17444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17445 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17446 # Insert the option either (1) after the last *FLAGS variable, or
17447 # (2) before a word containing "conftest.", or (3) at the end.
17448 # Note that $ac_compile itself does not contain backslashes and begins
17449 # with a dollar sign (not a hyphen), so the echo should work correctly.
17450 # The option is referenced via a variable to avoid confusing sed.
17451 lt_compile=`echo "$ac_compile" | $SED \
17452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17454 -e 's:$: $lt_compiler_flag:'`
17455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17456 (eval "$lt_compile" 2>conftest.err)
17458 cat conftest.err >&5
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 if (exit $ac_status) && test -s "$ac_outfile"; then
17461 # The compiler can only warn and ignore the option if not recognized
17462 # So say no if there are warnings other than the usual output.
17463 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17465 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17466 lt_cv_prog_compiler_pic_works_CXX=yes
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17473 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17475 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17476 case $lt_prog_compiler_pic_CXX in
17478 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17481 lt_prog_compiler_pic_CXX=
17482 lt_prog_compiler_can_build_shared_CXX=no
17492 # Check to make sure the static flag actually works.
17494 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17496 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17497 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17498 $as_echo_n "(cached) " >&6
17500 lt_cv_prog_compiler_static_works_CXX=no
17501 save_LDFLAGS="$LDFLAGS"
17502 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17503 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17505 # The linker can only warn and ignore the option if not recognized
17506 # So say no if there are warnings
17507 if test -s conftest.err; then
17508 # Append any errors to the config.log.
17509 cat conftest.err 1>&5
17510 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17512 if diff conftest.exp conftest.er2 >/dev/null; then
17513 lt_cv_prog_compiler_static_works_CXX=yes
17516 lt_cv_prog_compiler_static_works_CXX=yes
17520 LDFLAGS="$save_LDFLAGS"
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17524 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17526 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17529 lt_prog_compiler_static_CXX=
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17536 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17537 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17538 $as_echo_n "(cached) " >&6
17540 lt_cv_prog_compiler_c_o_CXX=no
17541 $RM -r conftest 2>/dev/null
17545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17547 lt_compiler_flag="-o out/conftest2.$ac_objext"
17548 # Insert the option either (1) after the last *FLAGS variable, or
17549 # (2) before a word containing "conftest.", or (3) at the end.
17550 # Note that $ac_compile itself does not contain backslashes and begins
17551 # with a dollar sign (not a hyphen), so the echo should work correctly.
17552 lt_compile=`echo "$ac_compile" | $SED \
17553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17555 -e 's:$: $lt_compiler_flag:'`
17556 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17557 (eval "$lt_compile" 2>out/conftest.err)
17559 cat out/conftest.err >&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17563 # The compiler can only warn and ignore the option if not recognized
17564 # So say no if there are warnings
17565 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17566 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17567 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17568 lt_cv_prog_compiler_c_o_CXX=yes
17573 # SGI C++ compiler will create directory out/ii_files/ for
17574 # template instantiation
17575 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17576 $RM out/* && rmdir out
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17583 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17588 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17589 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17590 $as_echo_n "(cached) " >&6
17592 lt_cv_prog_compiler_c_o_CXX=no
17593 $RM -r conftest 2>/dev/null
17597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17599 lt_compiler_flag="-o out/conftest2.$ac_objext"
17600 # Insert the option either (1) after the last *FLAGS variable, or
17601 # (2) before a word containing "conftest.", or (3) at the end.
17602 # Note that $ac_compile itself does not contain backslashes and begins
17603 # with a dollar sign (not a hyphen), so the echo should work correctly.
17604 lt_compile=`echo "$ac_compile" | $SED \
17605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17607 -e 's:$: $lt_compiler_flag:'`
17608 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17609 (eval "$lt_compile" 2>out/conftest.err)
17611 cat out/conftest.err >&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17615 # The compiler can only warn and ignore the option if not recognized
17616 # So say no if there are warnings
17617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17620 lt_cv_prog_compiler_c_o_CXX=yes
17625 # SGI C++ compiler will create directory out/ii_files/ for
17626 # template instantiation
17627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17628 $RM out/* && rmdir out
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17635 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17640 hard_links="nottested"
17641 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17642 # do not overwrite the value of need_locks provided by the user
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17644 $as_echo_n "checking if we can lock with hard links... " >&6; }
17647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17649 ln conftest.a conftest.b 2>&5 || hard_links=no
17650 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17652 $as_echo "$hard_links" >&6; }
17653 if test "$hard_links" = no; then
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17655 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17665 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17667 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17668 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17671 # If we're using GNU nm, then we don't want the "-C" option.
17672 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17673 # Also, AIX nm treats weak defined symbols like other global defined
17674 # symbols, whereas GNU nm marks them as "W".
17675 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17676 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17678 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17682 export_symbols_cmds_CXX="$ltdll_cmds"
17684 cygwin* | mingw* | cegcc*)
17685 case $cc_basename in
17688 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17689 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17694 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17699 $as_echo "$ld_shlibs_CXX" >&6; }
17700 test "$ld_shlibs_CXX" = no && can_build_shared=no
17702 with_gnu_ld_CXX=$with_gnu_ld
17710 # Do we need to explicitly link libc?
17712 case "x$archive_cmds_need_lc_CXX" in
17714 # Assume -lc should be added
17715 archive_cmds_need_lc_CXX=yes
17717 if test "$enable_shared" = yes && test "$GCC" = yes; then
17718 case $archive_cmds_CXX in
17720 # FIXME: we may have to deal with multi-command sequences.
17723 # Test whether the compiler implicitly links with -lc since on some
17724 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17725 # to ld, don't add -lc before -lgcc.
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17727 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17728 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17729 $as_echo_n "(cached) " >&6
17732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17735 (eval $ac_compile) 2>&5
17737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17738 test $ac_status = 0; } 2>conftest.err; then
17741 libobjs=conftest.$ac_objext
17743 wl=$lt_prog_compiler_wl_CXX
17744 pic_flag=$lt_prog_compiler_pic_CXX
17750 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17751 allow_undefined_flag_CXX=
17752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17753 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17756 test $ac_status = 0; }
17758 lt_cv_archive_cmds_need_lc_CXX=no
17760 lt_cv_archive_cmds_need_lc_CXX=yes
17762 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17764 cat conftest.err 1>&5
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17770 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17771 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17842 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17844 library_names_spec=
17845 libname_spec='lib$name'
17849 postuninstall_cmds=
17853 shlibpath_overrides_runpath=unknown
17855 dynamic_linker="$host_os ld.so"
17856 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17857 need_lib_prefix=unknown
17858 hardcode_into_libs=no
17860 # when you set need_version to no, make sure it does not cause -set_version
17861 # flags to be left without arguments
17862 need_version=unknown
17867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17868 shlibpath_var=LIBPATH
17870 # AIX 3 has no versioning support, so we append a major version to the name.
17871 soname_spec='${libname}${release}${shared_ext}$major'
17878 hardcode_into_libs=yes
17879 if test "$host_cpu" = ia64; then
17880 # AIX 5 supports IA64
17881 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17882 shlibpath_var=LD_LIBRARY_PATH
17884 # With GCC up to 2.95.x, collect2 would create an import file
17885 # for dependence libraries. The import file would start with
17886 # the line `#! .'. This would cause the generated library to
17887 # depend on `.', always an invalid library. This was fixed in
17888 # development snapshots of GCC prior to 3.0.
17890 aix4 | aix4.[01] | aix4.[01].*)
17891 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17893 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17896 can_build_shared=no
17900 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17901 # soname into executable. Probably we can add versioning support to
17902 # collect2, so additional links can be useful in future.
17903 if test "$aix_use_runtimelinking" = yes; then
17904 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17905 # instead of lib<name>.a to let people know that these are not
17906 # typical AIX shared libraries.
17907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17909 # We preserve .a as extension for shared libraries through AIX4.2
17910 # and later when we are not doing run time linking.
17911 library_names_spec='${libname}${release}.a $libname.a'
17912 soname_spec='${libname}${release}${shared_ext}$major'
17914 shlibpath_var=LIBPATH
17921 # Since July 2007 AmigaOS4 officially supports .so libraries.
17922 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17926 library_names_spec='$libname.ixlibrary $libname.a'
17927 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17928 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17934 library_names_spec='${libname}${shared_ext}'
17935 dynamic_linker="$host_os ld.so"
17936 shlibpath_var=LIBRARY_PATH
17942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17943 soname_spec='${libname}${release}${shared_ext}$major'
17944 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17945 shlibpath_var=LD_LIBRARY_PATH
17946 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17947 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17948 # the default ld.so.conf also contains /usr/contrib/lib and
17949 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17950 # libtool to hard-code these into programs
17953 cygwin* | mingw* | pw32* | cegcc*)
17954 version_type=windows
17959 case $GCC,$cc_basename in
17962 library_names_spec='$libname.dll.a'
17963 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17964 postinstall_cmds='base_file=`basename \${file}`~
17965 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17966 dldir=$destdir/`dirname \$dlpath`~
17967 test -d \$dldir || mkdir -p \$dldir~
17968 $install_prog $dir/$dlname \$dldir/$dlname~
17969 chmod a+x \$dldir/$dlname~
17970 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17971 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17974 dlpath=$dir/\$dldll~
17976 shlibpath_overrides_runpath=yes
17980 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17981 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17985 # MinGW DLLs use traditional 'lib' prefix
17986 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17989 # pw32 DLLs use 'pw' prefix rather than 'lib'
17990 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17993 dynamic_linker='Win32 ld.exe'
17998 libname_spec='$name'
17999 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18000 library_names_spec='${libname}.dll.lib'
18004 sys_lib_search_path_spec=
18007 for lt_path in $LIB
18010 # Let DOS variable expansion print the short 8.3 style file name.
18011 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18012 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18015 # Convert to MSYS style.
18016 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18019 # Convert to unix form, then to dos form, then back to unix form
18020 # but this time dos style (no spaces!) so that the unix form looks
18021 # like /cygdrive/c/PROGRA~1:/cygdr...
18022 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18023 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18024 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18027 sys_lib_search_path_spec="$LIB"
18028 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18029 # It is most probably a Windows format PATH.
18030 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18032 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18034 # FIXME: find the short name or the path components, as spaces are
18035 # common. (e.g. "Program Files" -> "PROGRA~1")
18039 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18040 postinstall_cmds='base_file=`basename \${file}`~
18041 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18042 dldir=$destdir/`dirname \$dlpath`~
18043 test -d \$dldir || mkdir -p \$dldir~
18044 $install_prog $dir/$dlname \$dldir/$dlname'
18045 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18046 dlpath=$dir/\$dldll~
18048 shlibpath_overrides_runpath=yes
18049 dynamic_linker='Win32 link.exe'
18053 # Assume MSVC wrapper
18054 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18055 dynamic_linker='Win32 ld.exe'
18058 # FIXME: first we should search . and the directory the executable is in
18062 darwin* | rhapsody*)
18063 dynamic_linker="$host_os dyld"
18064 version_type=darwin
18067 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18068 soname_spec='${libname}${release}${major}$shared_ext'
18069 shlibpath_overrides_runpath=yes
18070 shlibpath_var=DYLD_LIBRARY_PATH
18071 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18073 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18081 soname_spec='${libname}${release}${shared_ext}$major'
18082 shlibpath_var=LD_LIBRARY_PATH
18089 freebsd* | dragonfly*)
18090 # DragonFly does not have aout. When/if they implement a new
18091 # versioning mechanism, adjust this.
18092 if test -x /usr/bin/objformat; then
18093 objformat=`/usr/bin/objformat`
18096 freebsd[123]*) objformat=aout ;;
18097 *) objformat=elf ;;
18100 version_type=freebsd-$objformat
18101 case $version_type in
18103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18112 shlibpath_var=LD_LIBRARY_PATH
18115 shlibpath_overrides_runpath=yes
18117 freebsd3.[01]* | freebsdelf3.[01]*)
18118 shlibpath_overrides_runpath=yes
18119 hardcode_into_libs=yes
18121 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18122 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18123 shlibpath_overrides_runpath=no
18124 hardcode_into_libs=yes
18126 *) # from 4.6 on, and DragonFly
18127 shlibpath_overrides_runpath=yes
18128 hardcode_into_libs=yes
18137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18138 soname_spec='${libname}${release}${shared_ext}$major'
18139 shlibpath_var=LD_LIBRARY_PATH
18140 hardcode_into_libs=yes
18147 dynamic_linker="$host_os runtime_loader"
18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18149 soname_spec='${libname}${release}${shared_ext}$major'
18150 shlibpath_var=LIBRARY_PATH
18151 shlibpath_overrides_runpath=yes
18152 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18153 hardcode_into_libs=yes
18156 hpux9* | hpux10* | hpux11*)
18157 # Give a soname corresponding to the major version so that dld.sl refuses to
18158 # link against other versions.
18165 hardcode_into_libs=yes
18166 dynamic_linker="$host_os dld.so"
18167 shlibpath_var=LD_LIBRARY_PATH
18168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18170 soname_spec='${libname}${release}${shared_ext}$major'
18171 if test "X$HPUX_IA64_MODE" = X32; then
18172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18180 hardcode_into_libs=yes
18181 dynamic_linker="$host_os dld.sl"
18182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18185 soname_spec='${libname}${release}${shared_ext}$major'
18186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18191 dynamic_linker="$host_os dld.sl"
18192 shlibpath_var=SHLIB_PATH
18193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18195 soname_spec='${libname}${release}${shared_ext}$major'
18198 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18199 postinstall_cmds='chmod 555 $lib'
18200 # or fails outright, so override atomically:
18201 install_override_mode=555
18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18209 soname_spec='${libname}${release}${shared_ext}$major'
18210 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18211 shlibpath_var=LD_LIBRARY_PATH
18212 shlibpath_overrides_runpath=no
18213 hardcode_into_libs=yes
18216 irix5* | irix6* | nonstopux*)
18218 nonstopux*) version_type=nonstopux ;;
18220 if test "$lt_cv_prog_gnu_ld" = yes; then
18228 soname_spec='${libname}${release}${shared_ext}$major'
18229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18231 irix5* | nonstopux*)
18232 libsuff= shlibsuff=
18235 case $LD in # libtool.m4 will add one of these switches to LD
18236 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18237 libsuff= shlibsuff= libmagic=32-bit;;
18238 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18239 libsuff=32 shlibsuff=N32 libmagic=N32;;
18240 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18241 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18242 *) libsuff= shlibsuff= libmagic=never-match;;
18246 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18247 shlibpath_overrides_runpath=no
18248 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18249 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18250 hardcode_into_libs=yes
18253 # No shared lib support for Linux oldld, aout, or coff.
18254 linux*oldld* | linux*aout* | linux*coff*)
18258 # This must be Linux ELF.
18259 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18264 soname_spec='${libname}${release}${shared_ext}$major'
18265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18266 shlibpath_var=LD_LIBRARY_PATH
18267 shlibpath_overrides_runpath=no
18269 # Some binutils ld are patched to set DT_RUNPATH
18270 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18271 $as_echo_n "(cached) " >&6
18273 lt_cv_shlibpath_overrides_runpath=no
18274 save_LDFLAGS=$LDFLAGS
18275 save_libdir=$libdir
18276 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18277 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h. */
18289 if ac_fn_cxx_try_link "$LINENO"; then :
18290 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18291 lt_cv_shlibpath_overrides_runpath=yes
18294 rm -f core conftest.err conftest.$ac_objext \
18295 conftest$ac_exeext conftest.$ac_ext
18296 LDFLAGS=$save_LDFLAGS
18297 libdir=$save_libdir
18301 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18303 # This implies no fast_install, which is unacceptable.
18304 # Some rework will be needed to allow for fast_install
18305 # before this can be enabled.
18306 hardcode_into_libs=yes
18308 # Append ld.so.conf contents to the search path
18309 if test -f /etc/ld.so.conf; then
18310 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' ' '`
18311 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18314 # We used to test for /lib/ld.so.1 and disable shared libraries on
18315 # powerpc, because MkLinux only supported shared libraries with the
18316 # GNU dynamic linker. Since this was broken with cross compilers,
18317 # most powerpc-linux boxes support dynamic linking these days and
18318 # people can always --disable-shared, the test was removed, and we
18319 # assume the GNU/Linux dynamic linker is in use.
18320 dynamic_linker='GNU/Linux ld.so'
18327 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18330 dynamic_linker='NetBSD (a.out) ld.so'
18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18333 soname_spec='${libname}${release}${shared_ext}$major'
18334 dynamic_linker='NetBSD ld.elf_so'
18336 shlibpath_var=LD_LIBRARY_PATH
18337 shlibpath_overrides_runpath=yes
18338 hardcode_into_libs=yes
18343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18344 shlibpath_var=LD_LIBRARY_PATH
18345 shlibpath_overrides_runpath=yes
18352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18353 soname_spec='${libname}${release}${shared_ext}$major'
18354 shlibpath_var=LD_LIBRARY_PATH
18355 shlibpath_overrides_runpath=no
18356 hardcode_into_libs=yes
18357 dynamic_linker='ldqnx.so'
18362 sys_lib_dlsearch_path_spec="/usr/lib"
18364 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18366 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18367 *) need_version=no ;;
18369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18371 shlibpath_var=LD_LIBRARY_PATH
18372 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18374 openbsd2.[89] | openbsd2.[89].*)
18375 shlibpath_overrides_runpath=no
18378 shlibpath_overrides_runpath=yes
18382 shlibpath_overrides_runpath=yes
18387 libname_spec='$name'
18390 library_names_spec='$libname${shared_ext} $libname.a'
18391 dynamic_linker='OS/2 ld.exe'
18392 shlibpath_var=LIBPATH
18395 osf3* | osf4* | osf5*)
18399 soname_spec='${libname}${release}${shared_ext}$major'
18400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18401 shlibpath_var=LD_LIBRARY_PATH
18402 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18403 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18415 soname_spec='${libname}${release}${shared_ext}$major'
18416 shlibpath_var=LD_LIBRARY_PATH
18417 shlibpath_overrides_runpath=yes
18418 hardcode_into_libs=yes
18419 # ldd complains unless libraries are executable
18420 postinstall_cmds='chmod +x $lib'
18425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18426 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18427 shlibpath_var=LD_LIBRARY_PATH
18428 shlibpath_overrides_runpath=yes
18429 if test "$with_gnu_ld" = yes; then
18437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18438 soname_spec='${libname}${release}${shared_ext}$major'
18439 shlibpath_var=LD_LIBRARY_PATH
18440 case $host_vendor in
18442 shlibpath_overrides_runpath=no
18444 runpath_var=LD_RUN_PATH
18452 shlibpath_overrides_runpath=no
18453 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18459 if test -d /usr/nec ;then
18461 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18462 soname_spec='$libname${shared_ext}.$major'
18463 shlibpath_var=LD_LIBRARY_PATH
18467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18468 version_type=freebsd-elf
18471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18472 soname_spec='${libname}${release}${shared_ext}$major'
18473 shlibpath_var=LD_LIBRARY_PATH
18474 shlibpath_overrides_runpath=yes
18475 hardcode_into_libs=yes
18476 if test "$with_gnu_ld" = yes; then
18477 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18479 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18482 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18486 sys_lib_dlsearch_path_spec='/usr/lib'
18490 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18495 shlibpath_var=LD_LIBRARY_PATH
18496 shlibpath_overrides_runpath=no
18497 hardcode_into_libs=yes
18502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18503 soname_spec='${libname}${release}${shared_ext}$major'
18504 shlibpath_var=LD_LIBRARY_PATH
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18512 $as_echo "$dynamic_linker" >&6; }
18513 test "$dynamic_linker" = no && can_build_shared=no
18515 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18516 if test "$GCC" = yes; then
18517 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18520 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18521 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18523 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18524 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18565 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18566 hardcode_action_CXX=
18567 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18568 test -n "$runpath_var_CXX" ||
18569 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18571 # We can hardcode non-existent directories.
18572 if test "$hardcode_direct_CXX" != no &&
18573 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18574 # have to relink, otherwise we might link with an installed library
18575 # when we should be linking with a yet-to-be-installed one
18576 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18577 test "$hardcode_minus_L_CXX" != no; then
18578 # Linking always hardcodes the temporary library directory.
18579 hardcode_action_CXX=relink
18581 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18582 hardcode_action_CXX=immediate
18585 # We cannot hardcode anything, or else we can only hardcode existing
18587 hardcode_action_CXX=unsupported
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18590 $as_echo "$hardcode_action_CXX" >&6; }
18592 if test "$hardcode_action_CXX" = relink ||
18593 test "$inherit_rpath_CXX" = yes; then
18594 # Fast installation is not supported
18595 enable_fast_install=no
18596 elif test "$shlibpath_overrides_runpath" = yes ||
18597 test "$enable_shared" = no; then
18598 # Fast installation is not necessary
18599 enable_fast_install=needless
18608 fi # test -n "$compiler"
18611 CFLAGS=$lt_save_CFLAGS
18615 with_gnu_ld=$lt_save_with_gnu_ld
18616 lt_cv_path_LDCXX=$lt_cv_path_LD
18617 lt_cv_path_LD=$lt_save_path_LD
18618 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18619 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18620 fi # test "$_lt_caught_CXX_error" != yes
18623 ac_cpp='$CPP $CPPFLAGS'
18624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18640 ac_config_commands="$ac_config_commands libtool"
18645 # Only expand once:
18650 # NTP has (so far) been relying on leading-edge autogen, which
18651 # means we need the appropriate corresponding libopts as well.
18652 # Therefore, by default:
18653 # - use the version of libopts we ship with
18654 # - do not install it
18655 # - build a static copy (AC_DISABLE_SHARED - done earlier)
18656 case "${enable_local_libopts+set}" in
18658 *) enable_local_libopts=yes ;;
18660 case "${enable_libopts_install+set}" in
18662 *) enable_libopts_install=no ;;
18665 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18666 if test "x$ac_cv_type_pid_t" = xyes; then :
18670 cat >>confdefs.h <<_ACEOF
18678 ac_header_dirent=no
18679 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18680 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18682 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18683 if eval \${$as_ac_Header+:} false; then :
18684 $as_echo_n "(cached) " >&6
18686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18687 /* end confdefs.h. */
18688 #include <sys/types.h>
18700 if ac_fn_c_try_compile "$LINENO"; then :
18701 eval "$as_ac_Header=yes"
18703 eval "$as_ac_Header=no"
18705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18707 eval ac_res=\$$as_ac_Header
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18709 $as_echo "$ac_res" >&6; }
18710 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18711 cat >>confdefs.h <<_ACEOF
18712 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18715 ac_header_dirent=$ac_hdr; break
18719 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18720 if test $ac_header_dirent = dirent.h; then
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18722 $as_echo_n "checking for library containing opendir... " >&6; }
18723 if ${ac_cv_search_opendir+:} false; then :
18724 $as_echo_n "(cached) " >&6
18726 ac_func_search_save_LIBS=$LIBS
18727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728 /* end confdefs.h. */
18730 /* Override any GCC internal prototype to avoid an error.
18731 Use char because int might match the return type of a GCC
18732 builtin and then its argument prototype would still apply. */
18745 for ac_lib in '' dir; do
18746 if test -z "$ac_lib"; then
18747 ac_res="none required"
18750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18752 if ac_fn_c_try_link "$LINENO"; then :
18753 ac_cv_search_opendir=$ac_res
18755 rm -f core conftest.err conftest.$ac_objext \
18757 if ${ac_cv_search_opendir+:} false; then :
18761 if ${ac_cv_search_opendir+:} false; then :
18764 ac_cv_search_opendir=no
18766 rm conftest.$ac_ext
18767 LIBS=$ac_func_search_save_LIBS
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18770 $as_echo "$ac_cv_search_opendir" >&6; }
18771 ac_res=$ac_cv_search_opendir
18772 if test "$ac_res" != no; then :
18773 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18779 $as_echo_n "checking for library containing opendir... " >&6; }
18780 if ${ac_cv_search_opendir+:} false; then :
18781 $as_echo_n "(cached) " >&6
18783 ac_func_search_save_LIBS=$LIBS
18784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18785 /* end confdefs.h. */
18787 /* Override any GCC internal prototype to avoid an error.
18788 Use char because int might match the return type of a GCC
18789 builtin and then its argument prototype would still apply. */
18802 for ac_lib in '' x; do
18803 if test -z "$ac_lib"; then
18804 ac_res="none required"
18807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18809 if ac_fn_c_try_link "$LINENO"; then :
18810 ac_cv_search_opendir=$ac_res
18812 rm -f core conftest.err conftest.$ac_objext \
18814 if ${ac_cv_search_opendir+:} false; then :
18818 if ${ac_cv_search_opendir+:} false; then :
18821 ac_cv_search_opendir=no
18823 rm conftest.$ac_ext
18824 LIBS=$ac_func_search_save_LIBS
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18827 $as_echo "$ac_cv_search_opendir" >&6; }
18828 ac_res=$ac_cv_search_opendir
18829 if test "$ac_res" != no; then :
18830 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18837 # =================
18839 # =================
18841 sys/mman.h sys/param.h sys/poll.h sys/procset.h \
18842 sys/select.h sys/socket.h sys/stropts.h sys/time.h \
18843 sys/un.h sys/wait.h dlfcn.h errno.h \
18844 fcntl.h libgen.h libintl.h memory.h \
18845 netinet/in.h setjmp.h stdbool.h sysexits.h \
18848 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18849 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18850 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18851 cat >>confdefs.h <<_ACEOF
18852 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18860 for ac_header in stdarg.h varargs.h
18862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18863 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18864 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18865 cat >>confdefs.h <<_ACEOF
18866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18868 lo_have_arg_hdr=true;break
18870 lo_have_arg_hdr=false
18876 for ac_header in string.h strings.h
18878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18879 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18880 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18881 cat >>confdefs.h <<_ACEOF
18882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18884 lo_have_str_hdr=true;break
18886 lo_have_str_hdr=false
18892 for ac_header in limits.h sys/limits.h values.h
18894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18895 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18896 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18897 cat >>confdefs.h <<_ACEOF
18898 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18900 lo_have_lim_hdr=true;break
18902 lo_have_lim_hdr=false
18908 for ac_header in inttypes.h stdint.h
18910 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18911 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18912 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18913 cat >>confdefs.h <<_ACEOF
18914 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18916 lo_have_typ_hdr=true;break
18918 lo_have_typ_hdr=false
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
18925 $as_echo_n "checking for working stdnoreturn.h... " >&6; }
18926 if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
18927 $as_echo_n "(cached) " >&6
18929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18930 /* end confdefs.h. */
18931 #include <stdlib.h>
18932 #include <stdnoreturn.h>
18933 /* Do not check for 'noreturn' after the return type.
18934 C11 allows it, but it's rarely done that way
18935 and circa-2012 bleeding-edge GCC rejects it when given
18936 -Werror=old-style-declaration. */
18937 noreturn void foo1 (void) { exit (0); }
18938 _Noreturn void foo2 (void) { exit (0); }
18939 int testit (int argc, char **argv) {
18942 (argv[0][0] ? foo1 : foo2) ();
18953 if ac_fn_c_try_compile "$LINENO"; then :
18954 gl_cv_header_working_stdnoreturn_h=yes
18956 gl_cv_header_working_stdnoreturn_h=no
18958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
18961 $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
18963 if test $gl_cv_header_working_stdnoreturn_h = yes; then
18966 STDNORETURN_H='stdnoreturn.h'
18970 if test -n "$STDNORETURN_H"; then
18971 GL_GENERATE_STDNORETURN_H_TRUE=
18972 GL_GENERATE_STDNORETURN_H_FALSE='#'
18974 GL_GENERATE_STDNORETURN_H_TRUE='#'
18975 GL_GENERATE_STDNORETURN_H_FALSE=
18980 # ----------------------------------------------------------------------
18981 # check for various programs used during the build.
18982 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
18983 # ----------------------------------------------------------------------
18984 for ac_header in runetype.h wchar.h
18986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18987 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18988 $ac_includes_default
18989 #if HAVE_RUNETYPE_H
18990 # include <runetype.h>
18994 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18995 cat >>confdefs.h <<_ACEOF
18996 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19004 # Check whether --enable-nls was given.
19005 if test "${enable_nls+set}" = set; then :
19006 enableval=$enable_nls;
19009 if test "x$enable_nls" != "xno" && \
19010 test "X${ac_cv_header_libintl_h}" = Xyes; then :
19013 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19017 # --------------------------------------------
19018 # Verify certain entries from AC_CHECK_HEADERS
19019 # --------------------------------------------
19020 ${lo_have_arg_hdr} || \
19021 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
19023 ${lo_have_str_hdr} || \
19024 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
19026 ${lo_have_lim_hdr} || \
19027 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
19029 ${lo_have_typ_hdr} || \
19030 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
19032 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
19033 do eval as_ac_var=\${ac_cv_header_${f}_h}
19034 test "X${as_ac_var}" = Xyes || {
19035 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
19038 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
19039 echo '#include <stdint.h>' > inttypes.h
19041 # ----------------------------------------------------------------------
19042 # Checks for typedefs
19043 # ----------------------------------------------------------------------
19044 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
19045 if test "x$ac_cv_type_wchar_t" = xyes; then :
19047 cat >>confdefs.h <<_ACEOF
19048 #define HAVE_WCHAR_T 1
19054 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
19055 $ac_includes_default
19056 #if HAVE_RUNETYPE_H
19057 # include <runetype.h>
19060 # include <wchar.h>
19064 if test "x$ac_cv_type_wint_t" = xyes; then :
19066 cat >>confdefs.h <<_ACEOF
19067 #define HAVE_WINT_T 1
19073 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
19074 if test "x$ac_cv_type_int8_t" = xyes; then :
19076 cat >>confdefs.h <<_ACEOF
19077 #define HAVE_INT8_T 1
19082 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
19083 if test "x$ac_cv_type_uint8_t" = xyes; then :
19085 cat >>confdefs.h <<_ACEOF
19086 #define HAVE_UINT8_T 1
19091 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
19092 if test "x$ac_cv_type_int16_t" = xyes; then :
19094 cat >>confdefs.h <<_ACEOF
19095 #define HAVE_INT16_T 1
19100 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
19101 if test "x$ac_cv_type_uint16_t" = xyes; then :
19103 cat >>confdefs.h <<_ACEOF
19104 #define HAVE_UINT16_T 1
19109 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
19110 if test "x$ac_cv_type_int32_t" = xyes; then :
19112 cat >>confdefs.h <<_ACEOF
19113 #define HAVE_INT32_T 1
19118 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
19119 if test "x$ac_cv_type_uint32_t" = xyes; then :
19121 cat >>confdefs.h <<_ACEOF
19122 #define HAVE_UINT32_T 1
19127 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
19128 if test "x$ac_cv_type_intptr_t" = xyes; then :
19130 cat >>confdefs.h <<_ACEOF
19131 #define HAVE_INTPTR_T 1
19136 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
19137 if test "x$ac_cv_type_uintptr_t" = xyes; then :
19139 cat >>confdefs.h <<_ACEOF
19140 #define HAVE_UINTPTR_T 1
19145 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
19146 if test "x$ac_cv_type_uint_t" = xyes; then :
19148 cat >>confdefs.h <<_ACEOF
19149 #define HAVE_UINT_T 1
19154 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19155 if test "x$ac_cv_type_pid_t" = xyes; then :
19157 cat >>confdefs.h <<_ACEOF
19158 #define HAVE_PID_T 1
19163 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19164 if test "x$ac_cv_type_size_t" = xyes; then :
19166 cat >>confdefs.h <<_ACEOF
19167 #define HAVE_SIZE_T 1
19172 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19173 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19175 cat >>confdefs.h <<_ACEOF
19176 #define HAVE_PTRDIFF_T 1
19182 # The cast to long int works around a bug in the HP C Compiler
19183 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19184 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19185 # This bug is HP SR number 8606223364.
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
19187 $as_echo_n "checking size of char *... " >&6; }
19188 if ${ac_cv_sizeof_char_p+:} false; then :
19189 $as_echo_n "(cached) " >&6
19191 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
19194 if test "$ac_cv_type_char_p" = yes; then
19195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19197 as_fn_error 77 "cannot compute sizeof (char *)
19198 See \`config.log' for more details" "$LINENO" 5; }
19200 ac_cv_sizeof_char_p=0
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
19206 $as_echo "$ac_cv_sizeof_char_p" >&6; }
19210 cat >>confdefs.h <<_ACEOF
19211 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
19215 # The cast to long int works around a bug in the HP C Compiler
19216 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19217 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19218 # This bug is HP SR number 8606223364.
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
19220 $as_echo_n "checking size of int... " >&6; }
19221 if ${ac_cv_sizeof_int+:} false; then :
19222 $as_echo_n "(cached) " >&6
19224 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
19227 if test "$ac_cv_type_int" = yes; then
19228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19230 as_fn_error 77 "cannot compute sizeof (int)
19231 See \`config.log' for more details" "$LINENO" 5; }
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
19239 $as_echo "$ac_cv_sizeof_int" >&6; }
19243 cat >>confdefs.h <<_ACEOF
19244 #define SIZEOF_INT $ac_cv_sizeof_int
19248 # The cast to long int works around a bug in the HP C Compiler
19249 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19250 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19251 # This bug is HP SR number 8606223364.
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
19253 $as_echo_n "checking size of long... " >&6; }
19254 if ${ac_cv_sizeof_long+:} false; then :
19255 $as_echo_n "(cached) " >&6
19257 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
19260 if test "$ac_cv_type_long" = yes; then
19261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19263 as_fn_error 77 "cannot compute sizeof (long)
19264 See \`config.log' for more details" "$LINENO" 5; }
19266 ac_cv_sizeof_long=0
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
19272 $as_echo "$ac_cv_sizeof_long" >&6; }
19276 cat >>confdefs.h <<_ACEOF
19277 #define SIZEOF_LONG $ac_cv_sizeof_long
19281 # The cast to long int works around a bug in the HP C Compiler
19282 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19283 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19284 # This bug is HP SR number 8606223364.
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
19286 $as_echo_n "checking size of short... " >&6; }
19287 if ${ac_cv_sizeof_short+:} false; then :
19288 $as_echo_n "(cached) " >&6
19290 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
19293 if test "$ac_cv_type_short" = yes; then
19294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19296 as_fn_error 77 "cannot compute sizeof (short)
19297 See \`config.log' for more details" "$LINENO" 5; }
19299 ac_cv_sizeof_short=0
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
19305 $as_echo "$ac_cv_sizeof_short" >&6; }
19309 cat >>confdefs.h <<_ACEOF
19310 #define SIZEOF_SHORT $ac_cv_sizeof_short
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
19319 $as_echo_n "checking for pathfind in -lgen... " >&6; }
19320 if ${ac_cv_lib_gen_pathfind+:} false; then :
19321 $as_echo_n "(cached) " >&6
19323 ac_check_lib_save_LIBS=$LIBS
19325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19326 /* end confdefs.h. */
19328 /* Override any GCC internal prototype to avoid an error.
19329 Use char because int might match the return type of a GCC
19330 builtin and then its argument prototype would still apply. */
19338 return pathfind ();
19343 if ac_fn_c_try_link "$LINENO"; then :
19344 ac_cv_lib_gen_pathfind=yes
19346 ac_cv_lib_gen_pathfind=no
19348 rm -f core conftest.err conftest.$ac_objext \
19349 conftest$ac_exeext conftest.$ac_ext
19350 LIBS=$ac_check_lib_save_LIBS
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
19353 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
19354 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
19355 cat >>confdefs.h <<_ACEOF
19356 #define HAVE_LIBGEN 1
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
19364 $as_echo_n "checking for gettext in -lintl... " >&6; }
19365 if ${ac_cv_lib_intl_gettext+:} false; then :
19366 $as_echo_n "(cached) " >&6
19368 ac_check_lib_save_LIBS=$LIBS
19369 LIBS="-lintl $LIBS"
19370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19371 /* end confdefs.h. */
19373 /* Override any GCC internal prototype to avoid an error.
19374 Use char because int might match the return type of a GCC
19375 builtin and then its argument prototype would still apply. */
19388 if ac_fn_c_try_link "$LINENO"; then :
19389 ac_cv_lib_intl_gettext=yes
19391 ac_cv_lib_intl_gettext=no
19393 rm -f core conftest.err conftest.$ac_objext \
19394 conftest$ac_exeext conftest.$ac_ext
19395 LIBS=$ac_check_lib_save_LIBS
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
19398 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
19399 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
19400 cat >>confdefs.h <<_ACEOF
19401 #define HAVE_LIBINTL 1
19404 LIBS="-lintl $LIBS"
19408 for ac_func in vprintf
19410 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19411 if test "x$ac_cv_func_vprintf" = xyes; then :
19412 cat >>confdefs.h <<_ACEOF
19413 #define HAVE_VPRINTF 1
19416 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19417 if test "x$ac_cv_func__doprnt" = xyes; then :
19419 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19427 for ac_header in vfork.h
19429 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19430 if test "x$ac_cv_header_vfork_h" = xyes; then :
19431 cat >>confdefs.h <<_ACEOF
19432 #define HAVE_VFORK_H 1
19439 for ac_func in fork vfork
19441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19442 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19443 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19444 cat >>confdefs.h <<_ACEOF
19445 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19451 if test "x$ac_cv_func_fork" = xyes; then
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19453 $as_echo_n "checking for working fork... " >&6; }
19454 if ${ac_cv_func_fork_works+:} false; then :
19455 $as_echo_n "(cached) " >&6
19457 if test "$cross_compiling" = yes; then :
19458 ac_cv_func_fork_works=cross
19460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19461 /* end confdefs.h. */
19462 $ac_includes_default
19467 /* By Ruediger Kuhlmann. */
19468 return fork () < 0;
19474 if ac_fn_c_try_run "$LINENO"; then :
19475 ac_cv_func_fork_works=yes
19477 ac_cv_func_fork_works=no
19479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19480 conftest.$ac_objext conftest.beam conftest.$ac_ext
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19485 $as_echo "$ac_cv_func_fork_works" >&6; }
19488 ac_cv_func_fork_works=$ac_cv_func_fork
19490 if test "x$ac_cv_func_fork_works" = xcross; then
19492 *-*-amigaos* | *-*-msdosdjgpp*)
19493 # Override, as these systems have only a dummy fork() stub
19494 ac_cv_func_fork_works=no
19497 ac_cv_func_fork_works=yes
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19501 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19503 ac_cv_func_vfork_works=$ac_cv_func_vfork
19504 if test "x$ac_cv_func_vfork" = xyes; then
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19506 $as_echo_n "checking for working vfork... " >&6; }
19507 if ${ac_cv_func_vfork_works+:} false; then :
19508 $as_echo_n "(cached) " >&6
19510 if test "$cross_compiling" = yes; then :
19511 ac_cv_func_vfork_works=cross
19513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19514 /* end confdefs.h. */
19515 /* Thanks to Paul Eggert for this test. */
19516 $ac_includes_default
19517 #include <sys/wait.h>
19518 #ifdef HAVE_VFORK_H
19519 # include <vfork.h>
19521 /* On some sparc systems, changes by the child to local and incoming
19522 argument registers are propagated back to the parent. The compiler
19523 is told about this with #include <vfork.h>, but some compilers
19524 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19525 static variable whose address is put into a register that is
19526 clobbered by the vfork. */
19529 sparc_address_test (int arg)
19531 sparc_address_test (arg) int arg;
19534 static pid_t child;
19552 pid_t parent = getpid ();
19555 sparc_address_test (0);
19560 /* Here is another test for sparc vfork register problems. This
19561 test uses lots of local variables, at least as many local
19562 variables as main has allocated so far including compiler
19563 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19564 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19565 reuse the register of parent for one of the local variables,
19566 since it will think that parent can't possibly be used any more
19567 in this routine. Assigning to the local variable will thus
19568 munge parent in the parent process. */
19570 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19571 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19572 /* Convince the compiler that p..p7 are live; otherwise, it might
19573 use the same hardware register for all 8 local variables. */
19574 if (p != p1 || p != p2 || p != p3 || p != p4
19575 || p != p5 || p != p6 || p != p7)
19578 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19579 from child file descriptors. If the child closes a descriptor
19580 before it execs or exits, this munges the parent's descriptor
19581 as well. Test for this by closing stdout in the child. */
19582 _exit(close(fileno(stdout)) != 0);
19587 while (wait(&status) != child)
19590 /* Was there some problem with vforking? */
19593 /* Did the child fail? (This shouldn't happen.) */
19596 /* Did the vfork/compiler bug occur? */
19597 || parent != getpid()
19599 /* Did the file descriptor bug occur? */
19600 || fstat(fileno(stdout), &st) != 0
19605 if ac_fn_c_try_run "$LINENO"; then :
19606 ac_cv_func_vfork_works=yes
19608 ac_cv_func_vfork_works=no
19610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19611 conftest.$ac_objext conftest.beam conftest.$ac_ext
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19616 $as_echo "$ac_cv_func_vfork_works" >&6; }
19619 if test "x$ac_cv_func_fork_works" = xcross; then
19620 ac_cv_func_vfork_works=$ac_cv_func_vfork
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19622 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19625 if test "x$ac_cv_func_vfork_works" = xyes; then
19627 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19631 $as_echo "#define vfork fork" >>confdefs.h
19634 if test "x$ac_cv_func_fork_works" = xyes; then
19636 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19640 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
19641 strrchr strsignal fchmod fstat chmod
19643 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19644 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19645 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19646 cat >>confdefs.h <<_ACEOF
19647 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
19654 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
19655 if ${ac_cv_path_SED+:} false; then :
19656 $as_echo_n "(cached) " >&6
19658 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
19659 for ac_i in 1 2 3 4 5 6 7; do
19660 ac_script="$ac_script$as_nl$ac_script"
19662 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
19663 { ac_script=; unset ac_script;}
19664 if test -z "$SED"; then
19665 ac_path_SED_found=false
19666 # Loop through the user's path and test for each of PROGNAME-LIST
19667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19668 for as_dir in $PATH
19671 test -z "$as_dir" && as_dir=.
19672 for ac_prog in sed gsed; do
19673 for ac_exec_ext in '' $ac_executable_extensions; do
19674 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
19675 as_fn_executable_p "$ac_path_SED" || continue
19676 # Check for GNU ac_path_SED and select it if it is found.
19677 # Check for GNU $ac_path_SED
19678 case `"$ac_path_SED" --version 2>&1` in
19680 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
19683 $as_echo_n 0123456789 >"conftest.in"
19686 cat "conftest.in" "conftest.in" >"conftest.tmp"
19687 mv "conftest.tmp" "conftest.in"
19688 cp "conftest.in" "conftest.nl"
19689 $as_echo '' >> "conftest.nl"
19690 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
19691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19692 as_fn_arith $ac_count + 1 && ac_count=$as_val
19693 if test $ac_count -gt ${ac_path_SED_max-0}; then
19694 # Best one so far, save it but keep looking for a better one
19695 ac_cv_path_SED="$ac_path_SED"
19696 ac_path_SED_max=$ac_count
19698 # 10*(2^10) chars as input seems more than enough
19699 test $ac_count -gt 10 && break
19701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19704 $ac_path_SED_found && break 3
19709 if test -z "$ac_cv_path_SED"; then
19710 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
19713 ac_cv_path_SED=$SED
19717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
19718 $as_echo "$ac_cv_path_SED" >&6; }
19719 SED="$ac_cv_path_SED"
19724 POSIX_SHELL=`which bash`
19725 test -x "$POSIX_SHELL" && break
19726 POSIX_SHELL=`which dash`
19727 test -x "$POSIX_SHELL" && break
19728 POSIX_SHELL=/usr/xpg4/bin/sh
19729 test -x "$POSIX_SHELL" && break
19730 POSIX_SHELL=`/bin/sh -c '
19732 if ! true ; then exit 1 ; fi
19734 test -x "$POSIX_SHELL" && break
19735 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
19738 cat >>confdefs.h <<_ACEOF
19739 #define POSIX_SHELL "${POSIX_SHELL}"
19746 LIBOPTS_BUILD_BLOCKED=true
19749 NEED_LIBOPTS_DIR=''
19751 # Check whether --enable-local-libopts was given.
19752 if test "${enable_local_libopts+set}" = set; then :
19753 enableval=$enable_local_libopts;
19754 if test x$enableval = xyes ; then
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
19756 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
19757 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19758 NEED_LIBOPTS_DIR=true
19759 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19764 # Check whether --enable-libopts-install was given.
19765 if test "${enable_libopts_install+set}" = set; then :
19766 enableval=$enable_libopts_install;
19769 if test "X${enable_libopts_install}" = Xyes; then
19770 INSTALL_LIBOPTS_TRUE=
19771 INSTALL_LIBOPTS_FALSE='#'
19773 INSTALL_LIBOPTS_TRUE='#'
19774 INSTALL_LIBOPTS_FALSE=
19778 if test -z "${NEED_LIBOPTS_DIR}" ; then
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
19780 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
19782 # Check whether --with-autoopts-config was given.
19783 if test "${with_autoopts_config+set}" = set; then :
19784 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
19787 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
19788 if ${lo_cv_with_autoopts_config+:} false; then :
19789 $as_echo_n "(cached) " >&6
19791 if autoopts-config --help 2>/dev/null 1>&2
19792 then lo_cv_with_autoopts_config=autoopts-config
19793 elif libopts-config --help 2>/dev/null 1>&2
19794 then lo_cv_with_autoopts_config=libopts-config
19795 else lo_cv_with_autoopts_config=no ; fi
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
19798 $as_echo "$lo_cv_with_autoopts_config" >&6; }
19801 # end of AC_ARG_WITH
19803 if ${lo_cv_test_autoopts+:} false; then :
19804 $as_echo_n "(cached) " >&6
19807 if test -z "${lo_cv_with_autoopts_config}" \
19808 -o X"${lo_cv_with_autoopts_config}" = Xno
19810 if autoopts-config --help 2>/dev/null 1>&2
19811 then lo_cv_with_autoopts_config=autoopts-config
19812 elif libopts-config --help 2>/dev/null 1>&2
19813 then lo_cv_with_autoopts_config=libopts-config
19814 else lo_cv_with_autoopts_config=false ; fi
19816 lo_cv_test_autoopts=`
19817 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
19818 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
19819 then lo_cv_test_autoopts=no ; fi
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
19824 $as_echo "${lo_cv_test_autoopts}" >&6; }
19826 if test "X${lo_cv_test_autoopts}" != Xno
19828 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
19829 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
19831 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19832 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19833 NEED_LIBOPTS_DIR=true
19835 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
19836 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
19837 NEED_LIBOPTS_DIR=''
19839 if test -n "${NEED_LIBOPTS_DIR}"; then
19841 NEED_LIBOPTS_FALSE='#'
19843 NEED_LIBOPTS_TRUE='#'
19844 NEED_LIBOPTS_FALSE=
19849 LIBOPTS_DIR=sntp/libopts
19852 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
19854 # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD
19859 ntp_pkgconfig_min_version='0.15.0'
19860 if test -n "$ac_tool_prefix"; then
19861 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19862 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19864 $as_echo_n "checking for $ac_word... " >&6; }
19865 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19866 $as_echo_n "(cached) " >&6
19868 case $PKG_CONFIG in
19870 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19874 for as_dir in $PATH
19877 test -z "$as_dir" && as_dir=.
19878 for ac_exec_ext in '' $ac_executable_extensions; do
19879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19880 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19891 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19892 if test -n "$PKG_CONFIG"; then
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19894 $as_echo "$PKG_CONFIG" >&6; }
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19897 $as_echo "no" >&6; }
19902 if test -z "$ac_cv_path_PKG_CONFIG"; then
19903 ac_pt_PKG_CONFIG=$PKG_CONFIG
19904 # Extract the first word of "pkg-config", so it can be a program name with args.
19905 set dummy pkg-config; ac_word=$2
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19907 $as_echo_n "checking for $ac_word... " >&6; }
19908 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19909 $as_echo_n "(cached) " >&6
19911 case $ac_pt_PKG_CONFIG in
19913 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19917 for as_dir in $PATH
19920 test -z "$as_dir" && as_dir=.
19921 for ac_exec_ext in '' $ac_executable_extensions; do
19922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19923 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19934 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19935 if test -n "$ac_pt_PKG_CONFIG"; then
19936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19937 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19940 $as_echo "no" >&6; }
19943 if test "x$ac_pt_PKG_CONFIG" = x; then
19946 case $cross_compiling:$ac_tool_warned in
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19950 ac_tool_warned=yes ;;
19952 PKG_CONFIG=$ac_pt_PKG_CONFIG
19955 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19958 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
19959 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
19961 case "$PKG_CONFIG" in
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
19964 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
19965 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19967 $as_echo "yes" >&6; }
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19970 $as_echo "no" >&6; }
19979 # Check whether --enable-local-libevent was given.
19980 if test "${enable_local_libevent+set}" = set; then :
19981 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
19983 ntp_use_local_libevent=${ntp_use_local_libevent-detect}
19991 ntp_libevent_min_version=2
19992 ntp_libevent_tearoff=sntp/libevent
19998 case "$ntp_use_local_libevent" in
20001 *) # If we have (a good enough) pkg-config, see if it can find libevent
20002 case "$PKG_CONFIG" in
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
20005 $as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
20006 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
20008 ntp_use_local_libevent=no
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
20010 $as_echo "$as_me: Using the installed libevent" >&6;}
20011 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
20012 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
20013 # HMS: I hope the following is accurate.
20014 # We don't need -levent, we only need -levent_core.
20015 # While we could grab only the -L stuff, there *might* be
20016 # other flags there we want. Originally we just removed -levent
20017 # but then somebody decided to install -levent-2.0
20018 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
20019 # So now we dance...
20021 for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
20026 *) case "$LDADD_LIBEVENT" in
20027 '') LDADD_LIBEVENT="$i" ;;
20028 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
20033 case "$LIBISC_PTHREADS_NOTHREADS" in
20035 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
20037 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20039 $as_echo "yes" >&6; }
20041 ntp_use_local_libevent=yes
20042 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
20044 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20046 $as_echo "no" >&6; }
20050 ntp_use_local_libevent=yes
20056 case "$ntp_use_local_libevent" in
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
20059 $as_echo "$as_me: Using libevent tearoff" >&6;}
20060 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
20061 case "$LIBISC_PTHREADS_NOTHREADS" in
20063 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
20066 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
20071 if test "x$ntp_use_local_libevent" = "xyes"; then
20072 BUILD_LIBEVENT_TRUE=
20073 BUILD_LIBEVENT_FALSE='#'
20075 BUILD_LIBEVENT_TRUE='#'
20076 BUILD_LIBEVENT_FALSE=
20084 # Expose a cross-compilation indicator to makefiles
20085 if test $build != $host; then
20086 NTP_CROSSCOMPILE_TRUE=
20087 NTP_CROSSCOMPILE_FALSE='#'
20089 NTP_CROSSCOMPILE_TRUE='#'
20090 NTP_CROSSCOMPILE_FALSE=
20095 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20096 if test "x$ac_cv_type_size_t" = xyes; then :
20100 cat >>confdefs.h <<_ACEOF
20101 #define size_t unsigned int
20107 # Check whether --enable-c99-snprintf was given.
20108 if test "${enable_c99_snprintf+set}" = set; then :
20109 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
20111 force_c99_snprintf=no
20115 case "$force_c99_snprintf" in
20117 hw_force_rpl_snprintf=yes
20118 hw_force_rpl_vsnprintf=yes
20126 for ac_header in $ac_header_list
20128 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20129 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20131 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20132 cat >>confdefs.h <<_ACEOF
20133 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20147 $as_echo_n "checking for unsigned long long int... " >&6; }
20148 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
20149 $as_echo_n "(cached) " >&6
20151 ac_cv_type_unsigned_long_long_int=yes
20152 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20154 /* end confdefs.h. */
20156 /* For now, do not test the preprocessor; as of 2007 there are too many
20157 implementations with broken preprocessors. Perhaps this can
20158 be revisited in 2012. In the meantime, code should not expect
20159 #if to work with literals wider than 32 bits. */
20160 /* Test literals. */
20161 long long int ll = 9223372036854775807ll;
20162 long long int nll = -9223372036854775807LL;
20163 unsigned long long int ull = 18446744073709551615ULL;
20164 /* Test constant expressions. */
20165 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20167 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20173 /* Test availability of runtime routines for shift and division. */
20174 long long int llmax = 9223372036854775807ll;
20175 unsigned long long int ullmax = 18446744073709551615ull;
20176 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20177 | (llmax / ll) | (llmax % ll)
20178 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20179 | (ullmax / ull) | (ullmax % ull));
20185 if ac_fn_c_try_link "$LINENO"; then :
20188 ac_cv_type_unsigned_long_long_int=no
20190 rm -f core conftest.err conftest.$ac_objext \
20191 conftest$ac_exeext conftest.$ac_ext
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20195 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20196 if test $ac_cv_type_unsigned_long_long_int = yes; then
20198 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20203 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
20204 if test "x$ac_cv_func_vsnprintf" = xyes; then :
20205 hw_cv_func_vsnprintf=yes
20207 hw_cv_func_vsnprintf=no
20210 if test "$hw_cv_func_vsnprintf" = yes; then :
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
20212 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
20213 if ${hw_cv_func_vsnprintf_c99+:} false; then :
20214 $as_echo_n "(cached) " >&6
20216 if test "$cross_compiling" = yes; then :
20217 hw_cv_func_vsnprintf_c99=no
20219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20220 /* end confdefs.h. */
20222 #include <stdarg.h>
20225 static int testprintf(char *buf, size_t size, const char *format, ...)
20229 va_start(ap, format);
20230 result = vsnprintf(buf, size, format, ap);
20238 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20239 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20240 buf[0] != 'T' || buf[3] != '\0')
20246 if ac_fn_c_try_run "$LINENO"; then :
20247 hw_cv_func_vsnprintf_c99=yes
20249 hw_cv_func_vsnprintf_c99=no
20251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20252 conftest.$ac_objext conftest.beam conftest.$ac_ext
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
20257 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
20259 hw_cv_func_vsnprintf_c99=no
20262 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
20265 $as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
20266 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
20267 hw_use_rpl_vsnprintf=yes
20269 hw_use_rpl_vsnprintf=no
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
20272 $as_echo "$hw_use_rpl_vsnprintf" >&6; }
20273 if test "$hw_use_rpl_vsnprintf" = yes; then :
20275 $as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
20277 if test ${hw_nodef_vsnprintf=no} = no; then :
20279 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
20282 for ac_header in inttypes.h locale.h stddef.h stdint.h
20284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20285 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20286 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20287 cat >>confdefs.h <<_ACEOF
20288 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20295 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
20297 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
20299 cat >>confdefs.h <<_ACEOF
20300 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
20305 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
20307 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
20309 cat >>confdefs.h <<_ACEOF
20310 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
20318 $as_echo_n "checking for long double... " >&6; }
20319 if ${ac_cv_type_long_double+:} false; then :
20320 $as_echo_n "(cached) " >&6
20322 if test "$GCC" = yes; then
20323 ac_cv_type_long_double=yes
20325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20326 /* end confdefs.h. */
20327 /* The Stardent Vistra knows sizeof (long double), but does
20329 long double foo = 0.0L;
20333 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
20334 sizeof (double) <= sizeof (long double))];
20335 test_array [0] = 0;
20336 return test_array [0];
20342 if ac_fn_c_try_compile "$LINENO"; then :
20343 ac_cv_type_long_double=yes
20345 ac_cv_type_long_double=no
20347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
20351 $as_echo "$ac_cv_type_long_double" >&6; }
20352 if test $ac_cv_type_long_double = yes; then
20354 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20361 $as_echo_n "checking for long long int... " >&6; }
20362 if ${ac_cv_type_long_long_int+:} false; then :
20363 $as_echo_n "(cached) " >&6
20365 ac_cv_type_long_long_int=yes
20366 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20367 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
20368 if test $ac_cv_type_long_long_int = yes; then
20369 if test "$cross_compiling" = yes; then :
20372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20373 /* end confdefs.h. */
20374 #include <limits.h>
20377 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20378 # define LLONG_MAX (HALF - 1 + HALF)
20383 long long int n = 1;
20387 long long int m = n << i;
20390 if (LLONG_MAX / 2 < m)
20398 if ac_fn_c_try_run "$LINENO"; then :
20401 ac_cv_type_long_long_int=no
20403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20404 conftest.$ac_objext conftest.beam conftest.$ac_ext
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
20411 $as_echo "$ac_cv_type_long_long_int" >&6; }
20412 if test $ac_cv_type_long_long_int = yes; then
20414 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20420 $as_echo_n "checking for unsigned long long int... " >&6; }
20421 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
20422 $as_echo_n "(cached) " >&6
20424 ac_cv_type_unsigned_long_long_int=yes
20425 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20427 /* end confdefs.h. */
20429 /* For now, do not test the preprocessor; as of 2007 there are too many
20430 implementations with broken preprocessors. Perhaps this can
20431 be revisited in 2012. In the meantime, code should not expect
20432 #if to work with literals wider than 32 bits. */
20433 /* Test literals. */
20434 long long int ll = 9223372036854775807ll;
20435 long long int nll = -9223372036854775807LL;
20436 unsigned long long int ull = 18446744073709551615ULL;
20437 /* Test constant expressions. */
20438 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20440 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20446 /* Test availability of runtime routines for shift and division. */
20447 long long int llmax = 9223372036854775807ll;
20448 unsigned long long int ullmax = 18446744073709551615ull;
20449 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20450 | (llmax / ll) | (llmax % ll)
20451 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20452 | (ullmax / ull) | (ullmax % ull));
20458 if ac_fn_c_try_link "$LINENO"; then :
20461 ac_cv_type_unsigned_long_long_int=no
20463 rm -f core conftest.err conftest.$ac_objext \
20464 conftest$ac_exeext conftest.$ac_ext
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20468 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20469 if test $ac_cv_type_unsigned_long_long_int = yes; then
20471 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20475 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20476 if test "x$ac_cv_type_size_t" = xyes; then :
20480 cat >>confdefs.h <<_ACEOF
20481 #define size_t unsigned int
20488 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
20489 if test "x$ac_cv_type_intmax_t" = xyes; then :
20491 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20494 test $ac_cv_type_long_long_int = yes \
20495 && ac_type='long long int' \
20496 || ac_type='long int'
20498 cat >>confdefs.h <<_ACEOF
20499 #define intmax_t $ac_type
20507 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
20508 if test "x$ac_cv_type_uintmax_t" = xyes; then :
20510 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20513 test $ac_cv_type_unsigned_long_long_int = yes \
20514 && ac_type='unsigned long long int' \
20515 || ac_type='unsigned long int'
20517 cat >>confdefs.h <<_ACEOF
20518 #define uintmax_t $ac_type
20525 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20526 if test "x$ac_cv_type_uintptr_t" = xyes; then :
20528 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
20531 for ac_type in 'unsigned int' 'unsigned long int' \
20532 'unsigned long long int'; do
20533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20534 /* end confdefs.h. */
20535 $ac_includes_default
20539 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
20540 test_array [0] = 0;
20541 return test_array [0];
20547 if ac_fn_c_try_compile "$LINENO"; then :
20549 cat >>confdefs.h <<_ACEOF
20550 #define uintptr_t $ac_type
20555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20556 test -z "$ac_type" && break
20561 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20562 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20564 cat >>confdefs.h <<_ACEOF
20565 #define HAVE_PTRDIFF_T 1
20571 for ac_func in localeconv
20573 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
20574 if test "x$ac_cv_func_localeconv" = xyes; then :
20575 cat >>confdefs.h <<_ACEOF
20576 #define HAVE_LOCALECONV 1
20583 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
20584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20585 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20586 if ${ac_cv_c_const+:} false; then :
20587 $as_echo_n "(cached) " >&6
20589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20590 /* end confdefs.h. */
20596 #ifndef __cplusplus
20597 /* Ultrix mips cc rejects this sort of thing. */
20598 typedef int charset[2];
20599 const charset cs = { 0, 0 };
20600 /* SunOS 4.1.1 cc rejects this. */
20601 char const *const *pcpcc;
20603 /* NEC SVR4.0.2 mips cc rejects this. */
20604 struct point {int x, y;};
20605 static struct point const zero = {0,0};
20606 /* AIX XL C 1.02.0.0 rejects this.
20607 It does not let you subtract one const X* pointer from another in
20608 an arm of an if-expression whose if-part is not a constant
20610 const char *g = "string";
20611 pcpcc = &g + (g ? g-g : 0);
20612 /* HPUX 7.0 cc rejects these. */
20614 ppc = (char**) pcpcc;
20615 pcpcc = (char const *const *) ppc;
20616 { /* SCO 3.2v4 cc rejects this sort of thing. */
20619 char const *s = 0 ? (char *) 0 : (char const *) 0;
20624 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20625 int x[] = {25, 17};
20626 const int *foo = &x[0];
20629 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20630 typedef const int *iptr;
20634 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20635 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20636 struct s { int j; const int *ap[3]; } bx;
20637 struct s *b = &bx; b->j = 5;
20639 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20640 const int foo = 10;
20641 if (!foo) return 0;
20643 return !cs[0] && !zero.x;
20650 if ac_fn_c_try_compile "$LINENO"; then :
20655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20658 $as_echo "$ac_cv_c_const" >&6; }
20659 if test $ac_cv_c_const = no; then
20661 $as_echo "#define const /**/" >>confdefs.h
20668 case " $LIBOBJS " in
20669 *" snprintf.$ac_objext "* ) ;;
20670 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20674 _hw_cv_func_xprintf_replace_done=yes
20680 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20681 if test "x$ac_cv_func_snprintf" = xyes; then :
20682 hw_cv_func_snprintf=yes
20684 hw_cv_func_snprintf=no
20687 if test "$hw_cv_func_snprintf" = yes; then :
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
20689 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
20690 if ${hw_cv_func_snprintf_c99+:} false; then :
20691 $as_echo_n "(cached) " >&6
20693 if test "$cross_compiling" = yes; then :
20694 hw_cv_func_snprintf_c99=no
20696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20697 /* end confdefs.h. */
20703 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20704 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20705 buf[0] != 'T' || buf[3] != '\0')
20711 if ac_fn_c_try_run "$LINENO"; then :
20712 hw_cv_func_snprintf_c99=yes
20714 hw_cv_func_snprintf_c99=no
20716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20717 conftest.$ac_objext conftest.beam conftest.$ac_ext
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
20722 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
20724 hw_cv_func_snprintf_c99=no
20727 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
20730 $as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
20731 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
20732 hw_use_rpl_snprintf=yes
20734 hw_use_rpl_snprintf=no
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
20737 $as_echo "$hw_use_rpl_snprintf" >&6; }
20738 if test "$hw_use_rpl_snprintf" = yes; then :
20740 $as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
20742 if test ${hw_nodef_snprintf=no} = no; then :
20744 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
20748 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20750 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20751 if ${ac_cv_c_const+:} false; then :
20752 $as_echo_n "(cached) " >&6
20754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20755 /* end confdefs.h. */
20761 #ifndef __cplusplus
20762 /* Ultrix mips cc rejects this sort of thing. */
20763 typedef int charset[2];
20764 const charset cs = { 0, 0 };
20765 /* SunOS 4.1.1 cc rejects this. */
20766 char const *const *pcpcc;
20768 /* NEC SVR4.0.2 mips cc rejects this. */
20769 struct point {int x, y;};
20770 static struct point const zero = {0,0};
20771 /* AIX XL C 1.02.0.0 rejects this.
20772 It does not let you subtract one const X* pointer from another in
20773 an arm of an if-expression whose if-part is not a constant
20775 const char *g = "string";
20776 pcpcc = &g + (g ? g-g : 0);
20777 /* HPUX 7.0 cc rejects these. */
20779 ppc = (char**) pcpcc;
20780 pcpcc = (char const *const *) ppc;
20781 { /* SCO 3.2v4 cc rejects this sort of thing. */
20784 char const *s = 0 ? (char *) 0 : (char const *) 0;
20789 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20790 int x[] = {25, 17};
20791 const int *foo = &x[0];
20794 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20795 typedef const int *iptr;
20799 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20800 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20801 struct s { int j; const int *ap[3]; } bx;
20802 struct s *b = &bx; b->j = 5;
20804 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20805 const int foo = 10;
20806 if (!foo) return 0;
20808 return !cs[0] && !zero.x;
20815 if ac_fn_c_try_compile "$LINENO"; then :
20820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20823 $as_echo "$ac_cv_c_const" >&6; }
20824 if test $ac_cv_c_const = no; then
20826 $as_echo "#define const /**/" >>confdefs.h
20833 case " $LIBOBJS " in
20834 *" snprintf.$ac_objext "* ) ;;
20835 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20839 _hw_cv_func_xprintf_replace_done=yes
20848 # HMS: Save $LIBS and empty it.
20849 # any LIBS we add here should go in to LDADD_LIBNTP
20856 # [Bug 2332] because we need to know if we are using GNU ld...
20859 # Check whether --with-gnu-ld was given.
20860 if test "${with_gnu_ld+set}" = set; then :
20861 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20867 if test "$GCC" = yes; then
20868 # Check if gcc -print-prog-name=ld gives a path.
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20870 $as_echo_n "checking for ld used by $CC... " >&6; }
20873 # gcc leaves a trailing carriage return which upsets mingw
20874 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20876 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20879 # Accept absolute paths.
20881 re_direlt='/[^/][^/]*/\.\./'
20882 # Canonicalize the pathname of ld
20883 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20884 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20885 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20887 test -z "$LD" && LD="$ac_prog"
20890 # If it fails, then pretend we aren't using GCC.
20894 # If it is relative, then search for the first ld in PATH.
20895 with_gnu_ld=unknown
20898 elif test "$with_gnu_ld" = yes; then
20899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20900 $as_echo_n "checking for GNU ld... " >&6; }
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20903 $as_echo_n "checking for non-GNU ld... " >&6; }
20905 if ${lt_cv_path_LD+:} false; then :
20906 $as_echo_n "(cached) " >&6
20908 if test -z "$LD"; then
20909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20910 for ac_dir in $PATH; do
20912 test -z "$ac_dir" && ac_dir=.
20913 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20914 lt_cv_path_LD="$ac_dir/$ac_prog"
20915 # Check to see if the program is GNU ld. I'd rather use --version,
20916 # but apparently some variants of GNU ld only accept -v.
20917 # Break only if it was the GNU/non-GNU ld that we prefer.
20918 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20919 *GNU* | *'with BFD'*)
20920 test "$with_gnu_ld" != no && break
20923 test "$with_gnu_ld" != yes && break
20930 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20934 LD="$lt_cv_path_LD"
20935 if test -n "$LD"; then
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20937 $as_echo "$LD" >&6; }
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20940 $as_echo "no" >&6; }
20942 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20944 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20945 if ${lt_cv_prog_gnu_ld+:} false; then :
20946 $as_echo_n "(cached) " >&6
20948 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20949 case `$LD -v 2>&1 </dev/null` in
20950 *GNU* | *'with BFD'*)
20951 lt_cv_prog_gnu_ld=yes
20954 lt_cv_prog_gnu_ld=no
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20959 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20960 with_gnu_ld=$lt_cv_prog_gnu_ld
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
20970 $as_echo_n "checking for directory path separator... " >&6; }
20971 if ${ntp_cv_dir_sep+:} false; then :
20972 $as_echo_n "(cached) " >&6
20975 case "$ntp_cv_dir_sep" in
20978 *djgpp | *mingw32* | *emx*)
20979 ntp_cv_dir_sep="'\\'"
20982 ntp_cv_dir_sep="'/'"
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
20990 $as_echo "$ntp_cv_dir_sep" >&6; }
20992 cat >>confdefs.h <<_ACEOF
20993 #define DIR_SEP $ntp_cv_dir_sep
20998 NTP_ORIG_LIBS="$LIBS"
21000 # Check whether --with-lineeditlibs was given.
21001 if test "${with_lineeditlibs+set}" = set; then :
21002 withval=$with_lineeditlibs; use_lineeditlibs="$withval"
21004 use_lineeditlibs="edit,editline"
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
21009 $as_echo_n "checking line editing libraries... " >&6; }
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
21011 $as_echo "$use_lineeditlibs" >&6; }
21012 case "$use_lineeditlibs" in
21014 ntp_lib_lineedit=no
21017 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
21018 for term_lib in "" termcap curses ncurses; do
21019 case "$term_lib" in
21021 TRY_LIB="-l$lineedit_lib"
21024 TRY_LIB="-l$lineedit_lib -l$term_lib"
21027 LIBS="$NTP_ORIG_LIBS $TRY_LIB"
21028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
21029 $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
21030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21031 /* end confdefs.h. */
21033 /* Override any GCC internal prototype to avoid an error.
21034 Use char because int might match the return type of a GCC
21035 builtin and then its argument prototype would still apply. */
21043 return readline ();
21048 if ac_fn_c_try_link "$LINENO"; then :
21049 ntp_lib_lineedit="$TRY_LIB"
21051 rm -f core conftest.err conftest.$ac_objext \
21052 conftest$ac_exeext conftest.$ac_ext
21053 case "$ntp_lib_lineedit" in
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21056 $as_echo "no" >&6; }
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21061 $as_echo "yes" >&6; }
21064 case "$term_lib" in
21066 # do not try el_gets without a terminal library
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
21070 $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
21071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21072 /* end confdefs.h. */
21074 /* Override any GCC internal prototype to avoid an error.
21075 Use char because int might match the return type of a GCC
21076 builtin and then its argument prototype would still apply. */
21089 if ac_fn_c_try_link "$LINENO"; then :
21090 ntp_lib_lineedit="$TRY_LIB"
21092 rm -f core conftest.err conftest.$ac_objext \
21093 conftest$ac_exeext conftest.$ac_ext
21094 case "$ntp_lib_lineedit" in
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21097 $as_echo "no" >&6; }
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21101 $as_echo "yes" >&6; }
21104 esac # $ntp_lib_lineedit
21107 case "$ntp_lib_lineedit" in
21115 LIBS="$NTP_ORIG_LIBS"
21117 esac # $use_lineeditlibs
21119 case "$ntp_lib_lineedit" in
21121 ntp_lib_lineedit="no"
21126 EDITLINE_LIBS="$ntp_lib_lineedit"
21129 esac # $ntp_lib_lineedit
21131 case "$ntp_lib_lineedit" in
21135 for ac_header in readline.h readline/readline.h histedit.h
21137 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21138 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21139 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21140 cat >>confdefs.h <<_ACEOF
21141 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21148 for ac_header in history.h readline/history.h
21150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21151 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21152 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21153 cat >>confdefs.h <<_ACEOF
21154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21162 case "$ac_cv_header_histedit_h" in
21164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
21165 $as_echo_n "checking number of arguments to el_init()... " >&6; }
21166 if ${ntp_cv_el_init_args+:} false; then :
21167 $as_echo_n "(cached) " >&6
21169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21170 /* end confdefs.h. */
21173 #include <histedit.h>
21179 el_init("conftest", stdin, stdout, stderr);
21186 if ac_fn_c_try_compile "$LINENO"; then :
21187 ntp_cv_el_init_args=4
21189 ntp_cv_el_init_args=3
21192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
21196 $as_echo "$ntp_cv_el_init_args" >&6; }
21198 cat >>confdefs.h <<_ACEOF
21199 #define EL_INIT_ARGS $ntp_cv_el_init_args
21204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
21205 $as_echo_n "checking whether readline supports history... " >&6; }
21207 ntp_lib_lineedit_history="no"
21209 LIBS="$ORIG_LIBS $ntp_lib_lineedit"
21210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21211 /* end confdefs.h. */
21213 /* Override any GCC internal prototype to avoid an error.
21214 Use char because int might match the return type of a GCC
21215 builtin and then its argument prototype would still apply. */
21219 char add_history ();
21223 return add_history ();
21228 if ac_fn_c_try_link "$LINENO"; then :
21229 ntp_lib_lineedit_history="yes"
21231 rm -f core conftest.err conftest.$ac_objext \
21232 conftest$ac_exeext conftest.$ac_ext
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
21236 $as_echo "$ntp_lib_lineedit_history" >&6; }
21238 case "$ntp_lib_lineedit_history" in
21241 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
21244 esac # $ntp_lib_lineedit
21245 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
21246 { ORIG_LIBS=; unset ORIG_LIBS;}
21247 { TRY_LIB=; unset TRY_LIB;}
21248 { use_lineeditlibs=; unset use_lineeditlibs;}
21257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
21258 $as_echo_n "checking for library containing cos... " >&6; }
21259 if ${ac_cv_search_cos+:} false; then :
21260 $as_echo_n "(cached) " >&6
21262 ac_func_search_save_LIBS=$LIBS
21263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21264 /* end confdefs.h. */
21266 /* Override any GCC internal prototype to avoid an error.
21267 Use char because int might match the return type of a GCC
21268 builtin and then its argument prototype would still apply. */
21281 for ac_lib in '' m; do
21282 if test -z "$ac_lib"; then
21283 ac_res="none required"
21286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21288 if ac_fn_c_try_link "$LINENO"; then :
21289 ac_cv_search_cos=$ac_res
21291 rm -f core conftest.err conftest.$ac_objext \
21293 if ${ac_cv_search_cos+:} false; then :
21297 if ${ac_cv_search_cos+:} false; then :
21300 ac_cv_search_cos=no
21302 rm conftest.$ac_ext
21303 LIBS=$ac_func_search_save_LIBS
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
21306 $as_echo "$ac_cv_search_cos" >&6; }
21307 ac_res=$ac_cv_search_cos
21308 if test "$ac_res" != no; then :
21309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21317 { _libs=; unset _libs;}
21320 for ac_header in vfork.h
21322 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21323 if test "x$ac_cv_header_vfork_h" = xyes; then :
21324 cat >>confdefs.h <<_ACEOF
21325 #define HAVE_VFORK_H 1
21332 for ac_func in fork vfork
21334 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21335 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21336 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21337 cat >>confdefs.h <<_ACEOF
21338 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21344 if test "x$ac_cv_func_fork" = xyes; then
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21346 $as_echo_n "checking for working fork... " >&6; }
21347 if ${ac_cv_func_fork_works+:} false; then :
21348 $as_echo_n "(cached) " >&6
21350 if test "$cross_compiling" = yes; then :
21351 ac_cv_func_fork_works=cross
21353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21354 /* end confdefs.h. */
21355 $ac_includes_default
21360 /* By Ruediger Kuhlmann. */
21361 return fork () < 0;
21367 if ac_fn_c_try_run "$LINENO"; then :
21368 ac_cv_func_fork_works=yes
21370 ac_cv_func_fork_works=no
21372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21373 conftest.$ac_objext conftest.beam conftest.$ac_ext
21377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21378 $as_echo "$ac_cv_func_fork_works" >&6; }
21381 ac_cv_func_fork_works=$ac_cv_func_fork
21383 if test "x$ac_cv_func_fork_works" = xcross; then
21385 *-*-amigaos* | *-*-msdosdjgpp*)
21386 # Override, as these systems have only a dummy fork() stub
21387 ac_cv_func_fork_works=no
21390 ac_cv_func_fork_works=yes
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21394 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21396 ac_cv_func_vfork_works=$ac_cv_func_vfork
21397 if test "x$ac_cv_func_vfork" = xyes; then
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21399 $as_echo_n "checking for working vfork... " >&6; }
21400 if ${ac_cv_func_vfork_works+:} false; then :
21401 $as_echo_n "(cached) " >&6
21403 if test "$cross_compiling" = yes; then :
21404 ac_cv_func_vfork_works=cross
21406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21407 /* end confdefs.h. */
21408 /* Thanks to Paul Eggert for this test. */
21409 $ac_includes_default
21410 #include <sys/wait.h>
21411 #ifdef HAVE_VFORK_H
21412 # include <vfork.h>
21414 /* On some sparc systems, changes by the child to local and incoming
21415 argument registers are propagated back to the parent. The compiler
21416 is told about this with #include <vfork.h>, but some compilers
21417 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21418 static variable whose address is put into a register that is
21419 clobbered by the vfork. */
21422 sparc_address_test (int arg)
21424 sparc_address_test (arg) int arg;
21427 static pid_t child;
21445 pid_t parent = getpid ();
21448 sparc_address_test (0);
21453 /* Here is another test for sparc vfork register problems. This
21454 test uses lots of local variables, at least as many local
21455 variables as main has allocated so far including compiler
21456 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21457 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21458 reuse the register of parent for one of the local variables,
21459 since it will think that parent can't possibly be used any more
21460 in this routine. Assigning to the local variable will thus
21461 munge parent in the parent process. */
21463 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21464 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21465 /* Convince the compiler that p..p7 are live; otherwise, it might
21466 use the same hardware register for all 8 local variables. */
21467 if (p != p1 || p != p2 || p != p3 || p != p4
21468 || p != p5 || p != p6 || p != p7)
21471 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21472 from child file descriptors. If the child closes a descriptor
21473 before it execs or exits, this munges the parent's descriptor
21474 as well. Test for this by closing stdout in the child. */
21475 _exit(close(fileno(stdout)) != 0);
21480 while (wait(&status) != child)
21483 /* Was there some problem with vforking? */
21486 /* Did the child fail? (This shouldn't happen.) */
21489 /* Did the vfork/compiler bug occur? */
21490 || parent != getpid()
21492 /* Did the file descriptor bug occur? */
21493 || fstat(fileno(stdout), &st) != 0
21498 if ac_fn_c_try_run "$LINENO"; then :
21499 ac_cv_func_vfork_works=yes
21501 ac_cv_func_vfork_works=no
21503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21504 conftest.$ac_objext conftest.beam conftest.$ac_ext
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21509 $as_echo "$ac_cv_func_vfork_works" >&6; }
21512 if test "x$ac_cv_func_fork_works" = xcross; then
21513 ac_cv_func_vfork_works=$ac_cv_func_vfork
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21515 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21518 if test "x$ac_cv_func_vfork_works" = xyes; then
21520 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21524 $as_echo "#define vfork fork" >>confdefs.h
21527 if test "x$ac_cv_func_fork_works" = xyes; then
21529 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21533 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21534 # for constant arguments. Useless!
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21536 $as_echo_n "checking for working alloca.h... " >&6; }
21537 if ${ac_cv_working_alloca_h+:} false; then :
21538 $as_echo_n "(cached) " >&6
21540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21541 /* end confdefs.h. */
21542 #include <alloca.h>
21546 char *p = (char *) alloca (2 * sizeof (int));
21552 if ac_fn_c_try_link "$LINENO"; then :
21553 ac_cv_working_alloca_h=yes
21555 ac_cv_working_alloca_h=no
21557 rm -f core conftest.err conftest.$ac_objext \
21558 conftest$ac_exeext conftest.$ac_ext
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21561 $as_echo "$ac_cv_working_alloca_h" >&6; }
21562 if test $ac_cv_working_alloca_h = yes; then
21564 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21569 $as_echo_n "checking for alloca... " >&6; }
21570 if ${ac_cv_func_alloca_works+:} false; then :
21571 $as_echo_n "(cached) " >&6
21573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21574 /* end confdefs.h. */
21576 # define alloca __builtin_alloca
21579 # include <malloc.h>
21580 # define alloca _alloca
21582 # ifdef HAVE_ALLOCA_H
21583 # include <alloca.h>
21588 # ifndef alloca /* predefined by HP cc +Olibcalls */
21589 void *alloca (size_t);
21599 char *p = (char *) alloca (1);
21605 if ac_fn_c_try_link "$LINENO"; then :
21606 ac_cv_func_alloca_works=yes
21608 ac_cv_func_alloca_works=no
21610 rm -f core conftest.err conftest.$ac_objext \
21611 conftest$ac_exeext conftest.$ac_ext
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21614 $as_echo "$ac_cv_func_alloca_works" >&6; }
21616 if test $ac_cv_func_alloca_works = yes; then
21618 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21621 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21622 # that cause trouble. Some versions do not even contain alloca or
21623 # contain a buggy version. If you still want to use their alloca,
21624 # use ar to extract alloca.o from them instead of compiling alloca.c.
21626 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21628 $as_echo "#define C_ALLOCA 1" >>confdefs.h
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21632 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21633 if ${ac_cv_os_cray+:} false; then :
21634 $as_echo_n "(cached) " >&6
21636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21637 /* end confdefs.h. */
21638 #if defined CRAY && ! defined CRAY2
21645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21646 $EGREP "webecray" >/dev/null 2>&1; then :
21654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21655 $as_echo "$ac_cv_os_cray" >&6; }
21656 if test $ac_cv_os_cray = yes; then
21657 for ac_func in _getb67 GETB67 getb67; do
21658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21659 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21660 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21662 cat >>confdefs.h <<_ACEOF
21663 #define CRAY_STACKSEG_END $ac_func
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21673 $as_echo_n "checking stack direction for C alloca... " >&6; }
21674 if ${ac_cv_c_stack_direction+:} false; then :
21675 $as_echo_n "(cached) " >&6
21677 if test "$cross_compiling" = yes; then :
21678 ac_cv_c_stack_direction=0
21680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21681 /* end confdefs.h. */
21682 $ac_includes_default
21684 find_stack_direction (int *addr, int depth)
21686 int dir, dummy = 0;
21689 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21690 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21691 return dir + dummy;
21695 main (int argc, char **argv)
21697 return find_stack_direction (0, argc + !argv + 20) < 0;
21700 if ac_fn_c_try_run "$LINENO"; then :
21701 ac_cv_c_stack_direction=1
21703 ac_cv_c_stack_direction=-1
21705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21706 conftest.$ac_objext conftest.beam conftest.$ac_ext
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21711 $as_echo "$ac_cv_c_stack_direction" >&6; }
21712 cat >>confdefs.h <<_ACEOF
21713 #define STACK_DIRECTION $ac_cv_c_stack_direction
21719 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
21720 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
21726 cat >>confdefs.h <<_ACEOF
21727 #define HAVE_DECL_STRERROR_R $ac_have_decl
21730 for ac_func in strerror_r
21732 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21733 if test "x$ac_cv_func_strerror_r" = xyes; then :
21734 cat >>confdefs.h <<_ACEOF
21735 #define HAVE_STRERROR_R 1
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
21742 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
21743 if ${ac_cv_func_strerror_r_char_p+:} false; then :
21744 $as_echo_n "(cached) " >&6
21747 ac_cv_func_strerror_r_char_p=no
21748 if test $ac_cv_have_decl_strerror_r = yes; then
21749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21750 /* end confdefs.h. */
21751 $ac_includes_default
21757 char x = *strerror_r (0, buf, sizeof buf);
21758 char *p = strerror_r (0, buf, sizeof buf);
21765 if ac_fn_c_try_compile "$LINENO"; then :
21766 ac_cv_func_strerror_r_char_p=yes
21768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21770 # strerror_r is not declared. Choose between
21771 # systems that have relatively inaccessible declarations for the
21772 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
21773 # former has a strerror_r that returns char*, while the latter
21774 # has a strerror_r that returns `int'.
21775 # This test should segfault on the DEC system.
21776 if test "$cross_compiling" = yes; then :
21779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21780 /* end confdefs.h. */
21781 $ac_includes_default
21782 extern char *strerror_r ();
21787 char x = *strerror_r (0, buf, sizeof buf);
21788 return ! isalpha (x);
21793 if ac_fn_c_try_run "$LINENO"; then :
21794 ac_cv_func_strerror_r_char_p=yes
21796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21797 conftest.$ac_objext conftest.beam conftest.$ac_ext
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
21804 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21805 if test $ac_cv_func_strerror_r_char_p = yes; then
21807 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
21812 ac_busted_vpath_in_make=no
21814 *-*-irix6.1*) # 64 bit only
21817 *-*-irix6*) # 6.2 (and later?)
21818 ac_busted_vpath_in_make=yes
21821 ac_busted_vpath_in_make=yes
21824 ac_busted_vpath_in_make=yes
21828 case "$ac_busted_vpath_in_make$srcdir" in
21831 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
21833 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
21841 # Was *-*-aix[[4-9]]*
21842 # XXX only verified thru AIX6. But...
21843 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
21844 # that this support would be in 5.3, removed in 6, and added back.
21846 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
21847 # (returning ENOSYS). I didn't check 4.2. If, in the future,
21848 # IBM pulls its thumbs out long enough to implement clock_settime,
21849 # this conditional will need to change. Maybe use AC_TRY_RUN
21850 # instead to try to set the time to itself and check errno.
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21854 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21855 if ${ac_cv_search_clock_gettime+:} false; then :
21856 $as_echo_n "(cached) " >&6
21858 ac_func_search_save_LIBS=$LIBS
21859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21860 /* end confdefs.h. */
21862 /* Override any GCC internal prototype to avoid an error.
21863 Use char because int might match the return type of a GCC
21864 builtin and then its argument prototype would still apply. */
21868 char clock_gettime ();
21872 return clock_gettime ();
21877 for ac_lib in '' rt; do
21878 if test -z "$ac_lib"; then
21879 ac_res="none required"
21882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21884 if ac_fn_c_try_link "$LINENO"; then :
21885 ac_cv_search_clock_gettime=$ac_res
21887 rm -f core conftest.err conftest.$ac_objext \
21889 if ${ac_cv_search_clock_gettime+:} false; then :
21893 if ${ac_cv_search_clock_gettime+:} false; then :
21896 ac_cv_search_clock_gettime=no
21898 rm conftest.$ac_ext
21899 LIBS=$ac_func_search_save_LIBS
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21902 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21903 ac_res=$ac_cv_search_clock_gettime
21904 if test "$ac_res" != no; then :
21905 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21906 case "$ac_cv_search_clock_gettime" in
21907 'none required') ;;
21909 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
21914 for ac_func in clock_getres clock_gettime clock_settime
21916 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21917 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21918 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21919 cat >>confdefs.h <<_ACEOF
21920 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21929 for ac_func in getclock stime timegm strlcpy strlcat
21931 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21932 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21933 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21934 cat >>confdefs.h <<_ACEOF
21935 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
21946 $as_echo_n "checking for library containing snprintb... " >&6; }
21947 if ${ac_cv_search_snprintb+:} false; then :
21948 $as_echo_n "(cached) " >&6
21950 ac_func_search_save_LIBS=$LIBS
21951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21952 /* end confdefs.h. */
21954 /* Override any GCC internal prototype to avoid an error.
21955 Use char because int might match the return type of a GCC
21956 builtin and then its argument prototype would still apply. */
21964 return snprintb ();
21969 for ac_lib in '' util; do
21970 if test -z "$ac_lib"; then
21971 ac_res="none required"
21974 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21976 if ac_fn_c_try_link "$LINENO"; then :
21977 ac_cv_search_snprintb=$ac_res
21979 rm -f core conftest.err conftest.$ac_objext \
21981 if ${ac_cv_search_snprintb+:} false; then :
21985 if ${ac_cv_search_snprintb+:} false; then :
21988 ac_cv_search_snprintb=no
21990 rm conftest.$ac_ext
21991 LIBS=$ac_func_search_save_LIBS
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
21994 $as_echo "$ac_cv_search_snprintb" >&6; }
21995 ac_res=$ac_cv_search_snprintb
21996 if test "$ac_res" != no; then :
21997 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21998 case "$ac_cv_search_snprintb" in
21999 'none required') ;;
22001 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
22004 $as_echo "#define USE_SNPRINTB 1" >>confdefs.h
22010 for ac_header in errno.h sys/socket.h sys/types.h time.h
22012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22013 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22014 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22015 cat >>confdefs.h <<_ACEOF
22016 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22023 for ac_header in net/if.h
22025 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
22026 #ifdef HAVE_SYS_SOCKET_H
22027 # include <sys/socket.h>
22031 if test "x$ac_cv_header_net_if_h" = xyes; then :
22032 cat >>confdefs.h <<_ACEOF
22033 #define HAVE_NET_IF_H 1
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
22043 $as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
22044 if ${ntp_cv_predecl_mpinfou+:} false; then :
22045 $as_echo_n "(cached) " >&6
22048 np_cv_predecl_mpinfou=no
22049 case "$ac_cv_header_net_if_h" in
22051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22052 /* end confdefs.h. */
22054 typedef union mpinfou {
22055 struct pdk_mpinfo *pdkptr;
22056 struct mpinfo *pikptr;
22058 #ifdef HAVE_SYS_SOCKET_H
22059 # include <sys/socket.h>
22061 #include <net/if.h>
22073 if ac_fn_c_try_compile "$LINENO"; then :
22075 ntp_cv_predecl_mpinfou=yes
22076 ac_cv_header_net_if_h=yes
22080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
22086 $as_echo "$ntp_cv_predecl_mpinfou" >&6; }
22087 case "$ntp_cv_predecl_mpinfou" in
22089 cat >>confdefs.h <<_ACEOF
22090 #ifndef MPINFOU_PREDECLARED
22091 # define MPINFOU_PREDECLARED
22092 typedef union mpinfou {
22093 struct pdk_mpinfo *pdkptr;
22094 struct mpinfo *pikptr;
22104 for ac_header in linux/if_addr.h
22106 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
22107 #ifdef HAVE_SYS_SOCKET_H
22108 # include <sys/socket.h>
22112 if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
22113 cat >>confdefs.h <<_ACEOF
22114 #define HAVE_LINUX_IF_ADDR_H 1
22123 for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
22125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22126 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22127 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22128 cat >>confdefs.h <<_ACEOF
22129 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22136 # sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
22137 for ac_header in sys/sysctl.h
22139 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
22140 #if defined HAVE_SYS_PARAM_H
22141 # include <sys/param.h>
22145 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
22146 cat >>confdefs.h <<_ACEOF
22147 #define HAVE_SYS_SYSCTL_H 1
22154 for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
22156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22157 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22158 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22159 cat >>confdefs.h <<_ACEOF
22160 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22168 for ac_header in resolv.h
22170 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
22171 #ifdef HAVE_SYS_TYPES_H
22172 # include <sys/types.h>
22174 #ifdef HAVE_NETINET_IN_H
22175 # include <netinet/in.h>
22177 #ifdef HAVE_ARPA_NAMESER_H
22178 # include <arpa/nameser.h>
22182 if test "x$ac_cv_header_resolv_h" = xyes; then :
22183 cat >>confdefs.h <<_ACEOF
22184 #define HAVE_RESOLV_H 1
22192 for ac_header in net/if_var.h
22194 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
22195 #if HAVE_SYS_TYPES_H
22196 # include <sys/types.h>
22198 #ifdef HAVE_SYS_SOCKET_H
22199 # include <sys/socket.h>
22201 #ifdef HAVE_NETINET_IN_H
22202 # include <netinet/in.h>
22204 #ifdef HAVE_NET_IF_H
22205 # include <net/if.h>
22209 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
22210 cat >>confdefs.h <<_ACEOF
22211 #define HAVE_NET_IF_VAR_H 1
22219 for ac_header in netinet/ip.h netinet/in_var.h
22221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22222 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22223 #ifdef HAVE_SYS_TYPES_H
22224 # include <sys/types.h>
22226 #ifdef HAVE_SYS_SOCKET_H
22227 # include <sys/socket.h>
22229 #ifdef HAVE_NET_IF_H
22230 # include <net/if.h>
22232 #ifdef HAVE_NETINET_IN_H
22233 # include <netinet/in.h>
22235 #ifdef HAVE_NET_IF_VAR_H
22236 # include <net/if_var.h>
22238 #ifdef HAVE_NETINET_IN_SYSTM_H
22239 # include <netinet/in_systm.h>
22243 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22244 cat >>confdefs.h <<_ACEOF
22245 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22253 # HMS: Do we need to check for -lsocket before or after these tests?
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
22255 $as_echo_n "checking for library containing inet_pton... " >&6; }
22256 if ${ac_cv_search_inet_pton+:} false; then :
22257 $as_echo_n "(cached) " >&6
22259 ac_func_search_save_LIBS=$LIBS
22260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22261 /* end confdefs.h. */
22263 /* Override any GCC internal prototype to avoid an error.
22264 Use char because int might match the return type of a GCC
22265 builtin and then its argument prototype would still apply. */
22273 return inet_pton ();
22278 for ac_lib in '' nsl; do
22279 if test -z "$ac_lib"; then
22280 ac_res="none required"
22283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22285 if ac_fn_c_try_link "$LINENO"; then :
22286 ac_cv_search_inet_pton=$ac_res
22288 rm -f core conftest.err conftest.$ac_objext \
22290 if ${ac_cv_search_inet_pton+:} false; then :
22294 if ${ac_cv_search_inet_pton+:} false; then :
22297 ac_cv_search_inet_pton=no
22299 rm conftest.$ac_ext
22300 LIBS=$ac_func_search_save_LIBS
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
22303 $as_echo "$ac_cv_search_inet_pton" >&6; }
22304 ac_res=$ac_cv_search_inet_pton
22305 if test "$ac_res" != no; then :
22306 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22307 case "$ac_cv_search_inet_pton" in
22308 'none required') ;;
22310 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
22316 $as_echo_n "checking for library containing inet_ntop... " >&6; }
22317 if ${ac_cv_search_inet_ntop+:} false; then :
22318 $as_echo_n "(cached) " >&6
22320 ac_func_search_save_LIBS=$LIBS
22321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322 /* end confdefs.h. */
22324 /* Override any GCC internal prototype to avoid an error.
22325 Use char because int might match the return type of a GCC
22326 builtin and then its argument prototype would still apply. */
22334 return inet_ntop ();
22339 for ac_lib in '' resolv; do
22340 if test -z "$ac_lib"; then
22341 ac_res="none required"
22344 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
22346 if ac_fn_c_try_link "$LINENO"; then :
22347 ac_cv_search_inet_ntop=$ac_res
22349 rm -f core conftest.err conftest.$ac_objext \
22351 if ${ac_cv_search_inet_ntop+:} false; then :
22355 if ${ac_cv_search_inet_ntop+:} false; then :
22358 ac_cv_search_inet_ntop=no
22360 rm conftest.$ac_ext
22361 LIBS=$ac_func_search_save_LIBS
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
22364 $as_echo "$ac_cv_search_inet_ntop" >&6; }
22365 ac_res=$ac_cv_search_inet_ntop
22366 if test "$ac_res" != no; then :
22367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22368 case "$ac_cv_search_inet_ntop" in
22369 'none required') ;;
22371 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
22377 # [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to
22378 # avoid keying on the OS name: If we find socket functions in
22379 # libsocket, next try for them in libxnet without libsocket, if found,
22380 # list both. If we simply tested libxnet first, we would find the
22381 # functions there and never add libsocket. See also [Bug 660]
22382 # http://bugs.ntp.org/show_bug.cgi?id=660#c9
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
22385 $as_echo_n "checking for library containing setsockopt... " >&6; }
22386 if ${ac_cv_search_setsockopt+:} false; then :
22387 $as_echo_n "(cached) " >&6
22389 ac_func_search_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 setsockopt ();
22403 return setsockopt ();
22408 for ac_lib in '' socket; do
22409 if test -z "$ac_lib"; then
22410 ac_res="none required"
22413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22415 if ac_fn_c_try_link "$LINENO"; then :
22416 ac_cv_search_setsockopt=$ac_res
22418 rm -f core conftest.err conftest.$ac_objext \
22420 if ${ac_cv_search_setsockopt+:} false; then :
22424 if ${ac_cv_search_setsockopt+:} false; then :
22427 ac_cv_search_setsockopt=no
22429 rm conftest.$ac_ext
22430 LIBS=$ac_func_search_save_LIBS
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
22433 $as_echo "$ac_cv_search_setsockopt" >&6; }
22434 ac_res=$ac_cv_search_setsockopt
22435 if test "$ac_res" != no; then :
22436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22437 case "$ac_cv_search_setsockopt" in
22438 'none required') ;;
22440 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
22445 case "$ac_cv_search_setsockopt" in
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
22449 $as_echo_n "checking for library containing getsockopt... " >&6; }
22450 if ${ac_cv_search_getsockopt+:} false; then :
22451 $as_echo_n "(cached) " >&6
22453 ac_func_search_save_LIBS=$LIBS
22454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22455 /* end confdefs.h. */
22457 /* Override any GCC internal prototype to avoid an error.
22458 Use char because int might match the return type of a GCC
22459 builtin and then its argument prototype would still apply. */
22463 char getsockopt ();
22467 return getsockopt ();
22472 for ac_lib in '' xnet; do
22473 if test -z "$ac_lib"; then
22474 ac_res="none required"
22477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22479 if ac_fn_c_try_link "$LINENO"; then :
22480 ac_cv_search_getsockopt=$ac_res
22482 rm -f core conftest.err conftest.$ac_objext \
22484 if ${ac_cv_search_getsockopt+:} false; then :
22488 if ${ac_cv_search_getsockopt+:} false; then :
22491 ac_cv_search_getsockopt=no
22493 rm conftest.$ac_ext
22494 LIBS=$ac_func_search_save_LIBS
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
22497 $as_echo "$ac_cv_search_getsockopt" >&6; }
22498 ac_res=$ac_cv_search_getsockopt
22499 if test "$ac_res" != no; then :
22500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22501 case "$ac_cv_search_getsockopt" in
22502 'none required') ;;
22504 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
22509 # XXX Possible trouble here - reading the comments above and looking at the
22510 # code below I wonder if we'll add -lxnet when we don't need it.
22511 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
22512 # there when it is not needed?
22513 case "$ac_cv_search_getsockopt" in
22515 LIBS="-lxnet -lsocket $saved_LIBS"
22517 *) LIBS="-lsocket $saved_LIBS"
22522 { saved_LIBS=; unset saved_LIBS;}
22524 # Bug 2427 - look for recvmsg here.
22525 for ac_func in recvmsg
22527 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
22528 if test "x$ac_cv_func_recvmsg" = xyes; then :
22529 cat >>confdefs.h <<_ACEOF
22530 #define HAVE_RECVMSG 1
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22538 $as_echo_n "checking for inline... " >&6; }
22539 if ${ac_cv_c_inline+:} false; then :
22540 $as_echo_n "(cached) " >&6
22543 for ac_kw in inline __inline__ __inline; do
22544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22545 /* end confdefs.h. */
22546 #ifndef __cplusplus
22548 static $ac_kw foo_t static_foo () {return 0; }
22549 $ac_kw foo_t foo () {return 0; }
22553 if ac_fn_c_try_compile "$LINENO"; then :
22554 ac_cv_c_inline=$ac_kw
22556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22557 test "$ac_cv_c_inline" != no && break
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22562 $as_echo "$ac_cv_c_inline" >&6; }
22564 case $ac_cv_c_inline in
22567 case $ac_cv_c_inline in
22569 *) ac_val=$ac_cv_c_inline;;
22571 cat >>confdefs.h <<_ACEOF
22572 #ifndef __cplusplus
22573 #define inline $ac_val
22580 case "$ac_cv_c_inline" in
22585 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22591 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22592 if ${ac_cv_header_time+:} false; then :
22593 $as_echo_n "(cached) " >&6
22595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22596 /* end confdefs.h. */
22597 #include <sys/types.h>
22598 #include <sys/time.h>
22604 if ((struct tm *) 0)
22610 if ac_fn_c_try_compile "$LINENO"; then :
22611 ac_cv_header_time=yes
22613 ac_cv_header_time=no
22615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22618 $as_echo "$ac_cv_header_time" >&6; }
22619 if test $ac_cv_header_time = yes; then
22621 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22625 # The cast to long int works around a bug in the HP C Compiler
22626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22628 # This bug is HP SR number 8606223364.
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
22630 $as_echo_n "checking size of time_t... " >&6; }
22631 if ${ac_cv_sizeof_time_t+:} false; then :
22632 $as_echo_n "(cached) " >&6
22634 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
22637 if test "$ac_cv_type_time_t" = yes; then
22638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22640 as_fn_error 77 "cannot compute sizeof (time_t)
22641 See \`config.log' for more details" "$LINENO" 5; }
22643 ac_cv_sizeof_time_t=0
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
22649 $as_echo "$ac_cv_sizeof_time_t" >&6; }
22653 cat >>confdefs.h <<_ACEOF
22654 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22659 $as_echo_n "checking whether char is unsigned... " >&6; }
22660 if ${ac_cv_c_char_unsigned+:} false; then :
22661 $as_echo_n "(cached) " >&6
22663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22664 /* end confdefs.h. */
22665 $ac_includes_default
22669 static int test_array [1 - 2 * !(((char) -1) < 0)];
22670 test_array [0] = 0;
22671 return test_array [0];
22677 if ac_fn_c_try_compile "$LINENO"; then :
22678 ac_cv_c_char_unsigned=no
22680 ac_cv_c_char_unsigned=yes
22682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22685 $as_echo "$ac_cv_c_char_unsigned" >&6; }
22686 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22687 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22690 # The cast to long int works around a bug in the HP C Compiler
22691 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22692 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22693 # This bug is HP SR number 8606223364.
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
22695 $as_echo_n "checking size of signed char... " >&6; }
22696 if ${ac_cv_sizeof_signed_char+:} false; then :
22697 $as_echo_n "(cached) " >&6
22699 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
22702 if test "$ac_cv_type_signed_char" = yes; then
22703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22705 as_fn_error 77 "cannot compute sizeof (signed char)
22706 See \`config.log' for more details" "$LINENO" 5; }
22708 ac_cv_sizeof_signed_char=0
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
22714 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
22718 cat >>confdefs.h <<_ACEOF
22719 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
22723 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
22724 if test "x$ac_cv_type_s_char" = xyes; then :
22726 cat >>confdefs.h <<_ACEOF
22727 #define HAVE_S_CHAR 1
22732 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22733 if test "x$ac_cv_type_long_long" = xyes; then :
22735 cat >>confdefs.h <<_ACEOF
22736 #define HAVE_LONG_LONG 1
22742 # The cast to long int works around a bug in the HP C Compiler
22743 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22744 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22745 # This bug is HP SR number 8606223364.
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
22747 $as_echo_n "checking size of short... " >&6; }
22748 if ${ac_cv_sizeof_short+:} false; then :
22749 $as_echo_n "(cached) " >&6
22751 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
22754 if test "$ac_cv_type_short" = yes; then
22755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22757 as_fn_error 77 "cannot compute sizeof (short)
22758 See \`config.log' for more details" "$LINENO" 5; }
22760 ac_cv_sizeof_short=0
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
22766 $as_echo "$ac_cv_sizeof_short" >&6; }
22770 cat >>confdefs.h <<_ACEOF
22771 #define SIZEOF_SHORT $ac_cv_sizeof_short
22775 # The cast to long int works around a bug in the HP C Compiler
22776 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22777 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22778 # This bug is HP SR number 8606223364.
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
22780 $as_echo_n "checking size of int... " >&6; }
22781 if ${ac_cv_sizeof_int+:} false; then :
22782 $as_echo_n "(cached) " >&6
22784 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
22787 if test "$ac_cv_type_int" = yes; then
22788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22790 as_fn_error 77 "cannot compute sizeof (int)
22791 See \`config.log' for more details" "$LINENO" 5; }
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
22799 $as_echo "$ac_cv_sizeof_int" >&6; }
22803 cat >>confdefs.h <<_ACEOF
22804 #define SIZEOF_INT $ac_cv_sizeof_int
22808 # The cast to long int works around a bug in the HP C Compiler
22809 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22810 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22811 # This bug is HP SR number 8606223364.
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
22813 $as_echo_n "checking size of long... " >&6; }
22814 if ${ac_cv_sizeof_long+:} false; then :
22815 $as_echo_n "(cached) " >&6
22817 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
22820 if test "$ac_cv_type_long" = yes; then
22821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22823 as_fn_error 77 "cannot compute sizeof (long)
22824 See \`config.log' for more details" "$LINENO" 5; }
22826 ac_cv_sizeof_long=0
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
22832 $as_echo "$ac_cv_sizeof_long" >&6; }
22836 cat >>confdefs.h <<_ACEOF
22837 #define SIZEOF_LONG $ac_cv_sizeof_long
22842 case "$ac_cv_type_long_long" in
22846 # The cast to long int works around a bug in the HP C Compiler
22847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22849 # This bug is HP SR number 8606223364.
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
22851 $as_echo_n "checking size of long long... " >&6; }
22852 if ${ac_cv_sizeof_long_long+:} false; then :
22853 $as_echo_n "(cached) " >&6
22855 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
22858 if test "$ac_cv_type_long_long" = yes; then
22859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22861 as_fn_error 77 "cannot compute sizeof (long long)
22862 See \`config.log' for more details" "$LINENO" 5; }
22864 ac_cv_sizeof_long_long=0
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
22870 $as_echo "$ac_cv_sizeof_long_long" >&6; }
22874 cat >>confdefs.h <<_ACEOF
22875 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22882 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
22884 # We have a typedef for s_char. Might as well believe it...
22887 # We have signed chars, can't say 'signed char', no s_char typedef.
22889 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22893 # We have signed chars, can say 'signed char', no s_char typedef.
22895 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22899 # We have unsigned chars, can't say 'signed char', no s_char typedef.
22900 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
22903 # We have unsigned chars, can say 'signed char', no s_char typedef.
22905 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22911 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22912 if ${ac_cv_type_uid_t+:} false; then :
22913 $as_echo_n "(cached) " >&6
22915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22916 /* end confdefs.h. */
22917 #include <sys/types.h>
22920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22921 $EGREP "uid_t" >/dev/null 2>&1; then :
22922 ac_cv_type_uid_t=yes
22924 ac_cv_type_uid_t=no
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22930 $as_echo "$ac_cv_type_uid_t" >&6; }
22931 if test $ac_cv_type_uid_t = no; then
22933 $as_echo "#define uid_t int" >>confdefs.h
22936 $as_echo "#define gid_t int" >>confdefs.h
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
22946 $as_echo_n "checking if we're including debugging code... " >&6; }
22947 # Check whether --enable-debugging was given.
22948 if test "${enable_debugging+set}" = set; then :
22949 enableval=$enable_debugging; ntp_ok=$enableval
22958 $as_echo "#define DEBUG 1" >>confdefs.h
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22962 $as_echo "$ntp_ok" >&6; }
22966 # check if we can compile with pthreads
22967 for ac_header in semaphore.h
22969 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
22970 if test "x$ac_cv_header_semaphore_h" = xyes; then :
22971 cat >>confdefs.h <<_ACEOF
22972 #define HAVE_SEMAPHORE_H 1
22979 for ac_func in socketpair
22981 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
22982 if test "x$ac_cv_func_socketpair" = xyes; then :
22983 cat >>confdefs.h <<_ACEOF
22984 #define HAVE_SOCKETPAIR 1
22990 # Check whether --enable-thread-support was given.
22991 if test "${enable_thread_support+set}" = set; then :
22992 enableval=$enable_thread_support;
22994 enable_thread_support=yes
22999 case "$enable_thread_support" in
23002 ol_found_pthreads=no
23007 ac_cpp='$CPP $CPPFLAGS'
23008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23012 # OpenLDAP --with-threads
23014 # Check whether --with-threads was given.
23015 if test "${with_threads+set}" = set; then :
23016 withval=$with_threads;
23018 for ol_val in auto nt posix mach pth lwp yes no manual ; do
23019 if test "$withval" = "$ol_val" ; then
23023 if test "$ol_arg" = "invalid" ; then
23024 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
23026 ol_with_threads="$ol_arg"
23029 ol_with_threads="auto"
23031 # end --with-threads
23034 case "$ol_with_threads$host" in
23035 auto*-*-solaris2.[0-6])
23043 *-*-aix*) if test -z "$CC" ; then
23044 case "$ol_with_threads" in
23045 auto | yes | posix) ol_aix_threads=yes ;;
23051 if test $ol_aix_threads = yes ; then
23052 if test -z "${CC}" ; then
23053 for ac_prog in cc_r xlc_r cc
23055 # Extract the first word of "$ac_prog", so it can be a program name with args.
23056 set dummy $ac_prog; ac_word=$2
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23058 $as_echo_n "checking for $ac_word... " >&6; }
23059 if ${ac_cv_prog_CC+:} false; then :
23060 $as_echo_n "(cached) " >&6
23062 if test -n "$CC"; then
23063 ac_cv_prog_CC="$CC" # Let the user override the test.
23065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23066 for as_dir in $PATH
23069 test -z "$as_dir" && as_dir=.
23070 for ac_exec_ext in '' $ac_executable_extensions; do
23071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23072 ac_cv_prog_CC="$ac_prog"
23073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23083 if test -n "$CC"; then
23084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
23085 $as_echo "$CC" >&6; }
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23088 $as_echo "no" >&6; }
23092 test -n "$CC" && break
23096 if test "$CC" = cc ; then
23097 if test $ol_with_threads != auto ; then
23098 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
23101 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
23107 case ${CC} in cc_r | xlc_r)
23108 ol_with_threads=posix
23109 ol_cv_pthread_create=yes
23115 # OpenLDAP --with-yielding_select
23117 # Check whether --with-yielding_select was given.
23118 if test "${with_yielding_select+set}" = set; then :
23119 withval=$with_yielding_select;
23121 for ol_val in auto yes no manual ; do
23122 if test "$withval" = "$ol_val" ; then
23126 if test "$ol_arg" = "invalid" ; then
23127 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
23129 ol_with_yielding_select="$ol_arg"
23132 ol_with_yielding_select="auto"
23134 # end --with-yielding_select
23137 case $ol_with_threads in auto | yes | nt)
23140 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
23141 if test "x$ac_cv_func__beginthread" = xyes; then :
23146 if test $ac_cv_func__beginthread = yes ; then
23148 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
23150 ol_cv_nt_threads=yes
23154 if test "$ol_cv_nt_threads" = yes ; then
23156 ol_with_threads=found
23157 ol_with_yielding_select=yes
23160 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
23163 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
23167 if test $ol_with_threads = nt ; then
23168 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
23173 case $ol_with_threads in auto | yes | posix)
23175 for ac_header in pthread.h
23177 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
23178 if test "x$ac_cv_header_pthread_h" = xyes; then :
23179 cat >>confdefs.h <<_ACEOF
23180 #define HAVE_PTHREAD_H 1
23188 if test $ac_cv_header_pthread_h = yes ; then
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
23190 $as_echo_n "checking POSIX thread version... " >&6; }
23191 if ${ol_cv_pthread_version+:} false; then :
23192 $as_echo_n "(cached) " >&6
23195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23196 /* end confdefs.h. */
23198 # include <pthread.h>
23204 int i = PTHREAD_CREATE_JOINABLE;
23210 if ac_fn_c_try_compile "$LINENO"; then :
23212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23213 /* end confdefs.h. */
23214 #include <pthread.h>
23217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23218 $EGREP "pthread_detach" >/dev/null 2>&1; then :
23219 ol_cv_pthread_version=10
23221 ol_cv_pthread_version=8
23227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23228 /* end confdefs.h. */
23230 # include <pthread.h>
23231 # ifdef PTHREAD_CREATE_UNDETACHED
23236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23237 $EGREP "draft7" >/dev/null 2>&1; then :
23238 ol_cv_pthread_version=7
23241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23242 /* end confdefs.h. */
23243 #include <pthread.h>
23246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23247 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
23248 ol_cv_pthread_version=6
23251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23252 /* end confdefs.h. */
23254 # include <pthread.h>
23255 #ifdef PTHREAD_MUTEX_INITIALIZER
23260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23261 $EGREP "draft5" >/dev/null 2>&1; then :
23262 ol_cv_pthread_version=5
23264 ol_cv_pthread_version=4
23275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
23279 $as_echo "$ol_cv_pthread_version" >&6; }
23282 if test $ol_cv_pthread_version != 0 ; then
23284 cat >>confdefs.h <<_ACEOF
23285 #define HAVE_PTHREADS $ol_cv_pthread_version
23289 as_fn_error $? "unknown pthread version" "$LINENO" 5
23292 # consider threads found
23293 ol_with_threads=found
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
23297 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
23298 if ${ol_cv_header_linux_threads+:} false; then :
23299 $as_echo_n "(cached) " >&6
23301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23302 /* end confdefs.h. */
23303 #include <pthread.h>
23305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23306 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
23307 ol_cv_header_linux_threads=yes
23309 ol_cv_header_linux_threads=no
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
23316 $as_echo "$ol_cv_header_linux_threads" >&6; }
23317 if test $ol_cv_header_linux_threads = yes; then
23319 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
23325 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
23326 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
23327 $as_echo_n "(cached) " >&6
23329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23330 /* end confdefs.h. */
23331 #include <pthread.h>
23332 #ifdef _POSIX_THREAD_IS_GNU_PTH
23337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23338 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
23339 ol_cv_header_gnu_pth_pthread_h=yes
23341 ol_cv_header_gnu_pth_pthread_h=no
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
23348 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
23351 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
23352 for ac_header in sched.h
23354 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
23355 if test "x$ac_cv_header_sched_h" = xyes; then :
23356 cat >>confdefs.h <<_ACEOF
23357 #define HAVE_SCHED_H 1
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
23368 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
23369 if ${ol_cv_pthread_create+:} false; then :
23370 $as_echo_n "(cached) " >&6
23373 if test "$cross_compiling" = yes; then :
23374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23375 /* end confdefs.h. */
23377 /* pthread test headers */
23378 #include <pthread.h>
23379 #if HAVE_PTHREADS < 7
23383 #define NULL (void*)0
23386 static void *task(p)
23389 return (void *) (p == NULL);
23396 /* pthread test function */
23397 #ifndef PTHREAD_CREATE_DETACHED
23398 #define PTHREAD_CREATE_DETACHED 1
23402 int detach = PTHREAD_CREATE_DETACHED;
23404 #if HAVE_PTHREADS > 4
23405 /* Final pthreads */
23406 pthread_attr_t attr;
23408 status = pthread_attr_init(&attr);
23409 if( status ) return status;
23411 #if HAVE_PTHREADS < 7
23412 status = pthread_attr_setdetachstate(&attr, &detach);
23413 if( status < 0 ) status = errno;
23415 status = pthread_attr_setdetachstate(&attr, detach);
23417 if( status ) return status;
23418 status = pthread_create( &t, &attr, task, NULL );
23419 #if HAVE_PTHREADS < 7
23420 if( status < 0 ) status = errno;
23422 if( status ) return status;
23424 /* Draft 4 pthreads */
23425 status = pthread_create( &t, pthread_attr_default, task, NULL );
23426 if( status ) return errno;
23428 /* give thread a chance to complete */
23429 /* it should remain joinable and hence detachable */
23432 status = pthread_detach( &t );
23433 if( status ) return errno;
23436 #ifdef HAVE_LINUX_THREADS
23437 pthread_kill_other_threads_np();
23446 if ac_fn_c_try_link "$LINENO"; then :
23447 ol_cv_pthread_create=yes
23449 ol_cv_pthread_create=no
23451 rm -f core conftest.err conftest.$ac_objext \
23452 conftest$ac_exeext conftest.$ac_ext
23454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23455 /* end confdefs.h. */
23458 /* pthread test headers */
23459 #include <pthread.h>
23460 #if HAVE_PTHREADS < 7
23464 #define NULL (void*)0
23467 static void *task(p)
23470 return (void *) (p == NULL);
23474 int main(argc, argv)
23479 /* pthread test function */
23480 #ifndef PTHREAD_CREATE_DETACHED
23481 #define PTHREAD_CREATE_DETACHED 1
23485 int detach = PTHREAD_CREATE_DETACHED;
23487 #if HAVE_PTHREADS > 4
23488 /* Final pthreads */
23489 pthread_attr_t attr;
23491 status = pthread_attr_init(&attr);
23492 if( status ) return status;
23494 #if HAVE_PTHREADS < 7
23495 status = pthread_attr_setdetachstate(&attr, &detach);
23496 if( status < 0 ) status = errno;
23498 status = pthread_attr_setdetachstate(&attr, detach);
23500 if( status ) return status;
23501 status = pthread_create( &t, &attr, task, NULL );
23502 #if HAVE_PTHREADS < 7
23503 if( status < 0 ) status = errno;
23505 if( status ) return status;
23507 /* Draft 4 pthreads */
23508 status = pthread_create( &t, pthread_attr_default, task, NULL );
23509 if( status ) return errno;
23511 /* give thread a chance to complete */
23512 /* it should remain joinable and hence detachable */
23515 status = pthread_detach( &t );
23516 if( status ) return errno;
23519 #ifdef HAVE_LINUX_THREADS
23520 pthread_kill_other_threads_np();
23528 if ac_fn_c_try_run "$LINENO"; then :
23529 ol_cv_pthread_create=yes
23531 ol_cv_pthread_create=no
23533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23534 conftest.$ac_objext conftest.beam conftest.$ac_ext
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
23539 $as_echo "$ol_cv_pthread_create" >&6; }
23541 if test $ol_cv_pthread_create != no ; then
23542 ol_link_threads=posix
23543 ol_link_pthreads=""
23546 # Pthread try link: -kthread (ol_cv_pthread_kthread)
23547 if test "$ol_link_threads" = no ; then
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
23550 $as_echo_n "checking for pthread link with -kthread... " >&6; }
23551 if ${ol_cv_pthread_kthread+:} false; then :
23552 $as_echo_n "(cached) " >&6
23557 LIBS="-kthread $LIBS"
23559 if test "$cross_compiling" = yes; then :
23560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23561 /* end confdefs.h. */
23563 /* pthread test headers */
23564 #include <pthread.h>
23565 #if HAVE_PTHREADS < 7
23569 #define NULL (void*)0
23572 static void *task(p)
23575 return (void *) (p == NULL);
23582 /* pthread test function */
23583 #ifndef PTHREAD_CREATE_DETACHED
23584 #define PTHREAD_CREATE_DETACHED 1
23588 int detach = PTHREAD_CREATE_DETACHED;
23590 #if HAVE_PTHREADS > 4
23591 /* Final pthreads */
23592 pthread_attr_t attr;
23594 status = pthread_attr_init(&attr);
23595 if( status ) return status;
23597 #if HAVE_PTHREADS < 7
23598 status = pthread_attr_setdetachstate(&attr, &detach);
23599 if( status < 0 ) status = errno;
23601 status = pthread_attr_setdetachstate(&attr, detach);
23603 if( status ) return status;
23604 status = pthread_create( &t, &attr, task, NULL );
23605 #if HAVE_PTHREADS < 7
23606 if( status < 0 ) status = errno;
23608 if( status ) return status;
23610 /* Draft 4 pthreads */
23611 status = pthread_create( &t, pthread_attr_default, task, NULL );
23612 if( status ) return errno;
23614 /* give thread a chance to complete */
23615 /* it should remain joinable and hence detachable */
23618 status = pthread_detach( &t );
23619 if( status ) return errno;
23622 #ifdef HAVE_LINUX_THREADS
23623 pthread_kill_other_threads_np();
23632 if ac_fn_c_try_link "$LINENO"; then :
23633 ol_cv_pthread_kthread=yes
23635 ol_cv_pthread_kthread=no
23637 rm -f core conftest.err conftest.$ac_objext \
23638 conftest$ac_exeext conftest.$ac_ext
23640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23641 /* end confdefs.h. */
23644 /* pthread test headers */
23645 #include <pthread.h>
23646 #if HAVE_PTHREADS < 7
23650 #define NULL (void*)0
23653 static void *task(p)
23656 return (void *) (p == NULL);
23660 int main(argc, argv)
23665 /* pthread test function */
23666 #ifndef PTHREAD_CREATE_DETACHED
23667 #define PTHREAD_CREATE_DETACHED 1
23671 int detach = PTHREAD_CREATE_DETACHED;
23673 #if HAVE_PTHREADS > 4
23674 /* Final pthreads */
23675 pthread_attr_t attr;
23677 status = pthread_attr_init(&attr);
23678 if( status ) return status;
23680 #if HAVE_PTHREADS < 7
23681 status = pthread_attr_setdetachstate(&attr, &detach);
23682 if( status < 0 ) status = errno;
23684 status = pthread_attr_setdetachstate(&attr, detach);
23686 if( status ) return status;
23687 status = pthread_create( &t, &attr, task, NULL );
23688 #if HAVE_PTHREADS < 7
23689 if( status < 0 ) status = errno;
23691 if( status ) return status;
23693 /* Draft 4 pthreads */
23694 status = pthread_create( &t, pthread_attr_default, task, NULL );
23695 if( status ) return errno;
23697 /* give thread a chance to complete */
23698 /* it should remain joinable and hence detachable */
23701 status = pthread_detach( &t );
23702 if( status ) return errno;
23705 #ifdef HAVE_LINUX_THREADS
23706 pthread_kill_other_threads_np();
23714 if ac_fn_c_try_run "$LINENO"; then :
23715 ol_cv_pthread_kthread=yes
23717 ol_cv_pthread_kthread=no
23719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23720 conftest.$ac_objext conftest.beam conftest.$ac_ext
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
23729 $as_echo "$ol_cv_pthread_kthread" >&6; }
23731 if test $ol_cv_pthread_kthread = yes ; then
23732 ol_link_pthreads="-kthread"
23733 ol_link_threads=posix
23737 # Pthread try link: -pthread (ol_cv_pthread_pthread)
23738 if test "$ol_link_threads" = no ; then
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
23741 $as_echo_n "checking for pthread link with -pthread... " >&6; }
23742 if ${ol_cv_pthread_pthread+:} false; then :
23743 $as_echo_n "(cached) " >&6
23748 LIBS="-pthread $LIBS"
23750 if test "$cross_compiling" = yes; then :
23751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23752 /* end confdefs.h. */
23754 /* pthread test headers */
23755 #include <pthread.h>
23756 #if HAVE_PTHREADS < 7
23760 #define NULL (void*)0
23763 static void *task(p)
23766 return (void *) (p == NULL);
23773 /* pthread test function */
23774 #ifndef PTHREAD_CREATE_DETACHED
23775 #define PTHREAD_CREATE_DETACHED 1
23779 int detach = PTHREAD_CREATE_DETACHED;
23781 #if HAVE_PTHREADS > 4
23782 /* Final pthreads */
23783 pthread_attr_t attr;
23785 status = pthread_attr_init(&attr);
23786 if( status ) return status;
23788 #if HAVE_PTHREADS < 7
23789 status = pthread_attr_setdetachstate(&attr, &detach);
23790 if( status < 0 ) status = errno;
23792 status = pthread_attr_setdetachstate(&attr, detach);
23794 if( status ) return status;
23795 status = pthread_create( &t, &attr, task, NULL );
23796 #if HAVE_PTHREADS < 7
23797 if( status < 0 ) status = errno;
23799 if( status ) return status;
23801 /* Draft 4 pthreads */
23802 status = pthread_create( &t, pthread_attr_default, task, NULL );
23803 if( status ) return errno;
23805 /* give thread a chance to complete */
23806 /* it should remain joinable and hence detachable */
23809 status = pthread_detach( &t );
23810 if( status ) return errno;
23813 #ifdef HAVE_LINUX_THREADS
23814 pthread_kill_other_threads_np();
23823 if ac_fn_c_try_link "$LINENO"; then :
23824 ol_cv_pthread_pthread=yes
23826 ol_cv_pthread_pthread=no
23828 rm -f core conftest.err conftest.$ac_objext \
23829 conftest$ac_exeext conftest.$ac_ext
23831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23832 /* end confdefs.h. */
23835 /* pthread test headers */
23836 #include <pthread.h>
23837 #if HAVE_PTHREADS < 7
23841 #define NULL (void*)0
23844 static void *task(p)
23847 return (void *) (p == NULL);
23851 int main(argc, argv)
23856 /* pthread test function */
23857 #ifndef PTHREAD_CREATE_DETACHED
23858 #define PTHREAD_CREATE_DETACHED 1
23862 int detach = PTHREAD_CREATE_DETACHED;
23864 #if HAVE_PTHREADS > 4
23865 /* Final pthreads */
23866 pthread_attr_t attr;
23868 status = pthread_attr_init(&attr);
23869 if( status ) return status;
23871 #if HAVE_PTHREADS < 7
23872 status = pthread_attr_setdetachstate(&attr, &detach);
23873 if( status < 0 ) status = errno;
23875 status = pthread_attr_setdetachstate(&attr, detach);
23877 if( status ) return status;
23878 status = pthread_create( &t, &attr, task, NULL );
23879 #if HAVE_PTHREADS < 7
23880 if( status < 0 ) status = errno;
23882 if( status ) return status;
23884 /* Draft 4 pthreads */
23885 status = pthread_create( &t, pthread_attr_default, task, NULL );
23886 if( status ) return errno;
23888 /* give thread a chance to complete */
23889 /* it should remain joinable and hence detachable */
23892 status = pthread_detach( &t );
23893 if( status ) return errno;
23896 #ifdef HAVE_LINUX_THREADS
23897 pthread_kill_other_threads_np();
23905 if ac_fn_c_try_run "$LINENO"; then :
23906 ol_cv_pthread_pthread=yes
23908 ol_cv_pthread_pthread=no
23910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23911 conftest.$ac_objext conftest.beam conftest.$ac_ext
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
23920 $as_echo "$ol_cv_pthread_pthread" >&6; }
23922 if test $ol_cv_pthread_pthread = yes ; then
23923 ol_link_pthreads="-pthread"
23924 ol_link_threads=posix
23928 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
23929 if test "$ol_link_threads" = no ; then
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
23932 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
23933 if ${ol_cv_pthread_pthreads+:} false; then :
23934 $as_echo_n "(cached) " >&6
23939 LIBS="-pthreads $LIBS"
23941 if test "$cross_compiling" = yes; then :
23942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23943 /* end confdefs.h. */
23945 /* pthread test headers */
23946 #include <pthread.h>
23947 #if HAVE_PTHREADS < 7
23951 #define NULL (void*)0
23954 static void *task(p)
23957 return (void *) (p == NULL);
23964 /* pthread test function */
23965 #ifndef PTHREAD_CREATE_DETACHED
23966 #define PTHREAD_CREATE_DETACHED 1
23970 int detach = PTHREAD_CREATE_DETACHED;
23972 #if HAVE_PTHREADS > 4
23973 /* Final pthreads */
23974 pthread_attr_t attr;
23976 status = pthread_attr_init(&attr);
23977 if( status ) return status;
23979 #if HAVE_PTHREADS < 7
23980 status = pthread_attr_setdetachstate(&attr, &detach);
23981 if( status < 0 ) status = errno;
23983 status = pthread_attr_setdetachstate(&attr, detach);
23985 if( status ) return status;
23986 status = pthread_create( &t, &attr, task, NULL );
23987 #if HAVE_PTHREADS < 7
23988 if( status < 0 ) status = errno;
23990 if( status ) return status;
23992 /* Draft 4 pthreads */
23993 status = pthread_create( &t, pthread_attr_default, task, NULL );
23994 if( status ) return errno;
23996 /* give thread a chance to complete */
23997 /* it should remain joinable and hence detachable */
24000 status = pthread_detach( &t );
24001 if( status ) return errno;
24004 #ifdef HAVE_LINUX_THREADS
24005 pthread_kill_other_threads_np();
24014 if ac_fn_c_try_link "$LINENO"; then :
24015 ol_cv_pthread_pthreads=yes
24017 ol_cv_pthread_pthreads=no
24019 rm -f core conftest.err conftest.$ac_objext \
24020 conftest$ac_exeext conftest.$ac_ext
24022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24023 /* end confdefs.h. */
24026 /* pthread test headers */
24027 #include <pthread.h>
24028 #if HAVE_PTHREADS < 7
24032 #define NULL (void*)0
24035 static void *task(p)
24038 return (void *) (p == NULL);
24042 int main(argc, argv)
24047 /* pthread test function */
24048 #ifndef PTHREAD_CREATE_DETACHED
24049 #define PTHREAD_CREATE_DETACHED 1
24053 int detach = PTHREAD_CREATE_DETACHED;
24055 #if HAVE_PTHREADS > 4
24056 /* Final pthreads */
24057 pthread_attr_t attr;
24059 status = pthread_attr_init(&attr);
24060 if( status ) return status;
24062 #if HAVE_PTHREADS < 7
24063 status = pthread_attr_setdetachstate(&attr, &detach);
24064 if( status < 0 ) status = errno;
24066 status = pthread_attr_setdetachstate(&attr, detach);
24068 if( status ) return status;
24069 status = pthread_create( &t, &attr, task, NULL );
24070 #if HAVE_PTHREADS < 7
24071 if( status < 0 ) status = errno;
24073 if( status ) return status;
24075 /* Draft 4 pthreads */
24076 status = pthread_create( &t, pthread_attr_default, task, NULL );
24077 if( status ) return errno;
24079 /* give thread a chance to complete */
24080 /* it should remain joinable and hence detachable */
24083 status = pthread_detach( &t );
24084 if( status ) return errno;
24087 #ifdef HAVE_LINUX_THREADS
24088 pthread_kill_other_threads_np();
24096 if ac_fn_c_try_run "$LINENO"; then :
24097 ol_cv_pthread_pthreads=yes
24099 ol_cv_pthread_pthreads=no
24101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24102 conftest.$ac_objext conftest.beam conftest.$ac_ext
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
24111 $as_echo "$ol_cv_pthread_pthreads" >&6; }
24113 if test $ol_cv_pthread_pthreads = yes ; then
24114 ol_link_pthreads="-pthreads"
24115 ol_link_threads=posix
24119 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
24120 if test "$ol_link_threads" = no ; then
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
24123 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
24124 if ${ol_cv_pthread_mthreads+:} false; then :
24125 $as_echo_n "(cached) " >&6
24130 LIBS="-mthreads $LIBS"
24132 if test "$cross_compiling" = yes; then :
24133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24134 /* end confdefs.h. */
24136 /* pthread test headers */
24137 #include <pthread.h>
24138 #if HAVE_PTHREADS < 7
24142 #define NULL (void*)0
24145 static void *task(p)
24148 return (void *) (p == NULL);
24155 /* pthread test function */
24156 #ifndef PTHREAD_CREATE_DETACHED
24157 #define PTHREAD_CREATE_DETACHED 1
24161 int detach = PTHREAD_CREATE_DETACHED;
24163 #if HAVE_PTHREADS > 4
24164 /* Final pthreads */
24165 pthread_attr_t attr;
24167 status = pthread_attr_init(&attr);
24168 if( status ) return status;
24170 #if HAVE_PTHREADS < 7
24171 status = pthread_attr_setdetachstate(&attr, &detach);
24172 if( status < 0 ) status = errno;
24174 status = pthread_attr_setdetachstate(&attr, detach);
24176 if( status ) return status;
24177 status = pthread_create( &t, &attr, task, NULL );
24178 #if HAVE_PTHREADS < 7
24179 if( status < 0 ) status = errno;
24181 if( status ) return status;
24183 /* Draft 4 pthreads */
24184 status = pthread_create( &t, pthread_attr_default, task, NULL );
24185 if( status ) return errno;
24187 /* give thread a chance to complete */
24188 /* it should remain joinable and hence detachable */
24191 status = pthread_detach( &t );
24192 if( status ) return errno;
24195 #ifdef HAVE_LINUX_THREADS
24196 pthread_kill_other_threads_np();
24205 if ac_fn_c_try_link "$LINENO"; then :
24206 ol_cv_pthread_mthreads=yes
24208 ol_cv_pthread_mthreads=no
24210 rm -f core conftest.err conftest.$ac_objext \
24211 conftest$ac_exeext conftest.$ac_ext
24213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24214 /* end confdefs.h. */
24217 /* pthread test headers */
24218 #include <pthread.h>
24219 #if HAVE_PTHREADS < 7
24223 #define NULL (void*)0
24226 static void *task(p)
24229 return (void *) (p == NULL);
24233 int main(argc, argv)
24238 /* pthread test function */
24239 #ifndef PTHREAD_CREATE_DETACHED
24240 #define PTHREAD_CREATE_DETACHED 1
24244 int detach = PTHREAD_CREATE_DETACHED;
24246 #if HAVE_PTHREADS > 4
24247 /* Final pthreads */
24248 pthread_attr_t attr;
24250 status = pthread_attr_init(&attr);
24251 if( status ) return status;
24253 #if HAVE_PTHREADS < 7
24254 status = pthread_attr_setdetachstate(&attr, &detach);
24255 if( status < 0 ) status = errno;
24257 status = pthread_attr_setdetachstate(&attr, detach);
24259 if( status ) return status;
24260 status = pthread_create( &t, &attr, task, NULL );
24261 #if HAVE_PTHREADS < 7
24262 if( status < 0 ) status = errno;
24264 if( status ) return status;
24266 /* Draft 4 pthreads */
24267 status = pthread_create( &t, pthread_attr_default, task, NULL );
24268 if( status ) return errno;
24270 /* give thread a chance to complete */
24271 /* it should remain joinable and hence detachable */
24274 status = pthread_detach( &t );
24275 if( status ) return errno;
24278 #ifdef HAVE_LINUX_THREADS
24279 pthread_kill_other_threads_np();
24287 if ac_fn_c_try_run "$LINENO"; then :
24288 ol_cv_pthread_mthreads=yes
24290 ol_cv_pthread_mthreads=no
24292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24293 conftest.$ac_objext conftest.beam conftest.$ac_ext
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
24302 $as_echo "$ol_cv_pthread_mthreads" >&6; }
24304 if test $ol_cv_pthread_mthreads = yes ; then
24305 ol_link_pthreads="-mthreads"
24306 ol_link_threads=posix
24310 # Pthread try link: -thread (ol_cv_pthread_thread)
24311 if test "$ol_link_threads" = no ; then
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
24314 $as_echo_n "checking for pthread link with -thread... " >&6; }
24315 if ${ol_cv_pthread_thread+:} false; then :
24316 $as_echo_n "(cached) " >&6
24321 LIBS="-thread $LIBS"
24323 if test "$cross_compiling" = yes; then :
24324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24325 /* end confdefs.h. */
24327 /* pthread test headers */
24328 #include <pthread.h>
24329 #if HAVE_PTHREADS < 7
24333 #define NULL (void*)0
24336 static void *task(p)
24339 return (void *) (p == NULL);
24346 /* pthread test function */
24347 #ifndef PTHREAD_CREATE_DETACHED
24348 #define PTHREAD_CREATE_DETACHED 1
24352 int detach = PTHREAD_CREATE_DETACHED;
24354 #if HAVE_PTHREADS > 4
24355 /* Final pthreads */
24356 pthread_attr_t attr;
24358 status = pthread_attr_init(&attr);
24359 if( status ) return status;
24361 #if HAVE_PTHREADS < 7
24362 status = pthread_attr_setdetachstate(&attr, &detach);
24363 if( status < 0 ) status = errno;
24365 status = pthread_attr_setdetachstate(&attr, detach);
24367 if( status ) return status;
24368 status = pthread_create( &t, &attr, task, NULL );
24369 #if HAVE_PTHREADS < 7
24370 if( status < 0 ) status = errno;
24372 if( status ) return status;
24374 /* Draft 4 pthreads */
24375 status = pthread_create( &t, pthread_attr_default, task, NULL );
24376 if( status ) return errno;
24378 /* give thread a chance to complete */
24379 /* it should remain joinable and hence detachable */
24382 status = pthread_detach( &t );
24383 if( status ) return errno;
24386 #ifdef HAVE_LINUX_THREADS
24387 pthread_kill_other_threads_np();
24396 if ac_fn_c_try_link "$LINENO"; then :
24397 ol_cv_pthread_thread=yes
24399 ol_cv_pthread_thread=no
24401 rm -f core conftest.err conftest.$ac_objext \
24402 conftest$ac_exeext conftest.$ac_ext
24404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24405 /* end confdefs.h. */
24408 /* pthread test headers */
24409 #include <pthread.h>
24410 #if HAVE_PTHREADS < 7
24414 #define NULL (void*)0
24417 static void *task(p)
24420 return (void *) (p == NULL);
24424 int main(argc, argv)
24429 /* pthread test function */
24430 #ifndef PTHREAD_CREATE_DETACHED
24431 #define PTHREAD_CREATE_DETACHED 1
24435 int detach = PTHREAD_CREATE_DETACHED;
24437 #if HAVE_PTHREADS > 4
24438 /* Final pthreads */
24439 pthread_attr_t attr;
24441 status = pthread_attr_init(&attr);
24442 if( status ) return status;
24444 #if HAVE_PTHREADS < 7
24445 status = pthread_attr_setdetachstate(&attr, &detach);
24446 if( status < 0 ) status = errno;
24448 status = pthread_attr_setdetachstate(&attr, detach);
24450 if( status ) return status;
24451 status = pthread_create( &t, &attr, task, NULL );
24452 #if HAVE_PTHREADS < 7
24453 if( status < 0 ) status = errno;
24455 if( status ) return status;
24457 /* Draft 4 pthreads */
24458 status = pthread_create( &t, pthread_attr_default, task, NULL );
24459 if( status ) return errno;
24461 /* give thread a chance to complete */
24462 /* it should remain joinable and hence detachable */
24465 status = pthread_detach( &t );
24466 if( status ) return errno;
24469 #ifdef HAVE_LINUX_THREADS
24470 pthread_kill_other_threads_np();
24478 if ac_fn_c_try_run "$LINENO"; then :
24479 ol_cv_pthread_thread=yes
24481 ol_cv_pthread_thread=no
24483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24484 conftest.$ac_objext conftest.beam conftest.$ac_ext
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
24493 $as_echo "$ol_cv_pthread_thread" >&6; }
24495 if test $ol_cv_pthread_thread = yes ; then
24496 ol_link_pthreads="-thread"
24497 ol_link_threads=posix
24502 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
24503 if test "$ol_link_threads" = no ; then
24504 # try -lpthread -lmach -lexc -lc_r
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
24506 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
24507 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
24508 $as_echo_n "(cached) " >&6
24513 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
24515 if test "$cross_compiling" = yes; then :
24516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24517 /* end confdefs.h. */
24519 /* pthread test headers */
24520 #include <pthread.h>
24521 #if HAVE_PTHREADS < 7
24525 #define NULL (void*)0
24528 static void *task(p)
24531 return (void *) (p == NULL);
24538 /* pthread test function */
24539 #ifndef PTHREAD_CREATE_DETACHED
24540 #define PTHREAD_CREATE_DETACHED 1
24544 int detach = PTHREAD_CREATE_DETACHED;
24546 #if HAVE_PTHREADS > 4
24547 /* Final pthreads */
24548 pthread_attr_t attr;
24550 status = pthread_attr_init(&attr);
24551 if( status ) return status;
24553 #if HAVE_PTHREADS < 7
24554 status = pthread_attr_setdetachstate(&attr, &detach);
24555 if( status < 0 ) status = errno;
24557 status = pthread_attr_setdetachstate(&attr, detach);
24559 if( status ) return status;
24560 status = pthread_create( &t, &attr, task, NULL );
24561 #if HAVE_PTHREADS < 7
24562 if( status < 0 ) status = errno;
24564 if( status ) return status;
24566 /* Draft 4 pthreads */
24567 status = pthread_create( &t, pthread_attr_default, task, NULL );
24568 if( status ) return errno;
24570 /* give thread a chance to complete */
24571 /* it should remain joinable and hence detachable */
24574 status = pthread_detach( &t );
24575 if( status ) return errno;
24578 #ifdef HAVE_LINUX_THREADS
24579 pthread_kill_other_threads_np();
24588 if ac_fn_c_try_link "$LINENO"; then :
24589 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
24591 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
24593 rm -f core conftest.err conftest.$ac_objext \
24594 conftest$ac_exeext conftest.$ac_ext
24596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24597 /* end confdefs.h. */
24600 /* pthread test headers */
24601 #include <pthread.h>
24602 #if HAVE_PTHREADS < 7
24606 #define NULL (void*)0
24609 static void *task(p)
24612 return (void *) (p == NULL);
24616 int main(argc, argv)
24621 /* pthread test function */
24622 #ifndef PTHREAD_CREATE_DETACHED
24623 #define PTHREAD_CREATE_DETACHED 1
24627 int detach = PTHREAD_CREATE_DETACHED;
24629 #if HAVE_PTHREADS > 4
24630 /* Final pthreads */
24631 pthread_attr_t attr;
24633 status = pthread_attr_init(&attr);
24634 if( status ) return status;
24636 #if HAVE_PTHREADS < 7
24637 status = pthread_attr_setdetachstate(&attr, &detach);
24638 if( status < 0 ) status = errno;
24640 status = pthread_attr_setdetachstate(&attr, detach);
24642 if( status ) return status;
24643 status = pthread_create( &t, &attr, task, NULL );
24644 #if HAVE_PTHREADS < 7
24645 if( status < 0 ) status = errno;
24647 if( status ) return status;
24649 /* Draft 4 pthreads */
24650 status = pthread_create( &t, pthread_attr_default, task, NULL );
24651 if( status ) return errno;
24653 /* give thread a chance to complete */
24654 /* it should remain joinable and hence detachable */
24657 status = pthread_detach( &t );
24658 if( status ) return errno;
24661 #ifdef HAVE_LINUX_THREADS
24662 pthread_kill_other_threads_np();
24670 if ac_fn_c_try_run "$LINENO"; then :
24671 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
24673 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
24675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24676 conftest.$ac_objext conftest.beam conftest.$ac_ext
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
24685 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
24687 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
24688 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
24689 ol_link_threads=posix
24693 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
24694 if test "$ol_link_threads" = no ; then
24695 # try -lpthread -lmach -lexc
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
24697 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
24698 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
24699 $as_echo_n "(cached) " >&6
24704 LIBS="-lpthread -lmach -lexc $LIBS"
24706 if test "$cross_compiling" = yes; then :
24707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24708 /* end confdefs.h. */
24710 /* pthread test headers */
24711 #include <pthread.h>
24712 #if HAVE_PTHREADS < 7
24716 #define NULL (void*)0
24719 static void *task(p)
24722 return (void *) (p == NULL);
24729 /* pthread test function */
24730 #ifndef PTHREAD_CREATE_DETACHED
24731 #define PTHREAD_CREATE_DETACHED 1
24735 int detach = PTHREAD_CREATE_DETACHED;
24737 #if HAVE_PTHREADS > 4
24738 /* Final pthreads */
24739 pthread_attr_t attr;
24741 status = pthread_attr_init(&attr);
24742 if( status ) return status;
24744 #if HAVE_PTHREADS < 7
24745 status = pthread_attr_setdetachstate(&attr, &detach);
24746 if( status < 0 ) status = errno;
24748 status = pthread_attr_setdetachstate(&attr, detach);
24750 if( status ) return status;
24751 status = pthread_create( &t, &attr, task, NULL );
24752 #if HAVE_PTHREADS < 7
24753 if( status < 0 ) status = errno;
24755 if( status ) return status;
24757 /* Draft 4 pthreads */
24758 status = pthread_create( &t, pthread_attr_default, task, NULL );
24759 if( status ) return errno;
24761 /* give thread a chance to complete */
24762 /* it should remain joinable and hence detachable */
24765 status = pthread_detach( &t );
24766 if( status ) return errno;
24769 #ifdef HAVE_LINUX_THREADS
24770 pthread_kill_other_threads_np();
24779 if ac_fn_c_try_link "$LINENO"; then :
24780 ol_cv_pthread_lpthread_lmach_lexc=yes
24782 ol_cv_pthread_lpthread_lmach_lexc=no
24784 rm -f core conftest.err conftest.$ac_objext \
24785 conftest$ac_exeext conftest.$ac_ext
24787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24788 /* end confdefs.h. */
24791 /* pthread test headers */
24792 #include <pthread.h>
24793 #if HAVE_PTHREADS < 7
24797 #define NULL (void*)0
24800 static void *task(p)
24803 return (void *) (p == NULL);
24807 int main(argc, argv)
24812 /* pthread test function */
24813 #ifndef PTHREAD_CREATE_DETACHED
24814 #define PTHREAD_CREATE_DETACHED 1
24818 int detach = PTHREAD_CREATE_DETACHED;
24820 #if HAVE_PTHREADS > 4
24821 /* Final pthreads */
24822 pthread_attr_t attr;
24824 status = pthread_attr_init(&attr);
24825 if( status ) return status;
24827 #if HAVE_PTHREADS < 7
24828 status = pthread_attr_setdetachstate(&attr, &detach);
24829 if( status < 0 ) status = errno;
24831 status = pthread_attr_setdetachstate(&attr, detach);
24833 if( status ) return status;
24834 status = pthread_create( &t, &attr, task, NULL );
24835 #if HAVE_PTHREADS < 7
24836 if( status < 0 ) status = errno;
24838 if( status ) return status;
24840 /* Draft 4 pthreads */
24841 status = pthread_create( &t, pthread_attr_default, task, NULL );
24842 if( status ) return errno;
24844 /* give thread a chance to complete */
24845 /* it should remain joinable and hence detachable */
24848 status = pthread_detach( &t );
24849 if( status ) return errno;
24852 #ifdef HAVE_LINUX_THREADS
24853 pthread_kill_other_threads_np();
24861 if ac_fn_c_try_run "$LINENO"; then :
24862 ol_cv_pthread_lpthread_lmach_lexc=yes
24864 ol_cv_pthread_lpthread_lmach_lexc=no
24866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24867 conftest.$ac_objext conftest.beam conftest.$ac_ext
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
24876 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
24878 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
24879 ol_link_pthreads="-lpthread -lmach -lexc"
24880 ol_link_threads=posix
24885 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
24886 if test "$ol_link_threads" = no ; then
24887 # try -lpthread -Wl,-woff,85
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
24889 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
24890 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
24891 $as_echo_n "(cached) " >&6
24896 LIBS="-lpthread -Wl,-woff,85 $LIBS"
24898 if test "$cross_compiling" = yes; then :
24899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24900 /* end confdefs.h. */
24902 /* pthread test headers */
24903 #include <pthread.h>
24904 #if HAVE_PTHREADS < 7
24908 #define NULL (void*)0
24911 static void *task(p)
24914 return (void *) (p == NULL);
24921 /* pthread test function */
24922 #ifndef PTHREAD_CREATE_DETACHED
24923 #define PTHREAD_CREATE_DETACHED 1
24927 int detach = PTHREAD_CREATE_DETACHED;
24929 #if HAVE_PTHREADS > 4
24930 /* Final pthreads */
24931 pthread_attr_t attr;
24933 status = pthread_attr_init(&attr);
24934 if( status ) return status;
24936 #if HAVE_PTHREADS < 7
24937 status = pthread_attr_setdetachstate(&attr, &detach);
24938 if( status < 0 ) status = errno;
24940 status = pthread_attr_setdetachstate(&attr, detach);
24942 if( status ) return status;
24943 status = pthread_create( &t, &attr, task, NULL );
24944 #if HAVE_PTHREADS < 7
24945 if( status < 0 ) status = errno;
24947 if( status ) return status;
24949 /* Draft 4 pthreads */
24950 status = pthread_create( &t, pthread_attr_default, task, NULL );
24951 if( status ) return errno;
24953 /* give thread a chance to complete */
24954 /* it should remain joinable and hence detachable */
24957 status = pthread_detach( &t );
24958 if( status ) return errno;
24961 #ifdef HAVE_LINUX_THREADS
24962 pthread_kill_other_threads_np();
24971 if ac_fn_c_try_link "$LINENO"; then :
24972 ol_cv_pthread_lib_lpthread_woff=yes
24974 ol_cv_pthread_lib_lpthread_woff=no
24976 rm -f core conftest.err conftest.$ac_objext \
24977 conftest$ac_exeext conftest.$ac_ext
24979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24980 /* end confdefs.h. */
24983 /* pthread test headers */
24984 #include <pthread.h>
24985 #if HAVE_PTHREADS < 7
24989 #define NULL (void*)0
24992 static void *task(p)
24995 return (void *) (p == NULL);
24999 int main(argc, argv)
25004 /* pthread test function */
25005 #ifndef PTHREAD_CREATE_DETACHED
25006 #define PTHREAD_CREATE_DETACHED 1
25010 int detach = PTHREAD_CREATE_DETACHED;
25012 #if HAVE_PTHREADS > 4
25013 /* Final pthreads */
25014 pthread_attr_t attr;
25016 status = pthread_attr_init(&attr);
25017 if( status ) return status;
25019 #if HAVE_PTHREADS < 7
25020 status = pthread_attr_setdetachstate(&attr, &detach);
25021 if( status < 0 ) status = errno;
25023 status = pthread_attr_setdetachstate(&attr, detach);
25025 if( status ) return status;
25026 status = pthread_create( &t, &attr, task, NULL );
25027 #if HAVE_PTHREADS < 7
25028 if( status < 0 ) status = errno;
25030 if( status ) return status;
25032 /* Draft 4 pthreads */
25033 status = pthread_create( &t, pthread_attr_default, task, NULL );
25034 if( status ) return errno;
25036 /* give thread a chance to complete */
25037 /* it should remain joinable and hence detachable */
25040 status = pthread_detach( &t );
25041 if( status ) return errno;
25044 #ifdef HAVE_LINUX_THREADS
25045 pthread_kill_other_threads_np();
25053 if ac_fn_c_try_run "$LINENO"; then :
25054 ol_cv_pthread_lib_lpthread_woff=yes
25056 ol_cv_pthread_lib_lpthread_woff=no
25058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25059 conftest.$ac_objext conftest.beam conftest.$ac_ext
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
25068 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
25070 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
25071 ol_link_pthreads="-lpthread -Wl,-woff,85"
25072 ol_link_threads=posix
25077 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
25078 if test "$ol_link_threads" = no ; then
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
25081 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
25082 if ${ol_cv_pthread_lpthread+:} false; then :
25083 $as_echo_n "(cached) " >&6
25088 LIBS="-lpthread $LIBS"
25090 if test "$cross_compiling" = yes; then :
25091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25092 /* end confdefs.h. */
25094 /* pthread test headers */
25095 #include <pthread.h>
25096 #if HAVE_PTHREADS < 7
25100 #define NULL (void*)0
25103 static void *task(p)
25106 return (void *) (p == NULL);
25113 /* pthread test function */
25114 #ifndef PTHREAD_CREATE_DETACHED
25115 #define PTHREAD_CREATE_DETACHED 1
25119 int detach = PTHREAD_CREATE_DETACHED;
25121 #if HAVE_PTHREADS > 4
25122 /* Final pthreads */
25123 pthread_attr_t attr;
25125 status = pthread_attr_init(&attr);
25126 if( status ) return status;
25128 #if HAVE_PTHREADS < 7
25129 status = pthread_attr_setdetachstate(&attr, &detach);
25130 if( status < 0 ) status = errno;
25132 status = pthread_attr_setdetachstate(&attr, detach);
25134 if( status ) return status;
25135 status = pthread_create( &t, &attr, task, NULL );
25136 #if HAVE_PTHREADS < 7
25137 if( status < 0 ) status = errno;
25139 if( status ) return status;
25141 /* Draft 4 pthreads */
25142 status = pthread_create( &t, pthread_attr_default, task, NULL );
25143 if( status ) return errno;
25145 /* give thread a chance to complete */
25146 /* it should remain joinable and hence detachable */
25149 status = pthread_detach( &t );
25150 if( status ) return errno;
25153 #ifdef HAVE_LINUX_THREADS
25154 pthread_kill_other_threads_np();
25163 if ac_fn_c_try_link "$LINENO"; then :
25164 ol_cv_pthread_lpthread=yes
25166 ol_cv_pthread_lpthread=no
25168 rm -f core conftest.err conftest.$ac_objext \
25169 conftest$ac_exeext conftest.$ac_ext
25171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25172 /* end confdefs.h. */
25175 /* pthread test headers */
25176 #include <pthread.h>
25177 #if HAVE_PTHREADS < 7
25181 #define NULL (void*)0
25184 static void *task(p)
25187 return (void *) (p == NULL);
25191 int main(argc, argv)
25196 /* pthread test function */
25197 #ifndef PTHREAD_CREATE_DETACHED
25198 #define PTHREAD_CREATE_DETACHED 1
25202 int detach = PTHREAD_CREATE_DETACHED;
25204 #if HAVE_PTHREADS > 4
25205 /* Final pthreads */
25206 pthread_attr_t attr;
25208 status = pthread_attr_init(&attr);
25209 if( status ) return status;
25211 #if HAVE_PTHREADS < 7
25212 status = pthread_attr_setdetachstate(&attr, &detach);
25213 if( status < 0 ) status = errno;
25215 status = pthread_attr_setdetachstate(&attr, detach);
25217 if( status ) return status;
25218 status = pthread_create( &t, &attr, task, NULL );
25219 #if HAVE_PTHREADS < 7
25220 if( status < 0 ) status = errno;
25222 if( status ) return status;
25224 /* Draft 4 pthreads */
25225 status = pthread_create( &t, pthread_attr_default, task, NULL );
25226 if( status ) return errno;
25228 /* give thread a chance to complete */
25229 /* it should remain joinable and hence detachable */
25232 status = pthread_detach( &t );
25233 if( status ) return errno;
25236 #ifdef HAVE_LINUX_THREADS
25237 pthread_kill_other_threads_np();
25245 if ac_fn_c_try_run "$LINENO"; then :
25246 ol_cv_pthread_lpthread=yes
25248 ol_cv_pthread_lpthread=no
25250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25251 conftest.$ac_objext conftest.beam conftest.$ac_ext
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
25260 $as_echo "$ol_cv_pthread_lpthread" >&6; }
25262 if test $ol_cv_pthread_lpthread = yes ; then
25263 ol_link_pthreads="-lpthread"
25264 ol_link_threads=posix
25268 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
25269 if test "$ol_link_threads" = no ; then
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
25272 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
25273 if ${ol_cv_pthread_lc_r+:} false; then :
25274 $as_echo_n "(cached) " >&6
25281 if test "$cross_compiling" = yes; then :
25282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25283 /* end confdefs.h. */
25285 /* pthread test headers */
25286 #include <pthread.h>
25287 #if HAVE_PTHREADS < 7
25291 #define NULL (void*)0
25294 static void *task(p)
25297 return (void *) (p == NULL);
25304 /* pthread test function */
25305 #ifndef PTHREAD_CREATE_DETACHED
25306 #define PTHREAD_CREATE_DETACHED 1
25310 int detach = PTHREAD_CREATE_DETACHED;
25312 #if HAVE_PTHREADS > 4
25313 /* Final pthreads */
25314 pthread_attr_t attr;
25316 status = pthread_attr_init(&attr);
25317 if( status ) return status;
25319 #if HAVE_PTHREADS < 7
25320 status = pthread_attr_setdetachstate(&attr, &detach);
25321 if( status < 0 ) status = errno;
25323 status = pthread_attr_setdetachstate(&attr, detach);
25325 if( status ) return status;
25326 status = pthread_create( &t, &attr, task, NULL );
25327 #if HAVE_PTHREADS < 7
25328 if( status < 0 ) status = errno;
25330 if( status ) return status;
25332 /* Draft 4 pthreads */
25333 status = pthread_create( &t, pthread_attr_default, task, NULL );
25334 if( status ) return errno;
25336 /* give thread a chance to complete */
25337 /* it should remain joinable and hence detachable */
25340 status = pthread_detach( &t );
25341 if( status ) return errno;
25344 #ifdef HAVE_LINUX_THREADS
25345 pthread_kill_other_threads_np();
25354 if ac_fn_c_try_link "$LINENO"; then :
25355 ol_cv_pthread_lc_r=yes
25357 ol_cv_pthread_lc_r=no
25359 rm -f core conftest.err conftest.$ac_objext \
25360 conftest$ac_exeext conftest.$ac_ext
25362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25363 /* end confdefs.h. */
25366 /* pthread test headers */
25367 #include <pthread.h>
25368 #if HAVE_PTHREADS < 7
25372 #define NULL (void*)0
25375 static void *task(p)
25378 return (void *) (p == NULL);
25382 int main(argc, argv)
25387 /* pthread test function */
25388 #ifndef PTHREAD_CREATE_DETACHED
25389 #define PTHREAD_CREATE_DETACHED 1
25393 int detach = PTHREAD_CREATE_DETACHED;
25395 #if HAVE_PTHREADS > 4
25396 /* Final pthreads */
25397 pthread_attr_t attr;
25399 status = pthread_attr_init(&attr);
25400 if( status ) return status;
25402 #if HAVE_PTHREADS < 7
25403 status = pthread_attr_setdetachstate(&attr, &detach);
25404 if( status < 0 ) status = errno;
25406 status = pthread_attr_setdetachstate(&attr, detach);
25408 if( status ) return status;
25409 status = pthread_create( &t, &attr, task, NULL );
25410 #if HAVE_PTHREADS < 7
25411 if( status < 0 ) status = errno;
25413 if( status ) return status;
25415 /* Draft 4 pthreads */
25416 status = pthread_create( &t, pthread_attr_default, task, NULL );
25417 if( status ) return errno;
25419 /* give thread a chance to complete */
25420 /* it should remain joinable and hence detachable */
25423 status = pthread_detach( &t );
25424 if( status ) return errno;
25427 #ifdef HAVE_LINUX_THREADS
25428 pthread_kill_other_threads_np();
25436 if ac_fn_c_try_run "$LINENO"; then :
25437 ol_cv_pthread_lc_r=yes
25439 ol_cv_pthread_lc_r=no
25441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25442 conftest.$ac_objext conftest.beam conftest.$ac_ext
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
25451 $as_echo "$ol_cv_pthread_lc_r" >&6; }
25453 if test $ol_cv_pthread_lc_r = yes ; then
25454 ol_link_pthreads="-lc_r"
25455 ol_link_threads=posix
25460 # Pthread try link: -threads (ol_cv_pthread_threads)
25461 if test "$ol_link_threads" = no ; then
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
25464 $as_echo_n "checking for pthread link with -threads... " >&6; }
25465 if ${ol_cv_pthread_threads+:} false; then :
25466 $as_echo_n "(cached) " >&6
25471 LIBS="-threads $LIBS"
25473 if test "$cross_compiling" = yes; then :
25474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25475 /* end confdefs.h. */
25477 /* pthread test headers */
25478 #include <pthread.h>
25479 #if HAVE_PTHREADS < 7
25483 #define NULL (void*)0
25486 static void *task(p)
25489 return (void *) (p == NULL);
25496 /* pthread test function */
25497 #ifndef PTHREAD_CREATE_DETACHED
25498 #define PTHREAD_CREATE_DETACHED 1
25502 int detach = PTHREAD_CREATE_DETACHED;
25504 #if HAVE_PTHREADS > 4
25505 /* Final pthreads */
25506 pthread_attr_t attr;
25508 status = pthread_attr_init(&attr);
25509 if( status ) return status;
25511 #if HAVE_PTHREADS < 7
25512 status = pthread_attr_setdetachstate(&attr, &detach);
25513 if( status < 0 ) status = errno;
25515 status = pthread_attr_setdetachstate(&attr, detach);
25517 if( status ) return status;
25518 status = pthread_create( &t, &attr, task, NULL );
25519 #if HAVE_PTHREADS < 7
25520 if( status < 0 ) status = errno;
25522 if( status ) return status;
25524 /* Draft 4 pthreads */
25525 status = pthread_create( &t, pthread_attr_default, task, NULL );
25526 if( status ) return errno;
25528 /* give thread a chance to complete */
25529 /* it should remain joinable and hence detachable */
25532 status = pthread_detach( &t );
25533 if( status ) return errno;
25536 #ifdef HAVE_LINUX_THREADS
25537 pthread_kill_other_threads_np();
25546 if ac_fn_c_try_link "$LINENO"; then :
25547 ol_cv_pthread_threads=yes
25549 ol_cv_pthread_threads=no
25551 rm -f core conftest.err conftest.$ac_objext \
25552 conftest$ac_exeext conftest.$ac_ext
25554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25555 /* end confdefs.h. */
25558 /* pthread test headers */
25559 #include <pthread.h>
25560 #if HAVE_PTHREADS < 7
25564 #define NULL (void*)0
25567 static void *task(p)
25570 return (void *) (p == NULL);
25574 int main(argc, argv)
25579 /* pthread test function */
25580 #ifndef PTHREAD_CREATE_DETACHED
25581 #define PTHREAD_CREATE_DETACHED 1
25585 int detach = PTHREAD_CREATE_DETACHED;
25587 #if HAVE_PTHREADS > 4
25588 /* Final pthreads */
25589 pthread_attr_t attr;
25591 status = pthread_attr_init(&attr);
25592 if( status ) return status;
25594 #if HAVE_PTHREADS < 7
25595 status = pthread_attr_setdetachstate(&attr, &detach);
25596 if( status < 0 ) status = errno;
25598 status = pthread_attr_setdetachstate(&attr, detach);
25600 if( status ) return status;
25601 status = pthread_create( &t, &attr, task, NULL );
25602 #if HAVE_PTHREADS < 7
25603 if( status < 0 ) status = errno;
25605 if( status ) return status;
25607 /* Draft 4 pthreads */
25608 status = pthread_create( &t, pthread_attr_default, task, NULL );
25609 if( status ) return errno;
25611 /* give thread a chance to complete */
25612 /* it should remain joinable and hence detachable */
25615 status = pthread_detach( &t );
25616 if( status ) return errno;
25619 #ifdef HAVE_LINUX_THREADS
25620 pthread_kill_other_threads_np();
25628 if ac_fn_c_try_run "$LINENO"; then :
25629 ol_cv_pthread_threads=yes
25631 ol_cv_pthread_threads=no
25633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25634 conftest.$ac_objext conftest.beam conftest.$ac_ext
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
25643 $as_echo "$ol_cv_pthread_threads" >&6; }
25645 if test $ol_cv_pthread_threads = yes ; then
25646 ol_link_pthreads="-threads"
25647 ol_link_threads=posix
25652 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
25653 if test "$ol_link_threads" = no ; then
25654 # try -lpthreads -lmach -lexc -lc_r
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
25656 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
25657 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
25658 $as_echo_n "(cached) " >&6
25663 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
25665 if test "$cross_compiling" = yes; then :
25666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25667 /* end confdefs.h. */
25669 /* pthread test headers */
25670 #include <pthread.h>
25671 #if HAVE_PTHREADS < 7
25675 #define NULL (void*)0
25678 static void *task(p)
25681 return (void *) (p == NULL);
25688 /* pthread test function */
25689 #ifndef PTHREAD_CREATE_DETACHED
25690 #define PTHREAD_CREATE_DETACHED 1
25694 int detach = PTHREAD_CREATE_DETACHED;
25696 #if HAVE_PTHREADS > 4
25697 /* Final pthreads */
25698 pthread_attr_t attr;
25700 status = pthread_attr_init(&attr);
25701 if( status ) return status;
25703 #if HAVE_PTHREADS < 7
25704 status = pthread_attr_setdetachstate(&attr, &detach);
25705 if( status < 0 ) status = errno;
25707 status = pthread_attr_setdetachstate(&attr, detach);
25709 if( status ) return status;
25710 status = pthread_create( &t, &attr, task, NULL );
25711 #if HAVE_PTHREADS < 7
25712 if( status < 0 ) status = errno;
25714 if( status ) return status;
25716 /* Draft 4 pthreads */
25717 status = pthread_create( &t, pthread_attr_default, task, NULL );
25718 if( status ) return errno;
25720 /* give thread a chance to complete */
25721 /* it should remain joinable and hence detachable */
25724 status = pthread_detach( &t );
25725 if( status ) return errno;
25728 #ifdef HAVE_LINUX_THREADS
25729 pthread_kill_other_threads_np();
25738 if ac_fn_c_try_link "$LINENO"; then :
25739 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
25741 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
25743 rm -f core conftest.err conftest.$ac_objext \
25744 conftest$ac_exeext conftest.$ac_ext
25746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25747 /* end confdefs.h. */
25750 /* pthread test headers */
25751 #include <pthread.h>
25752 #if HAVE_PTHREADS < 7
25756 #define NULL (void*)0
25759 static void *task(p)
25762 return (void *) (p == NULL);
25766 int main(argc, argv)
25771 /* pthread test function */
25772 #ifndef PTHREAD_CREATE_DETACHED
25773 #define PTHREAD_CREATE_DETACHED 1
25777 int detach = PTHREAD_CREATE_DETACHED;
25779 #if HAVE_PTHREADS > 4
25780 /* Final pthreads */
25781 pthread_attr_t attr;
25783 status = pthread_attr_init(&attr);
25784 if( status ) return status;
25786 #if HAVE_PTHREADS < 7
25787 status = pthread_attr_setdetachstate(&attr, &detach);
25788 if( status < 0 ) status = errno;
25790 status = pthread_attr_setdetachstate(&attr, detach);
25792 if( status ) return status;
25793 status = pthread_create( &t, &attr, task, NULL );
25794 #if HAVE_PTHREADS < 7
25795 if( status < 0 ) status = errno;
25797 if( status ) return status;
25799 /* Draft 4 pthreads */
25800 status = pthread_create( &t, pthread_attr_default, task, NULL );
25801 if( status ) return errno;
25803 /* give thread a chance to complete */
25804 /* it should remain joinable and hence detachable */
25807 status = pthread_detach( &t );
25808 if( status ) return errno;
25811 #ifdef HAVE_LINUX_THREADS
25812 pthread_kill_other_threads_np();
25820 if ac_fn_c_try_run "$LINENO"; then :
25821 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
25823 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
25825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25826 conftest.$ac_objext conftest.beam conftest.$ac_ext
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
25835 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
25837 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
25838 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
25839 ol_link_threads=posix
25843 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
25844 if test "$ol_link_threads" = no ; then
25845 # try -lpthreads -lmach -lexc
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
25847 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
25848 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
25849 $as_echo_n "(cached) " >&6
25854 LIBS="-lpthreads -lmach -lexc $LIBS"
25856 if test "$cross_compiling" = yes; then :
25857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25858 /* end confdefs.h. */
25860 /* pthread test headers */
25861 #include <pthread.h>
25862 #if HAVE_PTHREADS < 7
25866 #define NULL (void*)0
25869 static void *task(p)
25872 return (void *) (p == NULL);
25879 /* pthread test function */
25880 #ifndef PTHREAD_CREATE_DETACHED
25881 #define PTHREAD_CREATE_DETACHED 1
25885 int detach = PTHREAD_CREATE_DETACHED;
25887 #if HAVE_PTHREADS > 4
25888 /* Final pthreads */
25889 pthread_attr_t attr;
25891 status = pthread_attr_init(&attr);
25892 if( status ) return status;
25894 #if HAVE_PTHREADS < 7
25895 status = pthread_attr_setdetachstate(&attr, &detach);
25896 if( status < 0 ) status = errno;
25898 status = pthread_attr_setdetachstate(&attr, detach);
25900 if( status ) return status;
25901 status = pthread_create( &t, &attr, task, NULL );
25902 #if HAVE_PTHREADS < 7
25903 if( status < 0 ) status = errno;
25905 if( status ) return status;
25907 /* Draft 4 pthreads */
25908 status = pthread_create( &t, pthread_attr_default, task, NULL );
25909 if( status ) return errno;
25911 /* give thread a chance to complete */
25912 /* it should remain joinable and hence detachable */
25915 status = pthread_detach( &t );
25916 if( status ) return errno;
25919 #ifdef HAVE_LINUX_THREADS
25920 pthread_kill_other_threads_np();
25929 if ac_fn_c_try_link "$LINENO"; then :
25930 ol_cv_pthread_lpthreads_lmach_lexc=yes
25932 ol_cv_pthread_lpthreads_lmach_lexc=no
25934 rm -f core conftest.err conftest.$ac_objext \
25935 conftest$ac_exeext conftest.$ac_ext
25937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25938 /* end confdefs.h. */
25941 /* pthread test headers */
25942 #include <pthread.h>
25943 #if HAVE_PTHREADS < 7
25947 #define NULL (void*)0
25950 static void *task(p)
25953 return (void *) (p == NULL);
25957 int main(argc, argv)
25962 /* pthread test function */
25963 #ifndef PTHREAD_CREATE_DETACHED
25964 #define PTHREAD_CREATE_DETACHED 1
25968 int detach = PTHREAD_CREATE_DETACHED;
25970 #if HAVE_PTHREADS > 4
25971 /* Final pthreads */
25972 pthread_attr_t attr;
25974 status = pthread_attr_init(&attr);
25975 if( status ) return status;
25977 #if HAVE_PTHREADS < 7
25978 status = pthread_attr_setdetachstate(&attr, &detach);
25979 if( status < 0 ) status = errno;
25981 status = pthread_attr_setdetachstate(&attr, detach);
25983 if( status ) return status;
25984 status = pthread_create( &t, &attr, task, NULL );
25985 #if HAVE_PTHREADS < 7
25986 if( status < 0 ) status = errno;
25988 if( status ) return status;
25990 /* Draft 4 pthreads */
25991 status = pthread_create( &t, pthread_attr_default, task, NULL );
25992 if( status ) return errno;
25994 /* give thread a chance to complete */
25995 /* it should remain joinable and hence detachable */
25998 status = pthread_detach( &t );
25999 if( status ) return errno;
26002 #ifdef HAVE_LINUX_THREADS
26003 pthread_kill_other_threads_np();
26011 if ac_fn_c_try_run "$LINENO"; then :
26012 ol_cv_pthread_lpthreads_lmach_lexc=yes
26014 ol_cv_pthread_lpthreads_lmach_lexc=no
26016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26017 conftest.$ac_objext conftest.beam conftest.$ac_ext
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
26026 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
26028 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
26029 ol_link_pthreads="-lpthreads -lmach -lexc"
26030 ol_link_threads=posix
26034 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
26035 if test "$ol_link_threads" = no ; then
26036 # try -lpthreads -lexc
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
26038 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
26039 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
26040 $as_echo_n "(cached) " >&6
26045 LIBS="-lpthreads -lexc $LIBS"
26047 if test "$cross_compiling" = yes; then :
26048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26049 /* end confdefs.h. */
26051 /* pthread test headers */
26052 #include <pthread.h>
26053 #if HAVE_PTHREADS < 7
26057 #define NULL (void*)0
26060 static void *task(p)
26063 return (void *) (p == NULL);
26070 /* pthread test function */
26071 #ifndef PTHREAD_CREATE_DETACHED
26072 #define PTHREAD_CREATE_DETACHED 1
26076 int detach = PTHREAD_CREATE_DETACHED;
26078 #if HAVE_PTHREADS > 4
26079 /* Final pthreads */
26080 pthread_attr_t attr;
26082 status = pthread_attr_init(&attr);
26083 if( status ) return status;
26085 #if HAVE_PTHREADS < 7
26086 status = pthread_attr_setdetachstate(&attr, &detach);
26087 if( status < 0 ) status = errno;
26089 status = pthread_attr_setdetachstate(&attr, detach);
26091 if( status ) return status;
26092 status = pthread_create( &t, &attr, task, NULL );
26093 #if HAVE_PTHREADS < 7
26094 if( status < 0 ) status = errno;
26096 if( status ) return status;
26098 /* Draft 4 pthreads */
26099 status = pthread_create( &t, pthread_attr_default, task, NULL );
26100 if( status ) return errno;
26102 /* give thread a chance to complete */
26103 /* it should remain joinable and hence detachable */
26106 status = pthread_detach( &t );
26107 if( status ) return errno;
26110 #ifdef HAVE_LINUX_THREADS
26111 pthread_kill_other_threads_np();
26120 if ac_fn_c_try_link "$LINENO"; then :
26121 ol_cv_pthread_lpthreads_lexc=yes
26123 ol_cv_pthread_lpthreads_lexc=no
26125 rm -f core conftest.err conftest.$ac_objext \
26126 conftest$ac_exeext conftest.$ac_ext
26128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26129 /* end confdefs.h. */
26132 /* pthread test headers */
26133 #include <pthread.h>
26134 #if HAVE_PTHREADS < 7
26138 #define NULL (void*)0
26141 static void *task(p)
26144 return (void *) (p == NULL);
26148 int main(argc, argv)
26153 /* pthread test function */
26154 #ifndef PTHREAD_CREATE_DETACHED
26155 #define PTHREAD_CREATE_DETACHED 1
26159 int detach = PTHREAD_CREATE_DETACHED;
26161 #if HAVE_PTHREADS > 4
26162 /* Final pthreads */
26163 pthread_attr_t attr;
26165 status = pthread_attr_init(&attr);
26166 if( status ) return status;
26168 #if HAVE_PTHREADS < 7
26169 status = pthread_attr_setdetachstate(&attr, &detach);
26170 if( status < 0 ) status = errno;
26172 status = pthread_attr_setdetachstate(&attr, detach);
26174 if( status ) return status;
26175 status = pthread_create( &t, &attr, task, NULL );
26176 #if HAVE_PTHREADS < 7
26177 if( status < 0 ) status = errno;
26179 if( status ) return status;
26181 /* Draft 4 pthreads */
26182 status = pthread_create( &t, pthread_attr_default, task, NULL );
26183 if( status ) return errno;
26185 /* give thread a chance to complete */
26186 /* it should remain joinable and hence detachable */
26189 status = pthread_detach( &t );
26190 if( status ) return errno;
26193 #ifdef HAVE_LINUX_THREADS
26194 pthread_kill_other_threads_np();
26202 if ac_fn_c_try_run "$LINENO"; then :
26203 ol_cv_pthread_lpthreads_lexc=yes
26205 ol_cv_pthread_lpthreads_lexc=no
26207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26208 conftest.$ac_objext conftest.beam conftest.$ac_ext
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
26217 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
26219 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
26220 ol_link_pthreads="-lpthreads -lexc"
26221 ol_link_threads=posix
26226 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
26227 if test "$ol_link_threads" = no ; then
26229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
26230 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
26231 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
26232 $as_echo_n "(cached) " >&6
26237 LIBS="-lpthreads $LIBS"
26239 if test "$cross_compiling" = yes; then :
26240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26241 /* end confdefs.h. */
26243 /* pthread test headers */
26244 #include <pthread.h>
26245 #if HAVE_PTHREADS < 7
26249 #define NULL (void*)0
26252 static void *task(p)
26255 return (void *) (p == NULL);
26262 /* pthread test function */
26263 #ifndef PTHREAD_CREATE_DETACHED
26264 #define PTHREAD_CREATE_DETACHED 1
26268 int detach = PTHREAD_CREATE_DETACHED;
26270 #if HAVE_PTHREADS > 4
26271 /* Final pthreads */
26272 pthread_attr_t attr;
26274 status = pthread_attr_init(&attr);
26275 if( status ) return status;
26277 #if HAVE_PTHREADS < 7
26278 status = pthread_attr_setdetachstate(&attr, &detach);
26279 if( status < 0 ) status = errno;
26281 status = pthread_attr_setdetachstate(&attr, detach);
26283 if( status ) return status;
26284 status = pthread_create( &t, &attr, task, NULL );
26285 #if HAVE_PTHREADS < 7
26286 if( status < 0 ) status = errno;
26288 if( status ) return status;
26290 /* Draft 4 pthreads */
26291 status = pthread_create( &t, pthread_attr_default, task, NULL );
26292 if( status ) return errno;
26294 /* give thread a chance to complete */
26295 /* it should remain joinable and hence detachable */
26298 status = pthread_detach( &t );
26299 if( status ) return errno;
26302 #ifdef HAVE_LINUX_THREADS
26303 pthread_kill_other_threads_np();
26312 if ac_fn_c_try_link "$LINENO"; then :
26313 ol_cv_pthread_lib_lpthreads=yes
26315 ol_cv_pthread_lib_lpthreads=no
26317 rm -f core conftest.err conftest.$ac_objext \
26318 conftest$ac_exeext conftest.$ac_ext
26320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26321 /* end confdefs.h. */
26324 /* pthread test headers */
26325 #include <pthread.h>
26326 #if HAVE_PTHREADS < 7
26330 #define NULL (void*)0
26333 static void *task(p)
26336 return (void *) (p == NULL);
26340 int main(argc, argv)
26345 /* pthread test function */
26346 #ifndef PTHREAD_CREATE_DETACHED
26347 #define PTHREAD_CREATE_DETACHED 1
26351 int detach = PTHREAD_CREATE_DETACHED;
26353 #if HAVE_PTHREADS > 4
26354 /* Final pthreads */
26355 pthread_attr_t attr;
26357 status = pthread_attr_init(&attr);
26358 if( status ) return status;
26360 #if HAVE_PTHREADS < 7
26361 status = pthread_attr_setdetachstate(&attr, &detach);
26362 if( status < 0 ) status = errno;
26364 status = pthread_attr_setdetachstate(&attr, detach);
26366 if( status ) return status;
26367 status = pthread_create( &t, &attr, task, NULL );
26368 #if HAVE_PTHREADS < 7
26369 if( status < 0 ) status = errno;
26371 if( status ) return status;
26373 /* Draft 4 pthreads */
26374 status = pthread_create( &t, pthread_attr_default, task, NULL );
26375 if( status ) return errno;
26377 /* give thread a chance to complete */
26378 /* it should remain joinable and hence detachable */
26381 status = pthread_detach( &t );
26382 if( status ) return errno;
26385 #ifdef HAVE_LINUX_THREADS
26386 pthread_kill_other_threads_np();
26394 if ac_fn_c_try_run "$LINENO"; then :
26395 ol_cv_pthread_lib_lpthreads=yes
26397 ol_cv_pthread_lib_lpthreads=no
26399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26400 conftest.$ac_objext conftest.beam conftest.$ac_ext
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
26409 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
26411 if test $ol_cv_pthread_lib_lpthreads = yes ; then
26412 ol_link_pthreads="-lpthreads"
26413 ol_link_threads=posix
26418 { $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
26419 $as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
26421 if test $ol_link_threads != no ; then
26422 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
26424 save_CPPFLAGS="$CPPFLAGS"
26426 LIBS="$LTHREAD_LIBS $LIBS"
26428 for ac_func in sched_yield pthread_yield thr_yield
26430 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26431 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26432 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26433 cat >>confdefs.h <<_ACEOF
26434 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26441 if test $ac_cv_func_sched_yield = no &&
26442 test $ac_cv_func_pthread_yield = no &&
26443 test $ac_cv_func_thr_yield = no ; then
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
26445 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
26446 if ${ac_cv_lib_rt_sched_yield+:} false; then :
26447 $as_echo_n "(cached) " >&6
26449 ac_check_lib_save_LIBS=$LIBS
26451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26452 /* end confdefs.h. */
26454 /* Override any GCC internal prototype to avoid an error.
26455 Use char because int might match the return type of a GCC
26456 builtin and then its argument prototype would still apply. */
26460 char sched_yield ();
26464 return sched_yield ();
26469 if ac_fn_c_try_link "$LINENO"; then :
26470 ac_cv_lib_rt_sched_yield=yes
26472 ac_cv_lib_rt_sched_yield=no
26474 rm -f core conftest.err conftest.$ac_objext \
26475 conftest$ac_exeext conftest.$ac_ext
26476 LIBS=$ac_check_lib_save_LIBS
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
26479 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
26480 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
26481 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
26483 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
26485 ac_cv_func_sched_yield=yes
26487 ac_cv_func_sched_yield=no
26491 if test $ac_cv_func_sched_yield = no &&
26492 test $ac_cv_func_pthread_yield = no &&
26493 test "$ac_cv_func_thr_yield" = no ; then
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
26495 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
26498 for ac_func in pthread_kill
26500 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
26501 if test "x$ac_cv_func_pthread_kill" = xyes; then :
26502 cat >>confdefs.h <<_ACEOF
26503 #define HAVE_PTHREAD_KILL 1
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
26511 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
26512 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
26513 $as_echo_n "(cached) " >&6
26516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26517 /* end confdefs.h. */
26519 #include <pthread.h>
26520 pthread_rwlock_t rwlock;
26525 pthread_rwlock_destroy(&rwlock);
26530 if ac_fn_c_try_link "$LINENO"; then :
26531 ol_cv_func_pthread_rwlock_destroy=yes
26533 ol_cv_func_pthread_rwlock_destroy=no
26535 rm -f core conftest.err conftest.$ac_objext \
26536 conftest$ac_exeext conftest.$ac_ext
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
26540 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
26541 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
26543 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
26548 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
26549 if ${ol_cv_func_pthread_detach+:} false; then :
26550 $as_echo_n "(cached) " >&6
26553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26554 /* end confdefs.h. */
26556 #include <pthread.h>
26558 #define NULL (void*)0
26564 pthread_detach(NULL);
26569 if ac_fn_c_try_link "$LINENO"; then :
26570 ol_cv_func_pthread_detach=yes
26572 ol_cv_func_pthread_detach=no
26574 rm -f core conftest.err conftest.$ac_objext \
26575 conftest$ac_exeext conftest.$ac_ext
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
26579 $as_echo "$ol_cv_func_pthread_detach" >&6; }
26581 if test $ol_cv_func_pthread_detach = no ; then
26582 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
26586 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
26590 pthread_setconcurrency \
26591 pthread_getconcurrency \
26592 thr_setconcurrency \
26593 thr_getconcurrency \
26596 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26597 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26598 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26599 cat >>confdefs.h <<_ACEOF
26600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26608 for ac_func in pthread_kill_other_threads_np
26610 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
26611 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
26612 cat >>confdefs.h <<_ACEOF
26613 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
26620 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
26621 if ${ol_cv_sys_linux_threads+:} false; then :
26622 $as_echo_n "(cached) " >&6
26624 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
26627 $as_echo "$ol_cv_sys_linux_threads" >&6; }
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
26633 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
26634 if ${ol_cv_linux_threads+:} false; then :
26635 $as_echo_n "(cached) " >&6
26638 if test $ol_cv_header_linux_threads = yes &&
26639 test $ol_cv_sys_linux_threads = yes; then
26640 ol_cv_linux_threads=yes
26641 elif test $ol_cv_header_linux_threads = no &&
26642 test $ol_cv_sys_linux_threads = no; then
26643 ol_cv_linux_threads=no
26645 ol_cv_linux_threads=error
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
26650 $as_echo "$ol_cv_linux_threads" >&6; }
26653 if test $ol_cv_linux_threads = error; then
26654 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
26658 $as_echo_n "checking if pthread_create() works... " >&6; }
26659 if ${ol_cv_pthread_create_works+:} false; then :
26660 $as_echo_n "(cached) " >&6
26663 if test "$cross_compiling" = yes; then :
26664 ol_cv_pthread_create_works=yes
26666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26667 /* end confdefs.h. */
26670 /* pthread test headers */
26671 #include <pthread.h>
26672 #if HAVE_PTHREADS < 7
26676 #define NULL (void*)0
26679 static void *task(p)
26682 return (void *) (p == NULL);
26686 int main(argc, argv)
26691 /* pthread test function */
26692 #ifndef PTHREAD_CREATE_DETACHED
26693 #define PTHREAD_CREATE_DETACHED 1
26697 int detach = PTHREAD_CREATE_DETACHED;
26699 #if HAVE_PTHREADS > 4
26700 /* Final pthreads */
26701 pthread_attr_t attr;
26703 status = pthread_attr_init(&attr);
26704 if( status ) return status;
26706 #if HAVE_PTHREADS < 7
26707 status = pthread_attr_setdetachstate(&attr, &detach);
26708 if( status < 0 ) status = errno;
26710 status = pthread_attr_setdetachstate(&attr, detach);
26712 if( status ) return status;
26713 status = pthread_create( &t, &attr, task, NULL );
26714 #if HAVE_PTHREADS < 7
26715 if( status < 0 ) status = errno;
26717 if( status ) return status;
26719 /* Draft 4 pthreads */
26720 status = pthread_create( &t, pthread_attr_default, task, NULL );
26721 if( status ) return errno;
26723 /* give thread a chance to complete */
26724 /* it should remain joinable and hence detachable */
26727 status = pthread_detach( &t );
26728 if( status ) return errno;
26731 #ifdef HAVE_LINUX_THREADS
26732 pthread_kill_other_threads_np();
26740 if ac_fn_c_try_run "$LINENO"; then :
26741 ol_cv_pthread_create_works=yes
26743 ol_cv_pthread_create_works=no
26745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26746 conftest.$ac_objext conftest.beam conftest.$ac_ext
26750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
26751 $as_echo "$ol_cv_pthread_create_works" >&6; }
26753 if test $ol_cv_pthread_create_works = no ; then
26754 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
26757 ol_replace_broken_yield=no
26759 if test $ol_replace_broken_yield = yes ; then
26761 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
26765 if test x$ol_with_yielding_select = xauto ; then
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
26767 $as_echo_n "checking if select yields when using pthreads... " >&6; }
26768 if ${ol_cv_pthread_select_yields+:} false; then :
26769 $as_echo_n "(cached) " >&6
26772 if test "$cross_compiling" = yes; then :
26773 ol_cv_pthread_select_yields=cross
26775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26776 /* end confdefs.h. */
26778 #include <sys/types.h>
26779 #include <sys/time.h>
26780 #include <unistd.h>
26781 #include <pthread.h>
26783 #define NULL (void*) 0
26786 static int fildes[2];
26788 static void *task(p)
26800 FD_SET(fildes[0], &rfds);
26802 /* we're not interested in any fds */
26803 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
26810 exit(0); /* if we exit here, the select blocked the whole process */
26813 int main(argc, argv)
26819 /* create a pipe to select */
26820 if(pipe(&fildes[0])) {
26825 #ifdef HAVE_PTHREAD_SETCONCURRENCY
26826 (void) pthread_setconcurrency(2);
26828 #ifdef HAVE_THR_SETCONCURRENCY
26829 /* Set Solaris LWP concurrency to 2 */
26830 thr_setconcurrency(2);
26834 #if HAVE_PTHREADS < 6
26835 pthread_create(&t, pthread_attr_default, task, NULL);
26837 pthread_create(&t, NULL, task, NULL);
26840 /* make sure task runs first */
26841 #ifdef HAVE_THR_YIELD
26843 #elif defined( HAVE_SCHED_YIELD )
26845 #elif defined( HAVE_PTHREAD_YIELD )
26852 if ac_fn_c_try_run "$LINENO"; then :
26853 ol_cv_pthread_select_yields=no
26855 ol_cv_pthread_select_yields=yes
26857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26858 conftest.$ac_objext conftest.beam conftest.$ac_ext
26862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
26863 $as_echo "$ol_cv_pthread_select_yields" >&6; }
26865 if test $ol_cv_pthread_select_yields = cross ; then
26866 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
26869 if test $ol_cv_pthread_select_yields = yes ; then
26870 ol_with_yielding_select=yes
26874 CPPFLAGS="$save_CPPFLAGS"
26877 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
26881 if test $ol_with_threads = posix ; then
26882 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
26887 case $ol_with_threads in auto | yes | mach)
26889 for ac_header in mach/cthreads.h cthreads.h
26891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26892 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26893 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26894 cat >>confdefs.h <<_ACEOF
26895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26902 if test $ac_cv_header_mach_cthreads_h = yes ; then
26903 ol_with_threads=found
26905 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
26906 if test "x$ac_cv_func_cthread_fork" = xyes; then :
26907 ol_link_threads=yes
26911 if test $ol_link_threads = no ; then
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
26913 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
26914 if ${ol_cv_cthread_all_load+:} false; then :
26915 $as_echo_n "(cached) " >&6
26919 LIBS="-all_load $LIBS"
26920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26921 /* end confdefs.h. */
26922 #include <mach/cthreads.h>
26927 cthread_fork((void *)0, (void *)0);
26933 if ac_fn_c_try_link "$LINENO"; then :
26934 ol_cv_cthread_all_load=yes
26936 ol_cv_cthread_all_load=no
26938 rm -f core conftest.err conftest.$ac_objext \
26939 conftest$ac_exeext conftest.$ac_ext
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
26944 $as_echo "$ol_cv_cthread_all_load" >&6; }
26946 if test $ol_cv_cthread_all_load = yes ; then
26947 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
26948 ol_link_threads=mach
26949 ol_with_threads=found
26953 elif test $ac_cv_header_cthreads_h = yes ; then
26955 ol_with_threads=found
26958 LIBS="$LIBS -lthreads"
26959 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
26960 if test "x$ac_cv_func_cthread_fork" = xyes; then :
26961 ol_link_threads=yes
26966 if test $ol_link_threads = yes ; then
26967 LTHREAD_LIBS="-lthreads"
26968 ol_link_threads=mach
26969 ol_with_threads=found
26971 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
26974 elif test $ol_with_threads = mach ; then
26975 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
26978 if test $ol_link_threads = mach ; then
26980 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
26982 elif test $ol_with_threads = found ; then
26983 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
26988 case $ol_with_threads in auto | yes | pth)
26990 for ac_header in pth.h
26992 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
26993 if test "x$ac_cv_header_pth_h" = xyes; then :
26994 cat >>confdefs.h <<_ACEOF
26995 #define HAVE_PTH_H 1
27003 if test $ac_cv_header_pth_h = yes ; then
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
27005 $as_echo_n "checking for pth_version in -lpth... " >&6; }
27006 if ${ac_cv_lib_pth_pth_version+:} false; then :
27007 $as_echo_n "(cached) " >&6
27009 ac_check_lib_save_LIBS=$LIBS
27011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27012 /* end confdefs.h. */
27014 /* Override any GCC internal prototype to avoid an error.
27015 Use char because int might match the return type of a GCC
27016 builtin and then its argument prototype would still apply. */
27020 char pth_version ();
27024 return pth_version ();
27029 if ac_fn_c_try_link "$LINENO"; then :
27030 ac_cv_lib_pth_pth_version=yes
27032 ac_cv_lib_pth_pth_version=no
27034 rm -f core conftest.err conftest.$ac_objext \
27035 conftest$ac_exeext conftest.$ac_ext
27036 LIBS=$ac_check_lib_save_LIBS
27038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
27039 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
27040 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
27047 if test $have_pth = yes ; then
27049 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
27051 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
27052 ol_link_threads=pth
27053 ol_with_threads=found
27055 if test x$ol_with_yielding_select = xauto ; then
27056 ol_with_yielding_select=yes
27063 case $ol_with_threads in auto | yes | lwp)
27065 for ac_header in thread.h synch.h
27067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27068 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27069 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27070 cat >>confdefs.h <<_ACEOF
27071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27078 if test $ac_cv_header_thread_h = yes &&
27079 test $ac_cv_header_synch_h = yes ; then
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
27081 $as_echo_n "checking for thr_create in -lthread... " >&6; }
27082 if ${ac_cv_lib_thread_thr_create+:} false; then :
27083 $as_echo_n "(cached) " >&6
27085 ac_check_lib_save_LIBS=$LIBS
27086 LIBS="-lthread $LIBS"
27087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27088 /* end confdefs.h. */
27090 /* Override any GCC internal prototype to avoid an error.
27091 Use char because int might match the return type of a GCC
27092 builtin and then its argument prototype would still apply. */
27096 char thr_create ();
27100 return thr_create ();
27105 if ac_fn_c_try_link "$LINENO"; then :
27106 ac_cv_lib_thread_thr_create=yes
27108 ac_cv_lib_thread_thr_create=no
27110 rm -f core conftest.err conftest.$ac_objext \
27111 conftest$ac_exeext conftest.$ac_ext
27112 LIBS=$ac_check_lib_save_LIBS
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
27115 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
27116 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
27123 if test $have_thr = yes ; then
27125 $as_echo "#define HAVE_THR 1" >>confdefs.h
27127 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
27128 ol_link_threads=thr
27130 if test x$ol_with_yielding_select = xauto ; then
27131 ol_with_yielding_select=yes
27135 thr_setconcurrency \
27136 thr_getconcurrency \
27139 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27140 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27141 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27142 cat >>confdefs.h <<_ACEOF
27143 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27152 for ac_header in lwp/lwp.h
27154 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
27155 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
27156 cat >>confdefs.h <<_ACEOF
27157 #define HAVE_LWP_LWP_H 1
27164 if test $ac_cv_header_lwp_lwp_h = yes ; then
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
27166 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
27167 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
27168 $as_echo_n "(cached) " >&6
27170 ac_check_lib_save_LIBS=$LIBS
27172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27173 /* end confdefs.h. */
27175 /* Override any GCC internal prototype to avoid an error.
27176 Use char because int might match the return type of a GCC
27177 builtin and then its argument prototype would still apply. */
27181 char lwp_create ();
27185 return lwp_create ();
27190 if ac_fn_c_try_link "$LINENO"; then :
27191 ac_cv_lib_lwp_lwp_create=yes
27193 ac_cv_lib_lwp_lwp_create=no
27195 rm -f core conftest.err conftest.$ac_objext \
27196 conftest$ac_exeext conftest.$ac_ext
27197 LIBS=$ac_check_lib_save_LIBS
27199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
27200 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
27201 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
27208 if test $have_lwp = yes ; then
27210 $as_echo "#define HAVE_LWP 1" >>confdefs.h
27212 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
27213 ol_link_threads=lwp
27215 if test x$ol_with_yielding_select = xauto ; then
27216 ol_with_yielding_select=no
27223 if test $ol_with_yielding_select = yes ; then
27225 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
27229 if test $ol_with_threads = manual ; then
27230 ol_link_threads=yes
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
27233 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
27235 for ac_header in pthread.h sched.h
27237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27238 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27239 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27240 cat >>confdefs.h <<_ACEOF
27241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27248 for ac_func in sched_yield pthread_yield
27250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27251 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27252 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27253 cat >>confdefs.h <<_ACEOF
27254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
27262 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
27263 if ${ol_cv_header_linux_threads+:} false; then :
27264 $as_echo_n "(cached) " >&6
27266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27267 /* end confdefs.h. */
27268 #include <pthread.h>
27270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27271 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
27272 ol_cv_header_linux_threads=yes
27274 ol_cv_header_linux_threads=no
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
27281 $as_echo "$ol_cv_header_linux_threads" >&6; }
27282 if test $ol_cv_header_linux_threads = yes; then
27284 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
27289 for ac_header in mach/cthreads.h
27291 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
27292 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
27293 cat >>confdefs.h <<_ACEOF
27294 #define HAVE_MACH_CTHREADS_H 1
27301 for ac_header in lwp/lwp.h
27303 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
27304 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
27305 cat >>confdefs.h <<_ACEOF
27306 #define HAVE_LWP_LWP_H 1
27313 for ac_header in thread.h synch.h
27315 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27316 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27317 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27318 cat >>confdefs.h <<_ACEOF
27319 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27328 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27330 $as_echo "#define REENTRANT 1" >>confdefs.h
27333 $as_echo "#define _REENTRANT 1" >>confdefs.h
27336 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
27339 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
27342 $as_echo "#define THREADSAFE 1" >>confdefs.h
27345 $as_echo "#define _THREADSAFE 1" >>confdefs.h
27348 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
27351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
27352 $as_echo_n "checking for thread specific errno... " >&6; }
27353 if ${ol_cv_errno_thread_specific+:} false; then :
27354 $as_echo_n "(cached) " >&6
27357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27358 /* end confdefs.h. */
27368 if ac_fn_c_try_link "$LINENO"; then :
27369 ol_cv_errno_thread_specific=yes
27371 ol_cv_errno_thread_specific=no
27373 rm -f core conftest.err conftest.$ac_objext \
27374 conftest$ac_exeext conftest.$ac_ext
27377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
27378 $as_echo "$ol_cv_errno_thread_specific" >&6; }
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
27381 $as_echo_n "checking for thread specific h_errno... " >&6; }
27382 if ${ol_cv_h_errno_thread_specific+:} false; then :
27383 $as_echo_n "(cached) " >&6
27386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27387 /* end confdefs.h. */
27397 if ac_fn_c_try_link "$LINENO"; then :
27398 ol_cv_h_errno_thread_specific=yes
27400 ol_cv_h_errno_thread_specific=no
27402 rm -f core conftest.err conftest.$ac_objext \
27403 conftest$ac_exeext conftest.$ac_ext
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
27407 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
27409 if test $ol_cv_errno_thread_specific != yes ||
27410 test $ol_cv_h_errno_thread_specific != yes ; then
27411 LIBS="$LTHREAD_LIBS $LIBS"
27417 if test $ol_link_threads = no ; then
27418 if test $ol_with_threads = yes ; then
27419 as_fn_error $? "no suitable thread support" "$LINENO" 5
27422 if test $ol_with_threads = auto ; then
27423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
27424 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27429 $as_echo "#define NO_THREADS 1" >>confdefs.h
27437 if test $ol_link_threads != no ; then
27439 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
27443 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
27444 case "$ol_with_threads" in
27450 ol_found_pthreads=yes
27455 ac_cpp='$CPP $CPPFLAGS'
27456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27465 case "$ol_found_pthreads" in
27468 LIBS="$LTHREAD_LIBS $LIBS"
27469 saved_CFLAGS="$CFLAGS"
27470 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
27471 for ac_func in sem_timedwait
27473 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
27474 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
27475 cat >>confdefs.h <<_ACEOF
27476 #define HAVE_SEM_TIMEDWAIT 1
27483 { saved_LIBS=; unset saved_LIBS;}
27484 CFLAGS="$saved_CFLAGS"
27485 { saved_CFLAGS=; unset saved_CFLAGS;}
27486 case "$ac_cv_func_sem_timedwait" in
27488 PTHREAD_LIBS="$LTHREAD_LIBS"
27494 case "$have_pthreads" in
27496 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
27498 LIBS="$LTHREAD_LIBS $LIBS"
27499 saved_CFLAGS="$CFLAGS"
27500 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
27501 # The cast to long int works around a bug in the HP C Compiler
27502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27504 # This bug is HP SR number 8606223364.
27505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
27506 $as_echo_n "checking size of pthread_t... " >&6; }
27507 if ${ac_cv_sizeof_pthread_t+:} false; then :
27508 $as_echo_n "(cached) " >&6
27510 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
27511 $ac_includes_default
27512 #include <pthread.h>
27518 if test "$ac_cv_type_pthread_t" = yes; then
27519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27521 as_fn_error 77 "cannot compute sizeof (pthread_t)
27522 See \`config.log' for more details" "$LINENO" 5; }
27524 ac_cv_sizeof_pthread_t=0
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
27530 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
27534 cat >>confdefs.h <<_ACEOF
27535 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
27539 LIBISC_PTHREADS_NOTHREADS=pthreads
27541 $as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
27544 # We'd like to use sigwait() too
27546 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
27547 if test "x$ac_cv_func_sigwait" = xyes; then :
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
27551 $as_echo_n "checking for sigwait in -lc... " >&6; }
27552 if ${ac_cv_lib_c_sigwait+:} false; then :
27553 $as_echo_n "(cached) " >&6
27555 ac_check_lib_save_LIBS=$LIBS
27557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27558 /* end confdefs.h. */
27560 /* Override any GCC internal prototype to avoid an error.
27561 Use char because int might match the return type of a GCC
27562 builtin and then its argument prototype would still apply. */
27575 if ac_fn_c_try_link "$LINENO"; then :
27576 ac_cv_lib_c_sigwait=yes
27578 ac_cv_lib_c_sigwait=no
27580 rm -f core conftest.err conftest.$ac_objext \
27581 conftest$ac_exeext conftest.$ac_ext
27582 LIBS=$ac_check_lib_save_LIBS
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
27585 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
27586 if test "x$ac_cv_lib_c_sigwait" = xyes; then :
27589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
27590 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
27591 if ${ac_cv_lib_pthread_sigwait+:} false; then :
27592 $as_echo_n "(cached) " >&6
27594 ac_check_lib_save_LIBS=$LIBS
27595 LIBS="-lpthread $LIBS"
27596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27597 /* end confdefs.h. */
27599 /* Override any GCC internal prototype to avoid an error.
27600 Use char because int might match the return type of a GCC
27601 builtin and then its argument prototype would still apply. */
27614 if ac_fn_c_try_link "$LINENO"; then :
27615 ac_cv_lib_pthread_sigwait=yes
27617 ac_cv_lib_pthread_sigwait=no
27619 rm -f core conftest.err conftest.$ac_objext \
27620 conftest$ac_exeext conftest.$ac_ext
27621 LIBS=$ac_check_lib_save_LIBS
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
27624 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
27625 if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
27628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
27629 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
27630 if ${ac_cv_lib_pthread__Psigwait+:} false; then :
27631 $as_echo_n "(cached) " >&6
27633 ac_check_lib_save_LIBS=$LIBS
27634 LIBS="-lpthread $LIBS"
27635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27636 /* end confdefs.h. */
27638 /* Override any GCC internal prototype to avoid an error.
27639 Use char because int might match the return type of a GCC
27640 builtin and then its argument prototype would still apply. */
27648 return _Psigwait ();
27653 if ac_fn_c_try_link "$LINENO"; then :
27654 ac_cv_lib_pthread__Psigwait=yes
27656 ac_cv_lib_pthread__Psigwait=no
27658 rm -f core conftest.err conftest.$ac_objext \
27659 conftest$ac_exeext conftest.$ac_ext
27660 LIBS=$ac_check_lib_save_LIBS
27662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
27663 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
27664 if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
27680 case "$host:$have_sigwait" in
27682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
27683 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
27684 if ${ac_cv_lib_c_r_sigwait+:} false; then :
27685 $as_echo_n "(cached) " >&6
27687 ac_check_lib_save_LIBS=$LIBS
27689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27690 /* end confdefs.h. */
27692 /* Override any GCC internal prototype to avoid an error.
27693 Use char because int might match the return type of a GCC
27694 builtin and then its argument prototype would still apply. */
27707 if ac_fn_c_try_link "$LINENO"; then :
27708 ac_cv_lib_c_r_sigwait=yes
27710 ac_cv_lib_c_r_sigwait=no
27712 rm -f core conftest.err conftest.$ac_objext \
27713 conftest$ac_exeext conftest.$ac_ext
27714 LIBS=$ac_check_lib_save_LIBS
27716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
27717 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
27718 if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
27724 case "$have_sigwait" in
27726 ac_cv_func_sigwait=yes
27728 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
27732 for ac_func in pthread_attr_getstacksize
27734 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
27735 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
27736 cat >>confdefs.h <<_ACEOF
27737 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
27743 for ac_func in pthread_attr_setstacksize sysconf
27745 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27746 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27747 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27748 cat >>confdefs.h <<_ACEOF
27749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27757 *-freebsd5.[012]|*-freebsd5.[012].*)
27759 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
27761 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
27764 *-bsdi3.*|*-bsdi4.0*)
27766 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
27771 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
27775 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
27777 for ac_func in pthread_setconcurrency
27779 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
27780 if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
27781 cat >>confdefs.h <<_ACEOF
27782 #define HAVE_PTHREAD_SETCONCURRENCY 1
27788 case "$ac_cv_func_pthread_setconcurrency" in
27791 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
27795 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
27797 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
27801 hack_shutup_pthreadonceinit=no
27804 hack_shutup_pthreadonceinit=yes
27807 hack_shutup_pthreadonceinit=yes
27810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
27811 $as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
27812 if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
27813 $as_echo_n "(cached) " >&6
27815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27816 /* end confdefs.h. */
27818 #include <pthread.h>
27824 static pthread_once_t once_test =
27832 if ac_fn_c_try_compile "$LINENO"; then :
27833 ntp_cv_braces_around_pthread_once_init=no
27835 ntp_cv_braces_around_pthread_once_init=yes
27838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
27842 $as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
27843 case "$ntp_cv_braces_around_pthread_once_init" in
27845 hack_shutup_pthreadonceinit=yes
27849 case "$hack_shutup_pthreadonceinit" in
27852 $as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
27856 { saved_LIBS=; unset saved_LIBS;}
27857 CFLAGS="$saved_CFLAGS"
27858 { saved_CFLAGS=; unset saved_CFLAGS;}
27861 LIBISC_PTHREADS_NOTHREADS=nothreads
27865 if test "$have_pthreads" != "no"; then
27879 case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
27881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
27882 $as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
27883 if ${ntp_cv_vsnprintf_percent_m+:} false; then :
27884 $as_echo_n "(cached) " >&6
27886 if test "$cross_compiling" = yes; then :
27887 ntp_cv_vsnprintf_percent_m=no
27890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27891 /* end confdefs.h. */
27893 #include <stdarg.h>
27896 #include <string.h>
27898 int call_vsnprintf(
27905 int call_vsnprintf(
27916 rc = vsnprintf(dst, sz, fmt, ap);
27930 strcpy(sbuf, strerror(ENOENT));
27932 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
27934 return strcmp(sbuf, pbuf);
27941 if ac_fn_c_try_run "$LINENO"; then :
27942 ntp_cv_vsnprintf_percent_m=yes
27944 ntp_cv_vsnprintf_percent_m=no
27946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27947 conftest.$ac_objext conftest.beam conftest.$ac_ext
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
27953 $as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
27954 case "$ntp_cv_vsnprintf_percent_m" in
27957 $as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
27962 for ac_header in sys/clockctl.h
27964 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
27965 if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
27966 cat >>confdefs.h <<_ACEOF
27967 #define HAVE_SYS_CLOCKCTL_H 1
27975 # Check whether --enable-clockctl was given.
27976 if test "${enable_clockctl+set}" = set; then :
27977 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
27979 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
27985 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
27986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
27987 $as_echo "$ntp_use_dev_clockctl" >&6; }
27990 for ac_header in sys/capability.h sys/prctl.h
27992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27993 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27994 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27995 cat >>confdefs.h <<_ACEOF
27996 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
28005 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
28007 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
28011 ntp_have_linuxcaps=no
28013 *) ntp_have_linuxcaps=yes
28018 ntp_have_linuxcaps=no
28022 # Check whether --enable-linuxcaps was given.
28023 if test "${enable_linuxcaps+set}" = set; then :
28024 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
28029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
28030 $as_echo "$ntp_have_linuxcaps" >&6; }
28032 case "$ntp_have_linuxcaps" in
28035 $as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
28042 for ac_header in priv.h
28044 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
28045 if test "x$ac_cv_header_priv_h" = xyes; then :
28046 cat >>confdefs.h <<_ACEOF
28047 #define HAVE_PRIV_H 1
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
28056 $as_echo_n "checking if we have solaris privileges... " >&6; }
28058 case "$ac_cv_header_priv_h" in
28062 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
28063 if test "x$ac_cv_func_setppriv" = xyes; then :
28064 ntp_have_solarisprivs=yes
28066 ntp_have_solarisprivs=no
28074 # Check whether --enable-solarisprivs was given.
28075 if test "${enable_solarisprivs+set}" = set; then :
28076 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
28082 case "$ntp_have_solarisprivs" in
28085 $as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
28089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
28090 $as_echo "$ntp_have_solarisprivs" >&6; }
28092 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
28095 $as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
28101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
28102 $as_echo_n "checking for library containing res_9_init... " >&6; }
28103 if ${ac_cv_search_res_9_init+:} false; then :
28104 $as_echo_n "(cached) " >&6
28106 ac_func_search_save_LIBS=$LIBS
28107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28108 /* end confdefs.h. */
28110 /* Override any GCC internal prototype to avoid an error.
28111 Use char because int might match the return type of a GCC
28112 builtin and then its argument prototype would still apply. */
28116 char res_9_init ();
28120 return res_9_init ();
28125 for ac_lib in '' resolv; do
28126 if test -z "$ac_lib"; then
28127 ac_res="none required"
28130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28132 if ac_fn_c_try_link "$LINENO"; then :
28133 ac_cv_search_res_9_init=$ac_res
28135 rm -f core conftest.err conftest.$ac_objext \
28137 if ${ac_cv_search_res_9_init+:} false; then :
28141 if ${ac_cv_search_res_9_init+:} false; then :
28144 ac_cv_search_res_9_init=no
28146 rm conftest.$ac_ext
28147 LIBS=$ac_func_search_save_LIBS
28149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
28150 $as_echo "$ac_cv_search_res_9_init" >&6; }
28151 ac_res=$ac_cv_search_res_9_init
28152 if test "$ac_res" != no; then :
28153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28158 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
28159 $as_echo_n "checking for library containing res_init... " >&6; }
28160 if ${ac_cv_search_res_init+:} false; then :
28161 $as_echo_n "(cached) " >&6
28163 ac_func_search_save_LIBS=$LIBS
28164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28165 /* end confdefs.h. */
28167 /* Override any GCC internal prototype to avoid an error.
28168 Use char because int might match the return type of a GCC
28169 builtin and then its argument prototype would still apply. */
28177 return res_init ();
28182 for ac_lib in '' resolv; do
28183 if test -z "$ac_lib"; then
28184 ac_res="none required"
28187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28189 if ac_fn_c_try_link "$LINENO"; then :
28190 ac_cv_search_res_init=$ac_res
28192 rm -f core conftest.err conftest.$ac_objext \
28194 if ${ac_cv_search_res_init+:} false; then :
28198 if ${ac_cv_search_res_init+:} false; then :
28201 ac_cv_search_res_init=no
28203 rm conftest.$ac_ext
28204 LIBS=$ac_func_search_save_LIBS
28206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
28207 $as_echo "$ac_cv_search_res_init" >&6; }
28208 ac_res=$ac_cv_search_res_init
28209 if test "$ac_res" != no; then :
28210 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28216 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
28218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28219 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
28220 # include <sys/types.h>
28222 #ifdef HAVE_NETINET_IN_H
28223 # include <netinet/in.h> /* inet_ functions / structs */
28225 #ifdef HAVE_ARPA_NAMESER_H
28226 # include <arpa/nameser.h> /* DNS HEADER struct */
28228 #ifdef HAVE_NETDB_H
28229 # include <netdb.h>
28232 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28233 cat >>confdefs.h <<_ACEOF
28234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28242 #HMS: Why do we do this check so "early"?
28243 for ac_func in res_init
28245 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
28246 if test "x$ac_cv_func_res_init" = xyes; then :
28247 cat >>confdefs.h <<_ACEOF
28248 #define HAVE_RES_INIT 1
28252 for ac_func in __res_init
28254 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
28255 if test "x$ac_cv_func___res_init" = xyes; then :
28256 cat >>confdefs.h <<_ACEOF
28257 #define HAVE___RES_INIT 1
28267 # We also need -lsocket, but we have tested for that already.
28268 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28269 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28273 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
28277 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28278 if test "x$ac_cv_func_inet_pton" = xyes; then :
28282 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
28287 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
28288 if test "x$ac_cv_type_uintptr_t" = xyes; then :
28290 cat >>confdefs.h <<_ACEOF
28291 #define HAVE_UINTPTR_T 1
28296 ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
28297 if test "x$ac_cv_type_int32" = xyes; then :
28299 cat >>confdefs.h <<_ACEOF
28300 #define HAVE_INT32 1
28305 ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
28306 if test "x$ac_cv_type_u_int32" = xyes; then :
28308 cat >>confdefs.h <<_ACEOF
28309 #define HAVE_U_INT32 1
28318 case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
28320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
28321 $as_echo_n "checking for int32 with DNS headers included... " >&6; }
28322 if ${ntp_cv_type_int32_with_dns+:} false; then :
28323 $as_echo_n "(cached) " >&6
28325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28326 /* end confdefs.h. */
28328 #ifdef HAVE_ARPA_NAMESER_H
28329 # include <arpa/nameser.h>
28331 #include <resolv.h>
28337 size_t cb = sizeof(int32);
28344 if ac_fn_c_try_compile "$LINENO"; then :
28345 ntp_cv_type_int32_with_dns=yes
28347 ntp_cv_type_int32_with_dns=no
28350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
28354 $as_echo "$ntp_cv_type_int32_with_dns" >&6; }
28355 case "$ntp_cv_type_int32_with_dns" in
28358 $as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
28363 case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
28365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
28366 $as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
28367 if ${ntp_cv_type_u_int32_with_dns+:} false; then :
28368 $as_echo_n "(cached) " >&6
28370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28371 /* end confdefs.h. */
28373 #ifdef HAVE_ARPA_NAMESER_H
28374 # include <arpa/nameser.h>
28376 #include <resolv.h>
28382 size_t cb = sizeof(u_int32);
28389 if ac_fn_c_try_compile "$LINENO"; then :
28390 ntp_cv_type_u_int32_with_dns=yes
28392 ntp_cv_type_u_int32_with_dns=no
28395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
28399 $as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
28400 case "$ntp_cv_type_u_int32_with_dns" in
28403 $as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
28408 for ac_header in sys/timepps.h
28410 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
28411 #ifdef HAVE_SYS_TIME_H
28412 # include <sys/time.h>
28414 #ifdef HAVE_ERRNO_H
28415 # include <errno.h>
28420 if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
28421 cat >>confdefs.h <<_ACEOF
28422 #define HAVE_SYS_TIMEPPS_H 1
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
28431 $as_echo_n "checking for struct timespec... " >&6; }
28432 if ${ntp_cv_struct_timespec+:} false; then :
28433 $as_echo_n "(cached) " >&6
28435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28436 /* end confdefs.h. */
28438 #include <sys/time.h>
28439 /* Under SunOS, timespec is in sys/timepps.h,
28440 which needs errno.h and FRAC */
28441 #ifdef HAVE_ERRNO_H
28442 # include <errno.h>
28444 #ifdef HAVE_SYS_TIMEPPS_H
28445 # define FRAC 4294967296
28446 # include <sys/timepps.h>
28460 if ac_fn_c_try_compile "$LINENO"; then :
28461 ntp_cv_struct_timespec=yes
28463 ntp_cv_struct_timespec=no
28466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
28470 $as_echo "$ntp_cv_struct_timespec" >&6; }
28471 case "$ntp_cv_struct_timespec" in
28474 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
28478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
28479 $as_echo_n "checking for struct ntptimeval... " >&6; }
28480 if ${ntp_cv_struct_ntptimeval+:} false; then :
28481 $as_echo_n "(cached) " >&6
28483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28484 /* end confdefs.h. */
28486 #include <sys/time.h>
28487 #include <sys/timex.h>
28493 struct ntptimeval n;
28500 if ac_fn_c_try_compile "$LINENO"; then :
28501 ntp_cv_struct_ntptimeval=yes
28503 ntp_cv_struct_ntptimeval=no
28506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
28510 $as_echo "$ntp_cv_struct_ntptimeval" >&6; }
28511 case "$ntp_cv_struct_ntptimeval" in
28514 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
28518 for ac_header in md5.h
28520 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
28521 #ifdef HAVE_SYS_TYPES_H
28522 # include <sys/types.h>
28527 if test "x$ac_cv_header_md5_h" = xyes; then :
28528 cat >>confdefs.h <<_ACEOF
28529 #define HAVE_MD5_H 1
28537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
28538 $as_echo_n "checking for library containing MD5Init... " >&6; }
28539 if ${ac_cv_search_MD5Init+:} false; then :
28540 $as_echo_n "(cached) " >&6
28542 ac_func_search_save_LIBS=$LIBS
28543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28544 /* end confdefs.h. */
28546 /* Override any GCC internal prototype to avoid an error.
28547 Use char because int might match the return type of a GCC
28548 builtin and then its argument prototype would still apply. */
28561 for ac_lib in '' md5 md; do
28562 if test -z "$ac_lib"; then
28563 ac_res="none required"
28566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28568 if ac_fn_c_try_link "$LINENO"; then :
28569 ac_cv_search_MD5Init=$ac_res
28571 rm -f core conftest.err conftest.$ac_objext \
28573 if ${ac_cv_search_MD5Init+:} false; then :
28577 if ${ac_cv_search_MD5Init+:} false; then :
28580 ac_cv_search_MD5Init=no
28582 rm conftest.$ac_ext
28583 LIBS=$ac_func_search_save_LIBS
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
28586 $as_echo "$ac_cv_search_MD5Init" >&6; }
28587 ac_res=$ac_cv_search_MD5Init
28588 if test "$ac_res" != no; then :
28589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28593 for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
28595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28596 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28597 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28598 cat >>confdefs.h <<_ACEOF
28599 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
28607 $as_echo_n "checking for SIGIO... " >&6; }
28608 if ${ntp_cv_hdr_def_sigio+:} false; then :
28609 $as_echo_n "(cached) " >&6
28611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28612 /* end confdefs.h. */
28614 #include <signal.h>
28621 if ac_fn_c_try_cpp "$LINENO"; then :
28622 ntp_cv_hdr_def_sigio=yes
28624 ntp_cv_hdr_def_sigio=no
28627 rm -f conftest.err conftest.i conftest.$ac_ext
28630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
28631 $as_echo "$ntp_cv_hdr_def_sigio" >&6; }
28633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
28634 $as_echo_n "checking if we want to use SIGIO... " >&6; }
28636 case "$ntp_cv_hdr_def_sigio" in
28640 alpha*-dec-osf4*|alpha*-dec-osf5*)
28685 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28689 $as_echo "$ans" >&6; }
28691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
28692 $as_echo_n "checking for SIGPOLL... " >&6; }
28693 if ${ntp_cv_hdr_def_sigpoll+:} false; then :
28694 $as_echo_n "(cached) " >&6
28696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28697 /* end confdefs.h. */
28699 #include <signal.h>
28706 if ac_fn_c_try_cpp "$LINENO"; then :
28707 ntp_cv_hdr_def_sigpoll=yes
28709 ntp_cv_hdr_def_sigpoll=no
28712 rm -f conftest.err conftest.i conftest.$ac_ext
28715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
28716 $as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
28719 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
28721 case "$ntp_cv_hdr_def_sigpoll" in
28740 # XXX Only verified thru AIX6
28778 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28782 $as_echo "$ans" >&6; }
28784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
28785 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
28787 case "$ntp_cv_hdr_def_sigpoll" in
28806 # XXX Only verified thru AIX6
28841 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
28844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28845 $as_echo "$ans" >&6; }
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
28848 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
28849 if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
28850 $as_echo_n "(cached) " >&6
28852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28853 /* end confdefs.h. */
28855 #include <sys/time.h>
28861 gettimeofday(0, 0);
28862 settimeofday(0, 0);
28869 if ac_fn_c_try_compile "$LINENO"; then :
28870 ntp_cv_func_Xettimeofday_nargs=2
28872 ntp_cv_func_Xettimeofday_nargs=1
28875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
28879 $as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
28880 case "$ntp_cv_func_Xettimeofday_nargs" in
28883 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
28887 for ac_func in settimeofday
28889 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
28890 if test "x$ac_cv_func_settimeofday" = xyes; then :
28891 cat >>confdefs.h <<_ACEOF
28892 #define HAVE_SETTIMEOFDAY 1
28898 *-*-mpeix*) ac_cv_func_settimeofday=yes
28905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
28906 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
28907 ntp_warning='GRONK'
28909 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
28912 ans='clock_settime()'
28915 ntp_warning='But clock_settime() would be better (if we had it)'
28916 ans='settimeofday()'
28919 ntp_warning='Which is the worst of the three'
28925 ntp_warning='Which leaves us with nothing to use!'
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28929 $as_echo "$ans" >&6; }
28930 case "$ntp_warning" in
28934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
28935 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
28940 LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
28942 { __LIBS=; unset __LIBS;}
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
28947 $as_echo_n "checking for deprecated --with-arlib... " >&6; }
28949 # Check whether --with-arlib was given.
28950 if test "${with_arlib+set}" = set; then :
28951 withval=$with_arlib; ans=$withval
28956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28957 $as_echo "$ans" >&6; }
28961 { $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
28962 $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;}
28966 for ac_prog in gawk mawk nawk awk
28968 # Extract the first word of "$ac_prog", so it can be a program name with args.
28969 set dummy $ac_prog; ac_word=$2
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28971 $as_echo_n "checking for $ac_word... " >&6; }
28972 if ${ac_cv_prog_AWK+:} false; then :
28973 $as_echo_n "(cached) " >&6
28975 if test -n "$AWK"; then
28976 ac_cv_prog_AWK="$AWK" # Let the user override the test.
28978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28979 for as_dir in $PATH
28982 test -z "$as_dir" && as_dir=.
28983 for ac_exec_ext in '' $ac_executable_extensions; do
28984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28985 ac_cv_prog_AWK="$ac_prog"
28986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28995 AWK=$ac_cv_prog_AWK
28996 if test -n "$AWK"; then
28997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
28998 $as_echo "$AWK" >&6; }
29000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29001 $as_echo "no" >&6; }
29005 test -n "$AWK" && break
29008 { ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
29009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
29010 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
29012 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
29013 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
29014 $as_echo_n "(cached) " >&6
29016 cat >conftest.make <<\_ACEOF
29019 @echo '@@@%%%=$(MAKE)=@@@%%%'
29021 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29022 case `${MAKE-make} -f conftest.make 2>/dev/null` in
29023 *@@@%%%=?*=@@@%%%*)
29024 eval ac_cv_prog_make_${ac_make}_set=yes;;
29026 eval ac_cv_prog_make_${ac_make}_set=no;;
29028 rm -f conftest.make
29030 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
29031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29032 $as_echo "yes" >&6; }
29035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29036 $as_echo "no" >&6; }
29037 SET_MAKE="MAKE=${MAKE-make}"
29044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
29045 $as_echo_n "checking whether ln -s works... " >&6; }
29047 if test "$LN_S" = "ln -s"; then
29048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29049 $as_echo "yes" >&6; }
29051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
29052 $as_echo "no, using $LN_S" >&6; }
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
29056 $as_echo_n "checking for library containing strerror... " >&6; }
29057 if ${ac_cv_search_strerror+:} false; then :
29058 $as_echo_n "(cached) " >&6
29060 ac_func_search_save_LIBS=$LIBS
29061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29062 /* end confdefs.h. */
29064 /* Override any GCC internal prototype to avoid an error.
29065 Use char because int might match the return type of a GCC
29066 builtin and then its argument prototype would still apply. */
29074 return strerror ();
29079 for ac_lib in '' cposix; do
29080 if test -z "$ac_lib"; then
29081 ac_res="none required"
29084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29086 if ac_fn_c_try_link "$LINENO"; then :
29087 ac_cv_search_strerror=$ac_res
29089 rm -f core conftest.err conftest.$ac_objext \
29091 if ${ac_cv_search_strerror+:} false; then :
29095 if ${ac_cv_search_strerror+:} false; then :
29098 ac_cv_search_strerror=no
29100 rm conftest.$ac_ext
29101 LIBS=$ac_func_search_save_LIBS
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
29104 $as_echo "$ac_cv_search_strerror" >&6; }
29105 ac_res=$ac_cv_search_strerror
29106 if test "$ac_res" != no; then :
29107 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29113 # Extract the first word of "perl", so it can be a program name with args.
29114 set dummy perl; ac_word=$2
29115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29116 $as_echo_n "checking for $ac_word... " >&6; }
29117 if ${ac_cv_path_PATH_PERL+:} false; then :
29118 $as_echo_n "(cached) " >&6
29122 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
29125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29126 for as_dir in $PATH
29129 test -z "$as_dir" && as_dir=.
29130 for ac_exec_ext in '' $ac_executable_extensions; do
29131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29132 ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
29133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29143 PATH_PERL=$ac_cv_path_PATH_PERL
29144 if test -n "$PATH_PERL"; then
29145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
29146 $as_echo "$PATH_PERL" >&6; }
29148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29149 $as_echo "no" >&6; }
29153 { ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
29154 # Extract the first word of "test", so it can be a program name with args.
29155 set dummy test; ac_word=$2
29156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29157 $as_echo_n "checking for $ac_word... " >&6; }
29158 if ${ac_cv_path_PATH_TEST+:} false; then :
29159 $as_echo_n "(cached) " >&6
29163 ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
29166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29167 for as_dir in $PATH
29170 test -z "$as_dir" && as_dir=.
29171 for ac_exec_ext in '' $ac_executable_extensions; do
29172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29173 ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
29174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29184 PATH_TEST=$ac_cv_path_PATH_TEST
29185 if test -n "$PATH_TEST"; then
29186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
29187 $as_echo "$PATH_TEST" >&6; }
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29190 $as_echo "no" >&6; }
29194 { ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
29195 test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
29198 # Check whether --with-net-snmp-config was given.
29199 if test "${with_net_snmp_config+set}" = set; then :
29200 withval=$with_net_snmp_config; ans=$withval
29210 ans=net-snmp-config
29215 as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
29220 PROG_NET_SNMP_CONFIG=$ans
29221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
29222 $as_echo_n "checking for net-snmp-config path... " >&6; }
29223 case "$PROG_NET_SNMP_CONFIG" in
29226 PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
29229 # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
29230 set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29232 $as_echo_n "checking for $ac_word... " >&6; }
29233 if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
29234 $as_echo_n "(cached) " >&6
29236 case $PATH_NET_SNMP_CONFIG in
29238 ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
29241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29242 for as_dir in $PATH
29245 test -z "$as_dir" && as_dir=.
29246 for ac_exec_ext in '' $ac_executable_extensions; do
29247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29248 ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29259 PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
29260 if test -n "$PATH_NET_SNMP_CONFIG"; then
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
29262 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
29264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29265 $as_echo "no" >&6; }
29269 { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
29272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
29273 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
29275 case "$PATH_NET_SNMP_CONFIG" in
29276 /*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
29277 $as_echo_n "checking for net-snmp version... " >&6; }
29278 if ${ntp_cv_net_snmp_version+:} false; then :
29279 $as_echo_n "(cached) " >&6
29281 ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version`
29284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
29285 $as_echo "$ntp_cv_net_snmp_version" >&6; }
29291 ac_link="$ac_link $VX_KERNEL"
29295 # HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
29297 $as_echo_n "checking for library containing openlog... " >&6; }
29298 if ${ac_cv_search_openlog+:} false; then :
29299 $as_echo_n "(cached) " >&6
29301 ac_func_search_save_LIBS=$LIBS
29302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29303 /* end confdefs.h. */
29305 /* Override any GCC internal prototype to avoid an error.
29306 Use char because int might match the return type of a GCC
29307 builtin and then its argument prototype would still apply. */
29320 for ac_lib in '' gen syslog; do
29321 if test -z "$ac_lib"; then
29322 ac_res="none required"
29325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29327 if ac_fn_c_try_link "$LINENO"; then :
29328 ac_cv_search_openlog=$ac_res
29330 rm -f core conftest.err conftest.$ac_objext \
29332 if ${ac_cv_search_openlog+:} false; then :
29336 if ${ac_cv_search_openlog+:} false; then :
29339 ac_cv_search_openlog=no
29341 rm conftest.$ac_ext
29342 LIBS=$ac_func_search_save_LIBS
29344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
29345 $as_echo "$ac_cv_search_openlog" >&6; }
29346 ac_res=$ac_cv_search_openlog
29347 if test "$ac_res" != no; then :
29348 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29352 # XXX library list will be in ac_cv_search_openlog
29354 # LIBSECCOMP is off by default -- needs testing with all the features
29355 # Please send bug reports to loganaden@gmail.com
29356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
29357 $as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
29358 # Check whether --enable-libseccomp was given.
29359 if test "${enable_libseccomp+set}" = set; then :
29360 enableval=$enable_libseccomp; ntp_ok=$enableval
29366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29367 $as_echo "$ntp_ok" >&6; }
29370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
29371 $as_echo_n "checking for library containing seccomp_init... " >&6; }
29372 if ${ac_cv_search_seccomp_init+:} false; then :
29373 $as_echo_n "(cached) " >&6
29375 ac_func_search_save_LIBS=$LIBS
29376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29377 /* end confdefs.h. */
29379 /* Override any GCC internal prototype to avoid an error.
29380 Use char because int might match the return type of a GCC
29381 builtin and then its argument prototype would still apply. */
29385 char seccomp_init ();
29389 return seccomp_init ();
29394 for ac_lib in '' seccomp; do
29395 if test -z "$ac_lib"; then
29396 ac_res="none required"
29399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29401 if ac_fn_c_try_link "$LINENO"; then :
29402 ac_cv_search_seccomp_init=$ac_res
29404 rm -f core conftest.err conftest.$ac_objext \
29406 if ${ac_cv_search_seccomp_init+:} false; then :
29410 if ${ac_cv_search_seccomp_init+:} false; then :
29413 ac_cv_search_seccomp_init=no
29415 rm conftest.$ac_ext
29416 LIBS=$ac_func_search_save_LIBS
29418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
29419 $as_echo "$ac_cv_search_seccomp_init" >&6; }
29420 ac_res=$ac_cv_search_seccomp_init
29421 if test "$ac_res" != no; then :
29422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29424 $as_echo "#define LIBSECCOMP 1" >>confdefs.h
29429 if test "$cross_compiling" = yes; then :
29430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29432 as_fn_error $? "cannot run test program while cross compiling
29433 See \`config.log' for more details" "$LINENO" 5; }
29435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29436 /* end confdefs.h. */
29439 #include <stdlib.h>
29441 #include <sys/prctl.h>
29442 #include <linux/seccomp.h>
29447 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
29459 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
29475 if ac_fn_c_try_run "$LINENO"; then :
29477 $as_echo "#define KERN_SECCOMP 1" >>confdefs.h
29481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29482 conftest.$ac_objext conftest.beam conftest.$ac_ext
29489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
29490 $as_echo_n "checking for facilitynames in syslog.h... " >&6; }
29491 if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
29492 $as_echo_n "(cached) " >&6
29495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29496 /* end confdefs.h. */
29498 #define SYSLOG_NAMES
29499 #include <stdlib.h>
29500 #include <syslog.h>
29505 void *fnames; fnames = facilitynames;
29510 if ac_fn_c_try_compile "$LINENO"; then :
29511 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
29513 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
29515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
29518 $as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
29519 case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
29522 $as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
29526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
29527 $as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
29530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
29531 $as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
29542 # HMS: Make sure we check for -lrt for clock_* before this...
29543 case "$ac_cv_search_clock_gettime" in
29544 '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
29546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
29547 $as_echo_n "checking for library containing sched_setscheduler... " >&6; }
29548 if ${ac_cv_search_sched_setscheduler+:} false; then :
29549 $as_echo_n "(cached) " >&6
29551 ac_func_search_save_LIBS=$LIBS
29552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29553 /* end confdefs.h. */
29555 /* Override any GCC internal prototype to avoid an error.
29556 Use char because int might match the return type of a GCC
29557 builtin and then its argument prototype would still apply. */
29561 char sched_setscheduler ();
29565 return sched_setscheduler ();
29570 for ac_lib in '' rt posix4; do
29571 if test -z "$ac_lib"; then
29572 ac_res="none required"
29575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29577 if ac_fn_c_try_link "$LINENO"; then :
29578 ac_cv_search_sched_setscheduler=$ac_res
29580 rm -f core conftest.err conftest.$ac_objext \
29582 if ${ac_cv_search_sched_setscheduler+:} false; then :
29586 if ${ac_cv_search_sched_setscheduler+:} false; then :
29589 ac_cv_search_sched_setscheduler=no
29591 rm conftest.$ac_ext
29592 LIBS=$ac_func_search_save_LIBS
29594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
29595 $as_echo "$ac_cv_search_sched_setscheduler" >&6; }
29596 ac_res=$ac_cv_search_sched_setscheduler
29597 if test "$ac_res" != no; then :
29598 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29605 for ac_header in bstring.h
29607 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
29608 if test "x$ac_cv_header_bstring_h" = xyes; then :
29609 cat >>confdefs.h <<_ACEOF
29610 #define HAVE_BSTRING_H 1
29617 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
29618 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
29619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
29620 $as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
29621 if ${ac_cv_search_DNSServiceRegister+:} false; then :
29622 $as_echo_n "(cached) " >&6
29624 ac_func_search_save_LIBS=$LIBS
29625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29626 /* end confdefs.h. */
29628 /* Override any GCC internal prototype to avoid an error.
29629 Use char because int might match the return type of a GCC
29630 builtin and then its argument prototype would still apply. */
29634 char DNSServiceRegister ();
29638 return DNSServiceRegister ();
29643 for ac_lib in '' dns_sd; do
29644 if test -z "$ac_lib"; then
29645 ac_res="none required"
29648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29650 if ac_fn_c_try_link "$LINENO"; then :
29651 ac_cv_search_DNSServiceRegister=$ac_res
29653 rm -f core conftest.err conftest.$ac_objext \
29655 if ${ac_cv_search_DNSServiceRegister+:} false; then :
29659 if ${ac_cv_search_DNSServiceRegister+:} false; then :
29662 ac_cv_search_DNSServiceRegister=no
29664 rm conftest.$ac_ext
29665 LIBS=$ac_func_search_save_LIBS
29667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
29668 $as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
29669 ac_res=$ac_cv_search_DNSServiceRegister
29670 if test "$ac_res" != no; then :
29671 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29673 $as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
29682 for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
29684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29685 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29686 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29687 cat >>confdefs.h <<_ACEOF
29688 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29696 for ac_header in memory.h netdb.h poll.h
29698 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29699 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29700 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29701 cat >>confdefs.h <<_ACEOF
29702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29709 for ac_header in sgtty.h stdatomic.h stdlib.h string.h termio.h
29711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29712 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29713 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29714 cat >>confdefs.h <<_ACEOF
29715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29722 for ac_header in termios.h timepps.h timex.h unistd.h
29724 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29725 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29726 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29727 cat >>confdefs.h <<_ACEOF
29728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29738 for ac_header in utmpx.h
29740 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
29741 if test "x$ac_cv_header_utmpx_h" = xyes; then :
29742 cat >>confdefs.h <<_ACEOF
29743 #define HAVE_UTMPX_H 1
29750 case "$ac_cv_header_utmpx_h" in
29754 for ac_header in utmp.h
29756 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
29757 if test "x$ac_cv_header_utmp_h" = xyes; then :
29758 cat >>confdefs.h <<_ACEOF
29759 #define HAVE_UTMP_H 1
29770 for ac_header in utmp.h utmpx.h
29772 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29773 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29774 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29775 cat >>confdefs.h <<_ACEOF
29776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29787 # On Suns only (so far) getpass() truncates the typed password to 8
29788 # characters, but getpassphrase() allows up to 257. Most systems'
29789 # getpass() does not truncate, at least not so as to affect ntpq and
29790 # ntpdc password prompts.
29792 # So check for getpassphrase(), but only on Sun operating systems.
29795 *-*-sunos*|*-*-solaris*)
29796 for ac_func in getpassphrase
29798 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
29799 if test "x$ac_cv_func_getpassphrase" = xyes; then :
29800 cat >>confdefs.h <<_ACEOF
29801 #define HAVE_GETPASSPHRASE 1
29810 for ac_header in net/if6.h
29812 ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
29813 if test "x$ac_cv_header_net_if6_h" = xyes; then :
29814 cat >>confdefs.h <<_ACEOF
29815 #define HAVE_NET_IF6_H 1
29822 for ac_header in net/route.h
29824 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
29825 #include <sys/types.h>
29826 #include <sys/socket.h>
29827 #include <net/if.h>
29830 if test "x$ac_cv_header_net_route_h" = xyes; then :
29831 cat >>confdefs.h <<_ACEOF
29832 #define HAVE_NET_ROUTE_H 1
29840 for ac_header in netinfo/ni.h
29842 ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
29843 if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
29844 cat >>confdefs.h <<_ACEOF
29845 #define HAVE_NETINFO_NI_H 1
29852 case "$ac_cv_header_netinfo_ni_h" in
29855 $as_echo "#define HAVE_NETINFO 1" >>confdefs.h
29858 for ac_header in sun/audioio.h sys/audioio.h sys/file.h
29860 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29861 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29862 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29863 cat >>confdefs.h <<_ACEOF
29864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29875 for ac_header in sys/ioctl.h
29877 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
29878 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
29879 cat >>confdefs.h <<_ACEOF
29880 #define HAVE_SYS_IOCTL_H 1
29889 for ac_header in sys/ipc.h sys/lock.h sys/mman.h
29891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29892 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29893 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29894 cat >>confdefs.h <<_ACEOF
29895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29902 # HMS: Check sys/proc.h and sys/resource.h after some others
29903 for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
29905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29906 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29907 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29908 cat >>confdefs.h <<_ACEOF
29909 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29916 case "$ac_cv_header_sched_h" in
29920 for ac_header in sys/sched.h
29922 ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
29923 if test "x$ac_cv_header_sys_sched_h" = xyes; then :
29924 cat >>confdefs.h <<_ACEOF
29925 #define HAVE_SYS_SCHED_H 1
29934 # HMS: Check sys/shm.h after some others
29935 for ac_header in sys/select.h sys/signal.h sys/sockio.h
29937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29938 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29939 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29940 cat >>confdefs.h <<_ACEOF
29941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29948 # HMS: Checked sys/socket.h earlier
29953 for ac_header in machine/soundcard.h sys/soundcard.h
29955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29956 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29957 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29958 cat >>confdefs.h <<_ACEOF
29959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29968 for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
29970 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29971 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29972 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29973 cat >>confdefs.h <<_ACEOF
29974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29981 for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
29983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29984 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29985 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29986 cat >>confdefs.h <<_ACEOF
29987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29996 for ac_header in /sys/sync/queue.h /sys/sync/sema.h
29998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29999 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30000 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30001 cat >>confdefs.h <<_ACEOF
30002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30011 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
30013 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30014 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30015 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30016 cat >>confdefs.h <<_ACEOF
30017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30027 case "$ac_cv_header_stdatomic_h" in
30029 for ac_func in atomic_thread_fence
30031 ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
30032 if test "x$ac_cv_func_atomic_thread_fence" = xyes; then :
30033 cat >>confdefs.h <<_ACEOF
30034 #define HAVE_ATOMIC_THREAD_FENCE 1
30040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
30041 $as_echo_n "checking for atomic_thread_fence()... " >&6; }
30042 if ${ntp_cv_func_atomic_thread_fence+:} false; then :
30043 $as_echo_n "(cached) " >&6
30045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30046 /* end confdefs.h. */
30048 #include <stdatomic.h>
30054 atomic_thread_fence(memory_order_seq_cst);
30060 ntp_cv_func_atomic_thread_fence=yes
30062 if ac_fn_c_try_compile "$LINENO"; then :
30063 ntp_cv_func_atomic_thread_fence=no
30066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
30070 $as_echo "$ntp_cv_func_atomic_thread_fence" >&6; }
30079 for ac_func in ntp_adjtime ntp_gettime
30081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30082 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30083 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30084 cat >>confdefs.h <<_ACEOF
30085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30096 case "$ac_cv_func_ntp_gettime" in
30100 for ac_func in __ntp_gettime
30102 ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
30103 if test "x$ac_cv_func___ntp_gettime" = xyes; then :
30104 cat >>confdefs.h <<_ACEOF
30105 #define HAVE___NTP_GETTIME 1
30111 case "$ac_cv_func___ntp_gettime" in
30114 $as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
30117 $as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h
30122 for ac_func in adjtimex
30124 ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
30125 if test "x$ac_cv_func_adjtimex" = xyes; then :
30126 cat >>confdefs.h <<_ACEOF
30127 #define HAVE_ADJTIMEX 1
30133 case "$ac_cv_func_adjtimex" in
30136 $as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
30139 $as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
30144 for ac_func in __adjtimex
30146 ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
30147 if test "x$ac_cv_func___adjtimex" = xyes; then :
30148 cat >>confdefs.h <<_ACEOF
30149 #define HAVE___ADJTIMEX 1
30155 case "$ac_cv_func___adjtimex" in
30158 $as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
30161 $as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
30164 $as_echo "#define adjtimex __adjtimex" >>confdefs.h
30167 $as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h
30174 case "$have_adjtimex" in
30176 # nlist stuff is only needed for tickadj.
30179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
30180 $as_echo_n "checking for library containing nlist... " >&6; }
30181 if ${ac_cv_search_nlist+:} false; then :
30182 $as_echo_n "(cached) " >&6
30184 ac_func_search_save_LIBS=$LIBS
30185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30186 /* end confdefs.h. */
30188 /* Override any GCC internal prototype to avoid an error.
30189 Use char because int might match the return type of a GCC
30190 builtin and then its argument prototype would still apply. */
30203 for ac_lib in '' elf ld mld; do
30204 if test -z "$ac_lib"; then
30205 ac_res="none required"
30208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30210 if ac_fn_c_try_link "$LINENO"; then :
30211 ac_cv_search_nlist=$ac_res
30213 rm -f core conftest.err conftest.$ac_objext \
30215 if ${ac_cv_search_nlist+:} false; then :
30219 if ${ac_cv_search_nlist+:} false; then :
30222 ac_cv_search_nlist=no
30224 rm conftest.$ac_ext
30225 LIBS=$ac_func_search_save_LIBS
30227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
30228 $as_echo "$ac_cv_search_nlist" >&6; }
30229 ac_res=$ac_cv_search_nlist
30230 if test "$ac_res" != no; then :
30231 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30235 # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
30236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
30237 $as_echo_n "checking for library containing kvm_open... " >&6; }
30238 if ${ac_cv_search_kvm_open+:} false; then :
30239 $as_echo_n "(cached) " >&6
30241 ac_func_search_save_LIBS=$LIBS
30242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30243 /* end confdefs.h. */
30245 /* Override any GCC internal prototype to avoid an error.
30246 Use char because int might match the return type of a GCC
30247 builtin and then its argument prototype would still apply. */
30255 return kvm_open ();
30260 for ac_lib in '' kvm; do
30261 if test -z "$ac_lib"; then
30262 ac_res="none required"
30265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30267 if ac_fn_c_try_link "$LINENO"; then :
30268 ac_cv_search_kvm_open=$ac_res
30270 rm -f core conftest.err conftest.$ac_objext \
30272 if ${ac_cv_search_kvm_open+:} false; then :
30276 if ${ac_cv_search_kvm_open+:} false; then :
30279 ac_cv_search_kvm_open=no
30281 rm conftest.$ac_ext
30282 LIBS=$ac_func_search_save_LIBS
30284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
30285 $as_echo "$ac_cv_search_kvm_open" >&6; }
30286 ac_res=$ac_cv_search_kvm_open
30287 if test "$ac_res" != no; then :
30288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30291 # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
30292 for ac_header in nlist.h sys/var.h
30294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30295 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30296 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30297 cat >>confdefs.h <<_ACEOF
30298 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30305 case "$ac_cv_header_nlist_h" in
30308 $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
30310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
30311 $as_echo_n "checking for n_un in struct nlist... " >&6; }
30312 if ${ntp_cv_struct_nlist_n_un+:} false; then :
30313 $as_echo_n "(cached) " >&6
30315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30316 /* end confdefs.h. */
30331 ntp_cv_struct_nlist_n_un=yes
30333 if ac_fn_c_try_compile "$LINENO"; then :
30334 ntp_cv_struct_nlist_n_un=no
30337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
30341 $as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
30342 case "$ntp_cv_struct_nlist_n_un" in
30345 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
30350 LDADD_NLIST="$LIBS"
30352 { saved_LIBS=; unset saved_LIBS;}
30355 for ac_header in sys/proc.h
30357 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
30358 #ifdef HAVE_SYS_TYPES_H
30359 # include <sys/types.h>
30361 #ifdef HAVE_SYS_TIME_H
30362 # include <sys/time.h>
30366 if test "x$ac_cv_header_sys_proc_h" = xyes; then :
30367 cat >>confdefs.h <<_ACEOF
30368 #define HAVE_SYS_PROC_H 1
30376 for ac_header in sys/resource.h
30378 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
30379 #ifdef HAVE_SYS_TIME_H
30380 # include <sys/time.h>
30384 if test "x$ac_cv_header_sys_resource_h" = xyes; then :
30385 cat >>confdefs.h <<_ACEOF
30386 #define HAVE_SYS_RESOURCE_H 1
30394 for ac_header in sys/shm.h
30396 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
30397 #ifdef HAVE_SYS_TYPES_H
30398 # include <sys/types.h>
30400 #ifdef HAVE_SYS_IPC_H
30401 # include <sys/ipc.h>
30405 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
30406 cat >>confdefs.h <<_ACEOF
30407 #define HAVE_SYS_SHM_H 1
30415 for ac_header in sys/timex.h
30417 ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
30418 #ifdef HAVE_SYS_TIME_H
30419 # include <sys/time.h>
30423 if test "x$ac_cv_header_sys_timex_h" = xyes; then :
30424 cat >>confdefs.h <<_ACEOF
30425 #define HAVE_SYS_TIMEX_H 1
30433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
30434 $as_echo_n "checking return type of signal handlers... " >&6; }
30435 if ${ac_cv_type_signal+:} false; then :
30436 $as_echo_n "(cached) " >&6
30438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30439 /* end confdefs.h. */
30440 #include <sys/types.h>
30441 #include <signal.h>
30446 return *(signal (0, 0)) (0) == 1;
30451 if ac_fn_c_try_compile "$LINENO"; then :
30452 ac_cv_type_signal=int
30454 ac_cv_type_signal=void
30456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
30459 $as_echo "$ac_cv_type_signal" >&6; }
30461 cat >>confdefs.h <<_ACEOF
30462 #define RETSIGTYPE $ac_cv_type_signal
30466 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
30467 if test "x$ac_cv_type_off_t" = xyes; then :
30471 cat >>confdefs.h <<_ACEOF
30472 #define off_t long int
30477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
30478 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
30479 if ${ac_cv_struct_tm+:} false; then :
30480 $as_echo_n "(cached) " >&6
30482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30483 /* end confdefs.h. */
30484 #include <sys/types.h>
30491 int *p = &tm.tm_sec;
30497 if ac_fn_c_try_compile "$LINENO"; then :
30498 ac_cv_struct_tm=time.h
30500 ac_cv_struct_tm=sys/time.h
30502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
30505 $as_echo "$ac_cv_struct_tm" >&6; }
30506 if test $ac_cv_struct_tm = sys/time.h; then
30508 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
30513 $as_echo_n "checking for a fallback value for HZ... " >&6; }
30514 if ${ntp_cv_default_hz+:} false; then :
30515 $as_echo_n "(cached) " >&6
30518 ntp_cv_default_hz=100
30520 alpha*-dec-osf4*|alpha*-dec-osf5*)
30521 ntp_cv_default_hz=1024
30524 ntp_cv_default_hz=256
30530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
30531 $as_echo "$ntp_cv_default_hz" >&6; }
30533 cat >>confdefs.h <<_ACEOF
30534 #define DEFAULT_HZ $ntp_cv_default_hz
30538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
30539 $as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
30540 if ${ntp_cv_override_hz+:} false; then :
30541 $as_echo_n "(cached) " >&6
30544 ntp_cv_override_hz=no
30546 alpha*-dec-osf4*|alpha*-dec-osf5*)
30547 ntp_cv_override_hz=yes
30550 ntp_cv_override_hz=yes
30553 ntp_cv_override_hz=yes
30556 ntp_cv_override_hz=yes
30559 ntp_cv_override_hz=yes
30565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
30566 $as_echo "$ntp_cv_override_hz" >&6; }
30567 case "$ntp_cv_override_hz" in
30570 $as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
30576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
30577 $as_echo_n "checking for struct rt_msghdr... " >&6; }
30578 if ${ntp_cv_struct_rt_msghdr+:} false; then :
30579 $as_echo_n "(cached) " >&6
30581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30582 /* end confdefs.h. */
30584 #include <sys/types.h>
30585 #include <sys/socket.h>
30586 #include <net/if.h>
30587 #include <net/route.h>
30593 struct rt_msghdr p;
30600 if ac_fn_c_try_compile "$LINENO"; then :
30601 ntp_cv_struct_rt_msghdr=yes
30603 ntp_cv_struct_rt_msghdr=no
30606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
30610 $as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
30612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
30613 $as_echo_n "checking for struct rtattr... " >&6; }
30614 if ${ntp_cv_rtattr+:} false; then :
30615 $as_echo_n "(cached) " >&6
30617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30618 /* end confdefs.h. */
30620 #include <stddef.h>
30621 #include <sys/socket.h>
30622 #include <linux/rtnetlink.h>
30635 if ac_fn_c_try_compile "$LINENO"; then :
30641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
30645 $as_echo "$ntp_cv_rtattr" >&6; }
30647 case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
30650 $as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
30652 case "$ntp_cv_rtattr" in
30655 $as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
30660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
30661 $as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
30662 if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
30663 $as_echo_n "(cached) " >&6
30665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30666 /* end confdefs.h. */
30668 #include <signal.h>
30674 struct sigaction act;
30675 act.sa_sigaction = 0;
30682 if ac_fn_c_try_compile "$LINENO"; then :
30683 ntp_cv_struct_sigaction_has_sa_sigaction=yes
30685 ntp_cv_struct_sigaction_has_sa_sigaction=no
30688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
30692 $as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
30693 case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
30696 $as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
30700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
30701 $as_echo_n "checking for struct ppsclockev... " >&6; }
30702 if ${ntp_cv_struct_ppsclockev+:} false; then :
30703 $as_echo_n "(cached) " >&6
30705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30706 /* end confdefs.h. */
30708 #ifdef HAVE_SYS_TYPES_H
30709 # include <sys/types.h>
30711 #ifdef HAVE_SYS_TERMIOS_H
30712 # include <sys/termios.h>
30714 #ifdef HAVE_SYS_TIME_H
30715 # include <sys/time.h>
30717 #ifdef HAVE_SYS_PPSCLOCK_H
30718 # include <sys/ppsclock.h>
30725 extern struct ppsclockev *pce;
30726 return pce->serial;
30733 if ac_fn_c_try_compile "$LINENO"; then :
30734 ntp_cv_struct_ppsclockev=yes
30736 ntp_cv_struct_ppsclockev=no
30739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
30743 $as_echo "$ntp_cv_struct_ppsclockev" >&6; }
30744 case "$ntp_cv_struct_ppsclockev" in
30747 $as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
30751 case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
30753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
30754 $as_echo_n "checking for struct snd_size... " >&6; }
30755 if ${ntp_cv_struct_snd_size+:} false; then :
30756 $as_echo_n "(cached) " >&6
30758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30759 /* end confdefs.h. */
30761 #ifdef HAVE_MACHINE_SOUNDCARD_H
30762 # include <machine/soundcard.h>
30764 #ifdef HAVE_SYS_SOUNDCARD_H
30765 # include <sys/soundcard.h>
30772 extern struct snd_size *ss;
30773 return ss->rec_size;
30780 if ac_fn_c_try_compile "$LINENO"; then :
30781 ntp_cv_struct_snd_size=yes
30783 ntp_cv_struct_snd_size=no
30786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
30790 $as_echo "$ntp_cv_struct_snd_size" >&6; }
30791 case "$ntp_cv_struct_snd_size" in
30794 $as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
30799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
30800 $as_echo_n "checking struct clockinfo for hz... " >&6; }
30801 if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
30802 $as_echo_n "(cached) " >&6
30804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30805 /* end confdefs.h. */
30807 #include <sys/time.h>
30813 extern struct clockinfo *pc;
30821 if ac_fn_c_try_compile "$LINENO"; then :
30822 ntp_cv_struct_clockinfo_has_hz=yes
30824 ntp_cv_struct_clockinfo_has_hz=no
30827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
30831 $as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
30832 case "$ntp_cv_struct_clockinfo_has_hz" in
30835 $as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
30840 $as_echo_n "checking struct clockinfo for tickadj... " >&6; }
30841 if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
30842 $as_echo_n "(cached) " >&6
30844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30845 /* end confdefs.h. */
30847 #include <sys/time.h>
30853 extern struct clockinfo *pc;
30854 return pc->tickadj;
30861 if ac_fn_c_try_compile "$LINENO"; then :
30862 ntp_cv_struct_clockinfo_has_hz=yes
30864 ntp_cv_struct_clockinfo_has_hz=no
30867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
30871 $as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
30872 case "$ntp_cv_struct_clockinfo_has_hz" in
30875 $as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
30879 case "$ntp_cv_struct_ntptimeval" in
30881 ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
30882 #ifdef HAVE_SYS_TIME_H
30883 # include <sys/time.h>
30885 # ifdef HAVE_TIME_H
30889 #ifdef HAVE_SYS_TIMEX_H
30890 # include <sys/timex.h>
30892 # ifdef HAVE_TIMEX_H
30893 # include <timex.h>
30899 if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :
30901 cat >>confdefs.h <<_ACEOF
30902 #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
30912 for ac_func in arc4random_buf
30914 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
30915 if test "x$ac_cv_func_arc4random_buf" = xyes; then :
30916 cat >>confdefs.h <<_ACEOF
30917 #define HAVE_ARC4RANDOM_BUF 1
30927 LIBS="$LIBS $LDADD_LIBNTP"
30928 for ac_func in daemon
30930 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
30931 if test "x$ac_cv_func_daemon" = xyes; then :
30932 cat >>confdefs.h <<_ACEOF
30933 #define HAVE_DAEMON 1
30939 # XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
30941 { saved_LIBS=; unset saved_LIBS;}
30943 for ac_func in finite
30945 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
30946 if test "x$ac_cv_func_finite" = xyes; then :
30947 cat >>confdefs.h <<_ACEOF
30948 #define HAVE_FINITE 1
30952 for ac_func in isfinite
30954 ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
30955 if test "x$ac_cv_func_isfinite" = xyes; then :
30956 cat >>confdefs.h <<_ACEOF
30957 #define HAVE_ISFINITE 1
30962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
30963 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
30967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30968 /* end confdefs.h. */
30984 if ac_fn_c_try_link "$LINENO"; then :
30990 rm -f core conftest.err conftest.$ac_objext \
30991 conftest$ac_exeext conftest.$ac_ext
30993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30994 $as_echo "$ans" >&6; }
30997 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
31010 for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
31012 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31013 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31014 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31015 cat >>confdefs.h <<_ACEOF
31016 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31023 # kvm_open() is only used by tickadj. Also see above.
31024 case "$ac_cv_header_kvm_h" in
31026 for ac_func in kvm_open
31028 ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
31029 if test "x$ac_cv_func_kvm_open" = xyes; then :
31030 cat >>confdefs.h <<_ACEOF
31031 #define HAVE_KVM_OPEN 1
31042 # Just stubs. Sigh.
31044 *) for ac_func in mkstemp
31046 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
31047 if test "x$ac_cv_func_mkstemp" = xyes; then :
31048 cat >>confdefs.h <<_ACEOF
31049 #define HAVE_MKSTEMP 1
31057 for ac_func in mktime
31059 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
31060 if test "x$ac_cv_func_mktime" = xyes; then :
31061 cat >>confdefs.h <<_ACEOF
31062 #define HAVE_MKTIME 1
31070 # XXX only verified thru AIX6.
31071 # Just a stub. Sigh.
31074 # Just a stub in "old" Irix. Sigh.
31076 # In the belief that the fix for bug 1223 fixes mlockall() under linux...
31078 # # there, but more trouble than it is worth for now (resolver problems)
31081 # Apparently there but not working in QNX. Sigh?
31084 # Just a stub. Sigh.
31086 alpha*-dec-osf4*|alpha*-dec-osf5*)
31087 # mlockall is there, as a #define calling memlk via <sys/mman.h>
31088 # Not easy to test for - cheat.
31089 for ac_func in memlk
31091 ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
31092 if test "x$ac_cv_func_memlk" = xyes; then :
31093 cat >>confdefs.h <<_ACEOF
31094 #define HAVE_MEMLK 1
31096 ac_cv_func_mlockall=yes
31100 for ac_func in mlockall
31102 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
31103 if test "x$ac_cv_func_mlockall" = xyes; then :
31104 cat >>confdefs.h <<_ACEOF
31105 #define HAVE_MLOCKALL 1
31112 *) for ac_func in mlockall
31114 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
31115 if test "x$ac_cv_func_mlockall" = xyes; then :
31116 cat >>confdefs.h <<_ACEOF
31117 #define HAVE_MLOCKALL 1
31125 for ac_func in nice plock pututline pututxline readlink rtprio
31127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31128 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31129 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31130 cat >>confdefs.h <<_ACEOF
31131 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31139 # XXX only verified thru AIX6.
31140 # Just a stub in AIX 4. Sigh.
31143 # Just stubs in solaris2.5. Sigh.
31145 *) for ac_func in sched_setscheduler
31147 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
31148 if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
31149 cat >>confdefs.h <<_ACEOF
31150 #define HAVE_SCHED_SETSCHEDULER 1
31158 for ac_func in setlinebuf setpgid setpriority setsid setvbuf
31160 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31161 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31162 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31163 cat >>confdefs.h <<_ACEOF
31164 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31170 for ac_func in strdup strerror setrlimit strchr
31172 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31173 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31174 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31175 cat >>confdefs.h <<_ACEOF
31176 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31184 # XXX only verified thru AIX6.
31185 # Just stubs. Sigh.
31188 # Just stubs. Sigh.
31191 # Just stubs. Sigh.
31194 # Just stubs. Sigh.
31197 for ac_func in timer_create
31199 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
31200 if test "x$ac_cv_func_timer_create" = xyes; then :
31201 cat >>confdefs.h <<_ACEOF
31202 #define HAVE_TIMER_CREATE 1
31213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
31214 $as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
31215 if ${ntp_cv_rlimit_memlock+:} false; then :
31216 $as_echo_n "(cached) " >&6
31218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31219 /* end confdefs.h. */
31221 #ifdef HAVE_SYS_TYPES_H
31222 # include <sys/types.h>
31224 #ifdef HAVE_SYS_TIME_H
31225 # include <sys/time.h>
31227 #ifdef HAVE_SYS_RESOURCE_H
31228 # include <sys/resource.h>
31235 getrlimit(RLIMIT_MEMLOCK, 0);
31242 if ac_fn_c_try_compile "$LINENO"; then :
31243 ntp_cv_rlimit_memlock=yes
31245 ntp_cv_rlimit_memlock=no
31248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
31252 $as_echo "$ntp_cv_rlimit_memlock" >&6; }
31255 ntp_dflt_rlimit_memlock="-1" ;;
31256 *) ntp_dflt_rlimit_memlock="32" ;;
31258 case "$ntp_cv_rlimit_memlock" in
31261 HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock" ;;
31264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
31265 $as_echo_n "checking for RLIMIT_STACK... " >&6; }
31266 if ${ntp_cv_rlimit_stack+:} false; then :
31267 $as_echo_n "(cached) " >&6
31269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31270 /* end confdefs.h. */
31272 #ifdef HAVE_SYS_TYPES_H
31273 # include <sys/types.h>
31275 #ifdef HAVE_SYS_TIME_H
31276 # include <sys/time.h>
31278 #ifdef HAVE_SYS_RESOURCE_H
31279 # include <sys/resource.h>
31286 getrlimit(RLIMIT_STACK, 0);
31293 if ac_fn_c_try_compile "$LINENO"; then :
31294 ntp_cv_rlimit_stack=yes
31296 ntp_cv_rlimit_stack=no
31299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
31303 $as_echo "$ntp_cv_rlimit_stack" >&6; }
31304 case "$ntp_cv_rlimit_stack" in
31307 HAVE_RLIMIT_STACK=" stacksize 50"
31310 # HMS: Only if we are doing the MLOCKALL stuff...
31311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
31312 $as_echo_n "checking for the default number of 4k stack pages... " >&6; }
31314 # Check whether --with-stack-limit was given.
31315 if test "${with_stack_limit+set}" = set; then :
31316 withval=$with_stack_limit; ans=$withval
31334 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
31337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31338 $as_echo "$ans" >&6; }
31340 cat >>confdefs.h <<_ACEOF
31341 #define DFLT_RLIMIT_STACK $ans
31345 # HMS: only if we have RLIMIT_MEMLOCK
31346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
31347 $as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }
31349 # Check whether --with-memlock was given.
31350 if test "${with_memlock+set}" = set; then :
31351 withval=$with_memlock; ans=$withval
31359 ans=$ntp_dflt_rlimit_memlock
31362 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
31365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31366 $as_echo "$ans" >&6; }
31368 cat >>confdefs.h <<_ACEOF
31369 #define DFLT_RLIMIT_MEMLOCK $ans
31375 # some OSes prefer _exit() in forked children to exit()
31376 for ac_func in _exit
31378 ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
31379 if test "x$ac_cv_func__exit" = xyes; then :
31380 cat >>confdefs.h <<_ACEOF
31381 #define HAVE__EXIT 1
31387 ntp_worker_child_exit=exit
31388 case "$ac_cv_func__exit::$host_os" in
31390 ntp_worker_child_exit=_exit
31393 ntp_worker_child_exit=_exit
31397 cat >>confdefs.h <<_ACEOF
31398 #define WORKER_CHILD_EXIT $ntp_worker_child_exit
31402 for ac_func in umask uname updwtmp updwtmpx
31404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31405 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31406 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31407 cat >>confdefs.h <<_ACEOF
31408 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31417 # http://bugs.ntp.org/737
31418 case "$ac_cv_func_recvmsg" in
31420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
31421 $as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
31422 if ${ntp_cv_struct_iovec_help+:} false; then :
31423 $as_echo_n "(cached) " >&6
31427 for ntp_cv_struct_iovec_help in '0' '1'; do
31428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31429 /* end confdefs.h. */
31431 #ifdef HAVE_SYS_TYPES_H
31432 # include <sys/types.h>
31434 #ifdef HAVE_SYS_SOCKET_H
31435 # include <sys/socket.h>
31437 #if $ntp_cv_struct_iovec_help
31438 # include <sys/uio.h>
31453 x = recvmsg(s, &mh, flags);
31461 if ac_fn_c_try_compile "$LINENO"; then :
31462 compiled=yes ; break 1
31464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31466 case "$compiled" in
31468 ntp_cv_struct_iovec_help=0
31470 { compiled=; unset compiled;}
31474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
31475 $as_echo "$ntp_cv_struct_iovec_help" >&6; }
31476 case "$ntp_cv_struct_iovec_help" in
31479 $as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
31484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
31485 $as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
31486 if ${ntp_cv_func_setpgrp_nargs+:} false; then :
31487 $as_echo_n "(cached) " >&6
31489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31490 /* end confdefs.h. */
31492 #ifdef HAVE_SYS_TYPES_H
31493 # include <sys/types.h>
31495 #ifdef HAVE_UNISTD_H
31496 # include <unistd.h>
31510 if ac_fn_c_try_compile "$LINENO"; then :
31511 ntp_cv_func_setpgrp_nargs=2
31513 ntp_cv_func_setpgrp_nargs=0
31516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
31520 $as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
31521 case "$ntp_cv_func_setpgrp_nargs" in
31524 $as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
31528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
31529 $as_echo_n "checking if we need to declare 'errno'... " >&6; }
31530 if ${ntp_cv_decl_errno+:} false; then :
31531 $as_echo_n "(cached) " >&6
31533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31534 /* end confdefs.h. */
31536 #ifdef HAVE_ERRNO_H
31537 # include <errno.h>
31551 if ac_fn_c_try_compile "$LINENO"; then :
31552 ntp_cv_decl_errno=no
31554 ntp_cv_decl_errno=yes
31557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
31561 $as_echo "$ntp_cv_decl_errno" >&6; }
31562 case "$ntp_cv_decl_errno" in
31565 $as_echo "#define DECL_ERRNO 1" >>confdefs.h
31569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
31570 $as_echo_n "checking if we may declare 'h_errno'... " >&6; }
31571 if ${ntp_cv_decl_h_errno+:} false; then :
31572 $as_echo_n "(cached) " >&6
31574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31575 /* end confdefs.h. */
31577 #include <sys/types.h>
31578 #ifdef HAVE_NETINET_IN_H
31579 # include <netinet/in.h>
31581 #ifdef HAVE_ARPA_NAMESER_H
31582 # include <arpa/nameser.h>
31584 #ifdef HAVE_NETDB_H
31585 # include <netdb.h>
31587 #ifdef HAVE_RESOLV_H
31588 # include <resolv.h>
31595 extern int h_errno;
31602 if ac_fn_c_try_compile "$LINENO"; then :
31603 ntp_cv_decl_h_errno=yes
31605 ntp_cv_decl_h_errno=no
31608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
31612 $as_echo "$ntp_cv_decl_h_errno" >&6; }
31613 case "$ntp_cv_decl_h_errno" in
31616 $as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
31620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
31621 $as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
31622 if ${ntp_cv_decl_syscall+:} false; then :
31623 $as_echo_n "(cached) " >&6
31625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31626 /* end confdefs.h. */
31628 #ifdef HAVE_SYS_TYPES_H
31629 # include <sys/types.h>
31631 #ifdef HAVE_UNISTD_H
31632 # include <unistd.h>
31639 extern int syscall (int, ...);
31645 ntp_cv_decl_syscall=yes
31647 if ac_fn_c_try_compile "$LINENO"; then :
31648 ntp_cv_decl_syscall=no
31651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
31655 $as_echo "$ntp_cv_decl_syscall" >&6; }
31656 case "$ntp_cv_decl_syscall" in
31659 $as_echo "#define DECL_SYSCALL 1" >>confdefs.h
31666 $as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
31667 # Needed for XLC under AIX 4.3.2
31671 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31674 $as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
31677 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31680 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31683 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31686 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31689 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31694 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
31697 $as_echo "#define DECL_STIME_1 1" >>confdefs.h
31702 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31707 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31710 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31713 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31716 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
31719 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
31722 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31725 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
31728 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31731 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31734 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31737 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
31740 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
31743 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31746 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
31749 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31752 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
31757 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
31760 $as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
31765 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31772 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31775 $as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
31778 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31781 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31784 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
31787 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
31790 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31793 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
31796 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
31799 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31802 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31805 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31808 $as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
31810 case "`basename $ac_cv_prog_CC`" in
31813 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
31818 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
31821 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31824 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
31827 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31830 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
31833 $as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
31836 $as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
31841 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31844 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31847 $as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
31850 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31853 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
31856 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31859 $as_echo "#define DECL_NLIST_0 1" >>confdefs.h
31862 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
31865 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31868 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31871 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31874 $as_echo "#define DECL_STIME_0 1" >>confdefs.h
31877 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31880 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31888 $as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
31896 $as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
31900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
31901 $as_echo_n "checking if we will open the broadcast socket... " >&6; }
31902 if ${ntp_cv_var_open_bcast_socket+:} false; then :
31903 $as_echo_n "(cached) " >&6
31911 ntp_cv_var_open_bcast_socket=$ans
31915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
31916 $as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
31917 case "$ntp_cv_var_open_bcast_socket" in
31920 $as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
31927 $as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
31931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
31932 $as_echo_n "checking if process groups are set with -pid... " >&6; }
31933 if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
31934 $as_echo_n "(cached) " >&6
31957 ntp_cv_arg_setpgrp_negpid=$ans
31961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
31962 $as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
31963 case "$ntp_cv_arg_setpgrp_negpid" in
31966 $as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
31970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
31971 $as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
31972 if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
31973 $as_echo_n "(cached) " >&6
31983 # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
31984 # while later versions will fail a ioctl(TIOCSCTTY, 0) call in
31985 # some cases and so should not have USE_FSETOWNCTTY. "netbsd"
31986 # in $host may be followed by "aout", "ecoff", or "elf".
31987 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
31990 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
32006 ntp_cv_func_ctty_for_f_setown=$ans
32010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
32011 $as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
32012 case "$ntp_cv_func_ctty_for_f_setown" in
32015 $as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
32019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
32020 $as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
32021 if ${ntp_cv_os_routeupdates+:} false; then :
32022 $as_echo_n "(cached) " >&6
32033 ntp_cv_os_routeupdates=$ans
32037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
32038 $as_echo "$ntp_cv_os_routeupdates" >&6; }
32039 case "$ntp_cv_os_routeupdates" in
32042 $as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
32046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
32047 $as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
32048 if ${ntp_cv_os_wildcardreuse+:} false; then :
32049 $as_echo_n "(cached) " >&6
32059 ntp_cv_os_wildcardreuse=$ans
32063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
32064 $as_echo "$ntp_cv_os_wildcardreuse" >&6; }
32065 case "$ntp_cv_os_wildcardreuse" in
32068 $as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
32075 $as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
32079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
32080 $as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
32081 if ${ntp_cv_var_min_rec_tickadj+:} false; then :
32082 $as_echo_n "(cached) " >&6
32091 ntp_cv_var_min_rec_tickadj=$ans
32095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
32096 $as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
32097 case "$ntp_cv_var_min_rec_tickadj" in
32102 cat >>confdefs.h <<_ACEOF
32103 #define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
32108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
32109 $as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
32110 if ${ntp_cv_no_parenb_ignpar+:} false; then :
32111 $as_echo_n "(cached) " >&6
32122 i?86-*-freebsd[123].*)
32131 ntp_cv_no_parenb_ignpar=$ans
32135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
32136 $as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
32137 case "$ntp_cv_no_parenb_ignpar" in
32140 $as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
32144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
32145 $as_echo_n "checking if we're including processing time debugging code... " >&6; }
32146 # Check whether --enable-debug-timing was given.
32147 if test "${enable_debug_timing+set}" = set; then :
32148 enableval=$enable_debug_timing; ntp_ok=$enableval
32157 $as_echo "#define DEBUG_TIMING 1" >>confdefs.h
32160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32161 $as_echo "$ntp_ok" >&6; }
32163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
32164 $as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
32165 # Check whether --enable-dst-minutes was given.
32166 if test "${enable_dst_minutes+set}" = set; then :
32167 enableval=$enable_dst_minutes; ans=$enableval
32174 cat >>confdefs.h <<_ACEOF
32175 #define DSTMINUTES $ans
32178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32179 $as_echo "$ans" >&6; }
32181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
32182 $as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
32183 # Check whether --enable-ignore-dns-errors was given.
32184 if test "${enable_ignore_dns_errors+set}" = set; then :
32185 enableval=$enable_ignore_dns_errors; ans=$enableval
32194 $as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
32197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32198 $as_echo "$ans" >&6; }
32200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
32201 $as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
32202 if ${ntp_cv_var_ntp_syscalls+:} false; then :
32203 $as_echo_n "(cached) " >&6
32206 ntp_cv_var_ntp_syscalls=no
32207 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
32209 ntp_cv_var_ntp_syscalls=libc
32212 ntp_cv_var_ntp_syscalls=inline
32215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32216 /* end confdefs.h. */
32218 #include <sys/syscall.h>
32219 #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
32224 if ac_fn_c_try_cpp "$LINENO"; then :
32225 ntp_cv_var_ntp_syscalls=kernel
32228 rm -f conftest.err conftest.i conftest.$ac_ext
32234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
32235 $as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
32236 case "$ntp_cv_var_ntp_syscalls" in
32239 $as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
32244 $as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
32249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
32250 $as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
32251 if ${ntp_cv_var_sta_fll+:} false; then :
32252 $as_echo_n "(cached) " >&6
32254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32255 /* end confdefs.h. */
32257 #include <sys/timex.h>
32263 if ac_fn_c_try_cpp "$LINENO"; then :
32264 ntp_cv_var_sta_fll=yes
32266 ntp_cv_var_sta_fll=no
32269 rm -f conftest.err conftest.i conftest.$ac_ext
32272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
32273 $as_echo "$ntp_cv_var_sta_fll" >&6; }
32275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
32276 $as_echo_n "checking if we have kernel PLL support... " >&6; }
32277 if ${ntp_cv_var_kernel_pll+:} false; then :
32278 $as_echo_n "(cached) " >&6
32280 case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
32282 ntp_cv_var_kernel_pll=no
32284 *) ntp_cv_var_kernel_pll=yes
32290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
32291 $as_echo "$ntp_cv_var_kernel_pll" >&6; }
32292 case "$ntp_cv_var_kernel_pll" in
32295 $as_echo "#define KERNEL_PLL 1" >>confdefs.h
32299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
32300 $as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
32301 if ${ntp_cv_size_returned_in_buffer+:} false; then :
32302 $as_echo_n "(cached) " >&6
32317 ntp_cv_size_returned_in_buffer=$ans
32321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
32322 $as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
32323 case "$ntp_cv_size_returned_in_buffer" in
32326 $as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
32330 # Check for ioctls TIOCGPPSEV
32331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
32332 $as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
32333 case "$ac_cv_header_termios_h" in
32335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32336 /* end confdefs.h. */
32338 #include <termios.h>
32344 if ac_fn_c_try_cpp "$LINENO"; then :
32350 rm -f conftest.err conftest.i conftest.$ac_ext
32359 $as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
32362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32363 $as_echo "$ntp_ok" >&6; }
32365 # Check for ioctls TIOCSPPS
32366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
32367 $as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
32368 case "$ac_cv_header_termios_h" in
32370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32371 /* end confdefs.h. */
32373 #include <termios.h>
32379 if ac_fn_c_try_cpp "$LINENO"; then :
32385 rm -f conftest.err conftest.i conftest.$ac_ext
32394 $as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
32397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32398 $as_echo "$ntp_ok" >&6; }
32400 # Check for ioctls CIOGETEV
32401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
32402 $as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
32403 case "$ac_cv_header_sys_ppsclock_h" in
32405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32406 /* end confdefs.h. */
32408 #include <sys/ppsclock.h>
32414 if ac_fn_c_try_cpp "$LINENO"; then :
32420 rm -f conftest.err conftest.i conftest.$ac_ext
32429 $as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
32432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32433 $as_echo "$ntp_ok" >&6; }
32435 # ATOM/PPSAPI stuff.
32439 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
32441 # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
32442 # The PPSAPI needs struct timespec.
32443 # The PPSAPI also needs a timepps header.
32445 case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
32447 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
32448 *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
32450 $as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
32455 ntp_ripe_ncc_ok=yes
32461 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
32462 ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
32463 if test "x$ac_cv_header_linux_serial_h" = xyes; then :
32468 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
32470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
32471 $as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
32472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32473 /* end confdefs.h. */
32475 #include <sys/time.h>
32477 #include <sys/ppsclock.h>
32478 #include <linux/serial.h>
32480 #ifndef TIOCGSERIAL
32483 #ifndef TIOCSSERIAL
32486 #ifndef ASYNC_PPS_CD_POS
32489 #ifndef ASYNC_PPS_CD_NEG
32497 if ac_fn_c_try_cpp "$LINENO"; then :
32503 rm -f conftest.err conftest.i conftest.$ac_ext
32504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32505 $as_echo "$ntp_ok" >&6; }
32514 $as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
32518 # Check for SHMEM_STATUS support
32519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
32520 $as_echo_n "checking SHMEM_STATUS support... " >&6; }
32521 case "$ac_cv_header_sys_mman_h" in
32532 $as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
32535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32536 $as_echo "$ntp_ok" >&6; }
32540 # HPUX only, and by explicit request
32541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
32542 $as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
32543 # Check whether --enable-BANCOMM was given.
32544 if test "${enable_BANCOMM+set}" = set; then :
32545 enableval=$enable_BANCOMM; ntp_ok=$enableval
32555 $as_echo "#define CLOCK_BANC 1" >>confdefs.h
32559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32560 $as_echo "$ntp_ok" >&6; }
32561 case "$ntp_ok$host" in
32563 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32564 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
32567 #HPUX only, and only by explicit request
32568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
32569 $as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
32570 # Check whether --enable-GPSVME was given.
32571 if test "${enable_GPSVME+set}" = set; then :
32572 enableval=$enable_GPSVME; ntp_ok=$enableval
32582 $as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
32586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32587 $as_echo "$ntp_ok" >&6; }
32588 case "$ntp_ok$host" in
32590 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32591 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
32594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
32595 $as_echo_n "checking for PCL720 clock support... " >&6; }
32596 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
32599 $as_echo "#define CLOCK_PPS720 1" >>confdefs.h
32607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32608 $as_echo "$ans" >&6; }
32610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
32611 $as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
32612 # Check whether --enable-all-clocks was given.
32613 if test "${enable_all_clocks+set}" = set; then :
32614 enableval=$enable_all_clocks; ntp_eac=$enableval
32620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
32621 $as_echo "$ntp_eac" >&6; }
32623 # HMS: Should we also require ntp_parse_ok?
32624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
32625 $as_echo_n "checking if we have support for PARSE clocks... " >&6; }
32626 case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
32633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
32634 $as_echo "$ntp_canparse" >&6; }
32636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
32637 $as_echo_n "checking if we have support for audio clocks... " >&6; }
32638 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
32642 $as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
32645 *) ntp_canaudio=no ;;
32647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
32648 $as_echo "$ntp_canaudio" >&6; }
32650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
32651 $as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
32652 case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
32656 *) ntp_canshm=no ;;
32658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
32659 $as_echo "$ntp_canshm" >&6; }
32661 # Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
32662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
32663 $as_echo_n "checking for termios modem control... " >&6; }
32664 if ${ntp_cv_modem_control+:} false; then :
32665 $as_echo_n "(cached) " >&6
32667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32668 /* end confdefs.h. */
32670 #ifdef HAVE_UNISTD_H
32671 # include <unistd.h>
32673 #ifdef HAVE_TERMIOS_H
32674 # include <termios.h>
32676 #ifdef HAVE_SYS_IOCTL_H
32677 # include <sys/ioctl.h>
32684 int dtr = TIOCM_DTR;
32686 ioctl(1, TIOCMBIS, (char *)&dtr);
32693 if ac_fn_c_try_compile "$LINENO"; then :
32694 ntp_cv_modem_control=yes
32696 ntp_cv_modem_control=no
32699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
32703 $as_echo "$ntp_cv_modem_control" >&6; }
32704 case "$ntp_eac::$ntp_cv_modem_control" in
32706 ntp_enable_all_modem_control_clocks=yes
32709 ntp_enable_all_modem_control_clocks=no
32713 # Requires modem control
32714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
32715 $as_echo_n "checking ACTS modem service... " >&6; }
32716 # Check whether --enable-ACTS was given.
32717 if test "${enable_ACTS+set}" = set; then :
32718 enableval=$enable_ACTS; ntp_ok=$enableval
32720 ntp_ok=$ntp_enable_all_modem_control_clocks
32728 $as_echo "#define CLOCK_ACTS 1" >>confdefs.h
32732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32733 $as_echo "$ntp_ok" >&6; }
32735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
32736 $as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
32737 # Check whether --enable-ARBITER was given.
32738 if test "${enable_ARBITER+set}" = set; then :
32739 enableval=$enable_ARBITER; ntp_ok=$enableval
32749 $as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
32753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32754 $as_echo "$ntp_ok" >&6; }
32756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
32757 $as_echo_n "checking Arcron MSF receiver... " >&6; }
32758 # Check whether --enable-ARCRON_MSF was given.
32759 if test "${enable_ARCRON_MSF+set}" = set; then :
32760 enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
32770 $as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
32774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32775 $as_echo "$ntp_ok" >&6; }
32777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
32778 $as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
32779 # Check whether --enable-AS2201 was given.
32780 if test "${enable_AS2201+set}" = set; then :
32781 enableval=$enable_AS2201; ntp_ok=$enableval
32791 $as_echo "#define CLOCK_AS2201 1" >>confdefs.h
32795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32796 $as_echo "$ntp_ok" >&6; }
32798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
32799 $as_echo_n "checking ATOM PPS interface... " >&6; }
32800 # Check whether --enable-ATOM was given.
32801 if test "${enable_ATOM+set}" = set; then :
32802 enableval=$enable_ATOM; ntp_ok=$enableval
32808 case "$ntp_atom_ok" in
32815 $as_echo "#define CLOCK_ATOM 1" >>confdefs.h
32819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32820 $as_echo "$ntp_ok" >&6; }
32822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
32823 $as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
32824 # Check whether --enable-CHRONOLOG was given.
32825 if test "${enable_CHRONOLOG+set}" = set; then :
32826 enableval=$enable_CHRONOLOG; ntp_ok=$enableval
32836 $as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
32840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32841 $as_echo "$ntp_ok" >&6; }
32843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
32844 $as_echo_n "checking CHU modem/decoder... " >&6; }
32845 # Check whether --enable-CHU was given.
32846 if test "${enable_CHU+set}" = set; then :
32847 enableval=$enable_CHU; ntp_ok=$enableval
32857 $as_echo "#define CLOCK_CHU 1" >>confdefs.h
32861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32862 $as_echo "$ntp_ok" >&6; }
32863 ntp_refclock_chu=$ntp_ok
32865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
32866 $as_echo_n "checking CHU audio/decoder... " >&6; }
32867 # Check whether --enable-AUDIO-CHU was given.
32868 if test "${enable_AUDIO_CHU+set}" = set; then :
32869 enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
32872 case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
32880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32881 $as_echo "$ntp_ok" >&6; }
32882 # We used to check for sunos/solaris target...
32883 case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
32884 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
32885 $as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
32889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
32890 $as_echo_n "checking Datum Programmable Time System... " >&6; }
32891 # Check whether --enable-DATUM was given.
32892 if test "${enable_DATUM+set}" = set; then :
32893 enableval=$enable_DATUM; ntp_ok=$enableval
32896 case "$ac_cv_header_termios_h" in
32911 $as_echo "#define CLOCK_DATUM 1" >>confdefs.h
32915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32916 $as_echo "$ntp_ok" >&6; }
32918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
32919 $as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
32920 # Check whether --enable-DUMBCLOCK was given.
32921 if test "${enable_DUMBCLOCK+set}" = set; then :
32922 enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
32932 $as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
32936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32937 $as_echo "$ntp_ok" >&6; }
32939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
32940 $as_echo_n "checking Forum Graphic GPS... " >&6; }
32941 # Check whether --enable-FG was given.
32942 if test "${enable_FG+set}" = set; then :
32943 enableval=$enable_FG; ntp_ok=$enableval
32953 $as_echo "#define CLOCK_FG 1" >>confdefs.h
32957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32958 $as_echo "$ntp_ok" >&6; }
32960 # Requires modem control
32961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
32962 $as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
32963 # Check whether --enable-HEATH was given.
32964 if test "${enable_HEATH+set}" = set; then :
32965 enableval=$enable_HEATH; ntp_ok=$enableval
32967 ntp_ok=$ntp_enable_all_modem_control_clocks
32975 $as_echo "#define CLOCK_HEATH 1" >>confdefs.h
32979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32980 $as_echo "$ntp_ok" >&6; }
32982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
32983 $as_echo_n "checking for hopf serial clock device... " >&6; }
32984 # Check whether --enable-HOPFSERIAL was given.
32985 if test "${enable_HOPFSERIAL+set}" = set; then :
32986 enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
32996 $as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
33000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33001 $as_echo "$ntp_ok" >&6; }
33003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
33004 $as_echo_n "checking for hopf PCI clock 6039... " >&6; }
33005 # Check whether --enable-HOPFPCI was given.
33006 if test "${enable_HOPFPCI+set}" = set; then :
33007 enableval=$enable_HOPFPCI; ntp_ok=$enableval
33017 $as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
33021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33022 $as_echo "$ntp_ok" >&6; }
33024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
33025 $as_echo_n "checking HP 58503A GPS receiver... " >&6; }
33026 # Check whether --enable-HPGPS was given.
33027 if test "${enable_HPGPS+set}" = set; then :
33028 enableval=$enable_HPGPS; ntp_ok=$enableval
33038 $as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
33042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33043 $as_echo "$ntp_ok" >&6; }
33045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
33046 $as_echo_n "checking IRIG audio decoder... " >&6; }
33047 # Check whether --enable-IRIG was given.
33048 if test "${enable_IRIG+set}" = set; then :
33049 enableval=$enable_IRIG; ntp_ok=$enableval
33052 case "$ntp_eac$ntp_canaudio" in
33064 $as_echo "#define CLOCK_IRIG 1" >>confdefs.h
33068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33069 $as_echo "$ntp_ok" >&6; }
33070 case "$ntp_ok$ntp_canaudio" in
33071 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33072 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
33076 $as_echo_n "checking for JJY receiver... " >&6; }
33077 # Check whether --enable-JJY was given.
33078 if test "${enable_JJY+set}" = set; then :
33079 enableval=$enable_JJY; ntp_ok=$enableval
33089 $as_echo "#define CLOCK_JJY 1" >>confdefs.h
33093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33094 $as_echo "$ntp_ok" >&6; }
33096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
33097 $as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
33098 # Check whether --enable-JUPITER was given.
33099 if test "${enable_JUPITER+set}" = set; then :
33100 enableval=$enable_JUPITER; ntp_ok=$enableval
33105 case "$ntp_jupiter_ok" in
33112 $as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
33116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33117 $as_echo "$ntp_ok" >&6; }
33119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
33120 $as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
33121 # Check whether --enable-LEITCH was given.
33122 if test "${enable_LEITCH+set}" = set; then :
33123 enableval=$enable_LEITCH; ntp_ok=$enableval
33133 $as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
33137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33138 $as_echo "$ntp_ok" >&6; }
33140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
33141 $as_echo_n "checking local clock reference... " >&6; }
33142 # Check whether --enable-LOCAL-CLOCK was given.
33143 if test "${enable_LOCAL_CLOCK+set}" = set; then :
33144 enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
33154 $as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
33158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33159 $as_echo "$ntp_ok" >&6; }
33163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
33164 $as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
33165 # Check whether --enable-MX4200 was given.
33166 if test "${enable_MX4200+set}" = set; then :
33167 enableval=$enable_MX4200; ntp_ok=$enableval
33170 case "$ac_cv_var_ppsclock" in
33186 $as_echo "#define CLOCK_MX4200 1" >>confdefs.h
33190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33191 $as_echo "$ntp_ok" >&6; }
33192 case "$ntp_ok$host" in
33193 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33194 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
33198 $as_echo_n "checking for NeoClock4X receiver... " >&6; }
33199 # Check whether --enable-NEOCLOCK4X was given.
33200 if test "${enable_NEOCLOCK4X+set}" = set; then :
33201 enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
33211 $as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
33215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33216 $as_echo "$ntp_ok" >&6; }
33218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
33219 $as_echo_n "checking NMEA GPS receiver... " >&6; }
33220 # Check whether --enable-NMEA was given.
33221 if test "${enable_NMEA+set}" = set; then :
33222 enableval=$enable_NMEA; ntp_ok=$enableval
33232 $as_echo "#define CLOCK_NMEA 1" >>confdefs.h
33236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33237 $as_echo "$ntp_ok" >&6; }
33239 for ac_func in strtoll
33241 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
33242 if test "x$ac_cv_func_strtoll" = xyes; then :
33243 cat >>confdefs.h <<_ACEOF
33244 #define HAVE_STRTOLL 1
33250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
33251 $as_echo_n "checking for GPSD JSON receiver... " >&6; }
33252 # Check whether --enable-GPSD was given.
33253 if test "${enable_GPSD+set}" = set; then :
33254 enableval=$enable_GPSD; ntp_ok=$enableval
33256 case "$ac_cv_func_strtoll" in
33257 yes) ntp_ok=$ntp_eac ;;
33267 $as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h
33271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33272 $as_echo "$ntp_ok" >&6; }
33274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
33275 $as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
33276 # Check whether --enable-ONCORE was given.
33277 if test "${enable_ONCORE+set}" = set; then :
33278 enableval=$enable_ONCORE; ntp_ok=$enableval
33284 case "$ntp_oncore_ok" in
33291 $as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
33295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33296 $as_echo "$ntp_ok" >&6; }
33298 # Requires modem control
33299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
33300 $as_echo_n "checking for Palisade clock... " >&6; }
33301 # Check whether --enable-PALISADE was given.
33302 if test "${enable_PALISADE+set}" = set; then :
33303 enableval=$enable_PALISADE; ntp_ok=$enableval
33305 ntp_ok=$ntp_enable_all_modem_control_clocks
33313 $as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
33317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33318 $as_echo "$ntp_ok" >&6; }
33320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
33321 $as_echo_n "checking Conrad parallel port radio clock... " >&6; }
33322 # Check whether --enable-PCF was given.
33323 if test "${enable_PCF+set}" = set; then :
33324 enableval=$enable_PCF; ntp_ok=$enableval
33334 $as_echo "#define CLOCK_PCF 1" >>confdefs.h
33338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33339 $as_echo "$ntp_ok" >&6; }
33341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
33342 $as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
33343 # Check whether --enable-PST was given.
33344 if test "${enable_PST+set}" = set; then :
33345 enableval=$enable_PST; ntp_ok=$enableval
33355 $as_echo "#define CLOCK_PST 1" >>confdefs.h
33359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33360 $as_echo "$ntp_ok" >&6; }
33362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
33363 $as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
33364 # Check whether --enable-RIPENCC was given.
33365 if test "${enable_RIPENCC+set}" = set; then :
33366 enableval=$enable_RIPENCC; ntp_ok=$enableval
33372 # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
33373 case "$ntp_ripe_ncc_ok" in
33380 $as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
33384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33385 $as_echo "$ntp_ok" >&6; }
33387 # Danny Meyer says SHM compiles (with a few warnings) under Win32.
33388 # For *IX, we need sys/ipc.h and sys/shm.h.
33389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
33390 $as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
33391 # Check whether --enable-SHM was given.
33392 if test "${enable_SHM+set}" = set; then :
33393 enableval=$enable_SHM; ntp_ok=$enableval
33396 case "$ntp_eac$ntp_canshm" in
33408 $as_echo "#define CLOCK_SHM 1" >>confdefs.h
33412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33413 $as_echo "$ntp_ok" >&6; }
33415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
33416 $as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
33417 # Check whether --enable-SPECTRACOM was given.
33418 if test "${enable_SPECTRACOM+set}" = set; then :
33419 enableval=$enable_SPECTRACOM; ntp_ok=$enableval
33429 $as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
33433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33434 $as_echo "$ntp_ok" >&6; }
33436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
33437 $as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
33438 # Check whether --enable-TPRO was given.
33439 if test "${enable_TPRO+set}" = set; then :
33440 enableval=$enable_TPRO; ntp_ok=$enableval
33443 case "$ac_cv_header_sys_tpro_h" in
33459 $as_echo "#define CLOCK_TPRO 1" >>confdefs.h
33463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33464 $as_echo "$ntp_ok" >&6; }
33465 case "$ntp_ok$ac_cv_header_sys_tpro" in
33466 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33467 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33470 # Not on a vax-dec-bsd
33471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
33472 $as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
33473 # Check whether --enable-TRUETIME was given.
33474 if test "${enable_TRUETIME+set}" = set; then :
33475 enableval=$enable_TRUETIME; ntp_ok=$enableval
33494 $as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
33498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33499 $as_echo "$ntp_ok" >&6; }
33500 case "$ntp_ok$host" in
33501 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33502 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
33506 $as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
33507 # Check whether --enable-TT560 was given.
33508 if test "${enable_TT560+set}" = set; then :
33509 enableval=$enable_TT560; ntp_ok=$enableval
33519 $as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
33523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33524 $as_echo "$ntp_ok" >&6; }
33526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
33527 $as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
33528 # Check whether --enable-ULINK was given.
33529 if test "${enable_ULINK+set}" = set; then :
33530 enableval=$enable_ULINK; ntp_ok=$enableval
33540 $as_echo "#define CLOCK_ULINK 1" >>confdefs.h
33544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33545 $as_echo "$ntp_ok" >&6; }
33547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
33548 $as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
33549 # Check whether --enable-TSYNCPCI was given.
33550 if test "${enable_TSYNCPCI+set}" = set; then :
33551 enableval=$enable_TSYNCPCI; ntp_ok=$enableval
33569 $as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h
33573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33574 $as_echo "$ntp_ok" >&6; }
33576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
33577 $as_echo_n "checking WWV receiver... " >&6; }
33578 # Check whether --enable-WWV was given.
33579 if test "${enable_WWV+set}" = set; then :
33580 enableval=$enable_WWV; ntp_ok=$enableval
33583 case "$ntp_eac$ntp_canaudio" in
33595 $as_echo "#define CLOCK_WWV 1" >>confdefs.h
33599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33600 $as_echo "$ntp_ok" >&6; }
33601 case "$ntp_ok$ntp_canaudio" in
33602 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33603 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
33607 $as_echo_n "checking for Zyfer receiver... " >&6; }
33608 # Check whether --enable-ZYFER was given.
33609 if test "${enable_ZYFER+set}" = set; then :
33610 enableval=$enable_ZYFER; ntp_ok=$enableval
33620 $as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
33624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33625 $as_echo "$ntp_ok" >&6; }
33627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
33628 $as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
33629 # Check whether --enable-parse-clocks was given.
33630 if test "${enable_parse_clocks+set}" = set; then :
33631 enableval=$enable_parse_clocks; ntp_eapc=$enableval
33635 yes) ntp_eapc=$ntp_canparse ;;
33638 # Delete the next line one of these days
33644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
33645 $as_echo "$ntp_eapc" >&6; }
33647 case "$ntp_eac$ntp_eapc$ntp_canparse" in
33649 as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
33652 as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
33660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
33661 $as_echo_n "checking Diem Computime Radio Clock... " >&6; }
33662 # Check whether --enable-COMPUTIME was given.
33663 if test "${enable_COMPUTIME+set}" = set; then :
33664 enableval=$enable_COMPUTIME; ntp_ok=$enableval
33675 $as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
33679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33680 $as_echo "$ntp_ok" >&6; }
33681 case "$ntp_ok$ntp_canparse" in
33683 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
33687 $as_echo_n "checking ELV/DCF7000 clock... " >&6; }
33688 # Check whether --enable-DCF7000 was given.
33689 if test "${enable_DCF7000+set}" = set; then :
33690 enableval=$enable_DCF7000; ntp_ok=$enableval
33701 $as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
33705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33706 $as_echo "$ntp_ok" >&6; }
33707 case "$ntp_ok$ntp_canparse" in
33709 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
33713 $as_echo_n "checking HOPF 6021 clock... " >&6; }
33714 # Check whether --enable-HOPF6021 was given.
33715 if test "${enable_HOPF6021+set}" = set; then :
33716 enableval=$enable_HOPF6021; ntp_ok=$enableval
33727 $as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
33731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33732 $as_echo "$ntp_ok" >&6; }
33733 case "$ntp_ok$ntp_canparse" in
33735 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
33739 $as_echo_n "checking Meinberg clocks... " >&6; }
33740 # Check whether --enable-MEINBERG was given.
33741 if test "${enable_MEINBERG+set}" = set; then :
33742 enableval=$enable_MEINBERG; ntp_ok=$enableval
33753 $as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
33757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33758 $as_echo "$ntp_ok" >&6; }
33759 case "$ntp_ok$ntp_canparse" in
33761 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
33765 $as_echo_n "checking DCF77 raw time code... " >&6; }
33766 # Check whether --enable-RAWDCF was given.
33767 if test "${enable_RAWDCF+set}" = set; then :
33768 enableval=$enable_RAWDCF; ntp_ok=$enableval
33781 $as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
33785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33786 $as_echo "$ntp_ok" >&6; }
33787 case "$ntp_ok$ntp_canparse" in
33789 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33792 case "$ntp_rawdcf" in
33794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
33795 $as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
33796 if ${ntp_cv_rawdcf_parity+:} false; then :
33797 $as_echo_n "(cached) " >&6
33806 ntp_cv_rawdcf_parity=$ans
33810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
33811 $as_echo "$ntp_cv_rawdcf_parity" >&6; }
33812 case "$ntp_cv_rawdcf_parity" in
33815 $as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
33820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
33821 $as_echo_n "checking RCC 8000 clock... " >&6; }
33822 # Check whether --enable-RCC8000 was given.
33823 if test "${enable_RCC8000+set}" = set; then :
33824 enableval=$enable_RCC8000; ntp_ok=$enableval
33835 $as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
33839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33840 $as_echo "$ntp_ok" >&6; }
33841 case "$ntp_ok$ntp_canparse" in
33843 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
33847 $as_echo_n "checking Schmid DCF77 clock... " >&6; }
33848 # Check whether --enable-SCHMID was given.
33849 if test "${enable_SCHMID+set}" = set; then :
33850 enableval=$enable_SCHMID; ntp_ok=$enableval
33861 $as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
33865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33866 $as_echo "$ntp_ok" >&6; }
33867 case "$ntp_ok$ntp_canparse" in
33869 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
33873 $as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
33874 # Check whether --enable-TRIMTAIP was given.
33875 if test "${enable_TRIMTAIP+set}" = set; then :
33876 enableval=$enable_TRIMTAIP; ntp_ok=$enableval
33887 $as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
33891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33892 $as_echo "$ntp_ok" >&6; }
33893 case "$ntp_ok$ntp_canparse" in
33895 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
33899 $as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
33900 # Check whether --enable-TRIMTSIP was given.
33901 if test "${enable_TRIMTSIP+set}" = set; then :
33902 enableval=$enable_TRIMTSIP; ntp_ok=$enableval
33913 $as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
33917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33918 $as_echo "$ntp_ok" >&6; }
33919 case "$ntp_ok$ntp_canparse" in
33921 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
33925 $as_echo_n "checking WHARTON 400A Series clock... " >&6; }
33926 # Check whether --enable-WHARTON was given.
33927 if test "${enable_WHARTON+set}" = set; then :
33928 enableval=$enable_WHARTON; ntp_ok=$enableval
33939 $as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
33943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33944 $as_echo "$ntp_ok" >&6; }
33945 case "$ntp_ok$ntp_canparse" in
33947 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
33951 $as_echo_n "checking VARITEXT clock... " >&6; }
33952 # Check whether --enable-VARITEXT was given.
33953 if test "${enable_VARITEXT+set}" = set; then :
33954 enableval=$enable_VARITEXT; ntp_ok=$enableval
33965 $as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
33969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33970 $as_echo "$ntp_ok" >&6; }
33971 case "$ntp_ok$ntp_canparse" in
33973 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
33977 $as_echo_n "checking SEL240X clock... " >&6; }
33978 # Check whether --enable-SEL240X was given.
33979 if test "${enable_SEL240X+set}" = set; then :
33980 enableval=$enable_SEL240X; ntp_ok=$enableval
33985 if test "$ntp_ok" = "yes"; then
33989 $as_echo "#define CLOCK_SEL240X 1" >>confdefs.h
33992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33993 $as_echo "$ntp_ok" >&6; }
33994 case "$ntp_ok$ntp_canparse" in
33996 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
34005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
34006 $as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
34008 case "$ntp_libparse" in
34012 $as_echo "#define CLOCK_PARSE 1" >>confdefs.h
34014 LIBPARSE=../libparse/libparse.a
34015 MAKE_LIBPARSE=libparse.a
34016 # HMS: check_y2k trips the 34 year problem now...
34017 false && MAKE_CHECK_Y2K=check_y2k
34019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34020 $as_echo "$ans" >&6; }
34030 # Check whether --with-crypto was given.
34031 if test "${with_crypto+set}" = set; then :
34032 withval=$with_crypto;
34036 # Check whether --with-openssl-libdir was given.
34037 if test "${with_openssl_libdir+set}" = set; then :
34038 withval=$with_openssl_libdir;
34042 # Check whether --with-openssl-incdir was given.
34043 if test "${with_openssl_incdir+set}" = set; then :
34044 withval=$with_openssl_incdir;
34048 # Check whether --with-rpath was given.
34049 if test "${with_rpath+set}" = set; then :
34050 withval=$with_rpath;
34054 ntp_openssl_from_pkg_config=no
34055 with_crypto=${with_crypto:-openssl,libcrypto}
34056 case "$with_crypto" in
34058 with_crypto=openssl,libcrypto
34060 case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
34062 *:notempty:notgiven:notgiven)
34063 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
34064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
34065 $as_echo_n "checking pkg-config for $pkg... " >&6; }
34066 if $PKG_CONFIG --exists $pkg ; then
34067 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
34068 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
34069 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
34070 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
34071 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
34074 ntp_openssl_from_pkg_config=yes
34075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34076 $as_echo "yes" >&6; }
34080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34081 $as_echo "no" >&6; }
34084 case "$with_crypto:$ntp_openssl" in
34089 case "${with_rpath-notgiven}" in
34091 # Lame - what to do if we need -Wl... but not -R?
34097 # This may really only be true for gcc
34098 need_dash_Wlrpath=1
34110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
34111 $as_echo_n "checking for openssl library directory... " >&6; }
34112 with_openssl_libdir=${with_openssl_libdir-notgiven}
34113 case "$with_openssl_libdir" in
34117 with_openssl_libdir=default
34120 with_openssl_libdir=no
34124 case "$with_openssl_libdir" in
34127 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
34128 with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
34129 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
34131 case "$with_openssl_libdir" in
34134 *) # Look for libcrypto.a and libssl.a:
34135 for i in $with_openssl_libdir no
34139 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
34142 test -f $i/libcrypto.so -a -f $i/libssl.so && break
34143 test -f $i/libcrypto.a -a -f $i/libssl.a && break
34150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
34151 $as_echo "$openssl_libdir" >&6; }
34152 case "$openssl_libdir" in
34155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
34156 $as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
34159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
34160 $as_echo_n "checking for openssl include directory... " >&6; }
34161 with_openssl_incdir=${with_openssl_incdir-notgiven}
34162 case "$with_openssl_incdir" in
34165 with_openssl_incdir="/usr/include /usr/sfw/include"
34166 with_openssl_incdir="$with_openssl_incdir /usr/local/include"
34167 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
34169 case "$with_openssl_incdir" in
34172 *) # look for openssl/evp.h:
34173 for i in $with_openssl_incdir no
34175 test -f $i/openssl/evp.h && break
34181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
34182 $as_echo "$openssl_incdir" >&6; }
34183 case "$openssl_incdir" in
34186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
34187 $as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
34189 if test -z "$openssl_libdir" -o -z "$openssl_incdir"
34196 case "$ntp_openssl" in
34198 # We have OpenSSL inc/lib dirs - use them.
34199 case "$openssl_incdir" in
34203 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
34206 case "$openssl_libdir" in
34210 LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
34211 case "$need_dash_r" in
34213 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
34215 case "$need_dash_Wlrpath" in
34217 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
34221 LDADD_NTP="$LDADD_NTP -lcrypto"
34225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
34226 $as_echo_n "checking if we will use crypto... " >&6; }
34227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
34228 $as_echo "$ntp_openssl" >&6; }
34230 case "$ntp_openssl" in
34233 $as_echo "#define OPENSSL /**/" >>confdefs.h
34235 case "$VER_SUFFIX" in
34237 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
34242 NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
34243 CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
34244 NTPO_SAVED_LIBS="$LIBS"
34247 # check for linking with -lcrypto failure, and try -lcrypto -lz.
34248 # Helps m68k-atari-mint
34250 case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
34252 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
34254 $as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
34255 if ${ntp_cv_bare_lcrypto+:} false; then :
34256 $as_echo_n "(cached) " >&6
34258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34259 /* end confdefs.h. */
34261 #include "openssl/err.h"
34262 #include "openssl/evp.h"
34268 ERR_load_crypto_strings();
34269 OpenSSL_add_all_algorithms();
34276 if ac_fn_c_try_link "$LINENO"; then :
34277 ntp_cv_bare_lcrypto=yes
34279 ntp_cv_bare_lcrypto=no
34282 rm -f core conftest.err conftest.$ac_objext \
34283 conftest$ac_exeext conftest.$ac_ext
34286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
34287 $as_echo "$ntp_cv_bare_lcrypto" >&6; }
34288 case "$ntp_cv_bare_lcrypto" in
34290 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
34291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
34292 $as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
34293 if ${ntp_cv_lcrypto_lz+:} false; then :
34294 $as_echo_n "(cached) " >&6
34296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34297 /* end confdefs.h. */
34299 #include "openssl/err.h"
34300 #include "openssl/evp.h"
34306 ERR_load_crypto_strings();
34307 OpenSSL_add_all_algorithms();
34314 if ac_fn_c_try_link "$LINENO"; then :
34315 ntp_cv_lcrypto_lz=yes
34317 ntp_cv_lcrypto_lz=no
34320 rm -f core conftest.err conftest.$ac_objext \
34321 conftest$ac_exeext conftest.$ac_ext
34324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
34325 $as_echo "$ntp_cv_lcrypto_lz" >&6; }
34326 case "$ntp_cv_lcrypto_lz" in
34328 LDADD_NTP="$LDADD_NTP -lz"
34334 # Older OpenSSL headers have a number of callback prototypes inside
34335 # other function prototypes which trigger copious warnings with gcc's
34336 # -Wstrict-prototypes, which is included in -Wall.
34340 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
34341 # int (*cb)(), int sgckey);
34346 openssl_triggers_warnings=unknown
34347 NTPO_SAVED_CFLAGS="$CFLAGS"
34349 case "$ntp_openssl:$GCC" in
34351 CFLAGS="$CFLAGS -Werror"
34352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34353 /* end confdefs.h. */
34360 /* see if -Werror breaks gcc */
34367 if ac_fn_c_try_compile "$LINENO"; then :
34368 gcc_handles_Werror=yes
34370 gcc_handles_Werror=no
34373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34374 case "$gcc_handles_Werror" in
34376 # if this gcc doesn't do -Werror go ahead and use
34377 # -Wstrict-prototypes.
34378 openssl_triggers_warnings=yes
34381 CFLAGS="$CFLAGS -Wstrict-prototypes"
34382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34383 /* end confdefs.h. */
34385 #include "openssl/asn1_mac.h"
34386 #include "openssl/bn.h"
34387 #include "openssl/err.h"
34388 #include "openssl/evp.h"
34389 #include "openssl/pem.h"
34390 #include "openssl/rand.h"
34391 #include "openssl/x509v3.h"
34404 if ac_fn_c_try_compile "$LINENO"; then :
34405 openssl_triggers_warnings=no
34407 openssl_triggers_warnings=yes
34410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34412 case "$openssl_triggers_warnings" in
34414 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
34417 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
34421 # gcc without OpenSSL
34422 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
34425 # Because we don't want -Werror for the EVP_MD_do_all_sorted check
34426 CFLAGS="$NTPO_SAVED_CFLAGS"
34428 case "$ntp_openssl" in
34430 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34431 for ac_func in EVP_MD_do_all_sorted
34433 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
34434 if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
34435 cat >>confdefs.h <<_ACEOF
34436 #define HAVE_EVP_MD_DO_ALL_SORTED 1
34445 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
34446 LIBS="$NTPO_SAVED_LIBS"
34447 { NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
34448 { NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
34449 { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
34450 { openssl_triggers_warnings=; unset openssl_triggers_warnings;}
34451 { ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
34457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
34458 $as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
34459 # Check whether --enable-openssl-random was given.
34460 if test "${enable_openssl_random+set}" = set; then :
34461 enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
34463 ntp_use_openssl_random=yes
34467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
34468 $as_echo "$ntp_use_openssl_random" >&6; }
34470 # The following might need extra libraries
34471 NTPO_SAVED_LIBS="$LIBS"
34472 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34473 for ac_func in RAND_bytes RAND_poll
34475 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34476 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
34477 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
34478 cat >>confdefs.h <<_ACEOF
34479 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34485 LIBS="$NTPO_SAVED_LIBS"
34486 case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
34489 $as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
34492 *) ntp_use_openssl_random=no ;;
34497 # if we are using OpenSSL (--with-crypto), by default Autokey is enabled
34498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
34499 $as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
34500 # Check whether --enable-autokey was given.
34501 if test "${enable_autokey+set}" = set; then :
34502 enableval=$enable_autokey; ntp_autokey=$enableval
34504 ntp_autokey=$ntp_openssl
34508 case "$ntp_autokey" in
34512 case "$ntp_openssl" in
34514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
34515 $as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
34520 $as_echo "#define AUTOKEY 1" >>confdefs.h
34527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
34528 $as_echo "$ntp_autokey" >&6; }
34531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
34532 $as_echo_n "checking if we want to run check-layout... " >&6; }
34533 case "$cross_compiling$PATH_PERL" in
34535 MAKE_CHECK_LAYOUT=check-layout
34542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34543 $as_echo "$ans" >&6; }
34547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
34548 $as_echo_n "checking if we can make dcf parse utilities... " >&6; }
34550 case "$ntp_parseutil" in
34553 *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
34560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34561 $as_echo "$ans" >&6; }
34564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
34565 $as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
34567 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
34571 case "$ntp_cv_var_kernel_pll" in
34574 $as_echo "#define PPS_SYNC 1" >>confdefs.h
34579 MAKE_PARSEKMODULE=parsestreams.loadable_module.o
34583 MAKE_PARSEKMODULE=parse
34584 for ac_header in strings.h
34586 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
34587 if test "x$ac_cv_header_strings_h" = xyes; then :
34588 cat >>confdefs.h <<_ACEOF
34589 #define HAVE_STRINGS_H 1
34600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34601 $as_echo "$ans" >&6; }
34603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
34604 $as_echo_n "checking if we need basic refclock support... " >&6; }
34605 case "$ntp_refclock" in
34608 $as_echo "#define REFCLOCK 1" >>confdefs.h
34612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
34613 $as_echo "$ntp_refclock" >&6; }
34615 PROPDELAY=propdelay
34619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
34620 $as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
34630 MAKE_ADJTIMED=adjtimed
34632 $as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
34641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34642 $as_echo "$ans" >&6; }
34644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
34645 $as_echo_n "checking if we want QNX adjtime support... " >&6; }
34656 $as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
34660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34661 $as_echo "$ans" >&6; }
34663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
34664 $as_echo_n "checking if we can read kmem... " >&6; }
34666 # the default is to enable it if the system has the capability
34668 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
34677 *-*-domainos) # Won't be found...
34697 # --enable-kmem / --disable-kmem controls if present
34698 # Check whether --enable-kmem was given.
34699 if test "${enable_kmem+set}" = set; then :
34700 enableval=$enable_kmem; ans=$enableval
34705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34706 $as_echo "$ans" >&6; }
34715 $as_echo "#define NOKMEM 1" >>confdefs.h
34720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
34721 $as_echo_n "checking if adjtime is accurate... " >&6; }
34723 # target-dependent defaults
34729 i386-unknown-osf1*)
34732 mips-sgi-irix[456]*)
34739 # XXX only verified thru AIX6.
34758 # --enable-accurate-adjtime / --disable-accurate-adjtime
34759 # override the default
34760 # Check whether --enable-accurate-adjtime was given.
34761 if test "${enable_accurate_adjtime+set}" = set; then :
34762 enableval=$enable_accurate_adjtime; ans=$enableval
34767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34768 $as_echo "$ans" >&6; }
34773 $as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
34775 adjtime_is_accurate=yes
34778 adjtime_is_accurate=no
34782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
34783 $as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
34784 if ${ntp_cv_nlist_tick+:} false; then :
34785 $as_echo_n "(cached) " >&6
34790 m68*-hp-hpux*) # HP9000/300?
34800 # XXX only verified thru AIX6.
34819 ntp_cv_nlist_tick=$ans
34823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
34824 $as_echo "$ntp_cv_nlist_tick" >&6; }
34825 case "$ntp_cv_nlist_tick" in
34827 ;; # HMS: I think we can only get 'no' here...
34830 cat >>confdefs.h <<_ACEOF
34831 #define K_TICK_NAME "$ntp_cv_nlist_tick"
34836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
34837 $as_echo_n "checking for the units of 'tick'... " >&6; }
34838 if ${ntp_cv_tick_nano+:} false; then :
34839 $as_echo_n "(cached) " >&6
34848 ntp_cv_tick_nano=$ans
34852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
34853 $as_echo "$ntp_cv_tick_nano" >&6; }
34854 case "$ntp_cv_tick_nano" in
34857 $as_echo "#define TICK_NANO 1" >>confdefs.h
34861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
34862 $as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
34863 if ${ntp_cv_nlist_tickadj+:} false; then :
34864 $as_echo_n "(cached) " >&6
34869 m68*-hp-hpux*) # HP9000/300?
34900 ans=no # hrestime_adj
34906 ntp_cv_nlist_tickadj=$ans
34910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
34911 $as_echo "$ntp_cv_nlist_tickadj" >&6; }
34912 case "$ntp_cv_nlist_tickadj" in
34914 ;; # HMS: I think we can only get 'no' here...
34917 cat >>confdefs.h <<_ACEOF
34918 #define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
34923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
34924 $as_echo_n "checking for the units of 'tickadj'... " >&6; }
34925 if ${ntp_cv_tickadj_nano+:} false; then :
34926 $as_echo_n "(cached) " >&6
34935 ntp_cv_tickadj_nano=$ans
34939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
34940 $as_echo "$ntp_cv_tickadj_nano" >&6; }
34941 case "$ntp_cv_tickadj_nano" in
34944 $as_echo "#define TICKADJ_NANO 1" >>confdefs.h
34948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
34949 $as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
34950 if ${ntp_cv_nlist_dosynctodr+:} false; then :
34951 $as_echo_n "(cached) " >&6
34995 ntp_cv_nlist_dosynctodr=$ans
34999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
35000 $as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
35001 case "$ntp_cv_nlist_dosynctodr" in
35006 cat >>confdefs.h <<_ACEOF
35007 #define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
35013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
35014 $as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
35015 if ${ntp_cv_nlist_noprintf+:} false; then :
35016 $as_echo_n "(cached) " >&6
35054 ntp_cv_nlist_noprintf=$ans
35058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
35059 $as_echo "$ntp_cv_nlist_noprintf" >&6; }
35060 case "$ntp_cv_nlist_noprintf" in
35065 cat >>confdefs.h <<_ACEOF
35066 #define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
35075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
35076 $as_echo_n "checking for a default value for 'tick'... " >&6; }
35078 # target-dependent default for tick
35082 as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
35107 # Check whether --enable-tick was given.
35108 if test "${enable_tick+set}" = set; then :
35109 enableval=$enable_tick; ans=$enableval
35114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35115 $as_echo "$ans" >&6; }
35119 ;; # HMS: I think we can only get 'no' here...
35122 cat >>confdefs.h <<_ACEOF
35123 #define PRESET_TICK $ans
35128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
35129 $as_echo_n "checking for a default value for 'tickadj'... " >&6; }
35131 # target-specific default
35135 case "$adjtime_is_accurate" in
35144 case "$can_kmem" in
35150 *-*-domainos) # Skippy: won't be found...
35151 case "$can_kmem" in
35158 case "$adjtime_is_accurate" in
35181 # Check whether --enable-tickadj was given.
35182 if test "${enable_tickadj+set}" = set; then :
35183 enableval=$enable_tickadj; ans=$enableval
35188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35189 $as_echo "$ans" >&6; }
35191 default_tickadj=$ans
35193 case "$default_tickadj" in
35195 ;; # HMS: I think we can only get 'no' here...
35198 cat >>confdefs.h <<_ACEOF
35199 #define PRESET_TICKADJ $default_tickadj
35204 # Newer versions of ReliantUNIX round adjtime() values down to
35205 # 1/100s (system tick). Sigh ...
35206 # Unfortunately, there is no easy way to know if particular release
35207 # has this "feature" or any obvious way to test for it.
35211 $as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
35218 $as_echo "#define SCO5_CLOCK 1" >>confdefs.h
35222 ntp_cv_make_tickadj=yes
35223 case "$can_kmem$ac_cv_var_tick$default_tickadj" in
35224 nonono) # Don't read KMEM, no presets. Bogus.
35225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5
35226 $as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;}
35227 ntp_cv_make_tickadj=no
35229 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
35230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5
35231 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;}
35232 ntp_cv_make_tickadj=no
35234 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus.
35235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5
35236 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;}
35237 ntp_cv_make_tickadj=no
35239 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool.
35241 yesnono) # Read KMEM, no presets. Cool.
35243 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
35244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5
35245 $as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;}
35247 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool.
35249 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
35251 *) # Generally bogus.
35252 as_fn_error $? "This shouldn't happen." "$LINENO" 5
35257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
35258 $as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
35259 if ${ac_cv_make_ntptime+:} false; then :
35260 $as_echo_n "(cached) " >&6
35263 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
35273 ac_cv_make_ntptime=$ans
35275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
35276 $as_echo "$ac_cv_make_ntptime" >&6; }
35277 case "$ac_cv_make_ntptime" in
35279 MAKE_NTPTIME=ntptime
35292 # tickadj is pretty useless on newer versions of ReliantUNIX
35294 ntp_cv_make_tickadj=no
35297 ntp_cv_make_tickadj=no
35300 # DLM says tickadj is a no-no starting with solaris2.5
35302 *-*-solaris2.1[0-9]*)
35303 ntp_cv_make_tickadj=no
35305 *-*-solaris2.[0-4]*) ;;
35306 *) ntp_cv_make_tickadj=no ;;
35310 ntp_cv_make_tickadj=no
35315 # Despite all the above, we always make tickadj. Setting
35316 # ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
35317 # report that the configuration variable was cached. It may
35318 # be better to simply remove the hunk above, I did not want
35319 # to remove it if there is hope it will be used again.
35321 { ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}
35323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
35324 $as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
35325 if ${ntp_cv_make_tickadj+:} false; then :
35326 $as_echo_n "(cached) " >&6
35328 ntp_cv_make_tickadj=yes
35331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
35332 $as_echo "$ntp_cv_make_tickadj" >&6; }
35333 case "$ntp_cv_make_tickadj" in
35335 MAKE_TICKADJ=tickadj
35350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
35351 $as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
35352 if ${ntp_cv_make_timetrim+:} false; then :
35353 $as_echo_n "(cached) " >&6
35358 ntp_cv_make_timetrim=yes
35361 ntp_cv_make_timetrim=yes
35364 ntp_cv_make_timetrim=no
35370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
35371 $as_echo "$ntp_cv_make_timetrim" >&6; }
35372 case "$ntp_cv_make_timetrim" in
35374 MAKE_TIMETRIM=timetrim
35386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
35387 $as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
35388 # Check whether --enable-simulator was given.
35389 if test "${enable_simulator+set}" = set; then :
35390 enableval=$enable_simulator; ans=$enableval
35396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35397 $as_echo "$ans" >&6; }
35400 MAKE_NTPDSIM=ntpdsim
35401 MAKE_LIBNTPSIM=libntpsim.a
35416 LDFLAGS="$LDFLAGS -r"
35424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
35425 $as_echo_n "checking if sntp will be built... " >&6; }
35427 # Check whether --with-sntp was given.
35428 if test "${with_sntp+set}" = set; then :
35429 withval=$with_sntp;
35431 with_sntp="${withsntp=yes}"
35435 case "$with_sntp" in
35444 if test -n "$SNTP"; then
35446 BUILD_SNTP_FALSE='#'
35448 BUILD_SNTP_TRUE='#'
35452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
35453 $as_echo "$with_sntp" >&6; }
35457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
35458 $as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
35460 # Check whether --with-ntpsnmpd was given.
35461 if test "${with_ntpsnmpd+set}" = set; then :
35462 withval=$with_ntpsnmpd; ans=$withval
35465 case "$PATH_NET_SNMP_CONFIG" in
35473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35474 $as_echo "$ans" >&6; }
35477 case "$PATH_NET_SNMP_CONFIG" in
35479 SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
35480 # Bug 2815. This is a bit of a hack, but it works...
35481 case "$ntp_cv_net_snmp_version" in
35482 5.3*) SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'`
35486 # HMS: we really want to separate CPPFLAGS and CFLAGS
35487 foo=`$PATH_NET_SNMP_CONFIG --cflags`
35493 SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
35495 *) SNMP_CFLAGS="$SNMP_CFLAGS $i"
35502 save_CFLAGS=$CFLAGS
35503 save_CPPFLAGS=$CPPFLAGS
35505 CFLAGS=$SNMP_CFLAGS
35506 CPPFLAGS=$SNMP_CPPFLAGS
35508 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"
35509 if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
35510 MAKE_NTPSNMPD=ntpsnmpd
35512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
35513 $as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
35519 # Do this last, as we're messing up LIBS.
35520 # check -lnetsnmp for netsnmp_daemonize
35521 LIBS=`$PATH_NET_SNMP_CONFIG --libs`
35522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
35523 $as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
35524 if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
35525 $as_echo_n "(cached) " >&6
35527 ac_check_lib_save_LIBS=$LIBS
35528 LIBS="-lnetsnmp $LIBS"
35529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35530 /* end confdefs.h. */
35532 /* Override any GCC internal prototype to avoid an error.
35533 Use char because int might match the return type of a GCC
35534 builtin and then its argument prototype would still apply. */
35538 char netsnmp_daemonize ();
35542 return netsnmp_daemonize ();
35547 if ac_fn_c_try_link "$LINENO"; then :
35548 ac_cv_lib_netsnmp_netsnmp_daemonize=yes
35550 ac_cv_lib_netsnmp_netsnmp_daemonize=no
35552 rm -f core conftest.err conftest.$ac_objext \
35553 conftest$ac_exeext conftest.$ac_ext
35554 LIBS=$ac_check_lib_save_LIBS
35556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
35557 $as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
35558 if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
35568 $as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
35572 CFLAGS=$save_CFLAGS
35573 { save_CFLAGS=; unset save_CFLAGS;}
35574 CPPFLAGS=$save_CPPFLAGS
35575 { save_CPPFLAGS=; unset save_CPPFLAGS;}
35577 { save_LIBS=; unset save_LIBS;}
35580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
35581 $as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
35588 case "$MAKE_NTPSNMPD" in
35597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
35598 $as_echo_n "checking if we should always slew the time... " >&6; }
35600 # target-specific defaults
35612 *-*-openvms*) # HMS: won't be found
35619 # --enable-slew-always / --disable-slew-always overrides default
35621 # Check whether --enable-slew-always was given.
35622 if test "${enable_slew_always+set}" = set; then :
35623 enableval=$enable_slew_always; ans=$enableval
35628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35629 $as_echo "$ans" >&6; }
35634 $as_echo "#define SLEWALWAYS 1" >>confdefs.h
35638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
35639 $as_echo_n "checking if we should step and slew the time... " >&6; }
35654 *-*-solaris2.1[0-9]*)
35657 *-*-solaris2.[012]*)
35660 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP?
35667 # Check whether --enable-step-slew was given.
35668 if test "${enable_step_slew+set}" = set; then :
35669 enableval=$enable_step_slew; ans=$enableval
35674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35675 $as_echo "$ans" >&6; }
35680 $as_echo "#define STEP_SLEW 1" >>confdefs.h
35684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
35685 $as_echo_n "checking if ntpdate should step the time... " >&6; }
35695 # Check whether --enable-ntpdate-step was given.
35696 if test "${enable_ntpdate_step+set}" = set; then :
35697 enableval=$enable_ntpdate_step; ans=$enableval
35702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35703 $as_echo "$ans" >&6; }
35708 $as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
35713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
35714 $as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
35720 *-*-openvms*) # HMS: won't be found
35728 # Check whether --enable-hourly-todr-sync was given.
35729 if test "${enable_hourly_todr_sync+set}" = set; then :
35730 enableval=$enable_hourly_todr_sync; ans=$enableval
35735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35736 $as_echo "$ans" >&6; }
35738 case "$ac_cv_var_sync_todr" in
35741 $as_echo "#define DOSYNCTODR 1" >>confdefs.h
35746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
35747 $as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
35758 if test "$2" -ge 17
35760 # Generic_105181-17 and higher
35779 if test "$2" -ge 07
35781 # Generic_106541-07 and higher
35797 # Check whether --enable-kernel-fll-bug was given.
35798 if test "${enable_kernel_fll_bug+set}" = set; then :
35799 enableval=$enable_kernel_fll_bug; ans=$enableval
35804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35805 $as_echo "$ans" >&6; }
35810 $as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
35815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
35816 $as_echo_n "checking if we want new session key behavior... " >&6; }
35817 # Check whether --enable-bug1243-fix was given.
35818 if test "${enable_bug1243_fix+set}" = set; then :
35819 enableval=$enable_bug1243_fix; ans=$enableval
35825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35826 $as_echo "$ans" >&6; }
35830 $as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
35835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
35836 $as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
35842 *-*-solaris2.1[0-9]*)
35849 # Check whether --enable-irig-sawtooth was given.
35850 if test "${enable_irig_sawtooth+set}" = set; then :
35851 enableval=$enable_irig_sawtooth; ans=$enableval
35856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35857 $as_echo "$ans" >&6; }
35862 $as_echo "#define IRIG_SUCKS 1" >>confdefs.h
35866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
35867 $as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
35868 # Check whether --enable-nist was given.
35869 if test "${enable_nist+set}" = set; then :
35870 enableval=$enable_nist; ans=$enableval
35877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35878 $as_echo "$ans" >&6; }
35883 $as_echo "#define LOCKCLOCK 1" >>confdefs.h
35887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
35888 $as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
35889 # Check whether --enable-ntp-signd was given.
35890 if test "${enable_ntp_signd+set}" = set; then :
35891 enableval=$enable_ntp_signd; ans=$enableval
35898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35899 $as_echo "$ans" >&6; }
35906 ntp_signd_path=/var/run/ntp_signd
35909 ntp_signd_path="$ans"
35912 case "$ntp_signd_path" in
35917 $as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h
35920 cat >>confdefs.h <<_ACEOF
35921 #define NTP_SIGND_PATH "$ntp_signd_path"
35927 for ac_header in libscf.h
35929 ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
35930 if test "x$ac_cv_header_libscf_h" = xyes; then :
35931 cat >>confdefs.h <<_ACEOF
35932 #define HAVE_LIBSCF_H 1
35940 case "$ac_cv_header_libscf_h" in
35948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
35949 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
35950 if ${ntp_cv_sockaddr_storage+:} false; then :
35951 $as_echo_n "(cached) " >&6
35953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35954 /* end confdefs.h. */
35956 #ifdef HAVE_SYS_TYPES_H
35957 # include <sys/types.h>
35959 #ifdef HAVE_SYS_SOCKET_H
35960 # include <sys/socket.h>
35962 #ifdef HAVE_NETINET_IN_H
35963 # include <netinet/in.h>
35970 struct sockaddr_storage n;
35977 if ac_fn_c_try_compile "$LINENO"; then :
35978 ntp_cv_sockaddr_storage=yes
35980 ntp_cv_sockaddr_storage=no
35983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
35987 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
35988 case "$ntp_cv_sockaddr_storage" in
35991 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
35993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
35994 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
35995 if ${ntp_cv_have___ss_family+:} false; then :
35996 $as_echo_n "(cached) " >&6
35998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35999 /* end confdefs.h. */
36001 #ifdef HAVE_SYS_TYPES_H
36002 # include <sys/types.h>
36004 #ifdef HAVE_SYS_SOCKET_H
36005 # include <sys/socket.h>
36007 #ifdef HAVE_NETINET_IN_H
36008 # include <netinet/in.h>
36015 struct sockaddr_storage s;
36023 if ac_fn_c_try_compile "$LINENO"; then :
36024 ntp_cv_have___ss_family=yes
36026 ntp_cv_have___ss_family=no
36029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
36033 $as_echo "$ntp_cv_have___ss_family" >&6; }
36034 case "$ntp_cv_have___ss_family" in
36037 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
36045 # Look for in_port_t.
36047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
36048 $as_echo_n "checking for in_port_t... " >&6; }
36049 if ${isc_cv_have_in_port_t+:} false; then :
36050 $as_echo_n "(cached) " >&6
36052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36053 /* end confdefs.h. */
36055 #include <sys/types.h>
36056 #include <netinet/in.h>
36062 in_port_t port = 25;
36070 if ac_fn_c_try_compile "$LINENO"; then :
36071 isc_cv_have_in_port_t=yes
36073 isc_cv_have_in_port_t=no
36076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
36080 $as_echo "$isc_cv_have_in_port_t" >&6; }
36081 case "$isc_cv_have_in_port_t" in
36084 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
36088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
36089 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
36090 if ${ntp_cv_getsockname_socklen_type+:} false; then :
36091 $as_echo_n "(cached) " >&6
36094 getsockname_socklen_type_found=no
36095 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
36096 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
36097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36098 /* end confdefs.h. */
36100 #ifdef HAVE_SYS_TYPES_H
36101 # include <sys/types.h>
36103 #ifdef HAVE_SYS_SOCKET_H
36104 # include <sys/socket.h>
36112 getsockname(int, $getsockname_arg2,
36113 $ntp_cv_getsockname_socklen_type *);
36120 if ac_fn_c_try_compile "$LINENO"; then :
36121 getsockname_socklen_type_found=yes ; break 2
36123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36126 case "$getsockname_socklen_type_found" in
36128 ntp_cv_getsockname_socklen_type='socklen_t'
36130 { getsockname_arg2=; unset getsockname_arg2;}
36131 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
36135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
36136 $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
36138 cat >>confdefs.h <<_ACEOF
36139 #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
36143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
36144 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
36145 if ${isc_cv_platform_havesalen+:} false; then :
36146 $as_echo_n "(cached) " >&6
36148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36149 /* end confdefs.h. */
36151 #include <sys/types.h>
36152 #include <sys/socket.h>
36158 extern struct sockaddr *ps;
36166 if ac_fn_c_try_compile "$LINENO"; then :
36167 isc_cv_platform_havesalen=yes
36169 isc_cv_platform_havesalen=no
36172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
36176 $as_echo "$isc_cv_platform_havesalen" >&6; }
36177 case "$isc_cv_platform_havesalen" in
36180 $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
36184 # Check whether --enable-ipv6 was given.
36185 if test "${enable_ipv6+set}" = set; then :
36186 enableval=$enable_ipv6;
36190 case "$enable_ipv6" in
36197 $as_echo "#define WANT_IPV6 1" >>confdefs.h
36210 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
36215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
36216 $as_echo_n "checking for IPv6 structures... " >&6; }
36217 if ${isc_cv_found_ipv6+:} false; then :
36218 $as_echo_n "(cached) " >&6
36220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36221 /* end confdefs.h. */
36223 #include <sys/types.h>
36224 #include <sys/socket.h>
36225 #include <netinet/in.h>
36231 struct sockaddr_in6 sin6;
36238 if ac_fn_c_try_compile "$LINENO"; then :
36239 isc_cv_found_ipv6=yes
36241 isc_cv_found_ipv6=no
36244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
36248 $as_echo "$isc_cv_found_ipv6" >&6; }
36251 # See whether IPv6 support is provided via a Kame add-on.
36252 # This is done before other IPv6 linking tests so LIBS is properly set.
36254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
36255 $as_echo_n "checking for Kame IPv6 support... " >&6; }
36257 # Check whether --with-kame was given.
36258 if test "${with_kame+set}" = set; then :
36259 withval=$with_kame; use_kame="$withval"
36265 case "$use_kame" in
36269 kame_path=/usr/local/v6
36272 kame_path="$use_kame"
36275 case "$use_kame" in
36277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36278 $as_echo "no" >&6; }
36281 if test -f $kame_path/lib/libinet6.a; then
36282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
36283 $as_echo "$kame_path/lib/libinet6.a" >&6; }
36284 LIBS="-L$kame_path/lib -linet6 $LIBS"
36286 as_fn_error $? "$kame_path/lib/libinet6.a not found.
36288 Please choose the proper path with the following command:
36290 configure --with-kame=PATH
36297 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
36298 # Including it on Kame-using platforms is very bad, though, because
36299 # Kame uses #error against direct inclusion. So include it on only
36300 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
36301 # This is done before the in6_pktinfo check because that's what
36302 # netinet6/in6.h is needed for.
36307 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
36309 isc_netinet6in6_hack="#include <netinet6/in6.h>"
36312 isc_netinet6in6_hack=""
36317 # This is similar to the netinet6/in6.h issue.
36320 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
36322 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
36324 isc_netinetin6_hack="#include <netinet/in6.h>"
36327 isc_netinetin6_hack=""
36332 case "$isc_cv_found_ipv6" in
36335 $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
36337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
36338 $as_echo_n "checking for in6_pktinfo... " >&6; }
36339 if ${isc_cv_have_in6_pktinfo+:} false; then :
36340 $as_echo_n "(cached) " >&6
36342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36343 /* end confdefs.h. */
36345 #include <sys/types.h>
36346 #include <sys/socket.h>
36347 #include <netinet/in.h>
36348 $isc_netinetin6_hack
36349 $isc_netinet6in6_hack
36355 struct in6_pktinfo xyzzy;
36362 if ac_fn_c_try_compile "$LINENO"; then :
36363 isc_cv_have_in6_pktinfo=yes
36365 isc_cv_have_in6_pktinfo=no
36368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
36372 $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
36373 case "$isc_cv_have_in6_pktinfo" in
36376 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
36381 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
36382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
36383 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
36384 if ${isc_cv_have_sin6_scope_id+:} false; then :
36385 $as_echo_n "(cached) " >&6
36387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36388 /* end confdefs.h. */
36390 #include <sys/types.h>
36391 #include <sys/socket.h>
36392 #include <netinet/in.h>
36393 $isc_netinetin6_hack
36394 $isc_netinet6in6_hack
36400 struct sockaddr_in6 xyzzy;
36401 xyzzy.sin6_scope_id = 0;
36408 if ac_fn_c_try_compile "$LINENO"; then :
36409 isc_cv_have_sin6_scope_id=yes
36411 isc_cv_have_sin6_scope_id=no
36414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
36418 $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
36420 case "$isc_cv_have_sin6_scope_id" in
36423 $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
36429 # We need this check run even without isc_cv_found_ipv6=yes
36431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
36432 $as_echo_n "checking for in6addr_any... " >&6; }
36433 if ${isc_cv_in6addr_any_links+:} false; then :
36434 $as_echo_n "(cached) " >&6
36438 LIBS="$LDADD_LIBNTP $LIBS"
36439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36440 /* end confdefs.h. */
36441 $ac_includes_default
36442 #include <sys/socket.h>
36443 #include <netinet/in.h>
36444 $isc_netinetin6_hack
36445 $isc_netinet6in6_hack
36451 printf("%x", in6addr_any.s6_addr[15]);
36458 if ac_fn_c_try_link "$LINENO"; then :
36459 isc_cv_in6addr_any_links=yes
36461 isc_cv_in6addr_any_links=no
36464 rm -f core conftest.err conftest.$ac_objext \
36465 conftest$ac_exeext conftest.$ac_ext
36467 { SAVED_LIBS=; unset SAVED_LIBS;}
36471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
36472 $as_echo "$isc_cv_in6addr_any_links" >&6; }
36474 case "$isc_cv_in6addr_any_links" in
36477 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
36482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
36483 $as_echo_n "checking for struct if_laddrconf... " >&6; }
36484 if ${isc_cv_struct_if_laddrconf+:} false; then :
36485 $as_echo_n "(cached) " >&6
36487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36488 /* end confdefs.h. */
36490 #include <sys/types.h>
36491 #include <net/if6.h>
36497 struct if_laddrconf a;
36504 if ac_fn_c_try_compile "$LINENO"; then :
36505 isc_cv_struct_if_laddrconf=yes
36507 isc_cv_struct_if_laddrconf=no
36510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
36514 $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
36516 case "$isc_cv_struct_if_laddrconf" in
36519 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
36523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
36524 $as_echo_n "checking for struct if_laddrreq... " >&6; }
36525 if ${isc_cv_struct_if_laddrreq+:} false; then :
36526 $as_echo_n "(cached) " >&6
36528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36529 /* end confdefs.h. */
36531 #include <sys/types.h>
36532 #include <net/if6.h>
36538 struct if_laddrreq a;
36545 if ac_fn_c_try_compile "$LINENO"; then :
36546 isc_cv_struct_if_laddrreq=yes
36548 isc_cv_struct_if_laddrreq=no
36551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
36555 $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
36557 case "$isc_cv_struct_if_laddrreq" in
36560 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
36564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
36565 $as_echo_n "checking for multicast IP support... " >&6; }
36566 if ${ntp_cv_multicast+:} false; then :
36567 $as_echo_n "(cached) " >&6
36570 ntp_cv_multicast=no
36572 i386-sequent-sysv4)
36575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36576 /* end confdefs.h. */
36578 #ifdef HAVE_NETINET_IN_H
36579 # include <netinet/in.h>
36586 struct ip_mreq ipmr;
36587 ipmr.imr_interface.s_addr = 0;
36594 if ac_fn_c_try_compile "$LINENO"; then :
36595 ntp_cv_multicast=yes
36597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
36604 $as_echo "$ntp_cv_multicast" >&6; }
36605 case "$ntp_cv_multicast" in
36608 $as_echo "#define MCAST 1" >>confdefs.h
36610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
36611 $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
36612 if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
36613 $as_echo_n "(cached) " >&6
36617 *-*-netbsd*|*-*-*linux*)
36618 ntp_cv_typeof_ip_multicast_loop=u_int
36621 ntp_cv_typeof_ip_multicast_loop=u_char
36627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
36628 $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
36630 cat >>confdefs.h <<_ACEOF
36631 #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
36636 # Check whether --enable-getifaddrs was given.
36637 if test "${enable_getifaddrs+set}" = set; then :
36638 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
36640 want_getifaddrs="yes"
36645 case $want_getifaddrs in
36647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
36648 $as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
36650 case $want_getifaddrs in
36655 LIBS="$LDADD_LIBNTP $LIBS"
36656 for ac_func in getifaddrs
36658 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
36659 if test "x$ac_cv_func_getifaddrs" = xyes; then :
36660 cat >>confdefs.h <<_ACEOF
36661 #define HAVE_GETIFADDRS 1
36668 { SAVED_LIBS=; unset SAVED_LIBS;}
36673 # Check for if_nametoindex() for IPv6 scoped addresses support
36677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
36678 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
36679 if ${ac_cv_search_if_nametoindex+:} false; then :
36680 $as_echo_n "(cached) " >&6
36682 ac_func_search_save_LIBS=$LIBS
36683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36684 /* end confdefs.h. */
36686 /* Override any GCC internal prototype to avoid an error.
36687 Use char because int might match the return type of a GCC
36688 builtin and then its argument prototype would still apply. */
36692 char if_nametoindex ();
36696 return if_nametoindex ();
36701 for ac_lib in '' ipv6; do
36702 if test -z "$ac_lib"; then
36703 ac_res="none required"
36706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
36708 if ac_fn_c_try_link "$LINENO"; then :
36709 ac_cv_search_if_nametoindex=$ac_res
36711 rm -f core conftest.err conftest.$ac_objext \
36713 if ${ac_cv_search_if_nametoindex+:} false; then :
36717 if ${ac_cv_search_if_nametoindex+:} false; then :
36720 ac_cv_search_if_nametoindex=no
36722 rm conftest.$ac_ext
36723 LIBS=$ac_func_search_save_LIBS
36725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
36726 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
36727 ac_res=$ac_cv_search_if_nametoindex
36728 if test "$ac_res" != no; then :
36729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36735 LIBS="$LDADD_LIBNTP $LIBS"
36736 for ac_func in if_nametoindex
36738 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
36739 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
36740 cat >>confdefs.h <<_ACEOF
36741 #define HAVE_IF_NAMETOINDEX 1
36748 { SAVED_LIBS=; unset SAVED_LIBS;}
36749 case "$ac_cv_func_if_nametoindex" in
36752 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
36760 # Look for a sysctl call to get the list of network interfaces.
36762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
36763 $as_echo_n "checking for interface list sysctl... " >&6; }
36764 if ${ntp_cv_iflist_sysctl+:} false; then :
36765 $as_echo_n "(cached) " >&6
36767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36768 /* end confdefs.h. */
36770 #include <sys/param.h>
36771 #include <sys/sysctl.h>
36772 #include <sys/socket.h>
36773 #ifndef NET_RT_IFLIST
36778 if ac_fn_c_try_cpp "$LINENO"; then :
36779 ntp_cv_iflist_sysctl=yes
36781 ntp_cv_iflist_sysctl=no
36784 rm -f conftest.err conftest.i conftest.$ac_ext
36787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
36788 $as_echo "$ntp_cv_iflist_sysctl" >&6; }
36789 case "$ntp_cv_iflist_sysctl" in
36792 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
36798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
36799 $as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
36800 # Check whether --enable-saveconfig was given.
36801 if test "${enable_saveconfig+set}" = set; then :
36802 enableval=$enable_saveconfig; ntp_ok=$enableval
36808 ntp_saveconfig_enabled=0
36811 ntp_saveconfig_enabled=1
36813 $as_echo "#define SAVECONFIG 1" >>confdefs.h
36817 if test x$ntp_saveconfig_enabled = x1; then
36818 SAVECONFIG_ENABLED_TRUE=
36819 SAVECONFIG_ENABLED_FALSE='#'
36821 SAVECONFIG_ENABLED_TRUE='#'
36822 SAVECONFIG_ENABLED_FALSE=
36825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
36826 $as_echo "$ntp_ok" >&6; }
36830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
36831 $as_echo_n "checking if we want the experimental leap smear code... " >&6; }
36832 # Check whether --enable-leap-smear was given.
36833 if test "${enable_leap_smear+set}" = set; then :
36834 enableval=$enable_leap_smear; ntp_ok=$enableval
36840 ntp_leap_smear_enabled=0
36843 ntp_leap_smear_enabled=1
36845 $as_echo "#define LEAP_SMEAR 1" >>confdefs.h
36848 HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0"
36851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
36852 $as_echo "$ntp_ok" >&6; }
36855 # We may not need have_unity
36857 # Extract the first word of "ruby", so it can be a program name with args.
36858 set dummy ruby; ac_word=$2
36859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36860 $as_echo_n "checking for $ac_word... " >&6; }
36861 if ${ac_cv_path_PATH_RUBY+:} false; then :
36862 $as_echo_n "(cached) " >&6
36866 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
36869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36870 for as_dir in $PATH
36873 test -z "$as_dir" && as_dir=.
36874 for ac_exec_ext in '' $ac_executable_extensions; do
36875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36876 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
36877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36887 PATH_RUBY=$ac_cv_path_PATH_RUBY
36888 if test -n "$PATH_RUBY"; then
36889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
36890 $as_echo "$PATH_RUBY" >&6; }
36892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36893 $as_echo "no" >&6; }
36897 case "$PATH_RUBY" in
36901 *) PATH_RUBY="false"
36904 # We may not need UNITYBUILD_AVAILABLE
36905 if $have_unity; then
36906 UNITYBUILD_AVAILABLE_TRUE=
36907 UNITYBUILD_AVAILABLE_FALSE='#'
36909 UNITYBUILD_AVAILABLE_TRUE='#'
36910 UNITYBUILD_AVAILABLE_FALSE=
36919 # Check whether --with-gtest was given.
36920 if test "${with_gtest+set}" = set; then :
36921 withval=$with_gtest; try_gtest=$withval
36927 case "$try_gtest" in
36929 # Extract the first word of "gtest-config", so it can be a program name with args.
36930 set dummy gtest-config; ac_word=$2
36931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36932 $as_echo_n "checking for $ac_word... " >&6; }
36933 if ${ac_cv_path_GTEST_CONFIG+:} false; then :
36934 $as_echo_n "(cached) " >&6
36936 case $GTEST_CONFIG in
36938 ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
36941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36942 for as_dir in $PATH
36945 test -z "$as_dir" && as_dir=.
36946 for ac_exec_ext in '' $ac_executable_extensions; do
36947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36948 ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36959 GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
36960 if test -n "$GTEST_CONFIG"; then
36961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
36962 $as_echo "$GTEST_CONFIG" >&6; }
36964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36965 $as_echo "no" >&6; }
36969 { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
36970 case x${GTEST_CONFIG} in
36973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
36974 $as_echo_n "checking gtest version... " >&6; }
36975 gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
36976 case "$gtest_version_test" in
36980 GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
36981 GTEST_LIBS=`$GTEST_CONFIG --libs`
36982 GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
36983 GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`
36991 gtest_version=`$GTEST_CONFIG --version`
36994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
36995 $as_echo "($gtest_version) ok" >&6; }
36997 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
36998 $as_echo "($gtest_version) not ok" >&6; }
37001 { gtest_version_test=; unset gtest_version_test;}
37002 { gtest_version=; unset gtest_version;}
37006 GTEST_AVAILABLE_TRUE=
37007 GTEST_AVAILABLE_FALSE='#'
37009 GTEST_AVAILABLE_TRUE='#'
37010 GTEST_AVAILABLE_FALSE=
37022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
37023 $as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
37024 # Check whether --enable-problem-tests was given.
37025 if test "${enable_problem_tests+set}" = set; then :
37026 enableval=$enable_problem_tests; ntp_ept=$enableval
37032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5
37033 $as_echo "$ntp_ept" >&6; }
37035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5
37036 $as_echo_n "checking if we can run test-ntp_restrict... " >&6; }
37037 ntp_test_ntp_restrict="no"
37038 case "$ntp_ept:$cross:$host" in
37039 no:0:*-*-freebsd6.4) ;;
37040 no:0:*-*-hpux11.23*) ;;
37041 no:0:*-*-solaris*) ;;
37042 *) ntp_test_ntp_restrict="yes" ;;
37044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
37045 $as_echo "$ntp_test_ntp_restrict" >&6; }
37046 if test x$ntp_test_ntp_restrict = xyes; then
37047 BUILD_TEST_NTP_RESTRICT_TRUE=
37048 BUILD_TEST_NTP_RESTRICT_FALSE='#'
37050 BUILD_TEST_NTP_RESTRICT_TRUE='#'
37051 BUILD_TEST_NTP_RESTRICT_FALSE=
37055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5
37056 $as_echo_n "checking if we can run test-ntp_scanner... " >&6; }
37057 ntp_test_ntp_scanner="no"
37058 case "$ntp_ept:$cross:$host" in
37059 no:0:*-*-freebsd6.4) ;;
37060 no:0:*-*-solaris*) ;;
37061 *) ntp_test_ntp_scanner="yes" ;;
37063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
37064 $as_echo "$ntp_test_ntp_scanner" >&6; }
37065 if test x$ntp_test_ntp_scanner = xyes; then
37066 BUILD_TEST_NTP_SCANNER_TRUE=
37067 BUILD_TEST_NTP_SCANNER_FALSE='#'
37069 BUILD_TEST_NTP_SCANNER_TRUE='#'
37070 BUILD_TEST_NTP_SCANNER_FALSE=
37074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5
37075 $as_echo_n "checking if we can run test-ntp_signd... " >&6; }
37076 ntp_test_ntp_signd="no"
37077 case "$ntp_ept:$cross:$host" in
37078 no:0:*-*-freebsd6.4) ;;
37079 no:0:*-*-solaris*) ;;
37080 *) ntp_test_ntp_signd="yes" ;;
37082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
37083 $as_echo "$ntp_test_ntp_signd" >&6; }
37084 if test x$ntp_test_ntp_signd = xyes; then
37085 BUILD_TEST_NTP_SIGND_TRUE=
37086 BUILD_TEST_NTP_SIGND_FALSE='#'
37088 BUILD_TEST_NTP_SIGND_TRUE='#'
37089 BUILD_TEST_NTP_SIGND_FALSE=
37099 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
37100 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
37101 eval ac_define_dir="\"$sysconfdir\""
37102 eval ac_define_dir="\"$ac_define_dir\""
37103 NTP_KEYSDIR="$ac_define_dir"
37106 cat >>confdefs.h <<_ACEOF
37107 #define NTP_KEYSDIR "$ac_define_dir"
37110 test "$prefix_NONE" && prefix=NONE
37111 test "$exec_prefix_NONE" && exec_prefix=NONE
37114 ac_config_files="$ac_config_files Makefile"
37116 ac_config_files="$ac_config_files adjtimed/Makefile"
37118 ac_config_files="$ac_config_files clockstuff/Makefile"
37120 ac_config_files="$ac_config_files include/Makefile"
37122 ac_config_files="$ac_config_files include/isc/Makefile"
37124 ac_config_files="$ac_config_files kernel/Makefile"
37126 ac_config_files="$ac_config_files kernel/sys/Makefile"
37128 ac_config_files="$ac_config_files libntp/Makefile"
37130 ac_config_files="$ac_config_files libparse/Makefile"
37132 ac_config_files="$ac_config_files ntpd/Makefile"
37134 ac_config_files="$ac_config_files ntpd/complete.conf"
37136 ac_config_files="$ac_config_files ntpdate/Makefile"
37138 ac_config_files="$ac_config_files ntpdc/Makefile"
37140 ac_config_files="$ac_config_files ntpdc/nl.pl"
37142 ac_config_files="$ac_config_files ntpq/Makefile"
37144 ac_config_files="$ac_config_files ntpsnmpd/Makefile"
37146 ac_config_files="$ac_config_files parseutil/Makefile"
37148 ac_config_files="$ac_config_files scripts/Makefile"
37150 ac_config_files="$ac_config_files scripts/build/Makefile"
37152 ac_config_files="$ac_config_files scripts/build/mkver"
37154 ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
37156 ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
37158 ac_config_files="$ac_config_files scripts/lib/Makefile"
37160 ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
37162 ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
37164 ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
37166 ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
37168 ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
37170 ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
37172 ac_config_files="$ac_config_files scripts/ntpver"
37174 ac_config_files="$ac_config_files scripts/plot_summary"
37176 ac_config_files="$ac_config_files scripts/summary"
37178 ac_config_files="$ac_config_files scripts/update-leap/Makefile"
37180 ac_config_files="$ac_config_files scripts/update-leap/update-leap"
37182 ac_config_files="$ac_config_files tests/Makefile"
37184 ac_config_files="$ac_config_files tests/bug-2803/Makefile"
37186 ac_config_files="$ac_config_files tests/libntp/Makefile"
37188 ac_config_files="$ac_config_files tests/ntpd/Makefile"
37190 ac_config_files="$ac_config_files tests/ntpq/Makefile"
37192 ac_config_files="$ac_config_files tests/sandbox/Makefile"
37194 ac_config_files="$ac_config_files tests/sec-2853/Makefile"
37196 ac_config_files="$ac_config_files util/Makefile"
37199 perllibdir="${datadir}/ntp/lib"
37203 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
37204 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
37205 eval ac_define_dir="\"$perllibdir\""
37206 eval ac_define_dir="\"$ac_define_dir\""
37207 PERLLIBDIR="$ac_define_dir"
37210 cat >>confdefs.h <<_ACEOF
37211 #define PERLLIBDIR "$ac_define_dir"
37214 test "$prefix_NONE" && prefix=NONE
37215 test "$exec_prefix_NONE" && exec_prefix=NONE
37218 calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"
37220 ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"
37222 ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"
37224 ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"
37226 summary_opts="$srcdir/scripts/summary-opts"
37228 plot_summary_opts="$srcdir/scripts/plot_summary-opts"
37233 subdirs="$subdirs sntp"
37236 cat >confcache <<\_ACEOF
37237 # This file is a shell script that caches the results of configure
37238 # tests run on this system so they can be shared between configure
37239 # scripts and configure runs, see configure's option --config-cache.
37240 # It is not useful on other systems. If it contains results you don't
37241 # want to keep, you may remove or edit it.
37243 # config.status only pays attention to the cache file if you give it
37244 # the --recheck option to rerun configure.
37246 # `ac_cv_env_foo' variables (set or unset) will be overridden when
37247 # loading this file, other *unset* `ac_cv_foo' will be assigned the
37248 # following values.
37252 # The following way of writing the cache mishandles newlines in values,
37253 # but we know of no workaround that is simple, portable, and efficient.
37254 # So, we kill variables containing newlines.
37255 # Ultrix sh set writes to stderr and can't be redirected directly,
37256 # and sets the high bit in the cache file unless we assign to the vars.
37258 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37259 eval ac_val=\$$ac_var
37263 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
37264 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
37267 _ | IFS | as_nl) ;; #(
37268 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
37269 *) { eval $ac_var=; unset $ac_var;} ;;
37275 case $as_nl`(ac_space=' '; set) 2>&1` in #(
37276 *${as_nl}ac_space=\ *)
37277 # `set' does not quote correctly, so add quotes: double-quote
37278 # substitution turns \\\\ into \\, and sed turns \\ into \.
37281 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37284 # `set' quotes correctly as required by POSIX, so do not add quotes.
37285 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37294 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37296 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37298 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37299 if test -w "$cache_file"; then
37300 if test "x$cache_file" != "x/dev/null"; then
37301 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
37302 $as_echo "$as_me: updating cache $cache_file" >&6;}
37303 if test ! -f "$cache_file" || test -h "$cache_file"; then
37304 cat confcache >"$cache_file"
37306 case $cache_file in #(
37308 mv -f confcache "$cache_file"$$ &&
37309 mv -f "$cache_file"$$ "$cache_file" ;; #(
37311 mv -f confcache "$cache_file" ;;
37316 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
37317 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37322 test "x$prefix" = xNONE && prefix=$ac_default_prefix
37323 # Let make expand exec_prefix.
37324 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37326 DEFS=-DHAVE_CONFIG_H
37331 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37332 # 1. Remove the extension, and $U if already installed.
37333 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37334 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
37335 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
37336 # will be set to the directory where LIBOBJS objects are built.
37337 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37338 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
37340 LIBOBJS=$ac_libobjs
37342 LTLIBOBJS=$ac_ltlibobjs
37345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
37346 $as_echo_n "checking that generated files are newer than configure... " >&6; }
37347 if test -n "$am_sleep_pid"; then
37348 # Hide warnings about reused PIDs.
37349 wait $am_sleep_pid 2>/dev/null
37351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
37352 $as_echo "done" >&6; }
37353 if test -n "$EXEEXT"; then
37355 am__EXEEXT_FALSE='#'
37357 am__EXEEXT_TRUE='#'
37361 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37362 as_fn_error $? "conditional \"AMDEP\" was never defined.
37363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37365 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37366 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37369 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37370 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37374 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
37375 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
37376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37378 if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
37379 as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
37380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37382 if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
37383 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
37384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37386 if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
37387 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
37388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37390 if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
37391 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
37392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37394 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
37395 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
37396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37398 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
37399 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
37400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37402 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
37403 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
37404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37406 if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
37407 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
37408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37410 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
37411 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
37412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37414 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
37415 as_fn_error $? "conditional \"PTHREADS\" was never defined.
37416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37418 if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
37419 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
37420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37422 if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
37423 as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
37424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37426 if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
37427 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
37428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37430 if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
37431 as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
37432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37434 if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then
37435 as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined.
37436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37438 if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then
37439 as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined.
37440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37442 if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then
37443 as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined.
37444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37447 : "${CONFIG_STATUS=./config.status}"
37449 ac_clean_files_save=$ac_clean_files
37450 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37451 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
37452 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
37454 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
37456 # Generated by $as_me.
37457 # Run this file to recreate the current configuration.
37458 # Compiler output produced by configure, useful for debugging
37459 # configure, is in config.log if it exists.
37462 ac_cs_recheck=false
37465 SHELL=\${CONFIG_SHELL-$SHELL}
37468 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
37469 ## -------------------- ##
37470 ## M4sh Initialization. ##
37471 ## -------------------- ##
37473 # Be more Bourne compatible
37474 DUALCASE=1; export DUALCASE # for MKS sh
37475 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
37478 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37479 # is contrary to our usage. Disable this feature.
37480 alias -g '${1+"$@"}'='"$@"'
37481 setopt NO_GLOB_SUBST
37483 case `(set -o) 2>/dev/null` in #(
37495 # Printing a long string crashes Solaris 7 /usr/bin/printf.
37496 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
37497 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37498 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
37499 # Prefer a ksh shell builtin over an external printf program on Solaris,
37500 # but without wasting forks for bash or zsh.
37501 if test -z "$BASH_VERSION$ZSH_VERSION" \
37502 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
37503 as_echo='print -r --'
37504 as_echo_n='print -rn --'
37505 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
37506 as_echo='printf %s\n'
37507 as_echo_n='printf %s'
37509 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
37510 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
37511 as_echo_n='/usr/ucb/echo -n'
37513 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
37514 as_echo_n_body='eval
37518 expr "X$arg" : "X\\(.*\\)$as_nl";
37519 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
37521 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
37523 export as_echo_n_body
37524 as_echo_n='sh -c $as_echo_n_body as_echo'
37526 export as_echo_body
37527 as_echo='sh -c $as_echo_body as_echo'
37530 # The user is always right.
37531 if test "${PATH_SEPARATOR+set}" != set; then
37533 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37534 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37541 # We need space, tab and new line, in precisely that order. Quoting is
37542 # there to prevent editors from complaining about space-tab.
37543 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
37544 # splitting by setting IFS to empty value.)
37547 # Find who we are. Look in the path if we contain no directory separator.
37550 *[\\/]* ) as_myself=$0 ;;
37551 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37552 for as_dir in $PATH
37555 test -z "$as_dir" && as_dir=.
37556 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37562 # We did not find ourselves, most probably we were run as `sh COMMAND'
37563 # in which case we are not to be found in the path.
37564 if test "x$as_myself" = x; then
37567 if test ! -f "$as_myself"; then
37568 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37572 # Unset variables that we do not need and which cause bugs (e.g. in
37573 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
37574 # suppresses any "Segmentation fault" message there. '((' could
37575 # trigger a bug in pdksh 5.2.14.
37576 for as_var in BASH_ENV ENV MAIL MAILPATH
37577 do eval test x\${$as_var+set} = xset \
37578 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
37591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37594 # as_fn_error STATUS ERROR [LINENO LOG_FD]
37595 # ----------------------------------------
37596 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37597 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37598 # script with STATUS, using 1 if that was 0.
37601 as_status=$1; test $as_status -eq 0 && as_status=1
37603 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37604 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
37606 $as_echo "$as_me: error: $2" >&2
37607 as_fn_exit $as_status
37611 # as_fn_set_status STATUS
37612 # -----------------------
37613 # Set $? to STATUS, without forking.
37614 as_fn_set_status ()
37617 } # as_fn_set_status
37619 # as_fn_exit STATUS
37620 # -----------------
37621 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37625 as_fn_set_status $1
37631 # Portably unset VAR.
37634 { eval $1=; unset $1;}
37636 as_unset=as_fn_unset
37637 # as_fn_append VAR VALUE
37638 # ----------------------
37639 # Append the text in VALUE to the end of the definition contained in VAR. Take
37640 # advantage of any shell optimizations that allow amortized linear growth over
37641 # repeated appends, instead of the typical quadratic growth present in naive
37643 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37644 eval 'as_fn_append ()
37655 # as_fn_arith ARG...
37656 # ------------------
37657 # Perform arithmetic evaluation on the ARGs, and store the result in the
37658 # global $as_val. Take advantage of shells that can avoid forks. The arguments
37659 # must be portable across $(()) and expr.
37660 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37661 eval 'as_fn_arith ()
37668 as_val=`expr "$@" || test $? -eq 1`
37673 if expr a : '\(a\)' >/dev/null 2>&1 &&
37674 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37680 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37681 as_basename=basename
37686 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37692 as_me=`$as_basename -- "$0" ||
37693 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37694 X"$0" : 'X\(//\)$' \| \
37695 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37697 sed '/^.*\/\([^/][^/]*\)\/*$/{
37711 # Avoid depending upon Character Ranges.
37712 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37713 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37714 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37715 as_cr_digits='0123456789'
37716 as_cr_alnum=$as_cr_Letters$as_cr_digits
37718 ECHO_C= ECHO_N= ECHO_T=
37719 case `echo -n x` in #(((((
37721 case `echo 'xy\c'` in
37722 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
37724 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
37731 rm -f conf$$ conf$$.exe conf$$.file
37732 if test -d conf$$.dir; then
37733 rm -f conf$$.dir/conf$$.file
37736 mkdir conf$$.dir 2>/dev/null
37738 if (echo >conf$$.file) 2>/dev/null; then
37739 if ln -s conf$$.file conf$$ 2>/dev/null; then
37741 # ... but there are two gotchas:
37742 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37743 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37744 # In both cases, we have to default to `cp -pR'.
37745 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37747 elif ln conf$$.file conf$$ 2>/dev/null; then
37755 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37756 rmdir conf$$.dir 2>/dev/null
37761 # Create "$as_dir" as a directory, including parents if necessary.
37766 -*) as_dir=./$as_dir;;
37768 test -d "$as_dir" || eval $as_mkdir_p || {
37772 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37773 *) as_qdir=$as_dir;;
37775 as_dirs="'$as_qdir' $as_dirs"
37776 as_dir=`$as_dirname -- "$as_dir" ||
37777 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37778 X"$as_dir" : 'X\(//\)[^/]' \| \
37779 X"$as_dir" : 'X\(//\)$' \| \
37780 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37781 $as_echo X"$as_dir" |
37782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37786 /^X\(\/\/\)[^/].*/{
37799 test -d "$as_dir" && break
37801 test -z "$as_dirs" || eval "mkdir $as_dirs"
37802 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
37806 if mkdir -p . 2>/dev/null; then
37807 as_mkdir_p='mkdir -p "$as_dir"'
37809 test -d ./-p && rmdir ./-p
37814 # as_fn_executable_p FILE
37815 # -----------------------
37816 # Test if FILE is an executable regular file.
37817 as_fn_executable_p ()
37819 test -f "$1" && test -x "$1"
37820 } # as_fn_executable_p
37821 as_test_x='test -x'
37822 as_executable_p=as_fn_executable_p
37824 # Sed expression to map a string onto a valid CPP name.
37825 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37827 # Sed expression to map a string onto a valid variable name.
37828 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37832 ## ----------------------------------- ##
37833 ## Main body of $CONFIG_STATUS script. ##
37834 ## ----------------------------------- ##
37836 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
37838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37839 # Save the log message, to keep $0 and so on meaningful, and to
37840 # report actual input values of CONFIG_FILES etc. instead of their
37841 # values after options handling.
37843 This file was extended by ntp $as_me 4.2.8p5, which was
37844 generated by GNU Autoconf 2.69. Invocation command line was
37846 CONFIG_FILES = $CONFIG_FILES
37847 CONFIG_HEADERS = $CONFIG_HEADERS
37848 CONFIG_LINKS = $CONFIG_LINKS
37849 CONFIG_COMMANDS = $CONFIG_COMMANDS
37852 on `(hostname || uname -n) 2>/dev/null | sed 1q`
37857 case $ac_config_files in *"
37858 "*) set x $ac_config_files; shift; ac_config_files=$*;;
37861 case $ac_config_headers in *"
37862 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37867 # Files that config.status was made for.
37868 config_files="$ac_config_files"
37869 config_headers="$ac_config_headers"
37870 config_commands="$ac_config_commands"
37874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37876 \`$as_me' instantiates files and other configuration actions
37877 from templates according to the current configuration. Unless the files
37878 and actions are specified as TAGs, all are instantiated by default.
37880 Usage: $0 [OPTION]... [TAG]...
37882 -h, --help print this help, then exit
37883 -V, --version print version number and configuration settings, then exit
37884 --config print configuration, then exit
37885 -q, --quiet, --silent
37886 do not print progress messages
37887 -d, --debug don't remove temporary files
37888 --recheck update $as_me by reconfiguring in the same conditions
37889 --file=FILE[:TEMPLATE]
37890 instantiate the configuration file FILE
37891 --header=FILE[:TEMPLATE]
37892 instantiate the configuration header FILE
37894 Configuration files:
37897 Configuration headers:
37900 Configuration commands:
37903 Report bugs to <http://bugs.ntp.org./>.
37904 ntp home page: <http://www.ntp.org./>."
37907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37908 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
37910 ntp config.status 4.2.8p5
37911 configured by $0, generated by GNU Autoconf 2.69,
37912 with options \\"\$ac_cs_config\\"
37914 Copyright (C) 2012 Free Software Foundation, Inc.
37915 This config.status script is free software; the Free Software Foundation
37916 gives unlimited permission to copy, distribute and modify it."
37923 test -n "\$AWK" || AWK=awk
37926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37927 # The default lists apply if the user does not specify any file.
37933 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37934 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37938 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37950 # Handling of the options.
37951 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37953 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37954 $as_echo "$ac_cs_version"; exit ;;
37955 --config | --confi | --conf | --con | --co | --c )
37956 $as_echo "$ac_cs_config"; exit ;;
37957 --debug | --debu | --deb | --de | --d | -d )
37959 --file | --fil | --fi | --f )
37962 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37963 '') as_fn_error $? "missing file argument" ;;
37965 as_fn_append CONFIG_FILES " '$ac_optarg'"
37966 ac_need_defaults=false;;
37967 --header | --heade | --head | --hea )
37970 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37972 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
37973 ac_need_defaults=false;;
37975 # Conflict between --help and --header
37976 as_fn_error $? "ambiguous option: \`$1'
37977 Try \`$0 --help' for more information.";;
37978 --help | --hel | -h )
37979 $as_echo "$ac_cs_usage"; exit ;;
37980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37981 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37984 # This is an error.
37985 -*) as_fn_error $? "unrecognized option: \`$1'
37986 Try \`$0 --help' for more information." ;;
37988 *) as_fn_append ac_config_targets " $1"
37989 ac_need_defaults=false ;;
37995 ac_configure_extra_args=
37997 if $ac_cs_silent; then
37999 ac_configure_extra_args="$ac_configure_extra_args --silent"
38003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38004 if \$ac_cs_recheck; then
38005 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
38007 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
38008 CONFIG_SHELL='$SHELL'
38009 export CONFIG_SHELL
38014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38018 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38019 ## Running $as_me. ##
38025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38029 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38032 # The HP-UX ksh and POSIX shell print the target directory to stdout
38033 # if CDPATH is set.
38034 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38036 sed_quote_subst='$sed_quote_subst'
38037 double_quote_subst='$double_quote_subst'
38038 delay_variable_subst='$delay_variable_subst'
38039 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
38040 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
38041 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
38042 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
38043 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
38044 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
38045 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
38046 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
38047 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
38048 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
38049 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
38050 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
38051 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
38052 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
38053 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
38054 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
38055 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
38056 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
38057 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
38058 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
38059 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
38060 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
38061 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
38062 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
38063 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
38064 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
38065 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
38066 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
38067 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
38068 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
38069 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
38070 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
38071 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
38072 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
38073 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
38074 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
38075 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
38076 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
38077 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
38078 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
38079 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
38080 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
38081 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
38082 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
38083 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38084 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38085 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
38086 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
38087 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
38088 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
38089 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
38090 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
38091 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
38092 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
38093 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
38094 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"`'
38095 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
38096 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
38097 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
38098 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
38099 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
38100 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
38101 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
38102 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
38103 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
38104 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
38105 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
38106 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
38107 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
38108 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
38109 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
38110 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
38111 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
38112 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
38113 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38114 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
38115 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
38116 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
38117 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
38118 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
38119 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
38120 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38121 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
38122 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38123 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
38124 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38125 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
38126 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
38127 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
38128 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
38129 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
38130 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
38131 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
38132 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
38133 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
38134 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
38135 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
38136 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
38137 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
38138 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
38139 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
38140 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
38141 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
38142 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
38143 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
38144 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
38145 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
38146 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
38147 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
38148 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
38149 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
38150 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
38151 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
38152 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
38153 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
38154 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
38155 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
38156 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38157 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38158 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
38159 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
38160 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
38161 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
38162 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
38163 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
38164 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
38165 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
38166 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
38167 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
38168 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
38169 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
38170 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
38171 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
38172 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
38173 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
38174 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
38175 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
38176 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
38177 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38178 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38179 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
38180 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
38181 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
38182 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
38183 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
38184 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
38185 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
38186 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
38187 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
38188 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38189 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38190 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
38191 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38192 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38193 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38194 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38195 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38196 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38197 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
38198 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38199 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38200 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38201 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
38202 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
38203 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
38204 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
38205 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
38206 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
38207 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
38208 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
38209 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
38210 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
38211 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38212 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38213 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38214 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38215 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38216 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
38217 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
38218 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
38219 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38220 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38221 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
38222 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
38223 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
38226 LTCFLAGS='$LTCFLAGS'
38227 compiler='$compiler_DEFAULT'
38229 # A function that is used when there is no print builtin or printf.
38230 func_fallback_echo ()
38232 eval 'cat <<_LTECHO_EOF
38237 # Quote evaled strings.
38251 deplibs_check_method \
38256 sharedlib_from_linklib_cmd \
38259 archiver_list_spec \
38265 lt_cv_sys_global_symbol_pipe \
38266 lt_cv_sys_global_symbol_to_cdecl \
38267 lt_cv_sys_global_symbol_to_c_name_address \
38268 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
38269 nm_file_list_spec \
38270 lt_prog_compiler_no_builtin_flag \
38271 lt_prog_compiler_pic \
38272 lt_prog_compiler_wl \
38273 lt_prog_compiler_static \
38274 lt_cv_prog_compiler_c_o \
38283 export_dynamic_flag_spec \
38284 whole_archive_flag_spec \
38285 compiler_needs_object \
38287 allow_undefined_flag \
38288 no_undefined_flag \
38289 hardcode_libdir_flag_spec \
38290 hardcode_libdir_flag_spec_ld \
38291 hardcode_libdir_separator \
38295 variables_saved_for_relink \
38297 library_names_spec \
38299 install_override_mode \
38303 compiler_lib_search_dirs \
38308 compiler_lib_search_path \
38312 lt_prog_compiler_no_builtin_flag_CXX \
38313 lt_prog_compiler_pic_CXX \
38314 lt_prog_compiler_wl_CXX \
38315 lt_prog_compiler_static_CXX \
38316 lt_cv_prog_compiler_c_o_CXX \
38317 export_dynamic_flag_spec_CXX \
38318 whole_archive_flag_spec_CXX \
38319 compiler_needs_object_CXX \
38321 allow_undefined_flag_CXX \
38322 no_undefined_flag_CXX \
38323 hardcode_libdir_flag_spec_CXX \
38324 hardcode_libdir_flag_spec_ld_CXX \
38325 hardcode_libdir_separator_CXX \
38326 exclude_expsyms_CXX \
38327 include_expsyms_CXX \
38328 file_list_spec_CXX \
38329 compiler_lib_search_dirs_CXX \
38330 predep_objects_CXX \
38331 postdep_objects_CXX \
38334 compiler_lib_search_path_CXX; do
38335 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38336 *[\\\\\\\`\\"\\\$]*)
38337 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
38340 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38345 # Double-quote double-evaled strings.
38346 for var in reload_cmds \
38347 old_postinstall_cmds \
38348 old_postuninstall_cmds \
38350 extract_expsyms_cmds \
38351 old_archive_from_new_cmds \
38352 old_archive_from_expsyms_cmds \
38354 archive_expsym_cmds \
38356 module_expsym_cmds \
38357 export_symbols_cmds \
38361 postuninstall_cmds \
38363 sys_lib_search_path_spec \
38364 sys_lib_dlsearch_path_spec \
38366 old_archive_cmds_CXX \
38367 old_archive_from_new_cmds_CXX \
38368 old_archive_from_expsyms_cmds_CXX \
38370 archive_expsym_cmds_CXX \
38372 module_expsym_cmds_CXX \
38373 export_symbols_cmds_CXX \
38375 postlink_cmds_CXX; do
38376 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38377 *[\\\\\\\`\\"\\\$]*)
38378 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
38381 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38386 ac_aux_dir='$ac_aux_dir'
38387 xsi_shell='$xsi_shell'
38388 lt_shell_append='$lt_shell_append'
38390 # See if we are running on zsh, and set the options which allow our
38391 # commands through without removal of \ escapes INIT.
38392 if test -n "\${ZSH_VERSION+set}" ; then
38393 setopt NO_GLOB_SUBST
38399 TIMESTAMP='$TIMESTAMP'
38410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38412 # Handling of arguments.
38413 for ac_config_target in $ac_config_targets
38415 case $ac_config_target in
38416 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
38417 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38418 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
38419 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
38420 "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
38421 "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
38422 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
38423 "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
38424 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
38425 "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
38426 "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
38427 "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
38428 "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
38429 "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
38430 "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
38431 "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
38432 "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
38433 "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
38434 "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
38435 "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
38436 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
38437 "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
38438 "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
38439 "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
38440 "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
38441 "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
38442 "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
38443 "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
38444 "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
38445 "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
38446 "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
38447 "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
38448 "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
38449 "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
38450 "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
38451 "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;;
38452 "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;;
38453 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
38454 "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;;
38455 "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
38456 "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
38457 "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;;
38458 "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;;
38459 "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;;
38460 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
38462 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
38467 # If the user did not use the arguments to specify the items to instantiate,
38468 # then the envvar interface is used. Set only those that are not.
38469 # We use the long form for the default assignment because of an extremely
38470 # bizarre bug on SunOS 4.1.3.
38471 if $ac_need_defaults; then
38472 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38473 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38474 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38477 # Have a temporary directory for convenience. Make it in the build tree
38478 # simply because there is no reason against having it here, and in addition,
38479 # creating and moving files from /tmp can sometimes cause problems.
38480 # Hook for its removal unless debugging.
38481 # Note that there is a small window in which the directory will not be cleaned:
38482 # after its creation but before its name has been assigned to `$tmp'.
38486 trap 'exit_status=$?
38487 : "${ac_tmp:=$tmp}"
38488 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
38490 trap 'as_fn_exit 1' 1 2 13 15
38492 # Create a (secure) tmp directory for tmp files.
38495 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38499 tmp=./conf$$-$RANDOM
38500 (umask 077 && mkdir "$tmp")
38501 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
38504 # Set up the scripts for CONFIG_FILES section.
38505 # No need to generate them if there are no CONFIG_FILES.
38506 # This happens for instance with `./config.status config.h'.
38507 if test -n "$CONFIG_FILES"; then
38509 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
38510 ac_cs_awk_getline=:
38511 ac_cs_awk_pipe_init=
38512 ac_cs_awk_read_file='
38513 while ((getline aline < (F[key])) > 0)
38516 ac_cs_awk_pipe_fini=
38518 ac_cs_awk_getline=false
38519 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
38520 ac_cs_awk_read_file='
38522 print "cat " F[key] " &&"
38523 '$ac_cs_awk_pipe_init
38524 # The final `:' finishes the AND list.
38525 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
38527 ac_cr=`echo X | tr X '\015'`
38528 # On cygwin, bash can eat \r inside `` if the user requested igncr.
38529 # But we know of no other shell where ac_cr would be empty at this
38530 # point, so we can use a bashism as a fallback.
38531 if test "x$ac_cr" = x; then
38532 eval ac_cr=\$\'\\r\'
38534 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38535 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
38538 ac_cs_awk_cr=$ac_cr
38541 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
38544 # Create commands to substitute file output variables.
38546 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
38547 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
38548 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
38551 } >conf$$files.sh &&
38552 . ./conf$$files.sh ||
38553 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38554 rm -f conf$$files.sh
38557 echo "cat >conf$$subs.awk <<_ACEOF" &&
38558 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38560 } >conf$$subs.sh ||
38561 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38562 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
38564 for ac_last_try in false false false false false :; do
38565 . ./conf$$subs.sh ||
38566 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38568 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38569 if test $ac_delim_n = $ac_delim_num; then
38571 elif $ac_last_try; then
38572 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38577 rm -f conf$$subs.sh
38579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38580 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
38584 s/^/S["/; s/!.*/"]=/
38594 s/\(.\{148\}\)..*/\1/
38596 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38601 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38608 s/\(.\{148\}\)..*/\1/
38610 s/["\\]/\\&/g; s/^/"/; s/$/"/
38614 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38619 ' <conf$$subs.awk | sed '
38624 ' >>$CONFIG_STATUS || ac_write_fail=1
38625 rm -f conf$$subs.awk
38626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38628 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
38629 for (key in S) S_is_set[key] = 1
38631 \$ac_cs_awk_pipe_init
38635 nfields = split(line, field, "@")
38637 len = length(field[1])
38638 for (i = 2; i < nfields; i++) {
38640 keylen = length(key)
38641 if (S_is_set[key]) {
38643 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38644 len += length(value) + length(field[++i])
38649 if (nfields == 3 && !substed) {
38651 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
38652 \$ac_cs_awk_read_file
38658 \$ac_cs_awk_pipe_fini
38661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38662 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38663 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38666 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
38667 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38670 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38671 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
38672 # trailing colons and then remove the whole line if VPATH becomes empty
38673 # (actually we leave an empty line to preserve line numbers).
38674 if test "x$srcdir" = x.; then
38675 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
38693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38694 fi # test -n "$CONFIG_FILES"
38696 # Set up the scripts for CONFIG_HEADERS section.
38697 # No need to generate them if there are no CONFIG_HEADERS.
38698 # This happens for instance with `./config.status Makefile'.
38699 if test -n "$CONFIG_HEADERS"; then
38700 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
38704 # Transform confdefs.h into an awk script `defines.awk', embedded as
38705 # here-document in config.status, that substitutes the proper values into
38706 # config.h.in to produce config.h.
38708 # Create a delimiter string that does not exist in confdefs.h, to ease
38709 # handling of long lines.
38711 for ac_last_try in false false :; do
38712 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38713 if test -z "$ac_tt"; then
38715 elif $ac_last_try; then
38716 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
38718 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38722 # For the awk script, D is an array of macro values keyed by name,
38723 # likewise P contains macro parameters if any. Preserve backslash
38724 # newline sequences.
38726 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38728 s/.\{148\}/&'"$ac_delim"'/g
38731 s/^[ ]*#[ ]*define[ ][ ]*/ /
38738 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38740 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
38744 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38745 D["\1"]=" \3\\\\\\n"\\/p
38747 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38752 s/.\{148\}/&'"$ac_delim"'/g
38757 s/["\\]/\\&/g; s/^/"/; s/$/"/p
38760 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38762 ' <confdefs.h | sed '
38763 s/'"$ac_delim"'/"\\\
38764 "/g' >>$CONFIG_STATUS || ac_write_fail=1
38766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38767 for (key in D) D_is_set[key] = 1
38770 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38772 split(line, arg, " ")
38773 if (arg[1] == "#") {
38777 defundef = substr(arg[1], 2)
38780 split(mac1, mac2, "(") #)
38782 prefix = substr(line, 1, index(line, defundef) - 1)
38783 if (D_is_set[macro]) {
38784 # Preserve the white space surrounding the "#".
38785 print prefix "define", macro P[macro] D[macro]
38788 # Replace #undef with comments. This is necessary, for example,
38789 # in the case of _POSIX_SOURCE, which is predefined and required
38790 # on some systems where configure will not decide to define it.
38791 if (defundef == "undef") {
38792 print "/*", prefix defundef, macro, "*/"
38800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38801 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
38802 fi # test -n "$CONFIG_HEADERS"
38805 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
38810 :[FHLC]) ac_mode=$ac_tag; continue;;
38812 case $ac_mode$ac_tag in
38814 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
38815 :[FH]-) ac_tag=-:-;;
38816 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38833 -) ac_f="$ac_tmp/stdin";;
38834 *) # Look for the file first in the build tree, then in the source tree
38835 # (if the path is not absolute). The absolute path cannot be DOS-style,
38836 # because $ac_f cannot contain `:'.
38840 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38842 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
38844 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
38845 as_fn_append ac_file_inputs " '$ac_f'"
38848 # Let's still pretend it is `configure' which instantiates (i.e., don't
38849 # use $as_me), people would be surprised to read:
38850 # /* config.h. Generated by config.status. */
38851 configure_input='Generated from '`
38852 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38854 if test x"$ac_file" != x-; then
38855 configure_input="$ac_file. $configure_input"
38856 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
38857 $as_echo "$as_me: creating $ac_file" >&6;}
38859 # Neutralize special characters interpreted by sed in replacement strings.
38860 case $configure_input in #(
38861 *\&* | *\|* | *\\* )
38862 ac_sed_conf_input=`$as_echo "$configure_input" |
38863 sed 's/[\\\\&|]/\\\\&/g'`;; #(
38864 *) ac_sed_conf_input=$configure_input;;
38868 *:-:* | *:-) cat >"$ac_tmp/stdin" \
38869 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
38874 ac_dir=`$as_dirname -- "$ac_file" ||
38875 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38876 X"$ac_file" : 'X\(//\)[^/]' \| \
38877 X"$ac_file" : 'X\(//\)$' \| \
38878 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38879 $as_echo X"$ac_file" |
38880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38884 /^X\(\/\/\)[^/].*/{
38897 as_dir="$ac_dir"; as_fn_mkdir_p
38901 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38903 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38904 # A ".." for each directory in $ac_dir_suffix.
38905 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38906 case $ac_top_builddir_sub in
38907 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38908 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38911 ac_abs_top_builddir=$ac_pwd
38912 ac_abs_builddir=$ac_pwd$ac_dir_suffix
38913 # for backward compatibility:
38914 ac_top_builddir=$ac_top_build_prefix
38917 .) # We are building in place.
38919 ac_top_srcdir=$ac_top_builddir_sub
38920 ac_abs_top_srcdir=$ac_pwd ;;
38921 [\\/]* | ?:[\\/]* ) # Absolute name.
38922 ac_srcdir=$srcdir$ac_dir_suffix;
38923 ac_top_srcdir=$srcdir
38924 ac_abs_top_srcdir=$srcdir ;;
38925 *) # Relative name.
38926 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38927 ac_top_srcdir=$ac_top_build_prefix$srcdir
38928 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38930 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38940 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38941 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38943 ac_MKDIR_P=$MKDIR_P
38945 [\\/$]* | ?:[\\/]* ) ;;
38946 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38951 # If the template does not know about datarootdir, expand it.
38952 # FIXME: This hack should be removed a few years after 2.60.
38953 ac_datarootdir_hack=; ac_datarootdir_seen=
38964 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38965 *datarootdir*) ac_datarootdir_seen=yes;;
38966 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38968 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38971 ac_datarootdir_hack='
38972 s&@datadir@&$datadir&g
38973 s&@docdir@&$docdir&g
38974 s&@infodir@&$infodir&g
38975 s&@localedir@&$localedir&g
38976 s&@mandir@&$mandir&g
38977 s&\\\${datarootdir}&$datarootdir&g' ;;
38981 # Neutralize VPATH when `$srcdir' = `.'.
38982 # Shell code in configure.ac might set extrasub.
38983 # FIXME: do we really want to maintain this feature?
38984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38985 ac_sed_extra="$ac_vpsub
38988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38990 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38991 s|@configure_input@|$ac_sed_conf_input|;t t
38992 s&@top_builddir@&$ac_top_builddir_sub&;t t
38993 s&@top_build_prefix@&$ac_top_build_prefix&;t t
38994 s&@srcdir@&$ac_srcdir&;t t
38995 s&@abs_srcdir@&$ac_abs_srcdir&;t t
38996 s&@top_srcdir@&$ac_top_srcdir&;t t
38997 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38998 s&@builddir@&$ac_builddir&;t t
38999 s&@abs_builddir@&$ac_abs_builddir&;t t
39000 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39001 s&@INSTALL@&$ac_INSTALL&;t t
39002 s&@MKDIR_P@&$ac_MKDIR_P&;t t
39003 $ac_datarootdir_hack
39005 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
39006 if $ac_cs_awk_getline; then
39007 $AWK -f "$ac_tmp/subs.awk"
39009 $AWK -f "$ac_tmp/subs.awk" | $SHELL
39011 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39013 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39014 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
39015 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
39016 "$ac_tmp/out"`; test -z "$ac_out"; } &&
39017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39018 which seems to be undefined. Please make sure it is defined" >&5
39019 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39020 which seems to be undefined. Please make sure it is defined" >&2;}
39022 rm -f "$ac_tmp/stdin"
39024 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
39025 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39033 if test x"$ac_file" != x-; then
39035 $as_echo "/* $configure_input */" \
39036 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
39037 } >"$ac_tmp/config.h" \
39038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39039 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
39040 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
39041 $as_echo "$as_me: $ac_file is unchanged" >&6;}
39044 mv "$ac_tmp/config.h" "$ac_file" \
39045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39048 $as_echo "/* $configure_input */" \
39049 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
39050 || as_fn_error $? "could not create -" "$LINENO" 5
39052 # Compute "$ac_file"'s index in $config_headers.
39055 for _am_header in $config_headers :; do
39056 case $_am_header in
39057 $_am_arg | $_am_arg:* )
39060 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39063 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
39064 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39065 X"$_am_arg" : 'X\(//\)[^/]' \| \
39066 X"$_am_arg" : 'X\(//\)$' \| \
39067 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
39068 $as_echo X"$_am_arg" |
39069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39073 /^X\(\/\/\)[^/].*/{
39085 s/.*/./; q'`/stamp-h$_am_stamp_count
39088 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39089 $as_echo "$as_me: executing $ac_file commands" >&6;}
39094 case $ac_file$ac_mode in
39095 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
39096 # Older Autoconf quotes --file arguments for eval, but not when files
39097 # are listed without --file. Let's play safe and only enable the eval
39098 # if we detect the quoting.
39099 case $CONFIG_FILES in
39100 *\'*) eval set x "$CONFIG_FILES" ;;
39101 *) set x $CONFIG_FILES ;;
39106 # Strip MF so we end up with the name of the file.
39107 mf=`echo "$mf" | sed -e 's/:.*$//'`
39108 # Check whether this is an Automake generated Makefile or not.
39109 # We used to match only the files named 'Makefile.in', but
39110 # some people rename them; so instead we look at the file content.
39111 # Grep'ing the first line is not enough: some people post-process
39112 # each Makefile.in and add a new line on top of each file to say so.
39113 # Grep'ing the whole file is not good either: AIX grep has a line
39114 # limit of 2048, but all sed's we know have understand at least 4000.
39115 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
39116 dirpart=`$as_dirname -- "$mf" ||
39117 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39118 X"$mf" : 'X\(//\)[^/]' \| \
39119 X"$mf" : 'X\(//\)$' \| \
39120 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39126 /^X\(\/\/\)[^/].*/{
39142 # Extract the definition of DEPDIR, am__include, and am__quote
39143 # from the Makefile without running 'make'.
39144 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39145 test -z "$DEPDIR" && continue
39146 am__include=`sed -n 's/^am__include = //p' < "$mf"`
39147 test -z "$am__include" && continue
39148 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39149 # Find all dependency output files, they are included files with
39150 # $(DEPDIR) in their names. We invoke sed twice because it is the
39151 # simplest approach to changing $(DEPDIR) to its actual value in the
39153 for file in `sed -n "
39154 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39155 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
39156 # Make sure the directory exists.
39157 test -f "$dirpart/$file" && continue
39158 fdir=`$as_dirname -- "$file" ||
39159 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39160 X"$file" : 'X\(//\)[^/]' \| \
39161 X"$file" : 'X\(//\)$' \| \
39162 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39163 $as_echo X"$file" |
39164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39168 /^X\(\/\/\)[^/].*/{
39181 as_dir=$dirpart/$fdir; as_fn_mkdir_p
39182 # echo "creating $dirpart/$file"
39183 echo '# dummy' > "$dirpart/$file"
39190 # See if we are running on zsh, and set the options which allow our
39191 # commands through without removal of \ escapes.
39192 if test -n "${ZSH_VERSION+set}" ; then
39193 setopt NO_GLOB_SUBST
39196 cfgfile="${ofile}T"
39197 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
39200 cat <<_LT_EOF >> "$cfgfile"
39203 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
39204 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
39205 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
39206 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
39208 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
39209 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
39211 # Written by Gordon Matzigkeit, 1996
39213 # This file is part of GNU Libtool.
39215 # GNU Libtool is free software; you can redistribute it and/or
39216 # modify it under the terms of the GNU General Public License as
39217 # published by the Free Software Foundation; either version 2 of
39218 # the License, or (at your option) any later version.
39220 # As a special exception to the GNU General Public License,
39221 # if you distribute this file as part of a program or library that
39222 # is built using GNU Libtool, you may include this file under the
39223 # same distribution terms that you use for the rest of that program.
39225 # GNU Libtool is distributed in the hope that it will be useful,
39226 # but WITHOUT ANY WARRANTY; without even the implied warranty of
39227 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39228 # GNU General Public License for more details.
39230 # You should have received a copy of the GNU General Public License
39231 # along with GNU Libtool; see the file COPYING. If not, a copy
39232 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
39233 # obtained by writing to the Free Software Foundation, Inc.,
39234 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
39237 # The names of the tagged configurations supported by this script.
39238 available_tags="CXX "
39240 # ### BEGIN LIBTOOL CONFIG
39242 # Whether or not to build shared libraries.
39243 build_libtool_libs=$enable_shared
39245 # Which release of libtool.m4 was used?
39246 macro_version=$macro_version
39247 macro_revision=$macro_revision
39249 # Whether or not to build static libraries.
39250 build_old_libs=$enable_static
39252 # What type of objects to build.
39255 # Whether or not to optimize for fast installation.
39256 fast_install=$enable_fast_install
39258 # Shell to use when invoking shell scripts.
39261 # An echo program that protects backslashes.
39265 host_alias=$host_alias
39269 # The build system.
39270 build_alias=$build_alias
39274 # A sed program that does not truncate output.
39277 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
39278 Xsed="\$SED -e 1s/^X//"
39280 # A grep program that handles long lines.
39286 # A literal string matcher.
39289 # A BSD- or MS-compatible name lister.
39292 # Whether we need soft or hard links.
39295 # What is the maximum length of a command?
39296 max_cmd_len=$max_cmd_len
39298 # Object file suffix (normally "o").
39301 # Executable file suffix (normally "").
39304 # whether the shell understands "unset".
39307 # turn spaces into newlines.
39310 # turn newlines into spaces.
39313 # convert \$build file names to \$host format.
39314 to_host_file_cmd=$lt_cv_to_host_file_cmd
39316 # convert \$build files to toolchain format.
39317 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
39319 # An object symbol dumper.
39320 OBJDUMP=$lt_OBJDUMP
39322 # Method to check whether dependent libraries are shared objects.
39323 deplibs_check_method=$lt_deplibs_check_method
39325 # Command to use when deplibs_check_method = "file_magic".
39326 file_magic_cmd=$lt_file_magic_cmd
39328 # How to find potential files when deplibs_check_method = "file_magic".
39329 file_magic_glob=$lt_file_magic_glob
39331 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
39332 want_nocaseglob=$lt_want_nocaseglob
39334 # DLL creation program.
39335 DLLTOOL=$lt_DLLTOOL
39337 # Command to associate shared and link libraries.
39338 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
39343 # Flags to create an archive.
39344 AR_FLAGS=$lt_AR_FLAGS
39346 # How to feed a file listing to the archiver.
39347 archiver_list_spec=$lt_archiver_list_spec
39349 # A symbol stripping program.
39352 # Commands used to install an old-style archive.
39354 old_postinstall_cmds=$lt_old_postinstall_cmds
39355 old_postuninstall_cmds=$lt_old_postuninstall_cmds
39357 # Whether to use a lock for old archive extraction.
39358 lock_old_archive_extraction=$lock_old_archive_extraction
39363 # LTCC compiler flags.
39364 LTCFLAGS=$lt_CFLAGS
39366 # Take the output of nm and produce a listing of raw symbols and C names.
39367 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39369 # Transform the output of nm in a proper C declaration.
39370 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39372 # Transform the output of nm in a C name address pair.
39373 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39375 # Transform the output of nm in a C name address pair when lib prefix is needed.
39376 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
39378 # Specify filename containing input files for \$NM.
39379 nm_file_list_spec=$lt_nm_file_list_spec
39381 # The root where to search for dependent libraries,and in which our libraries should be installed.
39382 lt_sysroot=$lt_sysroot
39384 # The name of the directory that contains temporary libtool files.
39387 # Used to examine libraries when file_magic_cmd begins with "file".
39388 MAGIC_CMD=$MAGIC_CMD
39390 # Must we lock files when doing compilation?
39391 need_locks=$lt_need_locks
39394 MANIFEST_TOOL=$lt_MANIFEST_TOOL
39396 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
39397 DSYMUTIL=$lt_DSYMUTIL
39399 # Tool to change global to local symbols on Mac OS X.
39402 # Tool to manipulate fat objects and archives on Mac OS X.
39405 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
39408 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
39409 OTOOL64=$lt_OTOOL64
39411 # Old archive suffix (normally "a").
39414 # Shared library suffix (normally ".so").
39415 shrext_cmds=$lt_shrext_cmds
39417 # The commands to extract the exported symbol list from a shared archive.
39418 extract_expsyms_cmds=$lt_extract_expsyms_cmds
39420 # Variables whose values should be saved in libtool wrapper scripts and
39421 # restored at link time.
39422 variables_saved_for_relink=$lt_variables_saved_for_relink
39424 # Do we need the "lib" prefix for modules?
39425 need_lib_prefix=$need_lib_prefix
39427 # Do we need a version for libraries?
39428 need_version=$need_version
39430 # Library versioning type.
39431 version_type=$version_type
39433 # Shared library runtime path variable.
39434 runpath_var=$runpath_var
39436 # Shared library path variable.
39437 shlibpath_var=$shlibpath_var
39439 # Is shlibpath searched before the hard-coded library search path?
39440 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39442 # Format of library name prefix.
39443 libname_spec=$lt_libname_spec
39445 # List of archive names. First name is the real one, the rest are links.
39446 # The last name is the one that the linker finds with -lNAME
39447 library_names_spec=$lt_library_names_spec
39449 # The coded name of the library, if different from the real name.
39450 soname_spec=$lt_soname_spec
39452 # Permission mode override for installation of shared libraries.
39453 install_override_mode=$lt_install_override_mode
39455 # Command to use after installation of a shared archive.
39456 postinstall_cmds=$lt_postinstall_cmds
39458 # Command to use after uninstallation of a shared archive.
39459 postuninstall_cmds=$lt_postuninstall_cmds
39461 # Commands used to finish a libtool library installation in a directory.
39462 finish_cmds=$lt_finish_cmds
39464 # As "finish_cmds", except a single script fragment to be evaled but
39466 finish_eval=$lt_finish_eval
39468 # Whether we should hardcode library paths into libraries.
39469 hardcode_into_libs=$hardcode_into_libs
39471 # Compile-time system search path for libraries.
39472 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39474 # Run-time system search path for libraries.
39475 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
39477 # Whether dlopen is supported.
39478 dlopen_support=$enable_dlopen
39480 # Whether dlopen of programs is supported.
39481 dlopen_self=$enable_dlopen_self
39483 # Whether dlopen of statically linked programs is supported.
39484 dlopen_self_static=$enable_dlopen_self_static
39486 # Commands to strip libraries.
39487 old_striplib=$lt_old_striplib
39488 striplib=$lt_striplib
39491 # The linker used to build libraries.
39494 # How to create reloadable object files.
39495 reload_flag=$lt_reload_flag
39496 reload_cmds=$lt_reload_cmds
39498 # Commands used to build an old-style archive.
39499 old_archive_cmds=$lt_old_archive_cmds
39501 # A language specific compiler.
39504 # Is the compiler the GNU compiler?
39507 # Compiler flag to turn off builtin functions.
39508 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39510 # Additional compiler flags for building library objects.
39511 pic_flag=$lt_lt_prog_compiler_pic
39513 # How to pass a linker flag through the compiler.
39514 wl=$lt_lt_prog_compiler_wl
39516 # Compiler flag to prevent dynamic linking.
39517 link_static_flag=$lt_lt_prog_compiler_static
39519 # Does compiler simultaneously support -c and -o options?
39520 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39522 # Whether or not to add -lc for building shared libraries.
39523 build_libtool_need_lc=$archive_cmds_need_lc
39525 # Whether or not to disallow shared libs when runtime libs are static.
39526 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39528 # Compiler flag to allow reflexive dlopens.
39529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39531 # Compiler flag to generate shared objects directly from archives.
39532 whole_archive_flag_spec=$lt_whole_archive_flag_spec
39534 # Whether the compiler copes with passing no objects directly.
39535 compiler_needs_object=$lt_compiler_needs_object
39537 # Create an old-style archive from a shared archive.
39538 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39540 # Create a temporary old-style archive to link instead of a shared archive.
39541 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39543 # Commands used to build a shared archive.
39544 archive_cmds=$lt_archive_cmds
39545 archive_expsym_cmds=$lt_archive_expsym_cmds
39547 # Commands used to build a loadable module if different from building
39548 # a shared archive.
39549 module_cmds=$lt_module_cmds
39550 module_expsym_cmds=$lt_module_expsym_cmds
39552 # Whether we are building with GNU ld or not.
39553 with_gnu_ld=$lt_with_gnu_ld
39555 # Flag that allows shared libraries with undefined symbols to be built.
39556 allow_undefined_flag=$lt_allow_undefined_flag
39558 # Flag that enforces no undefined symbols.
39559 no_undefined_flag=$lt_no_undefined_flag
39561 # Flag to hardcode \$libdir into a binary during linking.
39562 # This must work even if \$libdir does not exist
39563 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39565 # If ld is used when linking, flag to hardcode \$libdir into a binary
39566 # during linking. This must work even if \$libdir does not exist.
39567 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
39569 # Whether we need a single "-rpath" flag with a separated argument.
39570 hardcode_libdir_separator=$lt_hardcode_libdir_separator
39572 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39573 # DIR into the resulting binary.
39574 hardcode_direct=$hardcode_direct
39576 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39577 # DIR into the resulting binary and the resulting library dependency is
39578 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39579 # library is relocated.
39580 hardcode_direct_absolute=$hardcode_direct_absolute
39582 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39583 # into the resulting binary.
39584 hardcode_minus_L=$hardcode_minus_L
39586 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39587 # into the resulting binary.
39588 hardcode_shlibpath_var=$hardcode_shlibpath_var
39590 # Set to "yes" if building a shared library automatically hardcodes DIR
39591 # into the library and all subsequent libraries and executables linked
39593 hardcode_automatic=$hardcode_automatic
39595 # Set to yes if linker adds runtime paths of dependent libraries
39596 # to runtime path list.
39597 inherit_rpath=$inherit_rpath
39599 # Whether libtool must link a program against all its dependency libraries.
39600 link_all_deplibs=$link_all_deplibs
39602 # Set to "yes" if exported symbols are required.
39603 always_export_symbols=$always_export_symbols
39605 # The commands to list exported symbols.
39606 export_symbols_cmds=$lt_export_symbols_cmds
39608 # Symbols that should not be listed in the preloaded symbols.
39609 exclude_expsyms=$lt_exclude_expsyms
39611 # Symbols that must always be exported.
39612 include_expsyms=$lt_include_expsyms
39614 # Commands necessary for linking programs (against libraries) with templates.
39615 prelink_cmds=$lt_prelink_cmds
39617 # Commands necessary for finishing linking programs.
39618 postlink_cmds=$lt_postlink_cmds
39620 # Specify filename containing input files.
39621 file_list_spec=$lt_file_list_spec
39623 # How to hardcode a shared library path into an executable.
39624 hardcode_action=$hardcode_action
39626 # The directories searched by this compiler when creating a shared library.
39627 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39629 # Dependencies to place before and after the objects being linked to
39630 # create a shared library.
39631 predep_objects=$lt_predep_objects
39632 postdep_objects=$lt_postdep_objects
39633 predeps=$lt_predeps
39634 postdeps=$lt_postdeps
39636 # The library search path used internally by the compiler when linking
39637 # a shared library.
39638 compiler_lib_search_path=$lt_compiler_lib_search_path
39640 # ### END LIBTOOL CONFIG
39646 cat <<\_LT_EOF >> "$cfgfile"
39647 # AIX sometimes has problems with the GCC collect2 program. For some
39648 # reason, if we set the COLLECT_NAMES environment variable, the problems
39649 # vanish in a puff of smoke.
39650 if test "X${COLLECT_NAMES+set}" != Xset; then
39652 export COLLECT_NAMES
39659 ltmain="$ac_aux_dir/ltmain.sh"
39662 # We use sed instead of cat because bash on DJGPP gets confused if
39663 # if finds mixed CR/LF and LF-only lines. Since sed operates in
39664 # text mode, it properly converts lines to CR/LF. This bash problem
39665 # is reportedly fixed, but why not run on old versions too?
39666 sed '$q' "$ltmain" >> "$cfgfile" \
39667 || (rm -f "$cfgfile"; exit 1)
39669 if test x"$xsi_shell" = xyes; then
39670 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
39674 \ */*) func_dirname_result="${1%/*}${2}" ;;\
39675 \ * ) func_dirname_result="${3}" ;;\
39677 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
39678 && mv -f "$cfgfile.tmp" "$cfgfile" \
39679 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39680 test 0 -eq $? || _lt_function_replace_fail=:
39683 sed -e '/^func_basename ()$/,/^} # func_basename /c\
39686 \ func_basename_result="${1##*/}"\
39687 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
39688 && mv -f "$cfgfile.tmp" "$cfgfile" \
39689 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39690 test 0 -eq $? || _lt_function_replace_fail=:
39693 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
39694 func_dirname_and_basename ()\
39697 \ */*) func_dirname_result="${1%/*}${2}" ;;\
39698 \ * ) func_dirname_result="${3}" ;;\
39700 \ func_basename_result="${1##*/}"\
39701 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
39702 && mv -f "$cfgfile.tmp" "$cfgfile" \
39703 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39704 test 0 -eq $? || _lt_function_replace_fail=:
39707 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
39710 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39711 \ # positional parameters, so assign one to ordinary parameter first.\
39712 \ func_stripname_result=${3}\
39713 \ func_stripname_result=${func_stripname_result#"${1}"}\
39714 \ func_stripname_result=${func_stripname_result%"${2}"}\
39715 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39716 && mv -f "$cfgfile.tmp" "$cfgfile" \
39717 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39718 test 0 -eq $? || _lt_function_replace_fail=:
39721 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39722 func_split_long_opt ()\
39724 \ func_split_long_opt_name=${1%%=*}\
39725 \ func_split_long_opt_arg=${1#*=}\
39726 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39727 && mv -f "$cfgfile.tmp" "$cfgfile" \
39728 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39729 test 0 -eq $? || _lt_function_replace_fail=:
39732 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39733 func_split_short_opt ()\
39735 \ func_split_short_opt_arg=${1#??}\
39736 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39737 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39738 && mv -f "$cfgfile.tmp" "$cfgfile" \
39739 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39740 test 0 -eq $? || _lt_function_replace_fail=:
39743 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39747 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39748 \ *) func_lo2o_result=${1} ;;\
39750 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39751 && mv -f "$cfgfile.tmp" "$cfgfile" \
39752 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39753 test 0 -eq $? || _lt_function_replace_fail=:
39756 sed -e '/^func_xform ()$/,/^} # func_xform /c\
39759 func_xform_result=${1%.*}.lo\
39760 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39761 && mv -f "$cfgfile.tmp" "$cfgfile" \
39762 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39763 test 0 -eq $? || _lt_function_replace_fail=:
39766 sed -e '/^func_arith ()$/,/^} # func_arith /c\
39769 func_arith_result=$(( $* ))\
39770 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39771 && mv -f "$cfgfile.tmp" "$cfgfile" \
39772 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39773 test 0 -eq $? || _lt_function_replace_fail=:
39776 sed -e '/^func_len ()$/,/^} # func_len /c\
39779 func_len_result=${#1}\
39780 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39781 && mv -f "$cfgfile.tmp" "$cfgfile" \
39782 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39783 test 0 -eq $? || _lt_function_replace_fail=:
39787 if test x"$lt_shell_append" = xyes; then
39788 sed -e '/^func_append ()$/,/^} # func_append /c\
39791 eval "${1}+=\\${2}"\
39792 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39793 && mv -f "$cfgfile.tmp" "$cfgfile" \
39794 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39795 test 0 -eq $? || _lt_function_replace_fail=:
39798 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39799 func_append_quoted ()\
39801 \ func_quote_for_eval "${2}"\
39802 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39803 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39804 && mv -f "$cfgfile.tmp" "$cfgfile" \
39805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39806 test 0 -eq $? || _lt_function_replace_fail=:
39809 # Save a `func_append' function call where possible by direct use of '+='
39810 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39811 && mv -f "$cfgfile.tmp" "$cfgfile" \
39812 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39813 test 0 -eq $? || _lt_function_replace_fail=:
39815 # Save a `func_append' function call even when '+=' is not available
39816 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39817 && mv -f "$cfgfile.tmp" "$cfgfile" \
39818 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39819 test 0 -eq $? || _lt_function_replace_fail=:
39822 if test x"$_lt_function_replace_fail" = x":"; then
39823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39824 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39828 mv -f "$cfgfile" "$ofile" ||
39829 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39833 cat <<_LT_EOF >> "$ofile"
39835 # ### BEGIN LIBTOOL TAG CONFIG: CXX
39837 # The linker used to build libraries.
39840 # How to create reloadable object files.
39841 reload_flag=$lt_reload_flag_CXX
39842 reload_cmds=$lt_reload_cmds_CXX
39844 # Commands used to build an old-style archive.
39845 old_archive_cmds=$lt_old_archive_cmds_CXX
39847 # A language specific compiler.
39848 CC=$lt_compiler_CXX
39850 # Is the compiler the GNU compiler?
39853 # Compiler flag to turn off builtin functions.
39854 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39856 # Additional compiler flags for building library objects.
39857 pic_flag=$lt_lt_prog_compiler_pic_CXX
39859 # How to pass a linker flag through the compiler.
39860 wl=$lt_lt_prog_compiler_wl_CXX
39862 # Compiler flag to prevent dynamic linking.
39863 link_static_flag=$lt_lt_prog_compiler_static_CXX
39865 # Does compiler simultaneously support -c and -o options?
39866 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39868 # Whether or not to add -lc for building shared libraries.
39869 build_libtool_need_lc=$archive_cmds_need_lc_CXX
39871 # Whether or not to disallow shared libs when runtime libs are static.
39872 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39874 # Compiler flag to allow reflexive dlopens.
39875 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39877 # Compiler flag to generate shared objects directly from archives.
39878 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39880 # Whether the compiler copes with passing no objects directly.
39881 compiler_needs_object=$lt_compiler_needs_object_CXX
39883 # Create an old-style archive from a shared archive.
39884 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39886 # Create a temporary old-style archive to link instead of a shared archive.
39887 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39889 # Commands used to build a shared archive.
39890 archive_cmds=$lt_archive_cmds_CXX
39891 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39893 # Commands used to build a loadable module if different from building
39894 # a shared archive.
39895 module_cmds=$lt_module_cmds_CXX
39896 module_expsym_cmds=$lt_module_expsym_cmds_CXX
39898 # Whether we are building with GNU ld or not.
39899 with_gnu_ld=$lt_with_gnu_ld_CXX
39901 # Flag that allows shared libraries with undefined symbols to be built.
39902 allow_undefined_flag=$lt_allow_undefined_flag_CXX
39904 # Flag that enforces no undefined symbols.
39905 no_undefined_flag=$lt_no_undefined_flag_CXX
39907 # Flag to hardcode \$libdir into a binary during linking.
39908 # This must work even if \$libdir does not exist
39909 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39911 # If ld is used when linking, flag to hardcode \$libdir into a binary
39912 # during linking. This must work even if \$libdir does not exist.
39913 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
39915 # Whether we need a single "-rpath" flag with a separated argument.
39916 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39918 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39919 # DIR into the resulting binary.
39920 hardcode_direct=$hardcode_direct_CXX
39922 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39923 # DIR into the resulting binary and the resulting library dependency is
39924 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39925 # library is relocated.
39926 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39928 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39929 # into the resulting binary.
39930 hardcode_minus_L=$hardcode_minus_L_CXX
39932 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39933 # into the resulting binary.
39934 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39936 # Set to "yes" if building a shared library automatically hardcodes DIR
39937 # into the library and all subsequent libraries and executables linked
39939 hardcode_automatic=$hardcode_automatic_CXX
39941 # Set to yes if linker adds runtime paths of dependent libraries
39942 # to runtime path list.
39943 inherit_rpath=$inherit_rpath_CXX
39945 # Whether libtool must link a program against all its dependency libraries.
39946 link_all_deplibs=$link_all_deplibs_CXX
39948 # Set to "yes" if exported symbols are required.
39949 always_export_symbols=$always_export_symbols_CXX
39951 # The commands to list exported symbols.
39952 export_symbols_cmds=$lt_export_symbols_cmds_CXX
39954 # Symbols that should not be listed in the preloaded symbols.
39955 exclude_expsyms=$lt_exclude_expsyms_CXX
39957 # Symbols that must always be exported.
39958 include_expsyms=$lt_include_expsyms_CXX
39960 # Commands necessary for linking programs (against libraries) with templates.
39961 prelink_cmds=$lt_prelink_cmds_CXX
39963 # Commands necessary for finishing linking programs.
39964 postlink_cmds=$lt_postlink_cmds_CXX
39966 # Specify filename containing input files.
39967 file_list_spec=$lt_file_list_spec_CXX
39969 # How to hardcode a shared library path into an executable.
39970 hardcode_action=$hardcode_action_CXX
39972 # The directories searched by this compiler when creating a shared library.
39973 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39975 # Dependencies to place before and after the objects being linked to
39976 # create a shared library.
39977 predep_objects=$lt_predep_objects_CXX
39978 postdep_objects=$lt_postdep_objects_CXX
39979 predeps=$lt_predeps_CXX
39980 postdeps=$lt_postdeps_CXX
39982 # The library search path used internally by the compiler when linking
39983 # a shared library.
39984 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39986 # ### END LIBTOOL TAG CONFIG: CXX
39990 "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 ;;
39991 "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
39992 "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
39993 "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
39994 "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
39995 "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
39996 "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
39997 "scripts/ntpver":F) chmod +x scripts/ntpver ;;
39998 "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
39999 "scripts/summary":F) chmod +x scripts/summary ;;
40000 "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;;
40008 ac_clean_files=$ac_clean_files_save
40010 test $ac_write_fail = 0 ||
40011 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
40014 # configure is writing to config.log, and then calls config.status.
40015 # config.status does its own redirection, appending to config.log.
40016 # Unfortunately, on DOS this fails, as config.log is still kept open
40017 # by configure, so config.status won't be able to write to it; its
40018 # output is simply discarded. So we exec the FD to /dev/null,
40019 # effectively closing config.log, so it can be properly (re)opened and
40020 # appended to by config.status. When coming back to configure, we
40021 # need to make the FD available again.
40022 if test "$no_create" != yes; then
40024 ac_config_status_args=
40025 test "$silent" = yes &&
40026 ac_config_status_args="$ac_config_status_args --quiet"
40028 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40030 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40031 # would make configure fail if this is the last instruction.
40032 $ac_cs_success || as_fn_exit 1
40036 # CONFIG_SUBDIRS section.
40038 if test "$no_recursion" != yes; then
40040 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
40041 # so they do not pile up.
40042 ac_sub_configure_args=
40044 eval "set x $ac_configure_args"
40048 if test -n "$ac_prev"; then
40053 -cache-file | --cache-file | --cache-fil | --cache-fi \
40054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
40055 ac_prev=cache_file ;;
40056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
40057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
40060 --config-cache | -C)
40062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
40064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
40066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
40068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
40070 --disable-option-checking)
40074 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
40076 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
40080 # Always prepend --prefix to ensure using the same prefix
40081 # in subdir configurations.
40082 ac_arg="--prefix=$prefix"
40084 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
40086 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
40089 if test "$silent" = yes; then
40090 ac_sub_configure_args="--silent $ac_sub_configure_args"
40093 # Always prepend --disable-option-checking to silence warnings, since
40094 # different subdirs can have different --enable and --with options.
40095 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
40098 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
40100 # Do not complain, so a configure script can configure whichever
40101 # parts of a large source tree are present.
40102 test -d "$srcdir/$ac_dir" || continue
40104 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
40105 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
40106 $as_echo "$ac_msg" >&6
40107 as_dir="$ac_dir"; as_fn_mkdir_p
40111 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40113 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
40114 # A ".." for each directory in $ac_dir_suffix.
40115 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
40116 case $ac_top_builddir_sub in
40117 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40118 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40121 ac_abs_top_builddir=$ac_pwd
40122 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40123 # for backward compatibility:
40124 ac_top_builddir=$ac_top_build_prefix
40127 .) # We are building in place.
40129 ac_top_srcdir=$ac_top_builddir_sub
40130 ac_abs_top_srcdir=$ac_pwd ;;
40131 [\\/]* | ?:[\\/]* ) # Absolute name.
40132 ac_srcdir=$srcdir$ac_dir_suffix;
40133 ac_top_srcdir=$srcdir
40134 ac_abs_top_srcdir=$srcdir ;;
40135 *) # Relative name.
40136 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40137 ac_top_srcdir=$ac_top_build_prefix$srcdir
40138 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40140 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40145 # Check for guested configure; otherwise get Cygnus style configure.
40146 if test -f "$ac_srcdir/configure.gnu"; then
40147 ac_sub_configure=$ac_srcdir/configure.gnu
40148 elif test -f "$ac_srcdir/configure"; then
40149 ac_sub_configure=$ac_srcdir/configure
40150 elif test -f "$ac_srcdir/configure.in"; then
40151 # This should be Cygnus configure.
40152 ac_sub_configure=$ac_aux_dir/configure
40154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
40155 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
40159 # The recursion is here.
40160 if test -n "$ac_sub_configure"; then
40161 # Make the cache file name correct relative to the subdirectory.
40162 case $cache_file in
40163 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
40164 *) # Relative name.
40165 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
40168 { $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
40169 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
40170 # The eval makes quoting arguments work.
40171 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
40172 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
40173 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
40179 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
40180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
40181 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}