2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ntp 4.2.8p3.
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.8p3'
594 PACKAGE_STRING='ntp 4.2.8p3'
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 GTEST_AVAILABLE_FALSE
649 UNITYBUILD_AVAILABLE_FALSE
650 UNITYBUILD_AVAILABLE_TRUE
652 HAVE_LEAPSMEARINTERVAL
653 SAVECONFIG_ENABLED_FALSE
654 SAVECONFIG_ENABLED_TRUE
690 LIBISC_PTHREADS_NOTHREADS
698 NTP_CROSSCOMPILE_FALSE
699 NTP_CROSSCOMPILE_TRUE
710 INSTALL_LIBOPTS_FALSE
713 GL_GENERATE_STDNORETURN_H_FALSE
714 GL_GENERATE_STDNORETURN_H_TRUE
737 INSTALL_UPDATE_LEAP_FALSE
738 INSTALL_UPDATE_LEAP_TRUE
779 INSTALL_NTPSWEEP_FALSE
780 INSTALL_NTPSWEEP_TRUE
822 WANT_CALC_TICKADJ_MS_FALSE
823 WANT_CALC_TICKADJ_MS_TRUE
878 INSTALL_STRIP_PROGRAM
920 program_transform_name
931 ac_subst_files='calc_tickadj_opts
938 enable_option_checking
940 enable_dependency_tracking
951 enable_libopts_install
953 enable_local_libevent
956 enable_thread_support
970 enable_ignore_dns_errors
1029 enable_openssl_random
1032 enable_accurate_adjtime
1041 enable_hourly_todr_sync
1042 enable_kernel_fll_bug
1044 enable_irig_sawtooth
1054 ac_precious_vars='build_alias
1069 ac_subdirs_all='sntp'
1071 # Initialize some variables set by options.
1073 ac_init_version=false
1074 ac_unrecognized_opts=
1075 ac_unrecognized_sep=
1076 # The variables have the same names as the options, with
1077 # dashes changed to underlines.
1078 cache_file=/dev/null
1085 program_transform_name=s,x,x,
1093 # Installation directory options.
1094 # These are left unexpanded so users can "make install exec_prefix=/foo"
1095 # and all the variables that are supposed to be based on exec_prefix
1096 # by default will actually change.
1097 # Use braces instead of parens because sh, perl, etc. also accept them.
1098 # (The list follows the same order as the GNU Coding Standards.)
1099 bindir='${exec_prefix}/bin'
1100 sbindir='${exec_prefix}/sbin'
1101 libexecdir='${exec_prefix}/libexec'
1102 datarootdir='${prefix}/share'
1103 datadir='${datarootdir}'
1104 sysconfdir='${prefix}/etc'
1105 sharedstatedir='${prefix}/com'
1106 localstatedir='${prefix}/var'
1107 includedir='${prefix}/include'
1108 oldincludedir='/usr/include'
1109 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1110 infodir='${datarootdir}/info'
1115 libdir='${exec_prefix}/lib'
1116 localedir='${datarootdir}/locale'
1117 mandir='${datarootdir}/man'
1123 # If the previous option needs an argument, assign it.
1124 if test -n "$ac_prev"; then
1125 eval $ac_prev=\$ac_option
1131 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1136 # Accept the important Cygnus configure options, so we can diagnose typos.
1138 case $ac_dashdash$ac_option in
1142 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1144 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1145 bindir=$ac_optarg ;;
1147 -build | --build | --buil | --bui | --bu)
1148 ac_prev=build_alias ;;
1149 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1150 build_alias=$ac_optarg ;;
1152 -cache-file | --cache-file | --cache-fil | --cache-fi \
1153 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1154 ac_prev=cache_file ;;
1155 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1156 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1157 cache_file=$ac_optarg ;;
1159 --config-cache | -C)
1160 cache_file=config.cache ;;
1162 -datadir | --datadir | --datadi | --datad)
1164 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1165 datadir=$ac_optarg ;;
1167 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1168 | --dataroo | --dataro | --datar)
1169 ac_prev=datarootdir ;;
1170 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1171 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1172 datarootdir=$ac_optarg ;;
1174 -disable-* | --disable-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid feature name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1183 "enable_$ac_useropt"
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1188 eval enable_$ac_useropt=no ;;
1190 -docdir | --docdir | --docdi | --doc | --do)
1192 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1193 docdir=$ac_optarg ;;
1195 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1197 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1198 dvidir=$ac_optarg ;;
1200 -enable-* | --enable-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error $? "invalid feature name: $ac_useropt"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1209 "enable_$ac_useropt"
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1214 eval enable_$ac_useropt=\$ac_optarg ;;
1216 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1217 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1218 | --exec | --exe | --ex)
1219 ac_prev=exec_prefix ;;
1220 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1221 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1222 | --exec=* | --exe=* | --ex=*)
1223 exec_prefix=$ac_optarg ;;
1225 -gas | --gas | --ga | --g)
1226 # Obsolete; use --with-gas.
1229 -help | --help | --hel | --he | -h)
1230 ac_init_help=long ;;
1231 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1232 ac_init_help=recursive ;;
1233 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1234 ac_init_help=short ;;
1236 -host | --host | --hos | --ho)
1237 ac_prev=host_alias ;;
1238 -host=* | --host=* | --hos=* | --ho=*)
1239 host_alias=$ac_optarg ;;
1241 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1243 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1245 htmldir=$ac_optarg ;;
1247 -includedir | --includedir | --includedi | --included | --include \
1248 | --includ | --inclu | --incl | --inc)
1249 ac_prev=includedir ;;
1250 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1251 | --includ=* | --inclu=* | --incl=* | --inc=*)
1252 includedir=$ac_optarg ;;
1254 -infodir | --infodir | --infodi | --infod | --info | --inf)
1256 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1257 infodir=$ac_optarg ;;
1259 -libdir | --libdir | --libdi | --libd)
1261 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1262 libdir=$ac_optarg ;;
1264 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1265 | --libexe | --libex | --libe)
1266 ac_prev=libexecdir ;;
1267 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1268 | --libexe=* | --libex=* | --libe=*)
1269 libexecdir=$ac_optarg ;;
1271 -localedir | --localedir | --localedi | --localed | --locale)
1272 ac_prev=localedir ;;
1273 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1274 localedir=$ac_optarg ;;
1276 -localstatedir | --localstatedir | --localstatedi | --localstated \
1277 | --localstate | --localstat | --localsta | --localst | --locals)
1278 ac_prev=localstatedir ;;
1279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1280 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1281 localstatedir=$ac_optarg ;;
1283 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1285 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1286 mandir=$ac_optarg ;;
1288 -nfp | --nfp | --nf)
1289 # Obsolete; use --without-fp.
1292 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1293 | --no-cr | --no-c | -n)
1296 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1297 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1300 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1301 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1302 | --oldin | --oldi | --old | --ol | --o)
1303 ac_prev=oldincludedir ;;
1304 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1305 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1306 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1307 oldincludedir=$ac_optarg ;;
1309 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1311 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1312 prefix=$ac_optarg ;;
1314 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1315 | --program-pre | --program-pr | --program-p)
1316 ac_prev=program_prefix ;;
1317 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1318 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1319 program_prefix=$ac_optarg ;;
1321 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1322 | --program-suf | --program-su | --program-s)
1323 ac_prev=program_suffix ;;
1324 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1325 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1326 program_suffix=$ac_optarg ;;
1328 -program-transform-name | --program-transform-name \
1329 | --program-transform-nam | --program-transform-na \
1330 | --program-transform-n | --program-transform- \
1331 | --program-transform | --program-transfor \
1332 | --program-transfo | --program-transf \
1333 | --program-trans | --program-tran \
1334 | --progr-tra | --program-tr | --program-t)
1335 ac_prev=program_transform_name ;;
1336 -program-transform-name=* | --program-transform-name=* \
1337 | --program-transform-nam=* | --program-transform-na=* \
1338 | --program-transform-n=* | --program-transform-=* \
1339 | --program-transform=* | --program-transfor=* \
1340 | --program-transfo=* | --program-transf=* \
1341 | --program-trans=* | --program-tran=* \
1342 | --progr-tra=* | --program-tr=* | --program-t=*)
1343 program_transform_name=$ac_optarg ;;
1345 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1347 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1348 pdfdir=$ac_optarg ;;
1350 -psdir | --psdir | --psdi | --psd | --ps)
1352 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1356 | -silent | --silent | --silen | --sile | --sil)
1359 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1361 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1363 sbindir=$ac_optarg ;;
1365 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1366 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1367 | --sharedst | --shareds | --shared | --share | --shar \
1369 ac_prev=sharedstatedir ;;
1370 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1371 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1372 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1374 sharedstatedir=$ac_optarg ;;
1376 -site | --site | --sit)
1378 -site=* | --site=* | --sit=*)
1381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1384 srcdir=$ac_optarg ;;
1386 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1387 | --syscon | --sysco | --sysc | --sys | --sy)
1388 ac_prev=sysconfdir ;;
1389 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1390 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1391 sysconfdir=$ac_optarg ;;
1393 -target | --target | --targe | --targ | --tar | --ta | --t)
1394 ac_prev=target_alias ;;
1395 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1396 target_alias=$ac_optarg ;;
1398 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1401 -version | --version | --versio | --versi | --vers | -V)
1402 ac_init_version=: ;;
1405 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1408 as_fn_error $? "invalid package name: $ac_useropt"
1409 ac_useropt_orig=$ac_useropt
1410 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1415 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1416 ac_unrecognized_sep=', ';;
1418 eval with_$ac_useropt=\$ac_optarg ;;
1420 -without-* | --without-*)
1421 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1422 # Reject names that are not valid shell variable names.
1423 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1424 as_fn_error $? "invalid package name: $ac_useropt"
1425 ac_useropt_orig=$ac_useropt
1426 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1427 case $ac_user_opts in
1431 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1432 ac_unrecognized_sep=', ';;
1434 eval with_$ac_useropt=no ;;
1437 # Obsolete; use --with-x.
1440 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1441 | --x-incl | --x-inc | --x-in | --x-i)
1442 ac_prev=x_includes ;;
1443 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1444 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1445 x_includes=$ac_optarg ;;
1447 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1448 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1449 ac_prev=x_libraries ;;
1450 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1451 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1452 x_libraries=$ac_optarg ;;
1454 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1455 Try \`$0 --help' for more information"
1459 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1460 # Reject names that are not valid shell variable names.
1461 case $ac_envvar in #(
1462 '' | [0-9]* | *[!_$as_cr_alnum]* )
1463 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1465 eval $ac_envvar=\$ac_optarg
1466 export $ac_envvar ;;
1469 # FIXME: should be removed in autoconf 3.0.
1470 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1471 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1472 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1473 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1479 if test -n "$ac_prev"; then
1480 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1481 as_fn_error $? "missing argument to $ac_option"
1484 if test -n "$ac_unrecognized_opts"; then
1485 case $enable_option_checking in
1487 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1488 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1492 # Check all directory arguments for consistency.
1493 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1494 datadir sysconfdir sharedstatedir localstatedir includedir \
1495 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1496 libdir localedir mandir
1498 eval ac_val=\$$ac_var
1499 # Remove trailing slashes.
1502 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1503 eval $ac_var=\$ac_val;;
1505 # Be sure to have absolute directory names.
1507 [\\/$]* | ?:[\\/]* ) continue;;
1508 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1510 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1513 # There might be people who depend on the old broken behavior: `$host'
1514 # used to hold the argument of --host etc.
1515 # FIXME: To remove some day.
1518 target=$target_alias
1520 # FIXME: To remove some day.
1521 if test "x$host_alias" != x; then
1522 if test "x$build_alias" = x; then
1523 cross_compiling=maybe
1524 elif test "x$build_alias" != "x$host_alias"; then
1530 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1532 test "$silent" = yes && exec 6>/dev/null
1535 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1536 ac_ls_di=`ls -di .` &&
1537 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1538 as_fn_error $? "working directory cannot be determined"
1539 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1540 as_fn_error $? "pwd does not report name of working directory"
1543 # Find the source files, if location was not specified.
1544 if test -z "$srcdir"; then
1545 ac_srcdir_defaulted=yes
1546 # Try the directory containing this script, then the parent directory.
1547 ac_confdir=`$as_dirname -- "$as_myself" ||
1548 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1549 X"$as_myself" : 'X\(//\)[^/]' \| \
1550 X"$as_myself" : 'X\(//\)$' \| \
1551 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1552 $as_echo X"$as_myself" |
1553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1571 if test ! -r "$srcdir/$ac_unique_file"; then
1575 ac_srcdir_defaulted=no
1577 if test ! -r "$srcdir/$ac_unique_file"; then
1578 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1579 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1581 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1583 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1585 # When building in place, set srcdir=.
1586 if test "$ac_abs_confdir" = "$ac_pwd"; then
1589 # Remove unnecessary trailing slashes from srcdir.
1590 # Double slashes in file names in object file debugging info
1591 # mess up M-x gdb in Emacs.
1593 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1595 for ac_var in $ac_precious_vars; do
1596 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1597 eval ac_env_${ac_var}_value=\$${ac_var}
1598 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1599 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1603 # Report the --help message.
1605 if test "$ac_init_help" = "long"; then
1606 # Omit some internal or obsolete options to make the list less imposing.
1607 # This message is too long to be a string in the A/UX 3.1 sh.
1609 \`configure' configures ntp 4.2.8p3 to adapt to many kinds of systems.
1611 Usage: $0 [OPTION]... [VAR=VALUE]...
1613 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1614 VAR=VALUE. See below for descriptions of some of the useful variables.
1616 Defaults for the options are specified in brackets.
1619 -h, --help display this help and exit
1620 --help=short display options specific to this package
1621 --help=recursive display the short help of all the included packages
1622 -V, --version display version information and exit
1623 -q, --quiet, --silent do not print \`checking ...' messages
1624 --cache-file=FILE cache test results in FILE [disabled]
1625 -C, --config-cache alias for \`--cache-file=config.cache'
1626 -n, --no-create do not create output files
1627 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1629 Installation directories:
1630 --prefix=PREFIX install architecture-independent files in PREFIX
1631 [$ac_default_prefix]
1632 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1635 By default, \`make install' will install all the files in
1636 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1637 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1638 for instance \`--prefix=\$HOME'.
1640 For better control, use the options below.
1642 Fine tuning of the installation directories:
1643 --bindir=DIR user executables [EPREFIX/bin]
1644 --sbindir=DIR system admin executables [EPREFIX/sbin]
1645 --libexecdir=DIR program executables [EPREFIX/libexec]
1646 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1647 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1648 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1649 --libdir=DIR object code libraries [EPREFIX/lib]
1650 --includedir=DIR C header files [PREFIX/include]
1651 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1652 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1653 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1654 --infodir=DIR info documentation [DATAROOTDIR/info]
1655 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1656 --mandir=DIR man documentation [DATAROOTDIR/man]
1657 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp]
1658 --htmldir=DIR html documentation [DOCDIR]
1659 --dvidir=DIR dvi documentation [DOCDIR]
1660 --pdfdir=DIR pdf documentation [DOCDIR]
1661 --psdir=DIR ps documentation [DOCDIR]
1667 --program-prefix=PREFIX prepend PREFIX to installed program names
1668 --program-suffix=SUFFIX append SUFFIX to installed program names
1669 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1672 --build=BUILD configure for building on BUILD [guessed]
1673 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1677 if test -n "$ac_init_help"; then
1678 case $ac_init_help in
1679 short | recursive ) echo "Configuration of ntp 4.2.8p3:";;
1683 Optional Features and Packages:
1684 --disable-option-checking ignore unrecognized --enable/--with options
1685 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1686 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1689 --enable-silent-rules less verbose build output (undo: "make V=1")
1690 --disable-silent-rules verbose build output (undo: "make V=0")
1691 --enable-dependency-tracking
1692 do not reject slow dependency extractors
1693 --disable-dependency-tracking
1694 speeds up one-time build
1695 --with-locfile=XXX os-specific or "legacy"
1696 --enable-shared[=PKGS] build shared libraries [default=no]
1697 --enable-static[=PKGS] build static libraries [default=yes]
1698 --with-pic try to use only PIC/non-PIC objects [default=use
1700 --enable-fast-install[=PKGS]
1701 optimize for fast installation [default=yes]
1702 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1703 --with-sysroot=DIR Search for dependent libraries within DIR
1704 (or the compiler's sysroot if not specified).
1705 --disable-libtool-lock avoid locking (might break parallel builds)
1706 --disable-nls disable nls support in libopts
1707 --enable-local-libopts Use the supplied libopts tearoff code
1708 --enable-libopts-install
1709 Install libopts with client installation
1710 --with-autoopts-config specify the config-info script
1711 --enable-local-libevent Force using the supplied libevent tearoff code
1712 --with-lineeditlibs edit,editline (readline may be specified if desired)
1713 defaults: + yes, - no, s system-specific
1714 --enable-debugging + include ntpd debugging code
1715 --enable-thread-support s use threads (+ if available)
1716 --with-threads with threads [auto]
1717 --with-yielding-select with yielding select [auto]
1718 --enable-c99-snprintf s force replacement
1719 --enable-clockctl s Use /dev/clockctl for non-root clock control
1720 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1721 --enable-solarisprivs + Use Solaris privileges for non-root clock control
1722 --with-arlib - deprecated, arlib not distributed
1723 --with-net-snmp-config + =net-snmp-config
1724 --enable-libseccomp EXPERIMENTAL: enable support for libseccomp
1725 sandboxing (default is no)
1726 --with-stack-limit ? =50 (200 for openbsd) 4k pages
1727 --with-memlock ? =32 (megabytes)
1728 --enable-debug-timing - include processing time debugging code (costs
1730 --enable-dst-minutes =60 minutes per DST adjustment
1731 --enable-ignore-dns-errors
1732 - retry DNS queries on any error
1733 --enable-BANCOMM - Datum/Bancomm bc635/VME interface
1734 --enable-GPSVME - TrueTime GPS receiver/VME interface
1735 --enable-all-clocks + include all suitable non-PARSE clocks:
1736 --enable-ACTS s ACTS modem service
1737 --enable-ARBITER + Arbiter 1088A/B GPS receiver
1738 --enable-ARCRON-MSF + Arcron MSF receiver
1739 --enable-AS2201 + Austron 2200A/2201A GPS receiver
1740 --enable-ATOM s ATOM PPS interface
1741 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver
1742 --enable-CHU + CHU modem/decoder
1743 --enable-AUDIO-CHU s CHU audio/decoder
1744 --enable-DATUM s Datum Programmable Time System
1745 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock
1746 --enable-FG + Forum Graphic GPS
1747 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver
1748 --enable-HOPFSERIAL + hopf serial clock device
1749 --enable-HOPFPCI + hopf 6039 PCI board
1750 --enable-HPGPS + HP 58503A GPS receiver
1751 --enable-IRIG s IRIG audio decoder
1752 --enable-JJY + JJY receiver
1753 --enable-JUPITER s Rockwell Jupiter GPS receiver
1754 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver
1755 --enable-LOCAL-CLOCK + local clock reference
1756 --enable-MX4200 s Magnavox MX4200 GPS receiver
1757 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver
1758 --enable-NMEA + NMEA GPS receiver
1759 --enable-GPSD + GPSD JSON receiver
1760 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver
1761 --enable-PALISADE s Palisade clock
1762 --enable-PCF + Conrad parallel port radio clock
1763 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver
1764 --enable-RIPENCC - RIPENCC specific Trimble driver
1765 --enable-SHM s SHM clock attached thru shared memory
1766 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver
1767 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1768 --enable-TRUETIME s Kinemetrics/TrueTime receivers
1769 --enable-TT560 - TrueTime 560 IRIG-B decoder
1770 --enable-ULINK + Ultralink WWVB receiver
1771 --enable-TSYNCPCI s Spectracom TSYNC timing board
1772 --enable-WWV s WWV Audio receiver
1773 --enable-ZYFER + Zyfer GPStarplus receiver
1774 --enable-parse-clocks - include all suitable PARSE clocks:
1775 --enable-COMPUTIME s Diem Computime Radio Clock
1776 --enable-DCF7000 s ELV/DCF7000 clock
1777 --enable-HOPF6021 s HOPF 6021 clock
1778 --enable-MEINBERG s Meinberg clocks
1779 --enable-RAWDCF s DCF77 raw time code
1780 --enable-RCC8000 s RCC 8000 clock
1781 --enable-SCHMID s Schmid DCF77 clock
1782 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol
1783 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol
1784 --enable-WHARTON s WHARTON 400A Series clock
1785 --enable-VARITEXT s VARITEXT clock
1786 --enable-SEL240X s SEL240X clock
1787 --with-crypto + =openssl,libcrypto
1789 --with-openssl-libdir + =/something/reasonable
1791 --with-openssl-incdir + =/something/reasonable
1793 --without-rpath s Disable auto-added -R linker paths
1795 --enable-openssl-random Use OpenSSL's crypto random number functions, if
1796 available (default is yes)
1797 --enable-autokey + support NTP Autokey protocol
1798 --enable-kmem s read /dev/kmem for tick and/or tickadj
1799 --enable-accurate-adjtime
1800 s the adjtime() call is accurate
1801 --enable-tick=VALUE s force a value for 'tick'
1802 --enable-tickadj=VALUE s force a value for 'tickadj'
1803 --enable-simulator - build/install the NTPD simulator?
1804 --without-sntp - disable building sntp and sntp/tests
1805 --with-ntpsnmpd s Build ntpsnmpd MIB agent?
1806 --enable-slew-always s always slew the time
1807 --enable-step-slew s step and slew the time
1808 --enable-ntpdate-step s if ntpdate should step the time
1809 --enable-hourly-todr-sync
1810 s if we should sync TODR hourly
1811 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1812 --enable-bug1243-fix + use unmodified autokey session keys
1813 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter
1814 --enable-nist - if we should enable the NIST lockclock scheme
1815 --enable-ntp-signd - Provide support for Samba's signing daemon,
1817 --enable-ipv6 s use IPv6?
1819 --with-kame - =/usr/local/v6
1820 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]].
1821 --enable-saveconfig + saveconfig mechanism
1822 --enable-leap-smear - experimental leap smear code
1823 --with-gtest Use the gtest framework (Default: if it's available)
1825 Some influential environment variables:
1826 CC C compiler command
1827 CFLAGS C compiler flags
1828 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1829 nonstandard directory <lib dir>
1830 LIBS libraries to pass to the linker, e.g. -l<library>
1831 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1832 you have headers in a nonstandard directory <include dir>
1834 CXX C++ compiler command
1835 CXXFLAGS C++ compiler flags
1836 YACC The `Yet Another Compiler Compiler' implementation to use.
1837 Defaults to the first program found out of: `bison -y', `byacc',
1839 YFLAGS The list of arguments that will be passed by default to $YACC.
1840 This script will default YFLAGS to the empty string to avoid a
1841 default value of `-d' given by some make applications.
1842 CXXCPP C++ preprocessor
1844 Use these variables to override the choices made by `configure' or to help
1845 it to find libraries and programs with nonstandard names/locations.
1847 Report bugs to <http://bugs.ntp.org./>.
1848 ntp home page: <http://www.ntp.org./>.
1853 if test "$ac_init_help" = "recursive"; then
1854 # If there are subdirs, report their specific --help.
1855 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1856 test -d "$ac_dir" ||
1857 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1862 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1864 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1865 # A ".." for each directory in $ac_dir_suffix.
1866 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1867 case $ac_top_builddir_sub in
1868 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1869 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1872 ac_abs_top_builddir=$ac_pwd
1873 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1874 # for backward compatibility:
1875 ac_top_builddir=$ac_top_build_prefix
1878 .) # We are building in place.
1880 ac_top_srcdir=$ac_top_builddir_sub
1881 ac_abs_top_srcdir=$ac_pwd ;;
1882 [\\/]* | ?:[\\/]* ) # Absolute name.
1883 ac_srcdir=$srcdir$ac_dir_suffix;
1884 ac_top_srcdir=$srcdir
1885 ac_abs_top_srcdir=$srcdir ;;
1887 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1888 ac_top_srcdir=$ac_top_build_prefix$srcdir
1889 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1891 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1893 cd "$ac_dir" || { ac_status=$?; continue; }
1894 # Check for guested configure.
1895 if test -f "$ac_srcdir/configure.gnu"; then
1897 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1898 elif test -f "$ac_srcdir/configure"; then
1900 $SHELL "$ac_srcdir/configure" --help=recursive
1902 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1904 cd "$ac_pwd" || { ac_status=$?; break; }
1908 test -n "$ac_init_help" && exit $ac_status
1909 if $ac_init_version; then
1911 ntp configure 4.2.8p3
1912 generated by GNU Autoconf 2.69
1914 Copyright (C) 2012 Free Software Foundation, Inc.
1915 This configure script is free software; the Free Software Foundation
1916 gives unlimited permission to copy, distribute and modify it.
1921 ## ------------------------ ##
1922 ## Autoconf initialization. ##
1923 ## ------------------------ ##
1925 # ac_fn_c_try_compile LINENO
1926 # --------------------------
1927 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1928 ac_fn_c_try_compile ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 rm -f conftest.$ac_objext
1932 if { { ac_try="$ac_compile"
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_compile") 2>conftest.err
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && {
1948 test -z "$ac_c_werror_flag" ||
1949 test ! -s conftest.err
1950 } && test -s conftest.$ac_objext; then :
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1961 } # ac_fn_c_try_compile
1963 # ac_fn_c_try_cpp LINENO
1964 # ----------------------
1965 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_cpp conftest.$ac_ext"
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1978 if test -s conftest.err; then
1979 grep -v '^ *+' conftest.err >conftest.er1
1980 cat conftest.er1 >&5
1981 mv -f conftest.er1 conftest.err
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } > conftest.i && {
1985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1986 test ! -s conftest.err
1990 $as_echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 as_fn_set_status $ac_retval
2000 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2001 # -------------------------------------------------------
2002 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2003 # the include files in INCLUDES and setting the cache variable VAR
2005 ac_fn_c_check_header_mongrel ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 if eval \${$3+:} false; then :
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2018 # Is the header compilable?
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2020 $as_echo_n "checking $2 usability... " >&6; }
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 ac_header_compiler=yes
2029 ac_header_compiler=no
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2033 $as_echo "$ac_header_compiler" >&6; }
2035 # Is the header present?
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2037 $as_echo_n "checking $2 presence... " >&6; }
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2042 if ac_fn_c_try_cpp "$LINENO"; then :
2043 ac_header_preproc=yes
2045 ac_header_preproc=no
2047 rm -f conftest.err conftest.i conftest.$ac_ext
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2049 $as_echo "$ac_header_preproc" >&6; }
2051 # So? What about this header?
2052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2055 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2057 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2061 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2063 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2065 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2067 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2069 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2070 ( $as_echo "## ------------------------------------ ##
2071 ## Report this to http://bugs.ntp.org./ ##
2072 ## ------------------------------------ ##"
2073 ) | sed "s/^/$as_me: WARNING: /" >&2
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 $as_echo_n "checking for $2... " >&6; }
2078 if eval \${$3+:} false; then :
2079 $as_echo_n "(cached) " >&6
2081 eval "$3=\$ac_header_compiler"
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089 } # ac_fn_c_check_header_mongrel
2091 # ac_fn_c_try_run LINENO
2092 # ----------------------
2093 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2094 # that executables *can* be run.
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 if { { ac_try="$ac_link"
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2104 $as_echo "$ac_try_echo"; } >&5
2105 (eval "$ac_link") 2>&5
2107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2108 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2109 { { case "(($ac_try" in
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2114 $as_echo "$ac_try_echo"; } >&5
2115 (eval "$ac_try") 2>&5
2117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118 test $ac_status = 0; }; }; then :
2121 $as_echo "$as_me: program exited with status $ac_status" >&5
2122 $as_echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2125 ac_retval=$ac_status
2127 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 as_fn_set_status $ac_retval
2133 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2134 # -------------------------------------------------------
2135 # Tests whether HEADER exists and can be compiled using the include files in
2136 # INCLUDES, setting the cache variable VAR accordingly.
2137 ac_fn_c_check_header_compile ()
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2141 $as_echo_n "checking for $2... " >&6; }
2142 if eval \${$3+:} false; then :
2143 $as_echo_n "(cached) " >&6
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2150 if ac_fn_c_try_compile "$LINENO"; then :
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159 $as_echo "$ac_res" >&6; }
2160 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162 } # ac_fn_c_check_header_compile
2164 # ac_fn_c_try_link LINENO
2165 # -----------------------
2166 # Try to link conftest.$ac_ext, and return whether this succeeded.
2169 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170 rm -f conftest.$ac_objext conftest$ac_exeext
2171 if { { ac_try="$ac_link"
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2177 $as_echo "$ac_try_echo"; } >&5
2178 (eval "$ac_link") 2>conftest.err
2180 if test -s conftest.err; then
2181 grep -v '^ *+' conftest.err >conftest.er1
2182 cat conftest.er1 >&5
2183 mv -f conftest.er1 conftest.err
2185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186 test $ac_status = 0; } && {
2187 test -z "$ac_c_werror_flag" ||
2188 test ! -s conftest.err
2189 } && test -s conftest$ac_exeext && {
2190 test "$cross_compiling" = yes ||
2191 test -x conftest$ac_exeext
2195 $as_echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2200 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2201 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2202 # interfere with the next link command; also delete a directory that is
2203 # left behind by Apple's compiler. We do this before executing the actions.
2204 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206 as_fn_set_status $ac_retval
2208 } # ac_fn_c_try_link
2210 # ac_fn_cxx_try_compile LINENO
2211 # ----------------------------
2212 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2213 ac_fn_cxx_try_compile ()
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 rm -f conftest.$ac_objext
2217 if { { ac_try="$ac_compile"
2219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223 $as_echo "$ac_try_echo"; } >&5
2224 (eval "$ac_compile") 2>conftest.err
2226 if test -s conftest.err; then
2227 grep -v '^ *+' conftest.err >conftest.er1
2228 cat conftest.er1 >&5
2229 mv -f conftest.er1 conftest.err
2231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2232 test $ac_status = 0; } && {
2233 test -z "$ac_cxx_werror_flag" ||
2234 test ! -s conftest.err
2235 } && test -s conftest.$ac_objext; then :
2238 $as_echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244 as_fn_set_status $ac_retval
2246 } # ac_fn_cxx_try_compile
2248 # ac_fn_c_check_func LINENO FUNC VAR
2249 # ----------------------------------
2250 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2251 ac_fn_c_check_func ()
2253 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2255 $as_echo_n "checking for $2... " >&6; }
2256 if eval \${$3+:} false; then :
2257 $as_echo_n "(cached) " >&6
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2261 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2263 #define $2 innocuous_$2
2265 /* System header to define __stub macros and hopefully few prototypes,
2266 which can conflict with char $2 (); below.
2267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2268 <limits.h> exists even on freestanding compilers. */
2271 # include <limits.h>
2273 # include <assert.h>
2278 /* Override any GCC internal prototype to avoid an error.
2279 Use char because int might match the return type of a GCC
2280 builtin and then its argument prototype would still apply. */
2285 /* The GNU C library defines this for functions which it implements
2286 to always fail with ENOSYS. Some functions are actually named
2287 something starting with __ and the normal name is an alias. */
2288 #if defined __stub_$2 || defined __stub___$2
2300 if ac_fn_c_try_link "$LINENO"; then :
2305 rm -f core conftest.err conftest.$ac_objext \
2306 conftest$ac_exeext conftest.$ac_ext
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 $as_echo "$ac_res" >&6; }
2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2313 } # ac_fn_c_check_func
2315 # ac_fn_cxx_try_cpp LINENO
2316 # ------------------------
2317 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2318 ac_fn_cxx_try_cpp ()
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 if { { ac_try="$ac_cpp conftest.$ac_ext"
2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324 *) ac_try_echo=$ac_try;;
2326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2327 $as_echo "$ac_try_echo"; } >&5
2328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2330 if test -s conftest.err; then
2331 grep -v '^ *+' conftest.err >conftest.er1
2332 cat conftest.er1 >&5
2333 mv -f conftest.er1 conftest.err
2335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2336 test $ac_status = 0; } > conftest.i && {
2337 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2338 test ! -s conftest.err
2342 $as_echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2347 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2348 as_fn_set_status $ac_retval
2350 } # ac_fn_cxx_try_cpp
2352 # ac_fn_cxx_try_link LINENO
2353 # -------------------------
2354 # Try to link conftest.$ac_ext, and return whether this succeeded.
2355 ac_fn_cxx_try_link ()
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 rm -f conftest.$ac_objext conftest$ac_exeext
2359 if { { ac_try="$ac_link"
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2365 $as_echo "$ac_try_echo"; } >&5
2366 (eval "$ac_link") 2>conftest.err
2368 if test -s conftest.err; then
2369 grep -v '^ *+' conftest.err >conftest.er1
2370 cat conftest.er1 >&5
2371 mv -f conftest.er1 conftest.err
2373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2374 test $ac_status = 0; } && {
2375 test -z "$ac_cxx_werror_flag" ||
2376 test ! -s conftest.err
2377 } && test -s conftest$ac_exeext && {
2378 test "$cross_compiling" = yes ||
2379 test -x conftest$ac_exeext
2383 $as_echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2388 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2389 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2390 # interfere with the next link command; also delete a directory that is
2391 # left behind by Apple's compiler. We do this before executing the actions.
2392 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2393 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2394 as_fn_set_status $ac_retval
2396 } # ac_fn_cxx_try_link
2398 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2399 # -------------------------------------------
2400 # Tests whether TYPE exists after having included INCLUDES, setting cache
2401 # variable VAR accordingly.
2402 ac_fn_c_check_type ()
2404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2406 $as_echo_n "checking for $2... " >&6; }
2407 if eval \${$3+:} false; then :
2408 $as_echo_n "(cached) " >&6
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2423 if ac_fn_c_try_compile "$LINENO"; then :
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2436 if ac_fn_c_try_compile "$LINENO"; then :
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2447 $as_echo "$ac_res" >&6; }
2448 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2450 } # ac_fn_c_check_type
2452 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2453 # --------------------------------------------
2454 # Tries to find the compile-time value of EXPR in a program that includes
2455 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2457 ac_fn_c_compute_int ()
2459 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2460 if test "$cross_compiling" = yes; then
2461 # Depending upon the size, compute the lo and hi bounds.
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h. */
2468 static int test_array [1 - 2 * !(($2) >= 0)];
2470 return test_array [0];
2476 if ac_fn_c_try_compile "$LINENO"; then :
2479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480 /* end confdefs.h. */
2485 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2487 return test_array [0];
2493 if ac_fn_c_try_compile "$LINENO"; then :
2494 ac_hi=$ac_mid; break
2496 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2497 if test $ac_lo -le $ac_mid; then
2501 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h. */
2512 static int test_array [1 - 2 * !(($2) < 0)];
2514 return test_array [0];
2520 if ac_fn_c_try_compile "$LINENO"; then :
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2529 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2531 return test_array [0];
2537 if ac_fn_c_try_compile "$LINENO"; then :
2538 ac_lo=$ac_mid; break
2540 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2541 if test $ac_mid -le $ac_hi; then
2545 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555 # Binary search between lo and hi bounds.
2556 while test "x$ac_lo" != "x$ac_hi"; do
2557 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2564 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2566 return test_array [0];
2572 if ac_fn_c_try_compile "$LINENO"; then :
2575 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h. */
2587 static long int longval () { return $2; }
2588 static unsigned long int ulongval () { return $2; }
2595 FILE *f = fopen ("conftest.val", "w");
2600 long int i = longval ();
2603 fprintf (f, "%ld", i);
2607 unsigned long int i = ulongval ();
2610 fprintf (f, "%lu", i);
2612 /* Do not output a trailing newline, as this causes \r\n confusion
2613 on some platforms. */
2614 return ferror (f) || fclose (f) != 0;
2620 if ac_fn_c_try_run "$LINENO"; then :
2621 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2626 conftest.$ac_objext conftest.beam conftest.$ac_ext
2630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2631 as_fn_set_status $ac_retval
2633 } # ac_fn_c_compute_int
2635 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2636 # ---------------------------------------------
2637 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2639 ac_fn_c_check_decl ()
2641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2642 as_decl_name=`echo $2|sed 's/ *(.*//'`
2643 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2645 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2646 if eval \${$3+:} false; then :
2647 $as_echo_n "(cached) " >&6
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2655 #ifndef $as_decl_name
2657 (void) $as_decl_use;
2659 (void) $as_decl_name;
2667 if ac_fn_c_try_compile "$LINENO"; then :
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2676 $as_echo "$ac_res" >&6; }
2677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2679 } # ac_fn_c_check_decl
2681 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2682 # ----------------------------------------------------
2683 # Tries to find if the field MEMBER exists in type AGGR, after including
2684 # INCLUDES, setting cache variable VAR accordingly.
2685 ac_fn_c_check_member ()
2687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2689 $as_echo_n "checking for $2.$3... " >&6; }
2690 if eval \${$4+:} false; then :
2691 $as_echo_n "(cached) " >&6
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h. */
2706 if ac_fn_c_try_compile "$LINENO"; then :
2709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2710 /* end confdefs.h. */
2716 if (sizeof ac_aggr.$3)
2722 if ac_fn_c_try_compile "$LINENO"; then :
2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2733 $as_echo "$ac_res" >&6; }
2734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2736 } # ac_fn_c_check_member
2737 cat >config.log <<_ACEOF
2738 This file contains any messages produced by compilers while
2739 running configure, to aid debugging if configure makes a mistake.
2741 It was created by ntp $as_me 4.2.8p3, which was
2742 generated by GNU Autoconf 2.69. Invocation command line was
2754 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2755 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2756 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2757 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2758 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2760 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2761 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2763 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2764 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2765 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2766 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2767 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2768 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2769 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 test -z "$as_dir" && as_dir=.
2778 $as_echo "PATH: $as_dir"
2794 # Keep a trace of the command line.
2795 # Strip out --no-create and --no-recursion so they do not pile up.
2796 # Strip out --silent because we don't want to record it for future runs.
2797 # Also quote any args containing shell meta-characters.
2798 # Make two passes to allow for proper duplicate-argument suppression.
2802 ac_must_keep_next=false
2808 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2809 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2810 | -silent | --silent | --silen | --sile | --sil)
2813 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2816 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2818 as_fn_append ac_configure_args1 " '$ac_arg'"
2819 if test $ac_must_keep_next = true; then
2820 ac_must_keep_next=false # Got value, back to normal.
2823 *=* | --config-cache | -C | -disable-* | --disable-* \
2824 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2825 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2826 | -with-* | --with-* | -without-* | --without-* | --x)
2827 case "$ac_configure_args0 " in
2828 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2831 -* ) ac_must_keep_next=true ;;
2834 as_fn_append ac_configure_args " '$ac_arg'"
2839 { ac_configure_args0=; unset ac_configure_args0;}
2840 { ac_configure_args1=; unset ac_configure_args1;}
2842 # When interrupted or exit'd, cleanup temporary files, and complete
2843 # config.log. We remove comments because anyway the quotes in there
2844 # would cause problems or look ugly.
2845 # WARNING: Use '\'' to represent an apostrophe within the trap.
2846 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2847 trap 'exit_status=$?
2848 # Save into config.log some information that might help in debugging.
2852 $as_echo "## ---------------- ##
2853 ## Cache variables. ##
2854 ## ---------------- ##"
2856 # The following way of writing the cache mishandles newlines in values,
2858 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2859 eval ac_val=\$$ac_var
2863 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2864 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2867 _ | IFS | as_nl) ;; #(
2868 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2869 *) { eval $ac_var=; unset $ac_var;} ;;
2874 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2875 *${as_nl}ac_space=\ *)
2877 "s/'\''/'\''\\\\'\'''\''/g;
2878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2888 $as_echo "## ----------------- ##
2889 ## Output variables. ##
2890 ## ----------------- ##"
2892 for ac_var in $ac_subst_vars
2894 eval ac_val=\$$ac_var
2896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2898 $as_echo "$ac_var='\''$ac_val'\''"
2902 if test -n "$ac_subst_files"; then
2903 $as_echo "## ------------------- ##
2904 ## File substitutions. ##
2905 ## ------------------- ##"
2907 for ac_var in $ac_subst_files
2909 eval ac_val=\$$ac_var
2911 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2913 $as_echo "$ac_var='\''$ac_val'\''"
2918 if test -s confdefs.h; then
2919 $as_echo "## ----------- ##
2926 test "$ac_signal" != 0 &&
2927 $as_echo "$as_me: caught signal $ac_signal"
2928 $as_echo "$as_me: exit $exit_status"
2930 rm -f core *.core core.conftest.* &&
2931 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2934 for ac_signal in 1 2 13 15; do
2935 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2939 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2940 rm -f -r conftest* confdefs.h
2942 $as_echo "/* confdefs.h */" > confdefs.h
2944 # Predefined preprocessor variables.
2946 cat >>confdefs.h <<_ACEOF
2947 #define PACKAGE_NAME "$PACKAGE_NAME"
2950 cat >>confdefs.h <<_ACEOF
2951 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2954 cat >>confdefs.h <<_ACEOF
2955 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2958 cat >>confdefs.h <<_ACEOF
2959 #define PACKAGE_STRING "$PACKAGE_STRING"
2962 cat >>confdefs.h <<_ACEOF
2963 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2966 cat >>confdefs.h <<_ACEOF
2967 #define PACKAGE_URL "$PACKAGE_URL"
2971 # Let the site file select an alternate cache file if it wants to.
2972 # Prefer an explicitly selected file to automatically selected ones.
2975 if test -n "$CONFIG_SITE"; then
2976 # We do not want a PATH search for config.site.
2977 case $CONFIG_SITE in #((
2978 -*) ac_site_file1=./$CONFIG_SITE;;
2979 */*) ac_site_file1=$CONFIG_SITE;;
2980 *) ac_site_file1=./$CONFIG_SITE;;
2982 elif test "x$prefix" != xNONE; then
2983 ac_site_file1=$prefix/share/config.site
2984 ac_site_file2=$prefix/etc/config.site
2986 ac_site_file1=$ac_default_prefix/share/config.site
2987 ac_site_file2=$ac_default_prefix/etc/config.site
2989 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2991 test "x$ac_site_file" = xNONE && continue
2992 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2994 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2995 sed 's/^/| /' "$ac_site_file" >&5
2997 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999 as_fn_error $? "failed to load site script $ac_site_file
3000 See \`config.log' for more details" "$LINENO" 5; }
3004 if test -r "$cache_file"; then
3005 # Some versions of bash will fail to source /dev/null (special files
3006 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3007 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3009 $as_echo "$as_me: loading cache $cache_file" >&6;}
3011 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3012 *) . "./$cache_file";;
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3017 $as_echo "$as_me: creating cache $cache_file" >&6;}
3021 as_fn_append ac_header_list " stdarg.h"
3022 # Check that the precious variables saved in the cache have kept the same
3024 ac_cache_corrupted=false
3025 for ac_var in $ac_precious_vars; do
3026 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3027 eval ac_new_set=\$ac_env_${ac_var}_set
3028 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3029 eval ac_new_val=\$ac_env_${ac_var}_value
3030 case $ac_old_set,$ac_new_set in
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3033 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3034 ac_cache_corrupted=: ;;
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3037 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3038 ac_cache_corrupted=: ;;
3041 if test "x$ac_old_val" != "x$ac_new_val"; then
3042 # differences in whitespace do not lead to failure.
3043 ac_old_val_w=`echo x $ac_old_val`
3044 ac_new_val_w=`echo x $ac_new_val`
3045 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3047 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3048 ac_cache_corrupted=:
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3051 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3052 eval $ac_var=\$ac_old_val
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3055 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3057 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3060 # Pass precious variables to config.status.
3061 if test "$ac_new_set" = set; then
3063 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3064 *) ac_arg=$ac_var=$ac_new_val ;;
3066 case " $ac_configure_args " in
3067 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3068 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3072 if $ac_cache_corrupted; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3076 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3077 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3079 ## -------------------- ##
3080 ## Main body of script. ##
3081 ## -------------------- ##
3084 ac_cpp='$CPP $CPPFLAGS'
3085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3092 for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
3093 if test -f "$ac_dir/install-sh"; then
3095 ac_install_sh="$ac_aux_dir/install-sh -c"
3097 elif test -f "$ac_dir/install.sh"; then
3099 ac_install_sh="$ac_aux_dir/install.sh -c"
3101 elif test -f "$ac_dir/shtool"; then
3103 ac_install_sh="$ac_aux_dir/shtool install -c"
3107 if test -z "$ac_aux_dir"; then
3108 as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
3111 # These three variables are undocumented and unsupported,
3112 # and are intended to be withdrawn in a future Autoconf release.
3113 # They can cause serious problems if a builder's source tree is in a directory
3114 # whose full name contains unusual characters.
3115 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3116 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3117 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3125 # Bump ntp_configure_cache_version for each change to configure.ac or
3126 # .m4 files which invalidates cached values from previous configure
3129 # If the change affects cache variables used only by the main NTP
3130 # configure.ac, then only its version number should be bumped, while
3131 # the subdir configure.ac version numbers should be unchanged. The
3132 # same is true for a test/variable that is used only by one subdir
3133 # being changed incompatibly; only that subdir's cache version needs
3136 # If a change affects variables shared by all NTP configure scripts,
3137 # please bump the version numbers of each. If you are not sure, the
3138 # safe choice is to bump all on any cache-invalidating change.
3140 # In order to avoid the risk of version stamp collision between -stable
3141 # and -dev branches, do not simply increment the version, instead use
3142 # the date YYYYMMDD optionally with -HHMM if there is more than one
3145 ntp_configure_cache_version=20120806
3147 # When the cache version of config.cache and configure do not
3148 # match, NTP_CACHEVERSION will flush the cache.
3154 case "$ntp_cv_main_cache_version" in
3155 $ntp_configure_cache_version)
3156 # same version, good
3160 # No cache, predates ntp_cv_main_cache_version, or is empty.
3161 case "$cache_file" in
3166 case "$NTP_CACHEVERSION_PARENT" in
3168 # Do not clear the cache immediately after it is created
3169 # empty as it is noisy. Differentiate a newly-created
3170 # config.cache from one predating the cache version
3171 # mechanism by looking for the first cached variable set
3173 case "$ac_cv_path_install" in
3175 # empty config.cache file
3180 # Parent configure just created cache from empty,
3181 # flushing would be counterproductive.
3188 # configure cache version mismatches config.cache version
3192 case "$ntp_cache_flush" in
3194 c_version="${ntp_cv_main_cache_version:-(no version found)}"
3196 # Do we flush all variables or exclude others' version stamps?
3198 case "$NTP_CACHEVERSION_PARENT" in
3200 # Clear all *_cv_* variables including our child subdirs'
3201 # ntp_cv_*_cache_version variables. This prevents subdir
3202 # configure scripts from noticing a version mismatch just
3203 # after the top configure in the invocation cleared and
3204 # recreated the cache.
3206 c_varname_list=`set |
3207 sed -n -e 's/=.*$//' \
3212 # This is not the top configure this particular invocation.
3213 # Clear all *_cv_* variables sparing the version stamps
3214 # of other configure scripts, so we don't trigger
3215 # useless repeated clearings.
3217 c_varname_list=`set |
3218 sed -n -e 's/=.*$//' \
3219 -e '/ntp_cv_.*_cache_version/d' \
3224 for c_varname in $c_varname_list
3226 { eval $c_varname=; unset $c_varname; }
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3230 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
3232 $as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3234 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
3235 { c_varname=; unset c_varname;}
3236 { c_varname_list=; unset c_varname_list;}
3237 { c_version=; unset c_version;}
3240 { ntp_cache_flush=; unset ntp_cache_flush;}
3242 # save configure version in config.cache for next time
3243 ntp_cv_main_cache_version="$ntp_configure_cache_version"
3245 # let any subdir configure.ac NTP_CACHEVERSION invocations
3246 # know they are not the top level.
3247 NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT
3250 am__api_version='1.15'
3252 # Find a good install program. We prefer a C program (faster),
3253 # so one script is as good as another. But avoid the broken or
3254 # incompatible versions:
3255 # SysV /etc/install, /usr/sbin/install
3256 # SunOS /usr/etc/install
3257 # IRIX /sbin/install
3259 # AmigaOS /C/install, which installs bootblocks on floppy discs
3260 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3261 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3262 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3263 # OS/2's system install, which has a completely different semantic
3264 # ./install, which can be erroneously created by make from ./install.sh.
3265 # Reject install programs that cannot install multiple files.
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3267 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3268 if test -z "$INSTALL"; then
3269 if ${ac_cv_path_install+:} false; then :
3270 $as_echo_n "(cached) " >&6
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 test -z "$as_dir" && as_dir=.
3277 # Account for people who put trailing slashes in PATH elements.
3278 case $as_dir/ in #((
3279 ./ | .// | /[cC]/* | \
3280 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3281 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3284 # OSF1 and SCO ODT 3.0 have their own names for install.
3285 # Don't use installbsd from OSF since it installs stuff as root
3287 for ac_prog in ginstall scoinst install; do
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3290 if test $ac_prog = install &&
3291 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3292 # AIX install. It has an incompatible calling convention.
3294 elif test $ac_prog = install &&
3295 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3296 # program-specific install script used by HP pwplus--don't use.
3299 rm -rf conftest.one conftest.two conftest.dir
3300 echo one > conftest.one
3301 echo two > conftest.two
3303 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3304 test -s conftest.one && test -s conftest.two &&
3305 test -s conftest.dir/conftest.one &&
3306 test -s conftest.dir/conftest.two
3308 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3321 rm -rf conftest.one conftest.two conftest.dir
3324 if test "${ac_cv_path_install+set}" = set; then
3325 INSTALL=$ac_cv_path_install
3327 # As a last resort, use the slow shell script. Don't cache a
3328 # value for INSTALL within a source directory, because that will
3329 # break other packages using the cache if that directory is
3330 # removed, or if the value is a relative name.
3331 INSTALL=$ac_install_sh
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3335 $as_echo "$INSTALL" >&6; }
3337 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3338 # It thinks the first close brace ends the variable substitution.
3339 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3341 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3343 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3346 $as_echo_n "checking whether build environment is sane... " >&6; }
3347 # Reject unsafe characters in $srcdir or the absolute working directory
3348 # name. Accept space and tab only in the latter.
3352 *[\\\"\#\$\&\'\`$am_lf]*)
3353 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3356 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3357 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3360 # Do 'set' in a subshell so we don't clobber the current shell's
3361 # arguments. Must try -L first in case configure is actually a
3362 # symlink; some systems play weird games with the mod time of symlinks
3363 # (eg FreeBSD returns the mod time of the symlink's containing
3367 for am_try in 1 2; do
3368 echo "timestamp, slept: $am_has_slept" > conftest.file
3369 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3370 if test "$*" = "X"; then
3372 set X `ls -t "$srcdir/configure" conftest.file`
3374 if test "$*" != "X $srcdir/configure conftest.file" \
3375 && test "$*" != "X conftest.file $srcdir/configure"; then
3377 # If neither matched, then we have a broken ls. This can happen
3378 # if, for instance, CONFIG_SHELL is bash and it inherits a
3379 # broken ls alias from the environment. This has actually
3380 # happened. Such a system could not be considered "sane".
3381 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3382 alias in your environment" "$LINENO" 5
3384 if test "$2" = conftest.file || test $am_try -eq 2; then
3391 test "$2" = conftest.file
3397 as_fn_error $? "newly created file is older than distributed files!
3398 Check your system clock" "$LINENO" 5
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3401 $as_echo "yes" >&6; }
3402 # If we didn't sleep, we still need to ensure time stamps of config.status and
3403 # generated files are strictly newer.
3405 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3412 test "$program_prefix" != NONE &&
3413 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3414 # Use a double $ so make ignores it.
3415 test "$program_suffix" != NONE &&
3416 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3417 # Double any \ or $.
3418 # By default was `s,x,x', remove it if useless.
3419 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3420 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3422 # Expand $ac_aux_dir to an absolute path.
3423 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3425 if test x"${MISSING+set}" != xset; then
3428 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3430 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3433 # Use eval to expand $SHELL
3434 if eval "$MISSING --is-lightweight"; then
3435 am_missing_run="$MISSING "
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3439 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3442 if test x"${install_sh+set}" != xset; then
3445 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3447 install_sh="\${SHELL} $am_aux_dir/install-sh"
3451 # Installed binaries are usually stripped using 'strip' when the user
3452 # run "make install-strip". However 'strip' might not be the right
3453 # tool to use in cross-compilation environments, therefore Automake
3454 # will honor the 'STRIP' environment variable to overrule this program.
3455 if test "$cross_compiling" != no; then
3456 if test -n "$ac_tool_prefix"; then
3457 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3458 set dummy ${ac_tool_prefix}strip; ac_word=$2
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460 $as_echo_n "checking for $ac_word... " >&6; }
3461 if ${ac_cv_prog_STRIP+:} false; then :
3462 $as_echo_n "(cached) " >&6
3464 if test -n "$STRIP"; then
3465 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 STRIP=$ac_cv_prog_STRIP
3485 if test -n "$STRIP"; then
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3487 $as_echo "$STRIP" >&6; }
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490 $as_echo "no" >&6; }
3495 if test -z "$ac_cv_prog_STRIP"; then
3497 # Extract the first word of "strip", so it can be a program name with args.
3498 set dummy strip; ac_word=$2
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 $as_echo_n "checking for $ac_word... " >&6; }
3501 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3502 $as_echo_n "(cached) " >&6
3504 if test -n "$ac_ct_STRIP"; then
3505 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3514 ac_cv_prog_ac_ct_STRIP="strip"
3515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3525 if test -n "$ac_ct_STRIP"; then
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3527 $as_echo "$ac_ct_STRIP" >&6; }
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 $as_echo "no" >&6; }
3533 if test "x$ac_ct_STRIP" = x; then
3536 case $cross_compiling:$ac_tool_warned in
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3540 ac_tool_warned=yes ;;
3545 STRIP="$ac_cv_prog_STRIP"
3549 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3552 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3553 if test -z "$MKDIR_P"; then
3554 if ${ac_cv_path_mkdir+:} false; then :
3555 $as_echo_n "(cached) " >&6
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3561 test -z "$as_dir" && as_dir=.
3562 for ac_prog in mkdir gmkdir; do
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3565 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3566 'mkdir (GNU coreutils) '* | \
3567 'mkdir (coreutils) '* | \
3568 'mkdir (fileutils) '4.1*)
3569 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3579 test -d ./--version && rmdir ./--version
3580 if test "${ac_cv_path_mkdir+set}" = set; then
3581 MKDIR_P="$ac_cv_path_mkdir -p"
3583 # As a last resort, use the slow shell script. Don't cache a
3584 # value for MKDIR_P within a source directory, because that will
3585 # break other packages using the cache if that directory is
3586 # removed, or if the value is a relative name.
3587 MKDIR_P="$ac_install_sh -d"
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3591 $as_echo "$MKDIR_P" >&6; }
3593 for ac_prog in gawk mawk nawk awk
3595 # Extract the first word of "$ac_prog", so it can be a program name with args.
3596 set dummy $ac_prog; ac_word=$2
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598 $as_echo_n "checking for $ac_word... " >&6; }
3599 if ${ac_cv_prog_AWK+:} false; then :
3600 $as_echo_n "(cached) " >&6
3602 if test -n "$AWK"; then
3603 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 test -z "$as_dir" && as_dir=.
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3612 ac_cv_prog_AWK="$ac_prog"
3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 if test -n "$AWK"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3625 $as_echo "$AWK" >&6; }
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3632 test -n "$AWK" && break
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3636 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3638 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3639 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3640 $as_echo_n "(cached) " >&6
3642 cat >conftest.make <<\_ACEOF
3645 @echo '@@@%%%=$(MAKE)=@@@%%%'
3647 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3648 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3650 eval ac_cv_prog_make_${ac_make}_set=yes;;
3652 eval ac_cv_prog_make_${ac_make}_set=no;;
3656 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3658 $as_echo "yes" >&6; }
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3663 SET_MAKE="MAKE=${MAKE-make}"
3666 rm -rf .tst 2>/dev/null
3667 mkdir .tst 2>/dev/null
3668 if test -d .tst; then
3673 rmdir .tst 2>/dev/null
3675 # Check whether --enable-silent-rules was given.
3676 if test "${enable_silent_rules+set}" = set; then :
3677 enableval=$enable_silent_rules;
3680 case $enable_silent_rules in # (((
3681 yes) AM_DEFAULT_VERBOSITY=0;;
3682 no) AM_DEFAULT_VERBOSITY=1;;
3683 *) AM_DEFAULT_VERBOSITY=1;;
3685 am_make=${MAKE-make}
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3687 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3688 if ${am_cv_make_support_nested_variables+:} false; then :
3689 $as_echo_n "(cached) " >&6
3691 if $as_echo 'TRUE=$(BAR$(V))
3697 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3698 am_cv_make_support_nested_variables=yes
3700 am_cv_make_support_nested_variables=no
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3704 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3705 if test $am_cv_make_support_nested_variables = yes; then
3707 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3709 AM_V=$AM_DEFAULT_VERBOSITY
3710 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3714 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3715 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3716 # is not polluted with repeated "-I."
3717 am__isrc=' -I$(srcdir)'
3718 # test to see if srcdir already configured
3719 if test -f $srcdir/config.status; then
3720 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3724 # test whether we have cygpath
3725 if test -z "$CYGPATH_W"; then
3726 if (cygpath --version) >/dev/null 2>/dev/null; then
3727 CYGPATH_W='cygpath -w'
3734 # Define the identity of the package.
3739 cat >>confdefs.h <<_ACEOF
3740 #define PACKAGE "$PACKAGE"
3744 cat >>confdefs.h <<_ACEOF
3745 #define VERSION "$VERSION"
3748 # Some tools Automake needs.
3750 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3753 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3756 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3759 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3762 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3764 # For better backward compatibility. To be removed once Automake 1.9.x
3765 # dies out for good. For more background, see:
3766 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3767 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3768 mkdir_p='$(MKDIR_P)'
3770 # We need awk for the "check" target (and possibly the TAP driver). The
3771 # system "awk" is bad on some platforms.
3772 # Always define AMTAR for backward compatibility. Yes, it's still used
3773 # in the wild :-( We should find a proper way to deprecate it ...
3777 # We'll loop over all known methods to create a tar archive until one works.
3778 _am_tools='gnutar pax cpio none'
3780 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3787 # POSIX will say in a future version that running "rm -f" with no argument
3788 # is OK; and we want to be able to make that assumption in our Makefile
3789 # recipes. So use an aggressive probe to check that the usage we want is
3790 # actually supported "in the wild" to an acceptable degree.
3791 # See automake bug#10828.
3792 # To make any issue more visible, cause the running configure to be aborted
3793 # by default if the 'rm' program in use doesn't match our expectations; the
3794 # user can still override this though.
3795 if rm -f && rm -fr && rm -rf; then : OK; else
3799 Your 'rm' program seems unable to run without file operands specified
3800 on the command line, even when the '-f' option is present. This is contrary
3801 to the behaviour of most rm programs out there, and not conforming with
3802 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3804 Please tell bug-automake@gnu.org about your system, including the value
3805 of your $PATH and any error possibly output before this message. This
3806 can help us improve future automake versions.
3809 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3810 echo 'Configuration will proceed anyway, since you have set the' >&2
3811 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3815 Aborting the configuration process, to ensure you take notice of the issue.
3817 You can download and install GNU coreutils to get an 'rm' implementation
3818 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3820 If you want to complete the configuration process using your problematic
3821 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3822 to "yes", and re-run configure.
3825 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3830 # Check whether --enable-silent-rules was given.
3831 if test "${enable_silent_rules+set}" = set; then :
3832 enableval=$enable_silent_rules;
3835 case $enable_silent_rules in # (((
3836 yes) AM_DEFAULT_VERBOSITY=0;;
3837 no) AM_DEFAULT_VERBOSITY=1;;
3838 *) AM_DEFAULT_VERBOSITY=0;;
3840 am_make=${MAKE-make}
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3842 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3843 if ${am_cv_make_support_nested_variables+:} false; then :
3844 $as_echo_n "(cached) " >&6
3846 if $as_echo 'TRUE=$(BAR$(V))
3852 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3853 am_cv_make_support_nested_variables=yes
3855 am_cv_make_support_nested_variables=no
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3859 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3860 if test $am_cv_make_support_nested_variables = yes; then
3862 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3864 AM_V=$AM_DEFAULT_VERBOSITY
3865 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3870 # Make sure we can run config.sub.
3871 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3872 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3875 $as_echo_n "checking build system type... " >&6; }
3876 if ${ac_cv_build+:} false; then :
3877 $as_echo_n "(cached) " >&6
3879 ac_build_alias=$build_alias
3880 test "x$ac_build_alias" = x &&
3881 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3882 test "x$ac_build_alias" = x &&
3883 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3884 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3885 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3889 $as_echo "$ac_cv_build" >&6; }
3890 case $ac_cv_build in
3892 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3895 ac_save_IFS=$IFS; IFS='-'
3901 # Remember, the first character of IFS is used to create $*,
3902 # except with old shells:
3905 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3909 $as_echo_n "checking host system type... " >&6; }
3910 if ${ac_cv_host+:} false; then :
3911 $as_echo_n "(cached) " >&6
3913 if test "x$host_alias" = x; then
3914 ac_cv_host=$ac_cv_build
3916 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3917 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3922 $as_echo "$ac_cv_host" >&6; }
3925 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3928 ac_save_IFS=$IFS; IFS='-'
3934 # Remember, the first character of IFS is used to create $*,
3935 # except with old shells:
3938 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3942 cat >>confdefs.h <<_ACEOF
3943 #define STR_SYSTEM "$host"
3946 ac_config_headers="$ac_config_headers config.h"
3949 ntp_atom_ok=${ntp_atom_ok=no}
3950 ntp_oncore_ok=${ntp_oncore_ok=no}
3951 ntp_parse_ok=${ntp_parse_ok=no}
3952 ntp_ripe_ncc_ok=${ntp_parse_ok=no}
3953 ntp_jupiter_ok=${ntp_jupiter_ok=no}
3955 DEPDIR="${am__leading_dot}deps"
3957 ac_config_commands="$ac_config_commands depfiles"
3960 am_make=${MAKE-make}
3961 cat > confinc << 'END'
3963 @echo this is the am__doit target
3966 # If we don't find an include directive, just comment out the code.
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3968 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3972 # First try GNU make style include.
3973 echo "include confinc" > confmf
3974 # Ignore all kinds of additional output from 'make'.
3975 case `$am_make -s -f confmf 2> /dev/null` in #(
3976 *the\ am__doit\ target*)
3982 # Now try BSD make style include.
3983 if test "$am__include" = "#"; then
3984 echo '.include "confinc"' > confmf
3985 case `$am_make -s -f confmf 2> /dev/null` in #(
3986 *the\ am__doit\ target*)
3987 am__include=.include
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3996 $as_echo "$_am_result" >&6; }
3997 rm -f confinc confmf
3999 # Check whether --enable-dependency-tracking was given.
4000 if test "${enable_dependency_tracking+set}" = set; then :
4001 enableval=$enable_dependency_tracking;
4004 if test "x$enable_dependency_tracking" != xno; then
4005 am_depcomp="$ac_aux_dir/depcomp"
4009 if test "x$enable_dependency_tracking" != xno; then
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023 if test -n "$ac_tool_prefix"; then
4024 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4025 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 $as_echo_n "checking for $ac_word... " >&6; }
4028 if ${ac_cv_prog_CC+:} false; then :
4029 $as_echo_n "(cached) " >&6
4031 if test -n "$CC"; then
4032 ac_cv_prog_CC="$CC" # Let the user override the test.
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 if test -n "$CC"; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4054 $as_echo "$CC" >&6; }
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4062 if test -z "$ac_cv_prog_CC"; then
4064 # Extract the first word of "gcc", so it can be a program name with args.
4065 set dummy gcc; ac_word=$2
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4067 $as_echo_n "checking for $ac_word... " >&6; }
4068 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4069 $as_echo_n "(cached) " >&6
4071 if test -n "$ac_ct_CC"; then
4072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 test -z "$as_dir" && as_dir=.
4079 for ac_exec_ext in '' $ac_executable_extensions; do
4080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4081 ac_cv_prog_ac_ct_CC="gcc"
4082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4092 if test -n "$ac_ct_CC"; then
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4094 $as_echo "$ac_ct_CC" >&6; }
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4097 $as_echo "no" >&6; }
4100 if test "x$ac_ct_CC" = x; then
4103 case $cross_compiling:$ac_tool_warned in
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4107 ac_tool_warned=yes ;;
4115 if test -z "$CC"; then
4116 if test -n "$ac_tool_prefix"; then
4117 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4118 set dummy ${ac_tool_prefix}cc; ac_word=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if ${ac_cv_prog_CC+:} false; then :
4122 $as_echo_n "(cached) " >&6
4124 if test -n "$CC"; then
4125 ac_cv_prog_CC="$CC" # Let the user override the test.
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_CC="${ac_tool_prefix}cc"
4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 if test -n "$CC"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4147 $as_echo "$CC" >&6; }
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4156 if test -z "$CC"; then
4157 # Extract the first word of "cc", so it can be a program name with args.
4158 set dummy cc; ac_word=$2
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160 $as_echo_n "checking for $ac_word... " >&6; }
4161 if ${ac_cv_prog_CC+:} false; then :
4162 $as_echo_n "(cached) " >&6
4164 if test -n "$CC"; then
4165 ac_cv_prog_CC="$CC" # Let the user override the test.
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4176 ac_prog_rejected=yes
4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 if test $ac_prog_rejected = yes; then
4188 # We found a bogon in the path, so make sure we never use it.
4189 set dummy $ac_cv_prog_CC
4191 if test $# != 0; then
4192 # We chose a different compiler from the bogus one.
4193 # However, it has the same basename, so the bogon will be chosen
4194 # first if we set CC to just the basename; use the full file name.
4196 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4202 if test -n "$CC"; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4204 $as_echo "$CC" >&6; }
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4212 if test -z "$CC"; then
4213 if test -n "$ac_tool_prefix"; then
4214 for ac_prog in cl.exe
4216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219 $as_echo_n "checking for $ac_word... " >&6; }
4220 if ${ac_cv_prog_CC+:} false; then :
4221 $as_echo_n "(cached) " >&6
4223 if test -n "$CC"; then
4224 ac_cv_prog_CC="$CC" # Let the user override the test.
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 if test -n "$CC"; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4246 $as_echo "$CC" >&6; }
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4253 test -n "$CC" && break
4256 if test -z "$CC"; then
4258 for ac_prog in cl.exe
4260 # Extract the first word of "$ac_prog", so it can be a program name with args.
4261 set dummy $ac_prog; ac_word=$2
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 $as_echo_n "checking for $ac_word... " >&6; }
4264 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4265 $as_echo_n "(cached) " >&6
4267 if test -n "$ac_ct_CC"; then
4268 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277 ac_cv_prog_ac_ct_CC="$ac_prog"
4278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4288 if test -n "$ac_ct_CC"; then
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4290 $as_echo "$ac_ct_CC" >&6; }
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293 $as_echo "no" >&6; }
4297 test -n "$ac_ct_CC" && break
4300 if test "x$ac_ct_CC" = x; then
4303 case $cross_compiling:$ac_tool_warned in
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4307 ac_tool_warned=yes ;;
4316 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4318 as_fn_error $? "no acceptable C compiler found in \$PATH
4319 See \`config.log' for more details" "$LINENO" 5; }
4321 # Provide some information about the compiler.
4322 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4325 for ac_option in --version -v -V -qversion; do
4326 { { ac_try="$ac_compiler $ac_option >&5"
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332 $as_echo "$ac_try_echo"; } >&5
4333 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4335 if test -s conftest.err; then
4337 ... rest of stderr output deleted ...
4338 10q' conftest.err >conftest.er1
4339 cat conftest.er1 >&5
4341 rm -f conftest.er1 conftest.err
4342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4343 test $ac_status = 0; }
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4357 ac_clean_files_save=$ac_clean_files
4358 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4359 # Try to create an executable without -o first, disregard a.out.
4360 # It will help us diagnose broken compilers, and finding out an intuition
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4363 $as_echo_n "checking whether the C compiler works... " >&6; }
4364 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4366 # The possible output files:
4367 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4370 for ac_file in $ac_files
4373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4374 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4379 if { { ac_try="$ac_link_default"
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385 $as_echo "$ac_try_echo"; } >&5
4386 (eval "$ac_link_default") 2>&5
4388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389 test $ac_status = 0; }; then :
4390 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4391 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4392 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4393 # so that the user can short-circuit this test for compilers unknown to
4395 for ac_file in $ac_files ''
4397 test -f "$ac_file" || continue
4399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4402 # We found the default executable, but exeext='' is most
4406 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4408 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4410 # We set ac_cv_exeext here because the later test for it is not
4411 # safe: cross compilers may not add the suffix if given an `-o'
4412 # argument, so we may need to know it at that point already.
4413 # Even if this section looks crufty: it has the advantage of
4420 test "$ac_cv_exeext" = no && ac_cv_exeext=
4425 if test -z "$ac_file"; then :
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4428 $as_echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4433 as_fn_error 77 "C compiler cannot create executables
4434 See \`config.log' for more details" "$LINENO" 5; }
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4437 $as_echo "yes" >&6; }
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4440 $as_echo_n "checking for C compiler default output file name... " >&6; }
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4442 $as_echo "$ac_file" >&6; }
4443 ac_exeext=$ac_cv_exeext
4445 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4446 ac_clean_files=$ac_clean_files_save
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4448 $as_echo_n "checking for suffix of executables... " >&6; }
4449 if { { ac_try="$ac_link"
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456 (eval "$ac_link") 2>&5
4458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; }; then :
4460 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4461 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4462 # work properly (i.e., refer to `conftest.exe'), while it won't with
4464 for ac_file in conftest.exe conftest conftest.*; do
4465 test -f "$ac_file" || continue
4467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4468 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4476 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4477 See \`config.log' for more details" "$LINENO" 5; }
4479 rm -f conftest conftest$ac_cv_exeext
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4481 $as_echo "$ac_cv_exeext" >&6; }
4483 rm -f conftest.$ac_ext
4484 EXEEXT=$ac_cv_exeext
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4492 FILE *f = fopen ("conftest.out", "w");
4493 return ferror (f) || fclose (f) != 0;
4499 ac_clean_files="$ac_clean_files conftest.out"
4500 # Check that the compiler produces executables we can run. If not, either
4501 # the compiler is broken, or we cross compile.
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4503 $as_echo_n "checking whether we are cross compiling... " >&6; }
4504 if test "$cross_compiling" != yes; then
4505 { { ac_try="$ac_link"
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511 $as_echo "$ac_try_echo"; } >&5
4512 (eval "$ac_link") 2>&5
4514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }
4516 if { ac_try='./conftest$ac_cv_exeext'
4517 { { case "(($ac_try" in
4518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519 *) ac_try_echo=$ac_try;;
4521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4522 $as_echo "$ac_try_echo"; } >&5
4523 (eval "$ac_try") 2>&5
4525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4526 test $ac_status = 0; }; }; then
4529 if test "$cross_compiling" = maybe; then
4532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4534 as_fn_error $? "cannot run C compiled programs.
4535 If you meant to cross compile, use \`--host'.
4536 See \`config.log' for more details" "$LINENO" 5; }
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4541 $as_echo "$cross_compiling" >&6; }
4543 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4544 ac_clean_files=$ac_clean_files_save
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4546 $as_echo_n "checking for suffix of object files... " >&6; }
4547 if ${ac_cv_objext+:} false; then :
4548 $as_echo_n "(cached) " >&6
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4561 rm -f conftest.o conftest.obj
4562 if { { ac_try="$ac_compile"
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4568 $as_echo "$ac_try_echo"; } >&5
4569 (eval "$ac_compile") 2>&5
4571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4572 test $ac_status = 0; }; then :
4573 for ac_file in conftest.o conftest.obj conftest.*; do
4574 test -f "$ac_file" || continue;
4576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4577 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4582 $as_echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4587 as_fn_error $? "cannot compute suffix of object files: cannot compile
4588 See \`config.log' for more details" "$LINENO" 5; }
4590 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4593 $as_echo "$ac_cv_objext" >&6; }
4594 OBJEXT=$ac_cv_objext
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4597 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4598 if ${ac_cv_c_compiler_gnu+:} false; then :
4599 $as_echo_n "(cached) " >&6
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4615 if ac_fn_c_try_compile "$LINENO"; then :
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4625 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4626 if test $ac_compiler_gnu = yes; then
4631 ac_test_CFLAGS=${CFLAGS+set}
4632 ac_save_CFLAGS=$CFLAGS
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4634 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4635 if ${ac_cv_prog_cc_g+:} false; then :
4636 $as_echo_n "(cached) " >&6
4638 ac_save_c_werror_flag=$ac_c_werror_flag
4639 ac_c_werror_flag=yes
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4653 if ac_fn_c_try_compile "$LINENO"; then :
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4668 if ac_fn_c_try_compile "$LINENO"; then :
4671 ac_c_werror_flag=$ac_save_c_werror_flag
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4684 if ac_fn_c_try_compile "$LINENO"; then :
4687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 ac_c_werror_flag=$ac_save_c_werror_flag
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4695 $as_echo "$ac_cv_prog_cc_g" >&6; }
4696 if test "$ac_test_CFLAGS" = set; then
4697 CFLAGS=$ac_save_CFLAGS
4698 elif test $ac_cv_prog_cc_g = yes; then
4699 if test "$GCC" = yes; then
4705 if test "$GCC" = yes; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4712 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4713 if ${ac_cv_prog_cc_c89+:} false; then :
4714 $as_echo_n "(cached) " >&6
4716 ac_cv_prog_cc_c89=no
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4723 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4724 struct buf { int x; };
4725 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4726 static char *e (p, i)
4732 static char *f (char * (*g) (char **, int), char **p, ...)
4737 s = g (p, va_arg (v,int));
4742 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4743 function prototypes and stuff, but not '\xHH' hex character constants.
4744 These don't provoke an error unfortunately, instead are silently treated
4745 as 'x'. The following induces an error, until -std is added to get
4746 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4747 array size at least. It's necessary to write '\x00'==0 to get something
4748 that's true only with -std. */
4749 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4751 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4752 inside strings and character constants. */
4754 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4756 int test (int i, double x);
4757 struct s1 {int (*f) (int a);};
4758 struct s2 {int (*f) (double a);};
4759 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4765 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4770 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4771 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4773 CC="$ac_save_CC $ac_arg"
4774 if ac_fn_c_try_compile "$LINENO"; then :
4775 ac_cv_prog_cc_c89=$ac_arg
4777 rm -f core conftest.err conftest.$ac_objext
4778 test "x$ac_cv_prog_cc_c89" != "xno" && break
4780 rm -f conftest.$ac_ext
4785 case "x$ac_cv_prog_cc_c89" in
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4788 $as_echo "none needed" >&6; } ;;
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4791 $as_echo "unsupported" >&6; } ;;
4793 CC="$CC $ac_cv_prog_cc_c89"
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4795 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4797 if test "x$ac_cv_prog_cc_c89" != xno; then :
4802 ac_cpp='$CPP $CPPFLAGS'
4803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808 ac_cpp='$CPP $CPPFLAGS'
4809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4813 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4814 if ${am_cv_prog_cc_c_o+:} false; then :
4815 $as_echo_n "(cached) " >&6
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4828 # Make sure it works both with $CC and with simple cc.
4829 # Following AC_PROG_CC_C_O, we do the test twice because some
4830 # compilers refuse to overwrite an existing .o file with -o,
4831 # though they will create one.
4832 am_cv_prog_cc_c_o=yes
4834 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4835 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } \
4839 && test -f conftest2.$ac_objext; then
4842 am_cv_prog_cc_c_o=no
4846 rm -f core conftest*
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4850 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4851 if test "$am_cv_prog_cc_c_o" != yes; then
4852 # Losing compiler, so override with the script.
4853 # FIXME: It is wrong to rewrite CC.
4854 # But if we don't then we get into trouble of one sort or another.
4855 # A longer-term fix would be to have automake use am__CC in this case,
4856 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4857 CC="$am_aux_dir/compile $CC"
4860 ac_cpp='$CPP $CPPFLAGS'
4861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4866 depcc="$CC" am_compiler_list=
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4869 $as_echo_n "checking dependency style of $depcc... " >&6; }
4870 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4871 $as_echo_n "(cached) " >&6
4873 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4874 # We make a subdir and do the tests there. Otherwise we can end up
4875 # making bogus files that we don't know about and never remove. For
4876 # instance it was reported that on HP-UX the gcc test will end up
4877 # making a dummy file named 'D' -- because '-MD' means "put the output
4881 # Copy depcomp to subdir because otherwise we won't find it if we're
4882 # using a relative directory.
4883 cp "$am_depcomp" conftest.dir
4885 # We will build objects and dependencies in a subdirectory because
4886 # it helps to detect inapplicable dependency modes. For instance
4887 # both Tru64's cc and ICC support -MD to output dependencies as a
4888 # side effect of compilation, but ICC will put the dependencies in
4889 # the current directory while Tru64 will put them in the object
4893 am_cv_CC_dependencies_compiler_type=none
4894 if test "$am_compiler_list" = ""; then
4895 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4898 case " $depcc " in #(
4899 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4902 for depmode in $am_compiler_list; do
4903 # Setup a source with many dependencies, because some compilers
4904 # like to wrap large dependency lists on column 80 (with \), and
4905 # we should not choose a depcomp mode which is confused by this.
4907 # We need to recreate these files for each test, as the compiler may
4908 # overwrite some of them when testing with obscure command lines.
4909 # This happens at least with the AIX C compiler.
4911 for i in 1 2 3 4 5 6; do
4912 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4913 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4914 # Solaris 10 /bin/sh.
4915 echo '/* dummy */' > sub/conftst$i.h
4917 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4919 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4920 # mode. It turns out that the SunPro C++ compiler does not properly
4921 # handle '-M -o', and we need to detect this. Also, some Intel
4922 # versions had trouble with output in subdirs.
4923 am__obj=sub/conftest.${OBJEXT-o}
4924 am__minus_obj="-o $am__obj"
4927 # This depmode causes a compiler race in universal mode.
4928 test "$am__universal" = false || continue
4931 # After this tag, mechanisms are not by side-effect, so they'll
4932 # only be used when explicitly requested.
4933 if test "x$enable_dependency_tracking" = xyes; then
4939 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4940 # This compiler won't grok '-c -o', but also, the minuso test has
4941 # not run yet. These depmodes are late enough in the game, and
4942 # so weak that their functioning should not be impacted.
4943 am__obj=conftest.${OBJEXT-o}
4948 if depmode=$depmode \
4949 source=sub/conftest.c object=$am__obj \
4950 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4951 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4952 >/dev/null 2>conftest.err &&
4953 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4954 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4955 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4956 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4957 # icc doesn't choke on unknown options, it will just issue warnings
4958 # or remarks (even with -Werror). So we grep stderr for any message
4959 # that says an option was ignored or not supported.
4960 # When given -MP, icc 7.0 and 7.1 complain thusly:
4961 # icc: Command line warning: ignoring option '-M'; no argument required
4962 # The diagnosis changed in icc 8.0:
4963 # icc: Command line remark: option '-MP' not supported
4964 if (grep 'ignoring option' conftest.err ||
4965 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4966 am_cv_CC_dependencies_compiler_type=$depmode
4975 am_cv_CC_dependencies_compiler_type=none
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4980 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4981 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4984 test "x$enable_dependency_tracking" != xno \
4985 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4987 am__fastdepCC_FALSE='#'
4989 am__fastdepCC_TRUE='#'
4990 am__fastdepCC_FALSE=
4996 ac_cpp='$CPP $CPPFLAGS'
4997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5001 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5002 # On Suns, sometimes $CPP names a directory.
5003 if test -n "$CPP" && test -d "$CPP"; then
5006 if test -z "$CPP"; then
5007 if ${ac_cv_prog_CPP+:} false; then :
5008 $as_echo_n "(cached) " >&6
5010 # Double quotes because CPP needs to be expanded
5011 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5014 for ac_c_preproc_warn_flag in '' yes
5016 # Use a header file that comes with gcc, so configuring glibc
5017 # with a fresh cross-compiler works.
5018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5019 # <limits.h> exists even on freestanding compilers.
5020 # On the NeXT, cc -E runs the code through the compiler's parser,
5021 # not just through cpp. "Syntax error" is here to catch this case.
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5025 # include <limits.h>
5027 # include <assert.h>
5031 if ac_fn_c_try_cpp "$LINENO"; then :
5034 # Broken: fails on valid input.
5037 rm -f conftest.err conftest.i conftest.$ac_ext
5039 # OK, works on sane cases. Now check whether nonexistent headers
5040 # can be detected and how.
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5043 #include <ac_nonexistent.h>
5045 if ac_fn_c_try_cpp "$LINENO"; then :
5046 # Broken: success on invalid input.
5049 # Passes both tests.
5053 rm -f conftest.err conftest.i conftest.$ac_ext
5056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5057 rm -f conftest.i conftest.err conftest.$ac_ext
5058 if $ac_preproc_ok; then :
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5071 $as_echo "$CPP" >&6; }
5073 for ac_c_preproc_warn_flag in '' yes
5075 # Use a header file that comes with gcc, so configuring glibc
5076 # with a fresh cross-compiler works.
5077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5078 # <limits.h> exists even on freestanding compilers.
5079 # On the NeXT, cc -E runs the code through the compiler's parser,
5080 # not just through cpp. "Syntax error" is here to catch this case.
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5084 # include <limits.h>
5086 # include <assert.h>
5090 if ac_fn_c_try_cpp "$LINENO"; then :
5093 # Broken: fails on valid input.
5096 rm -f conftest.err conftest.i conftest.$ac_ext
5098 # OK, works on sane cases. Now check whether nonexistent headers
5099 # can be detected and how.
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 #include <ac_nonexistent.h>
5104 if ac_fn_c_try_cpp "$LINENO"; then :
5105 # Broken: success on invalid input.
5108 # Passes both tests.
5112 rm -f conftest.err conftest.i conftest.$ac_ext
5115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5116 rm -f conftest.i conftest.err conftest.$ac_ext
5117 if $ac_preproc_ok; then :
5120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5122 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5123 See \`config.log' for more details" "$LINENO" 5; }
5127 ac_cpp='$CPP $CPPFLAGS'
5128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5134 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5135 if ${ac_cv_path_GREP+:} false; then :
5136 $as_echo_n "(cached) " >&6
5138 if test -z "$GREP"; then
5139 ac_path_GREP_found=false
5140 # Loop through the user's path and test for each of PROGNAME-LIST
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5145 test -z "$as_dir" && as_dir=.
5146 for ac_prog in grep ggrep; do
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5149 as_fn_executable_p "$ac_path_GREP" || continue
5150 # Check for GNU ac_path_GREP and select it if it is found.
5151 # Check for GNU $ac_path_GREP
5152 case `"$ac_path_GREP" --version 2>&1` in
5154 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5157 $as_echo_n 0123456789 >"conftest.in"
5160 cat "conftest.in" "conftest.in" >"conftest.tmp"
5161 mv "conftest.tmp" "conftest.in"
5162 cp "conftest.in" "conftest.nl"
5163 $as_echo 'GREP' >> "conftest.nl"
5164 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5166 as_fn_arith $ac_count + 1 && ac_count=$as_val
5167 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5168 # Best one so far, save it but keep looking for a better one
5169 ac_cv_path_GREP="$ac_path_GREP"
5170 ac_path_GREP_max=$ac_count
5172 # 10*(2^10) chars as input seems more than enough
5173 test $ac_count -gt 10 && break
5175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5178 $ac_path_GREP_found && break 3
5183 if test -z "$ac_cv_path_GREP"; then
5184 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5187 ac_cv_path_GREP=$GREP
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5192 $as_echo "$ac_cv_path_GREP" >&6; }
5193 GREP="$ac_cv_path_GREP"
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5197 $as_echo_n "checking for egrep... " >&6; }
5198 if ${ac_cv_path_EGREP+:} false; then :
5199 $as_echo_n "(cached) " >&6
5201 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5202 then ac_cv_path_EGREP="$GREP -E"
5204 if test -z "$EGREP"; then
5205 ac_path_EGREP_found=false
5206 # Loop through the user's path and test for each of PROGNAME-LIST
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5211 test -z "$as_dir" && as_dir=.
5212 for ac_prog in egrep; do
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5215 as_fn_executable_p "$ac_path_EGREP" || continue
5216 # Check for GNU ac_path_EGREP and select it if it is found.
5217 # Check for GNU $ac_path_EGREP
5218 case `"$ac_path_EGREP" --version 2>&1` in
5220 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5223 $as_echo_n 0123456789 >"conftest.in"
5226 cat "conftest.in" "conftest.in" >"conftest.tmp"
5227 mv "conftest.tmp" "conftest.in"
5228 cp "conftest.in" "conftest.nl"
5229 $as_echo 'EGREP' >> "conftest.nl"
5230 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5232 as_fn_arith $ac_count + 1 && ac_count=$as_val
5233 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5234 # Best one so far, save it but keep looking for a better one
5235 ac_cv_path_EGREP="$ac_path_EGREP"
5236 ac_path_EGREP_max=$ac_count
5238 # 10*(2^10) chars as input seems more than enough
5239 test $ac_count -gt 10 && break
5241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5244 $ac_path_EGREP_found && break 3
5249 if test -z "$ac_cv_path_EGREP"; then
5250 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5253 ac_cv_path_EGREP=$EGREP
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5259 $as_echo "$ac_cv_path_EGREP" >&6; }
5260 EGREP="$ac_cv_path_EGREP"
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5264 $as_echo_n "checking for ANSI C header files... " >&6; }
5265 if ${ac_cv_header_stdc+:} false; then :
5266 $as_echo_n "(cached) " >&6
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5283 if ac_fn_c_try_compile "$LINENO"; then :
5284 ac_cv_header_stdc=yes
5286 ac_cv_header_stdc=no
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 if test $ac_cv_header_stdc = yes; then
5291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5298 $EGREP "memchr" >/dev/null 2>&1; then :
5301 ac_cv_header_stdc=no
5307 if test $ac_cv_header_stdc = yes; then
5308 # ISC 2.0.2 stdlib.h does not declare free, 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 "free" >/dev/null 2>&1; then :
5318 ac_cv_header_stdc=no
5324 if test $ac_cv_header_stdc = yes; then
5325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5326 if test "$cross_compiling" = yes; then :
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5333 #if ((' ' & 0x0FF) == 0x020)
5334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5337 # define ISLOWER(c) \
5338 (('a' <= (c) && (c) <= 'i') \
5339 || ('j' <= (c) && (c) <= 'r') \
5340 || ('s' <= (c) && (c) <= 'z'))
5341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5349 for (i = 0; i < 256; i++)
5350 if (XOR (islower (i), ISLOWER (i))
5351 || toupper (i) != TOUPPER (i))
5356 if ac_fn_c_try_run "$LINENO"; then :
5359 ac_cv_header_stdc=no
5361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5362 conftest.$ac_objext conftest.beam conftest.$ac_ext
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5368 $as_echo "$ac_cv_header_stdc" >&6; }
5369 if test $ac_cv_header_stdc = yes; then
5371 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5376 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5377 inttypes.h stdint.h unistd.h
5379 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5380 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5382 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5383 cat >>confdefs.h <<_ACEOF
5384 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5395 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5396 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5403 if test "$MINIX" = yes; then
5405 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5408 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5411 $as_echo "#define _MINIX 1" >>confdefs.h
5418 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5425 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5426 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5427 $as_echo_n "(cached) " >&6
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5432 # define __EXTENSIONS__ 1
5433 $ac_includes_default
5442 if ac_fn_c_try_compile "$LINENO"; then :
5443 ac_cv_safe_to_define___extensions__=yes
5445 ac_cv_safe_to_define___extensions__=no
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5450 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5451 test $ac_cv_safe_to_define___extensions__ = yes &&
5452 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5454 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5456 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5458 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5460 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5465 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5466 if ${ac_cv_prog_cc_c89+:} false; then :
5467 $as_echo_n "(cached) " >&6
5469 ac_cv_prog_cc_c89=no
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5476 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5477 struct buf { int x; };
5478 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5479 static char *e (p, i)
5485 static char *f (char * (*g) (char **, int), char **p, ...)
5490 s = g (p, va_arg (v,int));
5495 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5496 function prototypes and stuff, but not '\xHH' hex character constants.
5497 These don't provoke an error unfortunately, instead are silently treated
5498 as 'x'. The following induces an error, until -std is added to get
5499 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5500 array size at least. It's necessary to write '\x00'==0 to get something
5501 that's true only with -std. */
5502 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5504 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5505 inside strings and character constants. */
5507 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5509 int test (int i, double x);
5510 struct s1 {int (*f) (int a);};
5511 struct s2 {int (*f) (double a);};
5512 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5518 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5523 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5524 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5526 CC="$ac_save_CC $ac_arg"
5527 if ac_fn_c_try_compile "$LINENO"; then :
5528 ac_cv_prog_cc_c89=$ac_arg
5530 rm -f core conftest.err conftest.$ac_objext
5531 test "x$ac_cv_prog_cc_c89" != "xno" && break
5533 rm -f conftest.$ac_ext
5538 case "x$ac_cv_prog_cc_c89" in
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5541 $as_echo "none needed" >&6; } ;;
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5544 $as_echo "unsupported" >&6; } ;;
5546 CC="$CC $ac_cv_prog_cc_c89"
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5548 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5550 if test "x$ac_cv_prog_cc_c89" != xno; then :
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5556 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5557 if ${ac_cv_prog_cc_c99+:} false; then :
5558 $as_echo_n "(cached) " >&6
5560 ac_cv_prog_cc_c99=no
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5565 #include <stdbool.h>
5570 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5571 #define debug(...) fprintf (stderr, __VA_ARGS__)
5572 #define showlist(...) puts (#__VA_ARGS__)
5573 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5575 test_varargs_macros (void)
5580 debug ("X = %d\n", x);
5581 showlist (The first, second, and third items.);
5582 report (x>y, "x is %d but y is %d", x, y);
5585 // Check long long types.
5586 #define BIG64 18446744073709551615ull
5587 #define BIG32 4294967295ul
5588 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5590 your preprocessor is broken;
5594 your preprocessor is broken;
5596 static long long int bignum = -9223372036854775807LL;
5597 static unsigned long long int ubignum = BIG64;
5599 struct incomplete_array
5607 const wchar_t *name;
5611 typedef const char *ccp;
5614 test_restrict (ccp restrict text)
5616 // See if C++-style comments work.
5617 // Iterate through items via the restricted pointer.
5618 // Also check for declarations in for loops.
5619 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5624 // Check varargs and va_copy.
5626 test_varargs (const char *format, ...)
5629 va_start (args, format);
5631 va_copy (args_copy, args);
5642 str = va_arg (args_copy, const char *);
5645 number = va_arg (args_copy, int);
5648 fnumber = va_arg (args_copy, double);
5663 _Bool success = false;
5666 if (test_restrict ("String literal") == 0)
5668 char *restrict newvar = "Another string";
5671 test_varargs ("s, d' f .", "string", 65, 34.234);
5672 test_varargs_macros ();
5674 // Check flexible array members.
5675 struct incomplete_array *ia =
5676 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5678 for (int i = 0; i < ia->datasize; ++i)
5679 ia->data[i] = i * 1.234;
5681 // Check named initializers.
5682 struct named_init ni = {
5684 .name = L"Test wide string",
5685 .average = 543.34343,
5690 int dynamic_array[ni.number];
5691 dynamic_array[ni.number - 1] = 543;
5693 // work around unused variable warnings
5694 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5695 || dynamic_array[ni.number - 1] != 543);
5701 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5703 CC="$ac_save_CC $ac_arg"
5704 if ac_fn_c_try_compile "$LINENO"; then :
5705 ac_cv_prog_cc_c99=$ac_arg
5707 rm -f core conftest.err conftest.$ac_objext
5708 test "x$ac_cv_prog_cc_c99" != "xno" && break
5710 rm -f conftest.$ac_ext
5715 case "x$ac_cv_prog_cc_c99" in
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5718 $as_echo "none needed" >&6; } ;;
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5721 $as_echo "unsupported" >&6; } ;;
5723 CC="$CC $ac_cv_prog_cc_c99"
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5725 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5727 if test "x$ac_cv_prog_cc_c99" != xno; then :
5737 ac_cpp='$CPP $CPPFLAGS'
5738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5741 if test -n "$ac_tool_prefix"; then
5742 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5743 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if ${ac_cv_prog_CC+:} false; then :
5747 $as_echo_n "(cached) " >&6
5749 if test -n "$CC"; then
5750 ac_cv_prog_CC="$CC" # Let the user override the test.
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5759 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 if test -n "$CC"; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5772 $as_echo "$CC" >&6; }
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5780 if test -z "$ac_cv_prog_CC"; then
5782 # Extract the first word of "gcc", so it can be a program name with args.
5783 set dummy gcc; ac_word=$2
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785 $as_echo_n "checking for $ac_word... " >&6; }
5786 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5787 $as_echo_n "(cached) " >&6
5789 if test -n "$ac_ct_CC"; then
5790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 test -z "$as_dir" && as_dir=.
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5799 ac_cv_prog_ac_ct_CC="gcc"
5800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5810 if test -n "$ac_ct_CC"; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5812 $as_echo "$ac_ct_CC" >&6; }
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }
5818 if test "x$ac_ct_CC" = x; then
5821 case $cross_compiling:$ac_tool_warned in
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5825 ac_tool_warned=yes ;;
5833 if test -z "$CC"; then
5834 if test -n "$ac_tool_prefix"; then
5835 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5836 set dummy ${ac_tool_prefix}cc; ac_word=$2
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838 $as_echo_n "checking for $ac_word... " >&6; }
5839 if ${ac_cv_prog_CC+:} false; then :
5840 $as_echo_n "(cached) " >&6
5842 if test -n "$CC"; then
5843 ac_cv_prog_CC="$CC" # Let the user override the test.
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5852 ac_cv_prog_CC="${ac_tool_prefix}cc"
5853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 if test -n "$CC"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5865 $as_echo "$CC" >&6; }
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5874 if test -z "$CC"; then
5875 # Extract the first word of "cc", so it can be a program name with args.
5876 set dummy cc; ac_word=$2
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5878 $as_echo_n "checking for $ac_word... " >&6; }
5879 if ${ac_cv_prog_CC+:} false; then :
5880 $as_echo_n "(cached) " >&6
5882 if test -n "$CC"; then
5883 ac_cv_prog_CC="$CC" # Let the user override the test.
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5893 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5894 ac_prog_rejected=yes
5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 if test $ac_prog_rejected = yes; then
5906 # We found a bogon in the path, so make sure we never use it.
5907 set dummy $ac_cv_prog_CC
5909 if test $# != 0; then
5910 # We chose a different compiler from the bogus one.
5911 # However, it has the same basename, so the bogon will be chosen
5912 # first if we set CC to just the basename; use the full file name.
5914 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5920 if test -n "$CC"; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5922 $as_echo "$CC" >&6; }
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5930 if test -z "$CC"; then
5931 if test -n "$ac_tool_prefix"; then
5932 for ac_prog in cl.exe
5934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if ${ac_cv_prog_CC+:} false; then :
5939 $as_echo_n "(cached) " >&6
5941 if test -n "$CC"; then
5942 ac_cv_prog_CC="$CC" # Let the user override the test.
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 if test -n "$CC"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5964 $as_echo "$CC" >&6; }
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5971 test -n "$CC" && break
5974 if test -z "$CC"; then
5976 for ac_prog in cl.exe
5978 # Extract the first word of "$ac_prog", so it can be a program name with args.
5979 set dummy $ac_prog; ac_word=$2
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5981 $as_echo_n "checking for $ac_word... " >&6; }
5982 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5983 $as_echo_n "(cached) " >&6
5985 if test -n "$ac_ct_CC"; then
5986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5995 ac_cv_prog_ac_ct_CC="$ac_prog"
5996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6006 if test -n "$ac_ct_CC"; then
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6008 $as_echo "$ac_ct_CC" >&6; }
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011 $as_echo "no" >&6; }
6015 test -n "$ac_ct_CC" && break
6018 if test "x$ac_ct_CC" = x; then
6021 case $cross_compiling:$ac_tool_warned in
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6025 ac_tool_warned=yes ;;
6034 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6036 as_fn_error $? "no acceptable C compiler found in \$PATH
6037 See \`config.log' for more details" "$LINENO" 5; }
6039 # Provide some information about the compiler.
6040 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6043 for ac_option in --version -v -V -qversion; do
6044 { { ac_try="$ac_compiler $ac_option >&5"
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6050 $as_echo "$ac_try_echo"; } >&5
6051 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6053 if test -s conftest.err; then
6055 ... rest of stderr output deleted ...
6056 10q' conftest.err >conftest.er1
6057 cat conftest.er1 >&5
6059 rm -f conftest.er1 conftest.err
6060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6061 test $ac_status = 0; }
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6065 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6066 if ${ac_cv_c_compiler_gnu+:} false; then :
6067 $as_echo_n "(cached) " >&6
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6083 if ac_fn_c_try_compile "$LINENO"; then :
6088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6093 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6094 if test $ac_compiler_gnu = yes; then
6099 ac_test_CFLAGS=${CFLAGS+set}
6100 ac_save_CFLAGS=$CFLAGS
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6102 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6103 if ${ac_cv_prog_cc_g+:} false; then :
6104 $as_echo_n "(cached) " >&6
6106 ac_save_c_werror_flag=$ac_c_werror_flag
6107 ac_c_werror_flag=yes
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6121 if ac_fn_c_try_compile "$LINENO"; then :
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6136 if ac_fn_c_try_compile "$LINENO"; then :
6139 ac_c_werror_flag=$ac_save_c_werror_flag
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6152 if ac_fn_c_try_compile "$LINENO"; then :
6155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160 ac_c_werror_flag=$ac_save_c_werror_flag
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6163 $as_echo "$ac_cv_prog_cc_g" >&6; }
6164 if test "$ac_test_CFLAGS" = set; then
6165 CFLAGS=$ac_save_CFLAGS
6166 elif test $ac_cv_prog_cc_g = yes; then
6167 if test "$GCC" = yes; then
6173 if test "$GCC" = yes; then
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6180 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6181 if ${ac_cv_prog_cc_c89+:} false; then :
6182 $as_echo_n "(cached) " >&6
6184 ac_cv_prog_cc_c89=no
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6191 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6192 struct buf { int x; };
6193 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6194 static char *e (p, i)
6200 static char *f (char * (*g) (char **, int), char **p, ...)
6205 s = g (p, va_arg (v,int));
6210 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6211 function prototypes and stuff, but not '\xHH' hex character constants.
6212 These don't provoke an error unfortunately, instead are silently treated
6213 as 'x'. The following induces an error, until -std is added to get
6214 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6215 array size at least. It's necessary to write '\x00'==0 to get something
6216 that's true only with -std. */
6217 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6219 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6220 inside strings and character constants. */
6222 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6224 int test (int i, double x);
6225 struct s1 {int (*f) (int a);};
6226 struct s2 {int (*f) (double a);};
6227 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6233 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6238 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6239 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6241 CC="$ac_save_CC $ac_arg"
6242 if ac_fn_c_try_compile "$LINENO"; then :
6243 ac_cv_prog_cc_c89=$ac_arg
6245 rm -f core conftest.err conftest.$ac_objext
6246 test "x$ac_cv_prog_cc_c89" != "xno" && break
6248 rm -f conftest.$ac_ext
6253 case "x$ac_cv_prog_cc_c89" in
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6256 $as_echo "none needed" >&6; } ;;
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6259 $as_echo "unsupported" >&6; } ;;
6261 CC="$CC $ac_cv_prog_cc_c89"
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6263 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6265 if test "x$ac_cv_prog_cc_c89" != xno; then :
6270 ac_cpp='$CPP $CPPFLAGS'
6271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6276 ac_cpp='$CPP $CPPFLAGS'
6277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6281 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6282 if ${am_cv_prog_cc_c_o+:} false; then :
6283 $as_echo_n "(cached) " >&6
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6296 # Make sure it works both with $CC and with simple cc.
6297 # Following AC_PROG_CC_C_O, we do the test twice because some
6298 # compilers refuse to overwrite an existing .o file with -o,
6299 # though they will create one.
6300 am_cv_prog_cc_c_o=yes
6302 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6303 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } \
6307 && test -f conftest2.$ac_objext; then
6310 am_cv_prog_cc_c_o=no
6314 rm -f core conftest*
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6318 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6319 if test "$am_cv_prog_cc_c_o" != yes; then
6320 # Losing compiler, so override with the script.
6321 # FIXME: It is wrong to rewrite CC.
6322 # But if we don't then we get into trouble of one sort or another.
6323 # A longer-term fix would be to have automake use am__CC in this case,
6324 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6325 CC="$am_aux_dir/compile $CC"
6328 ac_cpp='$CPP $CPPFLAGS'
6329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6334 depcc="$CC" am_compiler_list=
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6337 $as_echo_n "checking dependency style of $depcc... " >&6; }
6338 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6339 $as_echo_n "(cached) " >&6
6341 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6342 # We make a subdir and do the tests there. Otherwise we can end up
6343 # making bogus files that we don't know about and never remove. For
6344 # instance it was reported that on HP-UX the gcc test will end up
6345 # making a dummy file named 'D' -- because '-MD' means "put the output
6349 # Copy depcomp to subdir because otherwise we won't find it if we're
6350 # using a relative directory.
6351 cp "$am_depcomp" conftest.dir
6353 # We will build objects and dependencies in a subdirectory because
6354 # it helps to detect inapplicable dependency modes. For instance
6355 # both Tru64's cc and ICC support -MD to output dependencies as a
6356 # side effect of compilation, but ICC will put the dependencies in
6357 # the current directory while Tru64 will put them in the object
6361 am_cv_CC_dependencies_compiler_type=none
6362 if test "$am_compiler_list" = ""; then
6363 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6366 case " $depcc " in #(
6367 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6370 for depmode in $am_compiler_list; do
6371 # Setup a source with many dependencies, because some compilers
6372 # like to wrap large dependency lists on column 80 (with \), and
6373 # we should not choose a depcomp mode which is confused by this.
6375 # We need to recreate these files for each test, as the compiler may
6376 # overwrite some of them when testing with obscure command lines.
6377 # This happens at least with the AIX C compiler.
6379 for i in 1 2 3 4 5 6; do
6380 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6381 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6382 # Solaris 10 /bin/sh.
6383 echo '/* dummy */' > sub/conftst$i.h
6385 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6387 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6388 # mode. It turns out that the SunPro C++ compiler does not properly
6389 # handle '-M -o', and we need to detect this. Also, some Intel
6390 # versions had trouble with output in subdirs.
6391 am__obj=sub/conftest.${OBJEXT-o}
6392 am__minus_obj="-o $am__obj"
6395 # This depmode causes a compiler race in universal mode.
6396 test "$am__universal" = false || continue
6399 # After this tag, mechanisms are not by side-effect, so they'll
6400 # only be used when explicitly requested.
6401 if test "x$enable_dependency_tracking" = xyes; then
6407 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6408 # This compiler won't grok '-c -o', but also, the minuso test has
6409 # not run yet. These depmodes are late enough in the game, and
6410 # so weak that their functioning should not be impacted.
6411 am__obj=conftest.${OBJEXT-o}
6416 if depmode=$depmode \
6417 source=sub/conftest.c object=$am__obj \
6418 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6419 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6420 >/dev/null 2>conftest.err &&
6421 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6422 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6423 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6424 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6425 # icc doesn't choke on unknown options, it will just issue warnings
6426 # or remarks (even with -Werror). So we grep stderr for any message
6427 # that says an option was ignored or not supported.
6428 # When given -MP, icc 7.0 and 7.1 complain thusly:
6429 # icc: Command line warning: ignoring option '-M'; no argument required
6430 # The diagnosis changed in icc 8.0:
6431 # icc: Command line remark: option '-MP' not supported
6432 if (grep 'ignoring option' conftest.err ||
6433 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6434 am_cv_CC_dependencies_compiler_type=$depmode
6443 am_cv_CC_dependencies_compiler_type=none
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6448 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6449 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6452 test "x$enable_dependency_tracking" != xno \
6453 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6455 am__fastdepCC_FALSE='#'
6457 am__fastdepCC_TRUE='#'
6458 am__fastdepCC_FALSE=
6462 # Ralf Wildenhues: With per-target flags we need CC_C_O
6463 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
6465 if test $ac_cv_c_compiler_gnu = yes; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6467 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6468 if ${ac_cv_prog_gcc_traditional+:} false; then :
6469 $as_echo_n "(cached) " >&6
6471 ac_pattern="Autoconf.*'x'"
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6478 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6479 ac_cv_prog_gcc_traditional=yes
6481 ac_cv_prog_gcc_traditional=no
6486 if test $ac_cv_prog_gcc_traditional = no; then
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6493 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6494 ac_cv_prog_gcc_traditional=yes
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6501 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6502 if test $ac_cv_prog_gcc_traditional = yes; then
6503 CC="$CC -traditional"
6520 case "$ac_cv_prog_cc_c89" in
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6523 version 4.2.5 and higher." >&5
6524 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6525 version 4.2.5 and higher." >&2;}
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
6530 $as_echo_n "checking if $CC can handle #warning... " >&6; }
6531 if ${ntp_cv_cpp_warning+:} false; then :
6532 $as_echo_n "(cached) " >&6
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6545 if ac_fn_c_try_compile "$LINENO"; then :
6546 ntp_cv_cpp_warning=yes
6548 ntp_cv_cpp_warning=no
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
6555 $as_echo "$ntp_cv_cpp_warning" >&6; }
6556 case "$ntp_cv_cpp_warning" in
6559 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
6564 $as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
6565 if ${ntp_cv_cc_attribute+:} false; then :
6566 $as_echo_n "(cached) " >&6
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6574 void foo(void) __attribute__((__noreturn__));
6580 if ac_fn_c_try_compile "$LINENO"; then :
6581 ntp_cv_cc_attribute=yes
6583 ntp_cv_cc_attribute=no
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
6590 $as_echo "$ntp_cv_cc_attribute" >&6; }
6591 case "$ntp_cv_cc_attribute" in
6594 $as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
6601 SAVED_CFLAGS="$CFLAGS"
6602 CFLAGS="$CFLAGS -Wstrict-overflow"
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
6604 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
6605 if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
6606 $as_echo_n "(cached) " >&6
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6619 if ac_fn_c_try_compile "$LINENO"; then :
6620 ntp_cv_gcc_Wstrict_overflow=yes
6622 ntp_cv_gcc_Wstrict_overflow=no
6625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
6629 $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
6631 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
6634 CFLAGS="$SAVED_CFLAGS -Winit-self"
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
6636 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
6637 if ${ntp_cv_gcc_Winit_self+:} false; then :
6638 $as_echo_n "(cached) " >&6
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6652 if ac_fn_c_try_compile "$LINENO"; then :
6653 ntp_cv_gcc_Winit_self=yes
6655 ntp_cv_gcc_Winit_self=no
6658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
6663 $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
6664 CFLAGS="$SAVED_CFLAGS"
6665 { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
6667 # $ntp_cv_gcc_Winit_self is tested later to add the
6668 # flag to CFLAGS_NTP.
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
6671 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
6672 if ${ntp_cv_gc_sections_runs+:} false; then :
6673 $as_echo_n "(cached) " >&6
6676 origCFLAGS="$CFLAGS"
6677 CFLAGS="$CFLAGS -Wl,--gc-sections"
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6691 int read_success_once;
6693 fpC = fopen("conftest.c", "r");
6697 cch = fread(buf, sizeof(buf), 1, fpC);
6698 read_success_once |= (0 != cch);
6700 if (!read_success_once)
6704 if (0 != fclose(fpC))
6714 if ac_fn_c_try_link "$LINENO"; then :
6716 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
6717 ntp_cv_gc_sections_runs=no
6719 ntp_cv_gc_sections_runs=no
6720 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
6724 ntp_cv_gc_sections_runs=no
6727 rm -f core conftest.err conftest.$ac_objext \
6728 conftest$ac_exeext conftest.$ac_ext
6729 CFLAGS="$origCFLAGS"
6730 { origCFLAGS=; unset origCFLAGS;}
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
6735 $as_echo "$ntp_cv_gc_sections_runs" >&6; }
6736 case "$ntp_cv_gc_sections_runs" in
6738 LDADD_LIBNTP="-Wl,--gc-sections"
6739 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
6745 CFLAGS_NTP="$CFLAGS_NTP -Wall"
6746 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
6747 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
6748 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
6749 # CFLAGS_NTP="$CFLAGS_NTP -Werror"
6750 # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
6751 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
6752 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
6753 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
6754 CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
6755 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
6756 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
6757 case "$ntp_cv_gcc_Winit_self" in
6759 CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
6761 case "$ntp_cv_gcc_Wstrict_overflow" in
6763 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
6765 # -W[no-]strict-prototypes might be added by NTP_OPENSSL
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6770 $as_echo_n "checking additional compiler flags... " >&6; }
6771 # allow ntp_os_flags to be preset to skip this stuff
6772 case "${ntp_os_cflags+set}" in
6781 # turn on additional headers
6782 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6785 # avoid circular dependencies in yp headers, and more
6786 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6787 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
6790 # XXX Only verified thru AIX6.
6791 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
6792 # avoid circular dependencies in yp headers
6793 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
6794 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
6795 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
6796 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
6797 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
6800 ntp_os_cflags="-DSYS_AMIGA"
6802 darwin*|macosx*|rhapsody*)
6803 ntp_os_cflags="-D_P1003_1B_VISIBLE"
6805 hpux10.*) # at least for hppa2.0-hp-hpux10.20
6810 # use Ansi compiler on HPUX, and some -Wp magic
6811 ntp_os_cflags="-Ae -Wp,-H18816"
6814 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6821 # use Ansi compiler on HPUX
6824 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6829 # do not use 64-bit compiler
6830 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
6834 ntp_os_cflags="-posix"
6836 solaris1*|solaris2.[0-5]|solaris2.5.*)
6838 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
6841 # turn on 64-bit file offset interface
6842 ntp_os_cflags="-D_LARGEFILE64_SOURCE"
6849 # Quick and dirty sanity check
6850 case "$VX_KERNEL" in
6852 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
6854 ntp_os_cflags="-DSYS_VXWORKS"
6859 case "$ntp_os_flags" in
6861 ntp_os_cflags_msg="none needed"
6864 ntp_os_cflags_msg="$ntp_os_cflags"
6866 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
6868 $as_echo "$ntp_os_cflags_msg" >&6; }
6869 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6874 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6875 if ${ac_cv_c_bigendian+:} false; then :
6876 $as_echo_n "(cached) " >&6
6878 ac_cv_c_bigendian=unknown
6879 # See if we're dealing with a universal compiler.
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h. */
6882 #ifndef __APPLE_CC__
6883 not a universal capable compiler
6888 if ac_fn_c_try_compile "$LINENO"; then :
6890 # Check for potential -arch flags. It is not universal unless
6891 # there are at least two -arch flags with different values.
6894 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6895 if test -n "$ac_prev"; then
6897 i?86 | x86_64 | ppc | ppc64)
6898 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6901 ac_cv_c_bigendian=universal
6907 elif test "x$ac_word" = "x-arch"; then
6912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913 if test $ac_cv_c_bigendian = unknown; then
6914 # See if sys/param.h defines the BYTE_ORDER macro.
6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h. */
6917 #include <sys/types.h>
6918 #include <sys/param.h>
6923 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6924 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6933 if ac_fn_c_try_compile "$LINENO"; then :
6934 # It does; now see whether it defined to BIG_ENDIAN or not.
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6937 #include <sys/types.h>
6938 #include <sys/param.h>
6943 #if BYTE_ORDER != BIG_ENDIAN
6951 if ac_fn_c_try_compile "$LINENO"; then :
6952 ac_cv_c_bigendian=yes
6954 ac_cv_c_bigendian=no
6956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6960 if test $ac_cv_c_bigendian = unknown; then
6961 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6969 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6977 if ac_fn_c_try_compile "$LINENO"; then :
6978 # It does; now see whether it defined to _BIG_ENDIAN or not.
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6994 if ac_fn_c_try_compile "$LINENO"; then :
6995 ac_cv_c_bigendian=yes
6997 ac_cv_c_bigendian=no
6999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7003 if test $ac_cv_c_bigendian = unknown; then
7004 # Compile a test program.
7005 if test "$cross_compiling" = yes; then :
7006 # Try to guess by grepping values from an object file.
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7009 short int ascii_mm[] =
7010 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7011 short int ascii_ii[] =
7012 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7013 int use_ascii (int i) {
7014 return ascii_mm[i] + ascii_ii[i];
7016 short int ebcdic_ii[] =
7017 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7018 short int ebcdic_mm[] =
7019 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7020 int use_ebcdic (int i) {
7021 return ebcdic_mm[i] + ebcdic_ii[i];
7028 return use_ascii (foo) == use_ebcdic (foo);
7033 if ac_fn_c_try_compile "$LINENO"; then :
7034 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7035 ac_cv_c_bigendian=yes
7037 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7038 if test "$ac_cv_c_bigendian" = unknown; then
7039 ac_cv_c_bigendian=no
7041 # finding both strings is unlikely to happen, but who knows?
7042 ac_cv_c_bigendian=unknown
7046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7050 $ac_includes_default
7055 /* Are we little or big endian? From Harbison&Steele. */
7059 char c[sizeof (long int)];
7062 return u.c[sizeof (long int) - 1] == 1;
7068 if ac_fn_c_try_run "$LINENO"; then :
7069 ac_cv_c_bigendian=no
7071 ac_cv_c_bigendian=yes
7073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7074 conftest.$ac_objext conftest.beam conftest.$ac_ext
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7080 $as_echo "$ac_cv_c_bigendian" >&6; }
7081 case $ac_cv_c_bigendian in #(
7083 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7089 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7093 as_fn_error $? "unknown endianness
7094 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7098 $as_echo_n "checking for working volatile... " >&6; }
7099 if ${ac_cv_c_volatile+:} false; then :
7100 $as_echo_n "(cached) " >&6
7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7110 int * volatile y = (int *) 0;
7116 if ac_fn_c_try_compile "$LINENO"; then :
7117 ac_cv_c_volatile=yes
7121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7124 $as_echo "$ac_cv_c_volatile" >&6; }
7125 if test $ac_cv_c_volatile = no; then
7127 $as_echo "#define volatile /**/" >>confdefs.h
7132 ac_cpp='$CPP $CPPFLAGS'
7133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7137 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7138 # On Suns, sometimes $CPP names a directory.
7139 if test -n "$CPP" && test -d "$CPP"; then
7142 if test -z "$CPP"; then
7143 if ${ac_cv_prog_CPP+:} false; then :
7144 $as_echo_n "(cached) " >&6
7146 # Double quotes because CPP needs to be expanded
7147 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7150 for ac_c_preproc_warn_flag in '' yes
7152 # Use a header file that comes with gcc, so configuring glibc
7153 # with a fresh cross-compiler works.
7154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7155 # <limits.h> exists even on freestanding compilers.
7156 # On the NeXT, cc -E runs the code through the compiler's parser,
7157 # not just through cpp. "Syntax error" is here to catch this case.
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7161 # include <limits.h>
7163 # include <assert.h>
7167 if ac_fn_c_try_cpp "$LINENO"; then :
7170 # Broken: fails on valid input.
7173 rm -f conftest.err conftest.i conftest.$ac_ext
7175 # OK, works on sane cases. Now check whether nonexistent headers
7176 # can be detected and how.
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7179 #include <ac_nonexistent.h>
7181 if ac_fn_c_try_cpp "$LINENO"; then :
7182 # Broken: success on invalid input.
7185 # Passes both tests.
7189 rm -f conftest.err conftest.i conftest.$ac_ext
7192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7193 rm -f conftest.i conftest.err conftest.$ac_ext
7194 if $ac_preproc_ok; then :
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7207 $as_echo "$CPP" >&6; }
7209 for ac_c_preproc_warn_flag in '' yes
7211 # Use a header file that comes with gcc, so configuring glibc
7212 # with a fresh cross-compiler works.
7213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7214 # <limits.h> exists even on freestanding compilers.
7215 # On the NeXT, cc -E runs the code through the compiler's parser,
7216 # not just through cpp. "Syntax error" is here to catch this case.
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7220 # include <limits.h>
7222 # include <assert.h>
7226 if ac_fn_c_try_cpp "$LINENO"; then :
7229 # Broken: fails on valid input.
7232 rm -f conftest.err conftest.i conftest.$ac_ext
7234 # OK, works on sane cases. Now check whether nonexistent headers
7235 # can be detected and how.
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7238 #include <ac_nonexistent.h>
7240 if ac_fn_c_try_cpp "$LINENO"; then :
7241 # Broken: success on invalid input.
7244 # Passes both tests.
7248 rm -f conftest.err conftest.i conftest.$ac_ext
7251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7252 rm -f conftest.i conftest.err conftest.$ac_ext
7253 if $ac_preproc_ok; then :
7256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7258 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7259 See \`config.log' for more details" "$LINENO" 5; }
7263 ac_cpp='$CPP $CPPFLAGS'
7264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7271 ac_cpp='$CPP $CPPFLAGS'
7272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7276 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7277 # On Suns, sometimes $CPP names a directory.
7278 if test -n "$CPP" && test -d "$CPP"; then
7281 if test -z "$CPP"; then
7282 if ${ac_cv_prog_CPP+:} false; then :
7283 $as_echo_n "(cached) " >&6
7285 # Double quotes because CPP needs to be expanded
7286 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7289 for ac_c_preproc_warn_flag in '' yes
7291 # Use a header file that comes with gcc, so configuring glibc
7292 # with a fresh cross-compiler works.
7293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7294 # <limits.h> exists even on freestanding compilers.
7295 # On the NeXT, cc -E runs the code through the compiler's parser,
7296 # not just through cpp. "Syntax error" is here to catch this case.
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7300 # include <limits.h>
7302 # include <assert.h>
7306 if ac_fn_c_try_cpp "$LINENO"; then :
7309 # Broken: fails on valid input.
7312 rm -f conftest.err conftest.i conftest.$ac_ext
7314 # OK, works on sane cases. Now check whether nonexistent headers
7315 # can be detected and how.
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7318 #include <ac_nonexistent.h>
7320 if ac_fn_c_try_cpp "$LINENO"; then :
7321 # Broken: success on invalid input.
7324 # Passes both tests.
7328 rm -f conftest.err conftest.i conftest.$ac_ext
7331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7332 rm -f conftest.i conftest.err conftest.$ac_ext
7333 if $ac_preproc_ok; then :
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7346 $as_echo "$CPP" >&6; }
7348 for ac_c_preproc_warn_flag in '' yes
7350 # Use a header file that comes with gcc, so configuring glibc
7351 # with a fresh cross-compiler works.
7352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7353 # <limits.h> exists even on freestanding compilers.
7354 # On the NeXT, cc -E runs the code through the compiler's parser,
7355 # not just through cpp. "Syntax error" is here to catch this case.
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7359 # include <limits.h>
7361 # include <assert.h>
7365 if ac_fn_c_try_cpp "$LINENO"; then :
7368 # Broken: fails on valid input.
7371 rm -f conftest.err conftest.i conftest.$ac_ext
7373 # OK, works on sane cases. Now check whether nonexistent headers
7374 # can be detected and how.
7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7377 #include <ac_nonexistent.h>
7379 if ac_fn_c_try_cpp "$LINENO"; then :
7380 # Broken: success on invalid input.
7383 # Passes both tests.
7387 rm -f conftest.err conftest.i conftest.$ac_ext
7390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7391 rm -f conftest.i conftest.err conftest.$ac_ext
7392 if $ac_preproc_ok; then :
7395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7397 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7398 See \`config.log' for more details" "$LINENO" 5; }
7402 ac_cpp='$CPP $CPPFLAGS'
7403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7407 # Do we need CXX for anything besides google test?
7409 ac_cpp='$CXXCPP $CPPFLAGS'
7410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7413 if test -z "$CXX"; then
7414 if test -n "$CCC"; then
7417 if test -n "$ac_tool_prefix"; then
7418 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_prog_CXX+:} false; then :
7425 $as_echo_n "(cached) " >&6
7427 if test -n "$CXX"; then
7428 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 if test -n "$CXX"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7450 $as_echo "$CXX" >&6; }
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7457 test -n "$CXX" && break
7460 if test -z "$CXX"; then
7462 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7464 # Extract the first word of "$ac_prog", so it can be a program name with args.
7465 set dummy $ac_prog; ac_word=$2
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467 $as_echo_n "checking for $ac_word... " >&6; }
7468 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7469 $as_echo_n "(cached) " >&6
7471 if test -n "$ac_ct_CXX"; then
7472 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481 ac_cv_prog_ac_ct_CXX="$ac_prog"
7482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7491 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7492 if test -n "$ac_ct_CXX"; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7494 $as_echo "$ac_ct_CXX" >&6; }
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7501 test -n "$ac_ct_CXX" && break
7504 if test "x$ac_ct_CXX" = x; then
7507 case $cross_compiling:$ac_tool_warned in
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7511 ac_tool_warned=yes ;;
7519 # Provide some information about the compiler.
7520 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7523 for ac_option in --version -v -V -qversion; do
7524 { { ac_try="$ac_compiler $ac_option >&5"
7526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7530 $as_echo "$ac_try_echo"; } >&5
7531 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7533 if test -s conftest.err; then
7535 ... rest of stderr output deleted ...
7536 10q' conftest.err >conftest.er1
7537 cat conftest.er1 >&5
7539 rm -f conftest.er1 conftest.err
7540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7541 test $ac_status = 0; }
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7545 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7546 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7547 $as_echo_n "(cached) " >&6
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7563 if ac_fn_cxx_try_compile "$LINENO"; then :
7568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7569 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7573 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7574 if test $ac_compiler_gnu = yes; then
7579 ac_test_CXXFLAGS=${CXXFLAGS+set}
7580 ac_save_CXXFLAGS=$CXXFLAGS
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7582 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7583 if ${ac_cv_prog_cxx_g+:} false; then :
7584 $as_echo_n "(cached) " >&6
7586 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7587 ac_cxx_werror_flag=yes
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7601 if ac_fn_cxx_try_compile "$LINENO"; then :
7602 ac_cv_prog_cxx_g=yes
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7616 if ac_fn_cxx_try_compile "$LINENO"; then :
7619 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7632 if ac_fn_cxx_try_compile "$LINENO"; then :
7633 ac_cv_prog_cxx_g=yes
7635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7640 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7643 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7644 if test "$ac_test_CXXFLAGS" = set; then
7645 CXXFLAGS=$ac_save_CXXFLAGS
7646 elif test $ac_cv_prog_cxx_g = yes; then
7647 if test "$GXX" = yes; then
7653 if test "$GXX" = yes; then
7660 ac_cpp='$CPP $CPPFLAGS'
7661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7665 depcc="$CXX" am_compiler_list=
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7668 $as_echo_n "checking dependency style of $depcc... " >&6; }
7669 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7670 $as_echo_n "(cached) " >&6
7672 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7673 # We make a subdir and do the tests there. Otherwise we can end up
7674 # making bogus files that we don't know about and never remove. For
7675 # instance it was reported that on HP-UX the gcc test will end up
7676 # making a dummy file named 'D' -- because '-MD' means "put the output
7680 # Copy depcomp to subdir because otherwise we won't find it if we're
7681 # using a relative directory.
7682 cp "$am_depcomp" conftest.dir
7684 # We will build objects and dependencies in a subdirectory because
7685 # it helps to detect inapplicable dependency modes. For instance
7686 # both Tru64's cc and ICC support -MD to output dependencies as a
7687 # side effect of compilation, but ICC will put the dependencies in
7688 # the current directory while Tru64 will put them in the object
7692 am_cv_CXX_dependencies_compiler_type=none
7693 if test "$am_compiler_list" = ""; then
7694 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7697 case " $depcc " in #(
7698 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7701 for depmode in $am_compiler_list; do
7702 # Setup a source with many dependencies, because some compilers
7703 # like to wrap large dependency lists on column 80 (with \), and
7704 # we should not choose a depcomp mode which is confused by this.
7706 # We need to recreate these files for each test, as the compiler may
7707 # overwrite some of them when testing with obscure command lines.
7708 # This happens at least with the AIX C compiler.
7710 for i in 1 2 3 4 5 6; do
7711 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7712 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7713 # Solaris 10 /bin/sh.
7714 echo '/* dummy */' > sub/conftst$i.h
7716 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7718 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7719 # mode. It turns out that the SunPro C++ compiler does not properly
7720 # handle '-M -o', and we need to detect this. Also, some Intel
7721 # versions had trouble with output in subdirs.
7722 am__obj=sub/conftest.${OBJEXT-o}
7723 am__minus_obj="-o $am__obj"
7726 # This depmode causes a compiler race in universal mode.
7727 test "$am__universal" = false || continue
7730 # After this tag, mechanisms are not by side-effect, so they'll
7731 # only be used when explicitly requested.
7732 if test "x$enable_dependency_tracking" = xyes; then
7738 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7739 # This compiler won't grok '-c -o', but also, the minuso test has
7740 # not run yet. These depmodes are late enough in the game, and
7741 # so weak that their functioning should not be impacted.
7742 am__obj=conftest.${OBJEXT-o}
7747 if depmode=$depmode \
7748 source=sub/conftest.c object=$am__obj \
7749 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7750 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7751 >/dev/null 2>conftest.err &&
7752 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7753 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7754 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7755 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7756 # icc doesn't choke on unknown options, it will just issue warnings
7757 # or remarks (even with -Werror). So we grep stderr for any message
7758 # that says an option was ignored or not supported.
7759 # When given -MP, icc 7.0 and 7.1 complain thusly:
7760 # icc: Command line warning: ignoring option '-M'; no argument required
7761 # The diagnosis changed in icc 8.0:
7762 # icc: Command line remark: option '-MP' not supported
7763 if (grep 'ignoring option' conftest.err ||
7764 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7765 am_cv_CXX_dependencies_compiler_type=$depmode
7774 am_cv_CXX_dependencies_compiler_type=none
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7779 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7780 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7783 test "x$enable_dependency_tracking" != xno \
7784 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7785 am__fastdepCXX_TRUE=
7786 am__fastdepCXX_FALSE='#'
7788 am__fastdepCXX_TRUE='#'
7789 am__fastdepCXX_FALSE=
7793 for ac_prog in 'bison -y' byacc
7795 # Extract the first word of "$ac_prog", so it can be a program name with args.
7796 set dummy $ac_prog; ac_word=$2
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798 $as_echo_n "checking for $ac_word... " >&6; }
7799 if ${ac_cv_prog_YACC+:} false; then :
7800 $as_echo_n "(cached) " >&6
7802 if test -n "$YACC"; then
7803 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7812 ac_cv_prog_YACC="$ac_prog"
7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822 YACC=$ac_cv_prog_YACC
7823 if test -n "$YACC"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7825 $as_echo "$YACC" >&6; }
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7832 test -n "$YACC" && break
7834 test -n "$YACC" || YACC="yacc"
7836 if test "x$CC" != xcc; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7838 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7841 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7843 set dummy $CC; ac_cc=`$as_echo "$2" |
7844 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7845 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7846 $as_echo_n "(cached) " >&6
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7859 # Make sure it works both with $CC and with simple cc.
7860 # We do the test twice because some compilers refuse to overwrite an
7861 # existing .o file with -o, though they will create one.
7862 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7864 if { { case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7869 $as_echo "$ac_try_echo"; } >&5
7870 (eval "$ac_try") 2>&5
7872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873 test $ac_status = 0; } &&
7874 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7879 $as_echo "$ac_try_echo"; } >&5
7880 (eval "$ac_try") 2>&5
7882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7883 test $ac_status = 0; };
7885 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7886 if test "x$CC" != xcc; then
7887 # Test first that cc exists at all.
7888 if { ac_try='cc -c conftest.$ac_ext >&5'
7889 { { case "(($ac_try" in
7890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7891 *) ac_try_echo=$ac_try;;
7893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7894 $as_echo "$ac_try_echo"; } >&5
7895 (eval "$ac_try") 2>&5
7897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7898 test $ac_status = 0; }; }; then
7899 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7901 if { { case "(($ac_try" in
7902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903 *) ac_try_echo=$ac_try;;
7905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7906 $as_echo "$ac_try_echo"; } >&5
7907 (eval "$ac_try") 2>&5
7909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7910 test $ac_status = 0; } &&
7911 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7916 $as_echo "$ac_try_echo"; } >&5
7917 (eval "$ac_try") 2>&5
7919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7920 test $ac_status = 0; };
7925 # cc exists but doesn't like -o.
7926 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7931 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7933 rm -f core conftest*
7936 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7938 $as_echo "yes" >&6; }
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941 $as_echo "no" >&6; }
7943 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
7949 $as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }
7953 ac_cpp='$CPP $CPPFLAGS'
7954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7962 struct foo_s {int i1; int i2;};
7963 int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
7966 if ac_fn_c_try_compile "$LINENO"; then :
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7968 $as_echo "yes" >&6; }
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7973 $as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979 ac_cpp='$CPP $CPPFLAGS'
7980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
7988 $as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
7990 case "$srcdir::${force_ntp_vpath_hack-no}" in
7992 ;; # VPATH_HACK path is for VPATH builds only.
7994 ntp_vpath_hack="yes"
7997 case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
7999 ntp_vpath_hack="yes"
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
8003 $as_echo "$ntp_vpath_hack" >&6; }
8004 if test x$ntp_vpath_hack = xyes; then
8006 VPATH_HACK_FALSE='#'
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
8016 $as_echo_n "checking for install dir and man conventions... " >&6; }
8019 # Check whether --with-locfile was given.
8020 if test "${with_locfile+set}" = set; then :
8021 withval=$with_locfile;
8029 SENTINEL_DIR="$PWD" && \
8030 cd $srcdir/sntp && \
8031 case "$with_locfile" in \
8033 scripts/genLocInfo -d "$SENTINEL_DIR" \
8036 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \
8039 ) > genLocInfo.i 2> genLocInfo.err
8042 case "$GENLOCINFO" in
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
8045 $as_echo "in file $GENLOCINFOFILE" >&6; }
8046 rm genLocInfo.err genLocInfo.i
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
8050 $as_echo "failed." >&6; }
8051 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
8055 if test "$CALC_TICKADJ_MS" ; then
8056 WANT_CALC_TICKADJ_MS_TRUE=
8057 WANT_CALC_TICKADJ_MS_FALSE='#'
8059 WANT_CALC_TICKADJ_MS_TRUE='#'
8060 WANT_CALC_TICKADJ_MS_FALSE=
8105 if test -z "$NTPSWEEP_NI" ; then
8106 INSTALL_NTPSWEEP_TRUE=
8107 INSTALL_NTPSWEEP_FALSE='#'
8109 INSTALL_NTPSWEEP_TRUE='#'
8110 INSTALL_NTPSWEEP_FALSE=
8153 if test -z "$UPDATE_LEAP_NI" ; then
8154 INSTALL_UPDATE_LEAP_TRUE=
8155 INSTALL_UPDATE_LEAP_FALSE='#'
8157 INSTALL_UPDATE_LEAP_TRUE='#'
8158 INSTALL_UPDATE_LEAP_FALSE=
8163 if test -n "$ac_tool_prefix"; then
8164 for ac_prog in ar lib "link -lib"
8166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169 $as_echo_n "checking for $ac_word... " >&6; }
8170 if ${ac_cv_prog_AR+:} false; then :
8171 $as_echo_n "(cached) " >&6
8173 if test -n "$AR"; then
8174 ac_cv_prog_AR="$AR" # Let the user override the test.
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 test -z "$as_dir" && as_dir=.
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8183 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8194 if test -n "$AR"; then
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8196 $as_echo "$AR" >&6; }
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8203 test -n "$AR" && break
8206 if test -z "$AR"; then
8208 for ac_prog in ar lib "link -lib"
8210 # Extract the first word of "$ac_prog", so it can be a program name with args.
8211 set dummy $ac_prog; ac_word=$2
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 $as_echo_n "checking for $ac_word... " >&6; }
8214 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8215 $as_echo_n "(cached) " >&6
8217 if test -n "$ac_ct_AR"; then
8218 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8227 ac_cv_prog_ac_ct_AR="$ac_prog"
8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8237 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8238 if test -n "$ac_ct_AR"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8240 $as_echo "$ac_ct_AR" >&6; }
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8247 test -n "$ac_ct_AR" && break
8250 if test "x$ac_ct_AR" = x; then
8253 case $cross_compiling:$ac_tool_warned in
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8257 ac_tool_warned=yes ;;
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8266 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
8267 if ${am_cv_ar_interface+:} false; then :
8268 $as_echo_n "(cached) " >&6
8271 ac_cpp='$CPP $CPPFLAGS'
8272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8276 am_cv_ar_interface=ar
8277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278 /* end confdefs.h. */
8279 int some_variable = 0;
8281 if ac_fn_c_try_compile "$LINENO"; then :
8282 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8284 (eval $am_ar_try) 2>&5
8286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8287 test $ac_status = 0; }
8288 if test "$ac_status" -eq 0; then
8289 am_cv_ar_interface=ar
8291 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8293 (eval $am_ar_try) 2>&5
8295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8296 test $ac_status = 0; }
8297 if test "$ac_status" -eq 0; then
8298 am_cv_ar_interface=lib
8300 am_cv_ar_interface=unknown
8303 rm -f conftest.lib libconftest.a
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308 ac_cpp='$CPP $CPPFLAGS'
8309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8315 $as_echo "$am_cv_ar_interface" >&6; }
8317 case $am_cv_ar_interface in
8321 # Microsoft lib, so override with the ar-lib wrapper script.
8322 # FIXME: It is wrong to rewrite AR.
8323 # But if we don't then we get into trouble of one sort or another.
8324 # A longer-term fix would be to have automake use am__AR in this case,
8325 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8327 AR="$am_aux_dir/ar-lib $AR"
8330 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8336 # So far, the only shared library we might use is libopts.
8337 # It's a small library - we might as well use a static version of it.
8338 # Check whether --enable-shared was given.
8339 if test "${enable_shared+set}" = set; then :
8340 enableval=$enable_shared; p=${PACKAGE-default}
8342 yes) enable_shared=yes ;;
8343 no) enable_shared=no ;;
8346 # Look at the argument we got. We use all the common list separators.
8347 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8348 for pkg in $enableval; do
8350 if test "X$pkg" = "X$p"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8372 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8377 macro_version='2.4.2'
8378 macro_revision='1.3337'
8392 ltmain="$ac_aux_dir/ltmain.sh"
8394 # Backslashify metacharacters that are still active within
8395 # double-quoted strings.
8396 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8398 # Same as above, but do not quote variable references.
8399 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8401 # Sed substitution to delay expansion of an escaped shell variable in a
8402 # double_quote_subst'ed string.
8403 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8405 # Sed substitution to delay expansion of an escaped single quote.
8406 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8408 # Sed substitution to avoid accidental globbing in evaled expressions
8409 no_glob_subst='s/\*/\\\*/g'
8411 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8412 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8413 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8416 $as_echo_n "checking how to print strings... " >&6; }
8417 # Test print first, because it will be a builtin if present.
8418 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8419 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8421 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8424 # Use this function as a fallback that always works.
8425 func_fallback_echo ()
8427 eval 'cat <<_LTECHO_EOF
8431 ECHO='func_fallback_echo'
8434 # func_echo_all arg...
8435 # Invoke $ECHO with all args, space-separated.
8442 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8443 $as_echo "printf" >&6; } ;;
8444 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8445 $as_echo "print -r" >&6; } ;;
8446 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8447 $as_echo "cat" >&6; } ;;
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8464 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8465 if ${ac_cv_path_SED+:} false; then :
8466 $as_echo_n "(cached) " >&6
8468 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8469 for ac_i in 1 2 3 4 5 6 7; do
8470 ac_script="$ac_script$as_nl$ac_script"
8472 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8473 { ac_script=; unset ac_script;}
8474 if test -z "$SED"; then
8475 ac_path_SED_found=false
8476 # Loop through the user's path and test for each of PROGNAME-LIST
8477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481 test -z "$as_dir" && as_dir=.
8482 for ac_prog in sed gsed; do
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8485 as_fn_executable_p "$ac_path_SED" || continue
8486 # Check for GNU ac_path_SED and select it if it is found.
8487 # Check for GNU $ac_path_SED
8488 case `"$ac_path_SED" --version 2>&1` in
8490 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8493 $as_echo_n 0123456789 >"conftest.in"
8496 cat "conftest.in" "conftest.in" >"conftest.tmp"
8497 mv "conftest.tmp" "conftest.in"
8498 cp "conftest.in" "conftest.nl"
8499 $as_echo '' >> "conftest.nl"
8500 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8502 as_fn_arith $ac_count + 1 && ac_count=$as_val
8503 if test $ac_count -gt ${ac_path_SED_max-0}; then
8504 # Best one so far, save it but keep looking for a better one
8505 ac_cv_path_SED="$ac_path_SED"
8506 ac_path_SED_max=$ac_count
8508 # 10*(2^10) chars as input seems more than enough
8509 test $ac_count -gt 10 && break
8511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8514 $ac_path_SED_found && break 3
8519 if test -z "$ac_cv_path_SED"; then
8520 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8528 $as_echo "$ac_cv_path_SED" >&6; }
8529 SED="$ac_cv_path_SED"
8532 test -z "$SED" && SED=sed
8533 Xsed="$SED -e 1s/^X//"
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8546 $as_echo_n "checking for fgrep... " >&6; }
8547 if ${ac_cv_path_FGREP+:} false; then :
8548 $as_echo_n "(cached) " >&6
8550 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8551 then ac_cv_path_FGREP="$GREP -F"
8553 if test -z "$FGREP"; then
8554 ac_path_FGREP_found=false
8555 # Loop through the user's path and test for each of PROGNAME-LIST
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8560 test -z "$as_dir" && as_dir=.
8561 for ac_prog in fgrep; do
8562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8564 as_fn_executable_p "$ac_path_FGREP" || continue
8565 # Check for GNU ac_path_FGREP and select it if it is found.
8566 # Check for GNU $ac_path_FGREP
8567 case `"$ac_path_FGREP" --version 2>&1` in
8569 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8572 $as_echo_n 0123456789 >"conftest.in"
8575 cat "conftest.in" "conftest.in" >"conftest.tmp"
8576 mv "conftest.tmp" "conftest.in"
8577 cp "conftest.in" "conftest.nl"
8578 $as_echo 'FGREP' >> "conftest.nl"
8579 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8581 as_fn_arith $ac_count + 1 && ac_count=$as_val
8582 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8583 # Best one so far, save it but keep looking for a better one
8584 ac_cv_path_FGREP="$ac_path_FGREP"
8585 ac_path_FGREP_max=$ac_count
8587 # 10*(2^10) chars as input seems more than enough
8588 test $ac_count -gt 10 && break
8590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8593 $ac_path_FGREP_found && break 3
8598 if test -z "$ac_cv_path_FGREP"; then
8599 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8602 ac_cv_path_FGREP=$FGREP
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8608 $as_echo "$ac_cv_path_FGREP" >&6; }
8609 FGREP="$ac_cv_path_FGREP"
8612 test -z "$GREP" && GREP=grep
8632 # Check whether --with-gnu-ld was given.
8633 if test "${with_gnu_ld+set}" = set; then :
8634 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8640 if test "$GCC" = yes; then
8641 # Check if gcc -print-prog-name=ld gives a path.
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8643 $as_echo_n "checking for ld used by $CC... " >&6; }
8646 # gcc leaves a trailing carriage return which upsets mingw
8647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8652 # Accept absolute paths.
8654 re_direlt='/[^/][^/]*/\.\./'
8655 # Canonicalize the pathname of ld
8656 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8657 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8658 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8660 test -z "$LD" && LD="$ac_prog"
8663 # If it fails, then pretend we aren't using GCC.
8667 # If it is relative, then search for the first ld in PATH.
8671 elif test "$with_gnu_ld" = yes; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8673 $as_echo_n "checking for GNU ld... " >&6; }
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8676 $as_echo_n "checking for non-GNU ld... " >&6; }
8678 if ${lt_cv_path_LD+:} false; then :
8679 $as_echo_n "(cached) " >&6
8681 if test -z "$LD"; then
8682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8683 for ac_dir in $PATH; do
8685 test -z "$ac_dir" && ac_dir=.
8686 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8687 lt_cv_path_LD="$ac_dir/$ac_prog"
8688 # Check to see if the program is GNU ld. I'd rather use --version,
8689 # but apparently some variants of GNU ld only accept -v.
8690 # Break only if it was the GNU/non-GNU ld that we prefer.
8691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8692 *GNU* | *'with BFD'*)
8693 test "$with_gnu_ld" != no && break
8696 test "$with_gnu_ld" != yes && break
8703 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8708 if test -n "$LD"; then
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8710 $as_echo "$LD" >&6; }
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713 $as_echo "no" >&6; }
8715 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8717 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8718 if ${lt_cv_prog_gnu_ld+:} false; then :
8719 $as_echo_n "(cached) " >&6
8721 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8722 case `$LD -v 2>&1 </dev/null` in
8723 *GNU* | *'with BFD'*)
8724 lt_cv_prog_gnu_ld=yes
8727 lt_cv_prog_gnu_ld=no
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8732 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8733 with_gnu_ld=$lt_cv_prog_gnu_ld
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8744 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8745 if ${lt_cv_path_NM+:} false; then :
8746 $as_echo_n "(cached) " >&6
8748 if test -n "$NM"; then
8749 # Let the user override the test.
8752 lt_nm_to_check="${ac_tool_prefix}nm"
8753 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8754 lt_nm_to_check="$lt_nm_to_check nm"
8756 for lt_tmp_nm in $lt_nm_to_check; do
8757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8758 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8760 test -z "$ac_dir" && ac_dir=.
8761 tmp_nm="$ac_dir/$lt_tmp_nm"
8762 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8763 # Check to see if the nm accepts a BSD-compat flag.
8764 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8765 # nm: unknown option "B" ignored
8766 # Tru64's nm complains that /dev/null is an invalid object file
8767 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8768 */dev/null* | *'Invalid file or object type'*)
8769 lt_cv_path_NM="$tmp_nm -B"
8773 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8775 lt_cv_path_NM="$tmp_nm -p"
8779 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8780 continue # so that we can try to find one that supports BSD flags
8789 : ${lt_cv_path_NM=no}
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8793 $as_echo "$lt_cv_path_NM" >&6; }
8794 if test "$lt_cv_path_NM" != "no"; then
8797 # Didn't find any BSD compatible name lister, look for dumpbin.
8798 if test -n "$DUMPBIN"; then :
8799 # Let the user override the test.
8801 if test -n "$ac_tool_prefix"; then
8802 for ac_prog in dumpbin "link -dump"
8804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807 $as_echo_n "checking for $ac_word... " >&6; }
8808 if ${ac_cv_prog_DUMPBIN+:} false; then :
8809 $as_echo_n "(cached) " >&6
8811 if test -n "$DUMPBIN"; then
8812 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818 test -z "$as_dir" && as_dir=.
8819 for ac_exec_ext in '' $ac_executable_extensions; do
8820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8821 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8831 DUMPBIN=$ac_cv_prog_DUMPBIN
8832 if test -n "$DUMPBIN"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8834 $as_echo "$DUMPBIN" >&6; }
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837 $as_echo "no" >&6; }
8841 test -n "$DUMPBIN" && break
8844 if test -z "$DUMPBIN"; then
8845 ac_ct_DUMPBIN=$DUMPBIN
8846 for ac_prog in dumpbin "link -dump"
8848 # Extract the first word of "$ac_prog", so it can be a program name with args.
8849 set dummy $ac_prog; ac_word=$2
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851 $as_echo_n "checking for $ac_word... " >&6; }
8852 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8853 $as_echo_n "(cached) " >&6
8855 if test -n "$ac_ct_DUMPBIN"; then
8856 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8862 test -z "$as_dir" && as_dir=.
8863 for ac_exec_ext in '' $ac_executable_extensions; do
8864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8865 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8875 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8876 if test -n "$ac_ct_DUMPBIN"; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8878 $as_echo "$ac_ct_DUMPBIN" >&6; }
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881 $as_echo "no" >&6; }
8885 test -n "$ac_ct_DUMPBIN" && break
8888 if test "x$ac_ct_DUMPBIN" = x; then
8891 case $cross_compiling:$ac_tool_warned in
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8895 ac_tool_warned=yes ;;
8897 DUMPBIN=$ac_ct_DUMPBIN
8901 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8903 DUMPBIN="$DUMPBIN -symbols"
8911 if test "$DUMPBIN" != ":"; then
8915 test -z "$NM" && NM=nm
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8923 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8924 if ${lt_cv_nm_interface+:} false; then :
8925 $as_echo_n "(cached) " >&6
8927 lt_cv_nm_interface="BSD nm"
8928 echo "int some_variable = 0;" > conftest.$ac_ext
8929 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8930 (eval "$ac_compile" 2>conftest.err)
8931 cat conftest.err >&5
8932 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8933 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8934 cat conftest.err >&5
8935 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8936 cat conftest.out >&5
8937 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8938 lt_cv_nm_interface="MS dumpbin"
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8943 $as_echo "$lt_cv_nm_interface" >&6; }
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8946 $as_echo_n "checking whether ln -s works... " >&6; }
8948 if test "$LN_S" = "ln -s"; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8950 $as_echo "yes" >&6; }
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8953 $as_echo "no, using $LN_S" >&6; }
8956 # find the maximum length of command line arguments
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8958 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8959 if ${lt_cv_sys_max_cmd_len+:} false; then :
8960 $as_echo_n "(cached) " >&6
8967 # On DJGPP, this test can blow up pretty badly due to problems in libc
8968 # (any single argument exceeding 2000 bytes causes a buffer overrun
8969 # during glob expansion). Even if it were fixed, the result of this
8970 # check would be larger than it should be.
8971 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8975 # Under GNU Hurd, this test is not required because there is
8976 # no limit to the length of command line arguments.
8977 # Libtool will interpret -1 as no limit whatsoever
8978 lt_cv_sys_max_cmd_len=-1;
8981 cygwin* | mingw* | cegcc*)
8982 # On Win9x/ME, this test blows up -- it succeeds, but takes
8983 # about 5 minutes as the teststring grows exponentially.
8984 # Worse, since 9x/ME are not pre-emptively multitasking,
8985 # you end up with a "frozen" computer, even though with patience
8986 # the test eventually succeeds (with a max line length of 256k).
8987 # Instead, let's just punt: use the minimum linelength reported by
8988 # all of the supported platforms: 8192 (on NT/2K/XP).
8989 lt_cv_sys_max_cmd_len=8192;
8993 # On MiNT this can take a long time and run out of memory.
8994 lt_cv_sys_max_cmd_len=8192;
8998 # On AmigaOS with pdksh, this test takes hours, literally.
8999 # So we just punt and use a minimum line length of 8192.
9000 lt_cv_sys_max_cmd_len=8192;
9003 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9004 # This has been around since 386BSD, at least. Likely further.
9005 if test -x /sbin/sysctl; then
9006 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9007 elif test -x /usr/sbin/sysctl; then
9008 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9010 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9012 # And add a safety zone
9013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9018 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9019 lt_cv_sys_max_cmd_len=196608
9023 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9024 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9025 # nice to cause kernel panics so lets avoid the loop below.
9026 # First set a reasonable default.
9027 lt_cv_sys_max_cmd_len=16384
9029 if test -x /sbin/sysconfig; then
9030 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9031 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9036 lt_cv_sys_max_cmd_len=102400
9038 sysv5* | sco5v6* | sysv4.2uw2*)
9039 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9040 if test -n "$kargmax"; then
9041 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9043 lt_cv_sys_max_cmd_len=32768
9047 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9048 if test -n "$lt_cv_sys_max_cmd_len"; then
9049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9052 # Make teststring a little bigger before we do anything with it.
9053 # a 1K string should be a reasonable start.
9054 for i in 1 2 3 4 5 6 7 8 ; do
9055 teststring=$teststring$teststring
9057 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9058 # If test is not a shell built-in, we'll probably end up computing a
9059 # maximum length that is only half of the actual maximum length, but
9061 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9062 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9063 test $i != 17 # 1/2 MB should be enough
9066 teststring=$teststring$teststring
9068 # Only check the string length outside the loop.
9069 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9071 # Add a significant safety factor because C++ compilers can tack on
9072 # massive amounts of additional arguments before passing them to the
9073 # linker. It appears as though 1/2 is a usable value.
9074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9081 if test -n $lt_cv_sys_max_cmd_len ; then
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9083 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9086 $as_echo "none" >&6; }
9088 max_cmd_len=$lt_cv_sys_max_cmd_len
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9100 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9101 # Try some XSI features
9104 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9106 && eval 'test $(( 1 + 1 )) -eq 2 \
9107 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9110 $as_echo "$xsi_shell" >&6; }
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9114 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9116 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9118 && lt_shell_append=yes
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9120 $as_echo "$lt_shell_append" >&6; }
9123 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9133 # test EBCDIC or ASCII
9134 case `echo X|tr X '\101'` in
9135 A) # ASCII based system
9136 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9137 lt_SP2NL='tr \040 \012'
9138 lt_NL2SP='tr \015\012 \040\040'
9140 *) # EBCDIC based system
9141 lt_SP2NL='tr \100 \n'
9142 lt_NL2SP='tr \r\n \100\100'
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9155 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9156 if ${lt_cv_to_host_file_cmd+:} false; then :
9157 $as_echo_n "(cached) " >&6
9162 *-*-mingw* ) # actually msys
9163 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9166 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9168 * ) # otherwise, assume *nix
9169 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9175 *-*-mingw* ) # actually msys
9176 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9179 lt_cv_to_host_file_cmd=func_convert_file_noop
9181 * ) # otherwise, assume *nix
9182 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9186 * ) # unhandled hosts (and "normal" native builds)
9187 lt_cv_to_host_file_cmd=func_convert_file_noop
9193 to_host_file_cmd=$lt_cv_to_host_file_cmd
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9195 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9202 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9203 if ${lt_cv_to_tool_file_cmd+:} false; then :
9204 $as_echo_n "(cached) " >&6
9206 #assume ordinary cross tools, or native build.
9207 lt_cv_to_tool_file_cmd=func_convert_file_noop
9211 *-*-mingw* ) # actually msys
9212 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9220 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9222 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9229 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9230 if ${lt_cv_ld_reload_flag+:} false; then :
9231 $as_echo_n "(cached) " >&6
9233 lt_cv_ld_reload_flag='-r'
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9236 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9237 reload_flag=$lt_cv_ld_reload_flag
9238 case $reload_flag in
9240 *) reload_flag=" $reload_flag" ;;
9242 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9244 cygwin* | mingw* | pw32* | cegcc*)
9245 if test "$GCC" != yes; then
9250 if test "$GCC" = yes; then
9251 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9253 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9266 if test -n "$ac_tool_prefix"; then
9267 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9268 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9270 $as_echo_n "checking for $ac_word... " >&6; }
9271 if ${ac_cv_prog_OBJDUMP+:} false; then :
9272 $as_echo_n "(cached) " >&6
9274 if test -n "$OBJDUMP"; then
9275 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281 test -z "$as_dir" && as_dir=.
9282 for ac_exec_ext in '' $ac_executable_extensions; do
9283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9284 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9294 OBJDUMP=$ac_cv_prog_OBJDUMP
9295 if test -n "$OBJDUMP"; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9297 $as_echo "$OBJDUMP" >&6; }
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300 $as_echo "no" >&6; }
9305 if test -z "$ac_cv_prog_OBJDUMP"; then
9306 ac_ct_OBJDUMP=$OBJDUMP
9307 # Extract the first word of "objdump", so it can be a program name with args.
9308 set dummy objdump; ac_word=$2
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9310 $as_echo_n "checking for $ac_word... " >&6; }
9311 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9312 $as_echo_n "(cached) " >&6
9314 if test -n "$ac_ct_OBJDUMP"; then
9315 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9321 test -z "$as_dir" && as_dir=.
9322 for ac_exec_ext in '' $ac_executable_extensions; do
9323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9324 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9334 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9335 if test -n "$ac_ct_OBJDUMP"; then
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9337 $as_echo "$ac_ct_OBJDUMP" >&6; }
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9340 $as_echo "no" >&6; }
9343 if test "x$ac_ct_OBJDUMP" = x; then
9346 case $cross_compiling:$ac_tool_warned in
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9350 ac_tool_warned=yes ;;
9352 OBJDUMP=$ac_ct_OBJDUMP
9355 OBJDUMP="$ac_cv_prog_OBJDUMP"
9358 test -z "$OBJDUMP" && OBJDUMP=objdump
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9369 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9370 if ${lt_cv_deplibs_check_method+:} false; then :
9371 $as_echo_n "(cached) " >&6
9373 lt_cv_file_magic_cmd='$MAGIC_CMD'
9374 lt_cv_file_magic_test_file=
9375 lt_cv_deplibs_check_method='unknown'
9376 # Need to set the preceding variable on all platforms that support
9377 # interlibrary dependencies.
9378 # 'none' -- dependencies not supported.
9379 # `unknown' -- same as none, but documents that we really don't know.
9380 # 'pass_all' -- all dependencies passed with no checks.
9381 # 'test_compile' -- check by making test program.
9382 # 'file_magic [[regex]]' -- check by looking for files in library path
9383 # which responds to the $file_magic_cmd with a given extended regex.
9384 # If you have `file' or equivalent on your system and you're not sure
9385 # whether `pass_all' will *always* work, you probably want this one.
9389 lt_cv_deplibs_check_method=pass_all
9393 lt_cv_deplibs_check_method=pass_all
9397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9398 lt_cv_file_magic_cmd='/usr/bin/file -L'
9399 lt_cv_file_magic_test_file=/shlib/libc.so
9403 # func_win32_libid is a shell function defined in ltmain.sh
9404 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9405 lt_cv_file_magic_cmd='func_win32_libid'
9409 # Base MSYS/MinGW do not provide the 'file' command needed by
9410 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9411 # unless we find 'file', for example because we are cross-compiling.
9412 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
9413 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
9414 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9415 lt_cv_file_magic_cmd='func_win32_libid'
9417 # Keep this pattern in sync with the one in func_win32_libid.
9418 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9419 lt_cv_file_magic_cmd='$OBJDUMP -f'
9424 # use the weaker test based on 'objdump'. See mingw*.
9425 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9426 lt_cv_file_magic_cmd='$OBJDUMP -f'
9429 darwin* | rhapsody*)
9430 lt_cv_deplibs_check_method=pass_all
9433 freebsd* | dragonfly*)
9434 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9437 # Not sure whether the presence of OpenBSD here was a mistake.
9438 # Let's accept both of them until this is cleared up.
9439 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9440 lt_cv_file_magic_cmd=/usr/bin/file
9441 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9445 lt_cv_deplibs_check_method=pass_all
9450 lt_cv_deplibs_check_method=pass_all
9454 lt_cv_deplibs_check_method=pass_all
9457 hpux10.20* | hpux11*)
9458 lt_cv_file_magic_cmd=/usr/bin/file
9461 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9462 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9465 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]'
9466 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9469 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9470 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9476 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9480 irix5* | irix6* | nonstopux*)
9482 *-32|*"-32 ") libmagic=32-bit;;
9483 *-n32|*"-n32 ") libmagic=N32;;
9484 *-64|*"-64 ") libmagic=64-bit;;
9485 *) libmagic=never-match;;
9487 lt_cv_deplibs_check_method=pass_all
9490 # This must be Linux ELF.
9491 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9492 lt_cv_deplibs_check_method=pass_all
9496 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9505 lt_cv_file_magic_cmd=/usr/bin/file
9506 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9510 lt_cv_deplibs_check_method=pass_all
9514 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9515 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9517 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9521 osf3* | osf4* | osf5*)
9522 lt_cv_deplibs_check_method=pass_all
9526 lt_cv_deplibs_check_method=pass_all
9530 lt_cv_deplibs_check_method=pass_all
9533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9534 lt_cv_deplibs_check_method=pass_all
9538 case $host_vendor in
9540 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]'
9541 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9544 lt_cv_deplibs_check_method=pass_all
9547 lt_cv_file_magic_cmd='/bin/file'
9548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9551 lt_cv_file_magic_cmd='/bin/file'
9552 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9553 lt_cv_file_magic_test_file=/lib/libc.so
9556 lt_cv_deplibs_check_method=pass_all
9559 lt_cv_deplibs_check_method=pass_all
9565 lt_cv_deplibs_check_method=pass_all
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9571 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9575 if test "$build" = "$host"; then
9578 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9581 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9587 file_magic_cmd=$lt_cv_file_magic_cmd
9588 deplibs_check_method=$lt_cv_deplibs_check_method
9589 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9612 if test -n "$ac_tool_prefix"; then
9613 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9614 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9616 $as_echo_n "checking for $ac_word... " >&6; }
9617 if ${ac_cv_prog_DLLTOOL+:} false; then :
9618 $as_echo_n "(cached) " >&6
9620 if test -n "$DLLTOOL"; then
9621 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9627 test -z "$as_dir" && as_dir=.
9628 for ac_exec_ext in '' $ac_executable_extensions; do
9629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9630 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9640 DLLTOOL=$ac_cv_prog_DLLTOOL
9641 if test -n "$DLLTOOL"; then
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9643 $as_echo "$DLLTOOL" >&6; }
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9646 $as_echo "no" >&6; }
9651 if test -z "$ac_cv_prog_DLLTOOL"; then
9652 ac_ct_DLLTOOL=$DLLTOOL
9653 # Extract the first word of "dlltool", so it can be a program name with args.
9654 set dummy dlltool; ac_word=$2
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9656 $as_echo_n "checking for $ac_word... " >&6; }
9657 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9658 $as_echo_n "(cached) " >&6
9660 if test -n "$ac_ct_DLLTOOL"; then
9661 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 test -z "$as_dir" && as_dir=.
9668 for ac_exec_ext in '' $ac_executable_extensions; do
9669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9670 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9680 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9681 if test -n "$ac_ct_DLLTOOL"; then
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9683 $as_echo "$ac_ct_DLLTOOL" >&6; }
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9686 $as_echo "no" >&6; }
9689 if test "x$ac_ct_DLLTOOL" = x; then
9692 case $cross_compiling:$ac_tool_warned in
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9696 ac_tool_warned=yes ;;
9698 DLLTOOL=$ac_ct_DLLTOOL
9701 DLLTOOL="$ac_cv_prog_DLLTOOL"
9704 test -z "$DLLTOOL" && DLLTOOL=dlltool
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9716 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9717 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9718 $as_echo_n "(cached) " >&6
9720 lt_cv_sharedlib_from_linklib_cmd='unknown'
9723 cygwin* | mingw* | pw32* | cegcc*)
9724 # two different shell functions defined in ltmain.sh
9725 # decide which to use based on capabilities of $DLLTOOL
9726 case `$DLLTOOL --help 2>&1` in
9727 *--identify-strict*)
9728 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9731 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9736 # fallback: assume linklib IS sharedlib
9737 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9743 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9744 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9745 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9753 if test -n "$ac_tool_prefix"; then
9756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759 $as_echo_n "checking for $ac_word... " >&6; }
9760 if ${ac_cv_prog_AR+:} false; then :
9761 $as_echo_n "(cached) " >&6
9763 if test -n "$AR"; then
9764 ac_cv_prog_AR="$AR" # Let the user override the test.
9766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770 test -z "$as_dir" && as_dir=.
9771 for ac_exec_ext in '' $ac_executable_extensions; do
9772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9773 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9784 if test -n "$AR"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9786 $as_echo "$AR" >&6; }
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9793 test -n "$AR" && break
9796 if test -z "$AR"; then
9800 # Extract the first word of "$ac_prog", so it can be a program name with args.
9801 set dummy $ac_prog; ac_word=$2
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803 $as_echo_n "checking for $ac_word... " >&6; }
9804 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9805 $as_echo_n "(cached) " >&6
9807 if test -n "$ac_ct_AR"; then
9808 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814 test -z "$as_dir" && as_dir=.
9815 for ac_exec_ext in '' $ac_executable_extensions; do
9816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9817 ac_cv_prog_ac_ct_AR="$ac_prog"
9818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9827 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9828 if test -n "$ac_ct_AR"; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9830 $as_echo "$ac_ct_AR" >&6; }
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833 $as_echo "no" >&6; }
9837 test -n "$ac_ct_AR" && break
9840 if test "x$ac_ct_AR" = x; then
9843 case $cross_compiling:$ac_tool_warned in
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9847 ac_tool_warned=yes ;;
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9867 $as_echo_n "checking for archiver @FILE support... " >&6; }
9868 if ${lt_cv_ar_at_file+:} false; then :
9869 $as_echo_n "(cached) " >&6
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h. */
9883 if ac_fn_c_try_compile "$LINENO"; then :
9884 echo conftest.$ac_objext > conftest.lst
9885 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9887 (eval $lt_ar_try) 2>&5
9889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9890 test $ac_status = 0; }
9891 if test "$ac_status" -eq 0; then
9892 # Ensure the archiver fails upon bogus file names.
9893 rm -f conftest.$ac_objext libconftest.a
9894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9895 (eval $lt_ar_try) 2>&5
9897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9898 test $ac_status = 0; }
9899 if test "$ac_status" -ne 0; then
9903 rm -f conftest.* libconftest.a
9906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9910 $as_echo "$lt_cv_ar_at_file" >&6; }
9912 if test "x$lt_cv_ar_at_file" = xno; then
9915 archiver_list_spec=$lt_cv_ar_at_file
9924 if test -n "$ac_tool_prefix"; then
9925 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9926 set dummy ${ac_tool_prefix}strip; ac_word=$2
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9928 $as_echo_n "checking for $ac_word... " >&6; }
9929 if ${ac_cv_prog_STRIP+:} false; then :
9930 $as_echo_n "(cached) " >&6
9932 if test -n "$STRIP"; then
9933 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9939 test -z "$as_dir" && as_dir=.
9940 for ac_exec_ext in '' $ac_executable_extensions; do
9941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9942 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9952 STRIP=$ac_cv_prog_STRIP
9953 if test -n "$STRIP"; then
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9955 $as_echo "$STRIP" >&6; }
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958 $as_echo "no" >&6; }
9963 if test -z "$ac_cv_prog_STRIP"; then
9965 # Extract the first word of "strip", so it can be a program name with args.
9966 set dummy strip; ac_word=$2
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9968 $as_echo_n "checking for $ac_word... " >&6; }
9969 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9970 $as_echo_n "(cached) " >&6
9972 if test -n "$ac_ct_STRIP"; then
9973 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979 test -z "$as_dir" && as_dir=.
9980 for ac_exec_ext in '' $ac_executable_extensions; do
9981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9982 ac_cv_prog_ac_ct_STRIP="strip"
9983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9992 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9993 if test -n "$ac_ct_STRIP"; then
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9995 $as_echo "$ac_ct_STRIP" >&6; }
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998 $as_echo "no" >&6; }
10001 if test "x$ac_ct_STRIP" = x; then
10004 case $cross_compiling:$ac_tool_warned in
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10008 ac_tool_warned=yes ;;
10013 STRIP="$ac_cv_prog_STRIP"
10016 test -z "$STRIP" && STRIP=:
10023 if test -n "$ac_tool_prefix"; then
10024 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10025 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10027 $as_echo_n "checking for $ac_word... " >&6; }
10028 if ${ac_cv_prog_RANLIB+:} false; then :
10029 $as_echo_n "(cached) " >&6
10031 if test -n "$RANLIB"; then
10032 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035 for as_dir in $PATH
10038 test -z "$as_dir" && as_dir=.
10039 for ac_exec_ext in '' $ac_executable_extensions; do
10040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10041 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10051 RANLIB=$ac_cv_prog_RANLIB
10052 if test -n "$RANLIB"; then
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10054 $as_echo "$RANLIB" >&6; }
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057 $as_echo "no" >&6; }
10062 if test -z "$ac_cv_prog_RANLIB"; then
10063 ac_ct_RANLIB=$RANLIB
10064 # Extract the first word of "ranlib", so it can be a program name with args.
10065 set dummy ranlib; ac_word=$2
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10067 $as_echo_n "checking for $ac_word... " >&6; }
10068 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10069 $as_echo_n "(cached) " >&6
10071 if test -n "$ac_ct_RANLIB"; then
10072 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075 for as_dir in $PATH
10078 test -z "$as_dir" && as_dir=.
10079 for ac_exec_ext in '' $ac_executable_extensions; do
10080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10081 ac_cv_prog_ac_ct_RANLIB="ranlib"
10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10091 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10092 if test -n "$ac_ct_RANLIB"; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10094 $as_echo "$ac_ct_RANLIB" >&6; }
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097 $as_echo "no" >&6; }
10100 if test "x$ac_ct_RANLIB" = x; then
10103 case $cross_compiling:$ac_tool_warned in
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10107 ac_tool_warned=yes ;;
10109 RANLIB=$ac_ct_RANLIB
10112 RANLIB="$ac_cv_prog_RANLIB"
10115 test -z "$RANLIB" && RANLIB=:
10122 # Determine commands to create old-style static archives.
10123 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10124 old_postinstall_cmds='chmod 644 $oldlib'
10125 old_postuninstall_cmds=
10127 if test -n "$RANLIB"; then
10130 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10133 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10136 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10141 lock_old_archive_extraction=yes ;;
10143 lock_old_archive_extraction=no ;;
10184 # If no C compiler was specified, use CC.
10187 # If no C compiler flags were specified, use CFLAGS.
10188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10190 # Allow CC to be a program name with arguments.
10194 # Check for command to grab the raw symbol name followed by C symbol from nm.
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10196 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10197 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10198 $as_echo_n "(cached) " >&6
10201 # These are sane defaults that work on at least a few old systems.
10202 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10204 # Character class describing NM global symbol codes.
10205 symcode='[BCDEGRST]'
10207 # Regexp to match symbols that can be accessed directly from C.
10208 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10210 # Define system-specific variables.
10215 cygwin* | mingw* | pw32* | cegcc*)
10216 symcode='[ABCDGISTW]'
10219 if test "$host_cpu" = ia64; then
10220 symcode='[ABCDEGRST]'
10223 irix* | nonstopux*)
10224 symcode='[BCDEGRST]'
10227 symcode='[BCDEGQRST]'
10238 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10246 # If we're using GNU nm, then use its standard symbol codes.
10247 case `$NM -V 2>&1` in
10248 *GNU* | *'with BFD'*)
10249 symcode='[ABCDGIRSTW]' ;;
10252 # Transform an extracted symbol line into a proper C declaration.
10253 # Some systems (esp. on ia64) link data and code symbols differently,
10254 # so use this general approach.
10255 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10257 # Transform an extracted symbol line into symbol name and symbol address
10258 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10259 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'"
10261 # Handle CRLF in mingw tool chain
10265 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10269 # Try without a prefix underscore, then with it.
10270 for ac_symprfx in "" "_"; do
10272 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10273 symxfrm="\\1 $ac_symprfx\\2 \\2"
10275 # Write the raw and C identifiers.
10276 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10277 # Fake it for dumpbin and say T for any non-static function
10278 # and D for any global variable.
10279 # Also find C++ and __fastcall symbols from MSVC++,
10280 # which start with @ or ?.
10281 lt_cv_sys_global_symbol_pipe="$AWK '"\
10282 " {last_section=section; section=\$ 3};"\
10283 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10284 " \$ 0!~/External *\|/{next};"\
10285 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10286 " {if(hide[section]) next};"\
10287 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10288 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10289 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
10290 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10291 " ' prfx=^$ac_symprfx"
10293 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10295 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10297 # Check to see that the pipe works correctly.
10301 cat > conftest.$ac_ext <<_LT_EOF
10306 void nm_test_func(void);
10307 void nm_test_func(void){}
10311 int main(){nm_test_var='a';nm_test_func();return(0);}
10314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10315 (eval $ac_compile) 2>&5
10317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10318 test $ac_status = 0; }; then
10319 # Now try to grab the symbols.
10321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10322 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10325 test $ac_status = 0; } && test -s "$nlist"; then
10326 # Try sorting and uniquifying the output.
10327 if sort "$nlist" | uniq > "$nlist"T; then
10328 mv -f "$nlist"T "$nlist"
10333 # Make sure that we snagged all the symbols we need.
10334 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10335 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10336 cat <<_LT_EOF > conftest.$ac_ext
10337 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10338 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
10339 /* DATA imports from DLLs on WIN32 con't be const, because runtime
10340 relocations are performed -- see ld's documentation on pseudo-relocs. */
10341 # define LT_DLSYM_CONST
10342 #elif defined(__osf__)
10343 /* This system does not cope well with relocations in const data. */
10344 # define LT_DLSYM_CONST
10346 # define LT_DLSYM_CONST const
10354 # Now generate the symbol file.
10355 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10357 cat <<_LT_EOF >> conftest.$ac_ext
10359 /* The mapping between symbol names and symbols. */
10360 LT_DLSYM_CONST struct {
10364 lt__PROGRAM__LTX_preloaded_symbols[] =
10366 { "@PROGRAM@", (void *) 0 },
10368 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10369 cat <<\_LT_EOF >> conftest.$ac_ext
10373 /* This works around a problem in FreeBSD linker */
10374 #ifdef FREEBSD_WORKAROUND
10375 static const void *lt_preloaded_setup() {
10376 return lt__PROGRAM__LTX_preloaded_symbols;
10384 # Now try linking the two files.
10385 mv conftest.$ac_objext conftstm.$ac_objext
10386 lt_globsym_save_LIBS=$LIBS
10387 lt_globsym_save_CFLAGS=$CFLAGS
10388 LIBS="conftstm.$ac_objext"
10389 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10391 (eval $ac_link) 2>&5
10393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10394 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10397 LIBS=$lt_globsym_save_LIBS
10398 CFLAGS=$lt_globsym_save_CFLAGS
10400 echo "cannot find nm_test_func in $nlist" >&5
10403 echo "cannot find nm_test_var in $nlist" >&5
10406 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10409 echo "$progname: failed program was:" >&5
10410 cat conftest.$ac_ext >&5
10412 rm -rf conftest* conftst*
10414 # Do not use the global_symbol_pipe unless it works.
10415 if test "$pipe_works" = yes; then
10418 lt_cv_sys_global_symbol_pipe=
10424 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10425 lt_cv_sys_global_symbol_to_cdecl=
10427 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10429 $as_echo "failed" >&6; }
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10432 $as_echo "ok" >&6; }
10435 # Response file support.
10436 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10437 nm_file_list_spec='@'
10438 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10439 nm_file_list_spec='@'
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10469 $as_echo_n "checking for sysroot... " >&6; }
10471 # Check whether --with-sysroot was given.
10472 if test "${with_sysroot+set}" = set; then :
10473 withval=$with_sysroot;
10480 case ${with_sysroot} in #(
10482 if test "$GCC" = yes; then
10483 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10487 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
10493 $as_echo "${with_sysroot}" >&6; }
10494 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10499 $as_echo "${lt_sysroot:-no}" >&6; }
10505 # Check whether --enable-libtool-lock was given.
10506 if test "${enable_libtool_lock+set}" = set; then :
10507 enableval=$enable_libtool_lock;
10510 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10512 # Some flags need to be propagated to the compiler or linker for good
10516 # Find out which ABI we are using.
10517 echo 'int i;' > conftest.$ac_ext
10518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10519 (eval $ac_compile) 2>&5
10521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10522 test $ac_status = 0; }; then
10523 case `/usr/bin/file conftest.$ac_objext` in
10525 HPUX_IA64_MODE="32"
10528 HPUX_IA64_MODE="64"
10535 # Find out which ABI we are using.
10536 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10538 (eval $ac_compile) 2>&5
10540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10541 test $ac_status = 0; }; then
10542 if test "$lt_cv_prog_gnu_ld" = yes; then
10543 case `/usr/bin/file conftest.$ac_objext` in
10545 LD="${LD-ld} -melf32bsmip"
10548 LD="${LD-ld} -melf32bmipn32"
10551 LD="${LD-ld} -melf64bmip"
10555 case `/usr/bin/file conftest.$ac_objext` in
10571 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10572 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10573 # Find out which ABI we are using.
10574 echo 'int i;' > conftest.$ac_ext
10575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10576 (eval $ac_compile) 2>&5
10578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10579 test $ac_status = 0; }; then
10580 case `/usr/bin/file conftest.o` in
10583 x86_64-*kfreebsd*-gnu)
10584 LD="${LD-ld} -m elf_i386_fbsd"
10587 LD="${LD-ld} -m elf_i386"
10589 ppc64-*linux*|powerpc64-*linux*)
10590 LD="${LD-ld} -m elf32ppclinux"
10593 LD="${LD-ld} -m elf_s390"
10596 LD="${LD-ld} -m elf32_sparc"
10602 x86_64-*kfreebsd*-gnu)
10603 LD="${LD-ld} -m elf_x86_64_fbsd"
10606 LD="${LD-ld} -m elf_x86_64"
10608 ppc*-*linux*|powerpc*-*linux*)
10609 LD="${LD-ld} -m elf64ppc"
10611 s390*-*linux*|s390*-*tpf*)
10612 LD="${LD-ld} -m elf64_s390"
10615 LD="${LD-ld} -m elf64_sparc"
10625 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10626 SAVE_CFLAGS="$CFLAGS"
10627 CFLAGS="$CFLAGS -belf"
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10629 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10630 if ${lt_cv_cc_needs_belf+:} false; then :
10631 $as_echo_n "(cached) " >&6
10634 ac_cpp='$CPP $CPPFLAGS'
10635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h. */
10650 if ac_fn_c_try_link "$LINENO"; then :
10651 lt_cv_cc_needs_belf=yes
10653 lt_cv_cc_needs_belf=no
10655 rm -f core conftest.err conftest.$ac_objext \
10656 conftest$ac_exeext conftest.$ac_ext
10658 ac_cpp='$CPP $CPPFLAGS'
10659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10665 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10666 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10667 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10668 CFLAGS="$SAVE_CFLAGS"
10672 # Find out which ABI we are using.
10673 echo 'int i;' > conftest.$ac_ext
10674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10675 (eval $ac_compile) 2>&5
10677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10678 test $ac_status = 0; }; then
10679 case `/usr/bin/file conftest.o` in
10681 case $lt_cv_prog_gnu_ld in
10682 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10684 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10696 need_locks="$enable_libtool_lock"
10698 if test -n "$ac_tool_prefix"; then
10699 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10700 set dummy ${ac_tool_prefix}mt; ac_word=$2
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10702 $as_echo_n "checking for $ac_word... " >&6; }
10703 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10704 $as_echo_n "(cached) " >&6
10706 if test -n "$MANIFEST_TOOL"; then
10707 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10710 for as_dir in $PATH
10713 test -z "$as_dir" && as_dir=.
10714 for ac_exec_ext in '' $ac_executable_extensions; do
10715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10716 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10726 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10727 if test -n "$MANIFEST_TOOL"; then
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10729 $as_echo "$MANIFEST_TOOL" >&6; }
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732 $as_echo "no" >&6; }
10737 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10738 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10739 # Extract the first word of "mt", so it can be a program name with args.
10740 set dummy mt; ac_word=$2
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10742 $as_echo_n "checking for $ac_word... " >&6; }
10743 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10744 $as_echo_n "(cached) " >&6
10746 if test -n "$ac_ct_MANIFEST_TOOL"; then
10747 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10750 for as_dir in $PATH
10753 test -z "$as_dir" && as_dir=.
10754 for ac_exec_ext in '' $ac_executable_extensions; do
10755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10756 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10766 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10767 if test -n "$ac_ct_MANIFEST_TOOL"; then
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10769 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772 $as_echo "no" >&6; }
10775 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10778 case $cross_compiling:$ac_tool_warned in
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10782 ac_tool_warned=yes ;;
10784 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10787 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10790 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10792 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10793 if ${lt_cv_path_mainfest_tool+:} false; then :
10794 $as_echo_n "(cached) " >&6
10796 lt_cv_path_mainfest_tool=no
10797 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10798 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10799 cat conftest.err >&5
10800 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10801 lt_cv_path_mainfest_tool=yes
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10806 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10807 if test "x$lt_cv_path_mainfest_tool" != xyes; then
10817 rhapsody* | darwin*)
10818 if test -n "$ac_tool_prefix"; then
10819 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10820 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10822 $as_echo_n "checking for $ac_word... " >&6; }
10823 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10824 $as_echo_n "(cached) " >&6
10826 if test -n "$DSYMUTIL"; then
10827 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10830 for as_dir in $PATH
10833 test -z "$as_dir" && as_dir=.
10834 for ac_exec_ext in '' $ac_executable_extensions; do
10835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10836 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10847 if test -n "$DSYMUTIL"; then
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10849 $as_echo "$DSYMUTIL" >&6; }
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852 $as_echo "no" >&6; }
10857 if test -z "$ac_cv_prog_DSYMUTIL"; then
10858 ac_ct_DSYMUTIL=$DSYMUTIL
10859 # Extract the first word of "dsymutil", so it can be a program name with args.
10860 set dummy dsymutil; ac_word=$2
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10862 $as_echo_n "checking for $ac_word... " >&6; }
10863 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10864 $as_echo_n "(cached) " >&6
10866 if test -n "$ac_ct_DSYMUTIL"; then
10867 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10870 for as_dir in $PATH
10873 test -z "$as_dir" && as_dir=.
10874 for ac_exec_ext in '' $ac_executable_extensions; do
10875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10876 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10886 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10887 if test -n "$ac_ct_DSYMUTIL"; then
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10889 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892 $as_echo "no" >&6; }
10895 if test "x$ac_ct_DSYMUTIL" = x; then
10898 case $cross_compiling:$ac_tool_warned in
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10902 ac_tool_warned=yes ;;
10904 DSYMUTIL=$ac_ct_DSYMUTIL
10907 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10910 if test -n "$ac_tool_prefix"; then
10911 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10912 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10914 $as_echo_n "checking for $ac_word... " >&6; }
10915 if ${ac_cv_prog_NMEDIT+:} false; then :
10916 $as_echo_n "(cached) " >&6
10918 if test -n "$NMEDIT"; then
10919 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10922 for as_dir in $PATH
10925 test -z "$as_dir" && as_dir=.
10926 for ac_exec_ext in '' $ac_executable_extensions; do
10927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10928 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10938 NMEDIT=$ac_cv_prog_NMEDIT
10939 if test -n "$NMEDIT"; then
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10941 $as_echo "$NMEDIT" >&6; }
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10944 $as_echo "no" >&6; }
10949 if test -z "$ac_cv_prog_NMEDIT"; then
10950 ac_ct_NMEDIT=$NMEDIT
10951 # Extract the first word of "nmedit", so it can be a program name with args.
10952 set dummy nmedit; ac_word=$2
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10954 $as_echo_n "checking for $ac_word... " >&6; }
10955 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10956 $as_echo_n "(cached) " >&6
10958 if test -n "$ac_ct_NMEDIT"; then
10959 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10962 for as_dir in $PATH
10965 test -z "$as_dir" && as_dir=.
10966 for ac_exec_ext in '' $ac_executable_extensions; do
10967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10968 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10978 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10979 if test -n "$ac_ct_NMEDIT"; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10981 $as_echo "$ac_ct_NMEDIT" >&6; }
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10984 $as_echo "no" >&6; }
10987 if test "x$ac_ct_NMEDIT" = x; then
10990 case $cross_compiling:$ac_tool_warned in
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10994 ac_tool_warned=yes ;;
10996 NMEDIT=$ac_ct_NMEDIT
10999 NMEDIT="$ac_cv_prog_NMEDIT"
11002 if test -n "$ac_tool_prefix"; then
11003 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11004 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11006 $as_echo_n "checking for $ac_word... " >&6; }
11007 if ${ac_cv_prog_LIPO+:} false; then :
11008 $as_echo_n "(cached) " >&6
11010 if test -n "$LIPO"; then
11011 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11017 test -z "$as_dir" && as_dir=.
11018 for ac_exec_ext in '' $ac_executable_extensions; do
11019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11030 LIPO=$ac_cv_prog_LIPO
11031 if test -n "$LIPO"; then
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11033 $as_echo "$LIPO" >&6; }
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036 $as_echo "no" >&6; }
11041 if test -z "$ac_cv_prog_LIPO"; then
11043 # Extract the first word of "lipo", so it can be a program name with args.
11044 set dummy lipo; ac_word=$2
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11046 $as_echo_n "checking for $ac_word... " >&6; }
11047 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11048 $as_echo_n "(cached) " >&6
11050 if test -n "$ac_ct_LIPO"; then
11051 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054 for as_dir in $PATH
11057 test -z "$as_dir" && as_dir=.
11058 for ac_exec_ext in '' $ac_executable_extensions; do
11059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11060 ac_cv_prog_ac_ct_LIPO="lipo"
11061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11070 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11071 if test -n "$ac_ct_LIPO"; then
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11073 $as_echo "$ac_ct_LIPO" >&6; }
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076 $as_echo "no" >&6; }
11079 if test "x$ac_ct_LIPO" = x; then
11082 case $cross_compiling:$ac_tool_warned in
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11086 ac_tool_warned=yes ;;
11091 LIPO="$ac_cv_prog_LIPO"
11094 if test -n "$ac_tool_prefix"; then
11095 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11096 set dummy ${ac_tool_prefix}otool; ac_word=$2
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098 $as_echo_n "checking for $ac_word... " >&6; }
11099 if ${ac_cv_prog_OTOOL+:} false; then :
11100 $as_echo_n "(cached) " >&6
11102 if test -n "$OTOOL"; then
11103 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106 for as_dir in $PATH
11109 test -z "$as_dir" && as_dir=.
11110 for ac_exec_ext in '' $ac_executable_extensions; do
11111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11112 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11122 OTOOL=$ac_cv_prog_OTOOL
11123 if test -n "$OTOOL"; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11125 $as_echo "$OTOOL" >&6; }
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128 $as_echo "no" >&6; }
11133 if test -z "$ac_cv_prog_OTOOL"; then
11135 # Extract the first word of "otool", so it can be a program name with args.
11136 set dummy otool; ac_word=$2
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138 $as_echo_n "checking for $ac_word... " >&6; }
11139 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11140 $as_echo_n "(cached) " >&6
11142 if test -n "$ac_ct_OTOOL"; then
11143 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146 for as_dir in $PATH
11149 test -z "$as_dir" && as_dir=.
11150 for ac_exec_ext in '' $ac_executable_extensions; do
11151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11152 ac_cv_prog_ac_ct_OTOOL="otool"
11153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11162 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11163 if test -n "$ac_ct_OTOOL"; then
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11165 $as_echo "$ac_ct_OTOOL" >&6; }
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168 $as_echo "no" >&6; }
11171 if test "x$ac_ct_OTOOL" = x; then
11174 case $cross_compiling:$ac_tool_warned in
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11178 ac_tool_warned=yes ;;
11183 OTOOL="$ac_cv_prog_OTOOL"
11186 if test -n "$ac_tool_prefix"; then
11187 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11188 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11190 $as_echo_n "checking for $ac_word... " >&6; }
11191 if ${ac_cv_prog_OTOOL64+:} false; then :
11192 $as_echo_n "(cached) " >&6
11194 if test -n "$OTOOL64"; then
11195 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198 for as_dir in $PATH
11201 test -z "$as_dir" && as_dir=.
11202 for ac_exec_ext in '' $ac_executable_extensions; do
11203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11204 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11214 OTOOL64=$ac_cv_prog_OTOOL64
11215 if test -n "$OTOOL64"; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11217 $as_echo "$OTOOL64" >&6; }
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220 $as_echo "no" >&6; }
11225 if test -z "$ac_cv_prog_OTOOL64"; then
11226 ac_ct_OTOOL64=$OTOOL64
11227 # Extract the first word of "otool64", so it can be a program name with args.
11228 set dummy otool64; ac_word=$2
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11230 $as_echo_n "checking for $ac_word... " >&6; }
11231 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11232 $as_echo_n "(cached) " >&6
11234 if test -n "$ac_ct_OTOOL64"; then
11235 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11238 for as_dir in $PATH
11241 test -z "$as_dir" && as_dir=.
11242 for ac_exec_ext in '' $ac_executable_extensions; do
11243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11244 ac_cv_prog_ac_ct_OTOOL64="otool64"
11245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11254 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11255 if test -n "$ac_ct_OTOOL64"; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11257 $as_echo "$ac_ct_OTOOL64" >&6; }
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11260 $as_echo "no" >&6; }
11263 if test "x$ac_ct_OTOOL64" = x; then
11266 case $cross_compiling:$ac_tool_warned in
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11270 ac_tool_warned=yes ;;
11272 OTOOL64=$ac_ct_OTOOL64
11275 OTOOL64="$ac_cv_prog_OTOOL64"
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11305 $as_echo_n "checking for -single_module linker flag... " >&6; }
11306 if ${lt_cv_apple_cc_single_mod+:} false; then :
11307 $as_echo_n "(cached) " >&6
11309 lt_cv_apple_cc_single_mod=no
11310 if test -z "${LT_MULTI_MODULE}"; then
11311 # By default we will add the -single_module flag. You can override
11312 # by either setting the environment variable LT_MULTI_MODULE
11313 # non-empty at configure time, or by adding -multi_module to the
11315 rm -rf libconftest.dylib*
11316 echo "int foo(void){return 1;}" > conftest.c
11317 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11318 -dynamiclib -Wl,-single_module conftest.c" >&5
11319 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11320 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11322 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11323 lt_cv_apple_cc_single_mod=yes
11325 cat conftest.err >&5
11327 rm -rf libconftest.dylib*
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11332 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11334 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11335 if ${lt_cv_ld_exported_symbols_list+:} false; then :
11336 $as_echo_n "(cached) " >&6
11338 lt_cv_ld_exported_symbols_list=no
11339 save_LDFLAGS=$LDFLAGS
11340 echo "_main" > conftest.sym
11341 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11353 if ac_fn_c_try_link "$LINENO"; then :
11354 lt_cv_ld_exported_symbols_list=yes
11356 lt_cv_ld_exported_symbols_list=no
11358 rm -f core conftest.err conftest.$ac_objext \
11359 conftest$ac_exeext conftest.$ac_ext
11360 LDFLAGS="$save_LDFLAGS"
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11364 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11366 $as_echo_n "checking for -force_load linker flag... " >&6; }
11367 if ${lt_cv_ld_force_load+:} false; then :
11368 $as_echo_n "(cached) " >&6
11370 lt_cv_ld_force_load=no
11371 cat > conftest.c << _LT_EOF
11372 int forced_loaded() { return 2;}
11374 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11375 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11376 echo "$AR cru libconftest.a conftest.o" >&5
11377 $AR cru libconftest.a conftest.o 2>&5
11378 echo "$RANLIB libconftest.a" >&5
11379 $RANLIB libconftest.a 2>&5
11380 cat > conftest.c << _LT_EOF
11381 int main() { return 0;}
11383 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11384 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11386 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11387 lt_cv_ld_force_load=yes
11389 cat conftest.err >&5
11391 rm -f conftest.err libconftest.a conftest conftest.c
11392 rm -rf conftest.dSYM
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11396 $as_echo "$lt_cv_ld_force_load" >&6; }
11398 rhapsody* | darwin1.[012])
11399 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11401 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11402 darwin*) # darwin 5.x on
11403 # if running on 10.5 or later, the deployment target defaults
11404 # to the OS version, if on x86, and 10.4, the deployment
11405 # target defaults to 10.4. Don't you love it?
11406 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11407 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11408 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11410 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11412 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11416 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11417 _lt_dar_single_mod='$single_module'
11419 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11420 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11422 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11424 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11425 _lt_dsymutil='~$DSYMUTIL $lib || :'
11432 for ac_header in dlfcn.h
11434 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11436 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11437 cat >>confdefs.h <<_ACEOF
11438 #define HAVE_DLFCN_H 1
11448 func_stripname_cnf ()
11451 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11452 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11454 } # func_stripname_cnf
11467 enable_win32_dll=no
11471 # Check whether --enable-static was given.
11472 if test "${enable_static+set}" = set; then :
11473 enableval=$enable_static; p=${PACKAGE-default}
11475 yes) enable_static=yes ;;
11476 no) enable_static=no ;;
11479 # Look at the argument we got. We use all the common list separators.
11480 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11481 for pkg in $enableval; do
11483 if test "X$pkg" = "X$p"; then
11503 # Check whether --with-pic was given.
11504 if test "${with_pic+set}" = set; then :
11505 withval=$with_pic; pic_mode="$withval"
11511 test -z "$pic_mode" && pic_mode=default
11519 # Check whether --enable-fast-install was given.
11520 if test "${enable_fast_install+set}" = set; then :
11521 enableval=$enable_fast_install; p=${PACKAGE-default}
11523 yes) enable_fast_install=yes ;;
11524 no) enable_fast_install=no ;;
11526 enable_fast_install=no
11527 # Look at the argument we got. We use all the common list separators.
11528 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11529 for pkg in $enableval; do
11531 if test "X$pkg" = "X$p"; then
11532 enable_fast_install=yes
11539 enable_fast_install=yes
11552 # This can be used to rebuild libtool when needed
11553 LIBTOOL_DEPS="$ltmain"
11555 # Always use our own libtool.
11556 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11583 test -z "$LN_S" && LN_S="ln -s"
11598 if test -n "${ZSH_VERSION+set}" ; then
11599 setopt NO_GLOB_SUBST
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11603 $as_echo_n "checking for objdir... " >&6; }
11604 if ${lt_cv_objdir+:} false; then :
11605 $as_echo_n "(cached) " >&6
11607 rm -f .libs 2>/dev/null
11608 mkdir .libs 2>/dev/null
11609 if test -d .libs; then
11612 # MS-DOS does not allow filenames that begin with a dot.
11615 rmdir .libs 2>/dev/null
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11618 $as_echo "$lt_cv_objdir" >&6; }
11619 objdir=$lt_cv_objdir
11625 cat >>confdefs.h <<_ACEOF
11626 #define LT_OBJDIR "$lt_cv_objdir/"
11634 # AIX sometimes has problems with the GCC collect2 program. For some
11635 # reason, if we set the COLLECT_NAMES environment variable, the problems
11636 # vanish in a puff of smoke.
11637 if test "X${COLLECT_NAMES+set}" != Xset; then
11639 export COLLECT_NAMES
11644 # Global variables:
11646 can_build_shared=yes
11648 # All known linkers require a `.a' archive for static linking (except MSVC,
11649 # which needs '.lib').
11652 with_gnu_ld="$lt_cv_prog_gnu_ld"
11655 old_CFLAGS="$CFLAGS"
11657 # Set sane defaults for various variables
11658 test -z "$CC" && CC=cc
11659 test -z "$LTCC" && LTCC=$CC
11660 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11661 test -z "$LD" && LD=ld
11662 test -z "$ac_objext" && ac_objext=o
11664 for cc_temp in $compiler""; do
11666 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11667 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11672 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11675 # Only perform the check for file, if the check method requires it
11676 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11677 case $deplibs_check_method in
11679 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11681 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11682 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11683 $as_echo_n "(cached) " >&6
11687 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11690 lt_save_MAGIC_CMD="$MAGIC_CMD"
11691 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11692 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11693 for ac_dir in $ac_dummy; do
11695 test -z "$ac_dir" && ac_dir=.
11696 if test -f $ac_dir/${ac_tool_prefix}file; then
11697 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11698 if test -n "$file_magic_test_file"; then
11699 case $deplibs_check_method in
11701 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11703 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11704 $EGREP "$file_magic_regex" > /dev/null; then
11709 *** Warning: the command libtool uses to detect shared libraries,
11710 *** $file_magic_cmd, produces output that libtool cannot recognize.
11711 *** The result is that libtool may fail to recognize shared libraries
11712 *** as such. This will affect the creation of libtool libraries that
11713 *** depend on shared libraries, but programs linked with such libtool
11714 *** libraries will work regardless of this problem. Nevertheless, you
11715 *** may want to report the problem to your system manager and/or to
11716 *** bug-libtool@gnu.org
11726 MAGIC_CMD="$lt_save_MAGIC_CMD"
11731 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11732 if test -n "$MAGIC_CMD"; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11734 $as_echo "$MAGIC_CMD" >&6; }
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; }
11744 if test -z "$lt_cv_path_MAGIC_CMD"; then
11745 if test -n "$ac_tool_prefix"; then
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11747 $as_echo_n "checking for file... " >&6; }
11748 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11749 $as_echo_n "(cached) " >&6
11753 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11756 lt_save_MAGIC_CMD="$MAGIC_CMD"
11757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11758 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11759 for ac_dir in $ac_dummy; do
11761 test -z "$ac_dir" && ac_dir=.
11762 if test -f $ac_dir/file; then
11763 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11764 if test -n "$file_magic_test_file"; then
11765 case $deplibs_check_method in
11767 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11768 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11769 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11770 $EGREP "$file_magic_regex" > /dev/null; then
11775 *** Warning: the command libtool uses to detect shared libraries,
11776 *** $file_magic_cmd, produces output that libtool cannot recognize.
11777 *** The result is that libtool may fail to recognize shared libraries
11778 *** as such. This will affect the creation of libtool libraries that
11779 *** depend on shared libraries, but programs linked with such libtool
11780 *** libraries will work regardless of this problem. Nevertheless, you
11781 *** may want to report the problem to your system manager and/or to
11782 *** bug-libtool@gnu.org
11792 MAGIC_CMD="$lt_save_MAGIC_CMD"
11797 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11798 if test -n "$MAGIC_CMD"; then
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11800 $as_echo "$MAGIC_CMD" >&6; }
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803 $as_echo "no" >&6; }
11816 # Use C for the default configuration in the libtool script
11820 ac_cpp='$CPP $CPPFLAGS'
11821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11826 # Source file extension for C test sources.
11829 # Object file extension for compiled C test sources.
11833 # Code to be used in simple compile tests
11834 lt_simple_compile_test_code="int some_variable = 0;"
11836 # Code to be used in simple link tests
11837 lt_simple_link_test_code='int main(){return(0);}'
11845 # If no C compiler was specified, use CC.
11848 # If no C compiler flags were specified, use CFLAGS.
11849 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11851 # Allow CC to be a program name with arguments.
11854 # Save the default compiler, since it gets overwritten when the other
11855 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11856 compiler_DEFAULT=$CC
11858 # save warnings/boilerplate of simple test code
11859 ac_outfile=conftest.$ac_objext
11860 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11861 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11862 _lt_compiler_boilerplate=`cat conftest.err`
11865 ac_outfile=conftest.$ac_objext
11866 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11867 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11868 _lt_linker_boilerplate=`cat conftest.err`
11873 ## There is no encapsulation within the following macros, do not change
11874 ## the running order or otherwise move them around unless you know exactly
11875 ## what you are doing...
11876 if test -n "$compiler"; then
11878 lt_prog_compiler_no_builtin_flag=
11880 if test "$GCC" = yes; then
11881 case $cc_basename in
11883 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11885 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11889 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11890 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11891 $as_echo_n "(cached) " >&6
11893 lt_cv_prog_compiler_rtti_exceptions=no
11894 ac_outfile=conftest.$ac_objext
11895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11896 lt_compiler_flag="-fno-rtti -fno-exceptions"
11897 # Insert the option either (1) after the last *FLAGS variable, or
11898 # (2) before a word containing "conftest.", or (3) at the end.
11899 # Note that $ac_compile itself does not contain backslashes and begins
11900 # with a dollar sign (not a hyphen), so the echo should work correctly.
11901 # The option is referenced via a variable to avoid confusing sed.
11902 lt_compile=`echo "$ac_compile" | $SED \
11903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11905 -e 's:$: $lt_compiler_flag:'`
11906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11907 (eval "$lt_compile" 2>conftest.err)
11909 cat conftest.err >&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 if (exit $ac_status) && test -s "$ac_outfile"; then
11912 # The compiler can only warn and ignore the option if not recognized
11913 # So say no if there are warnings other than the usual output.
11914 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11916 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11917 lt_cv_prog_compiler_rtti_exceptions=yes
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11924 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11926 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11927 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11939 lt_prog_compiler_wl=
11940 lt_prog_compiler_pic=
11941 lt_prog_compiler_static=
11944 if test "$GCC" = yes; then
11945 lt_prog_compiler_wl='-Wl,'
11946 lt_prog_compiler_static='-static'
11950 # All AIX code is PIC.
11951 if test "$host_cpu" = ia64; then
11952 # AIX 5 now supports IA64 processor
11953 lt_prog_compiler_static='-Bstatic'
11960 # see comment about AmigaOS4 .so support
11961 lt_prog_compiler_pic='-fPIC'
11964 # FIXME: we need at least 68020 code to build shared libraries, but
11965 # adding the `-m68020' flag to GCC prevents building anything better,
11967 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11972 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11973 # PIC is the default for these OSes.
11976 mingw* | cygwin* | pw32* | os2* | cegcc*)
11977 # This hack is so that the source file can tell whether it is being
11978 # built for inclusion in a dll (and should export symbols for example).
11979 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11980 # (--disable-auto-import) libraries
11981 lt_prog_compiler_pic='-DDLL_EXPORT'
11984 darwin* | rhapsody*)
11985 # PIC is the default on this platform
11986 # Common symbols not allowed in MH_DYLIB files
11987 lt_prog_compiler_pic='-fno-common'
11991 # PIC is the default for Haiku.
11992 # The "-static" flag exists, but is broken.
11993 lt_prog_compiler_static=
11997 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11998 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11999 # sets the default TLS model and affects inlining.
12005 lt_prog_compiler_pic='-fPIC'
12011 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12012 # Instead, we relocate shared libraries at runtime.
12016 # Just because we use GCC doesn't mean we suddenly get shared libraries
12017 # on systems that don't support them.
12018 lt_prog_compiler_can_build_shared=no
12023 # QNX uses GNU C++, but need to define -shared option too, otherwise
12024 # it will coredump.
12025 lt_prog_compiler_pic='-fPIC -shared'
12029 if test -d /usr/nec; then
12030 lt_prog_compiler_pic=-Kconform_pic
12035 lt_prog_compiler_pic='-fPIC'
12039 case $cc_basename in
12040 nvcc*) # Cuda Compiler Driver 2.2
12041 lt_prog_compiler_wl='-Xlinker '
12042 lt_prog_compiler_pic='-Xcompiler -fPIC'
12046 # PORTME Check for flag to pass linker flags through the system compiler.
12049 lt_prog_compiler_wl='-Wl,'
12050 if test "$host_cpu" = ia64; then
12051 # AIX 5 now supports IA64 processor
12052 lt_prog_compiler_static='-Bstatic'
12054 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12058 mingw* | cygwin* | pw32* | os2* | cegcc*)
12059 # This hack is so that the source file can tell whether it is being
12060 # built for inclusion in a dll (and should export symbols for example).
12061 lt_prog_compiler_pic='-DDLL_EXPORT'
12064 hpux9* | hpux10* | hpux11*)
12065 lt_prog_compiler_wl='-Wl,'
12066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12067 # not for PA HP-UX.
12073 lt_prog_compiler_pic='+Z'
12076 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12077 lt_prog_compiler_static='${wl}-a ${wl}archive'
12080 irix5* | irix6* | nonstopux*)
12081 lt_prog_compiler_wl='-Wl,'
12082 # PIC (with -KPIC) is the default.
12083 lt_prog_compiler_static='-non_shared'
12086 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12087 case $cc_basename in
12088 # old Intel for x86_64 which still supported -KPIC.
12090 lt_prog_compiler_wl='-Wl,'
12091 lt_prog_compiler_pic='-KPIC'
12092 lt_prog_compiler_static='-static'
12094 # icc used to be incompatible with GCC.
12095 # ICC 10 doesn't accept -KPIC any more.
12097 lt_prog_compiler_wl='-Wl,'
12098 lt_prog_compiler_pic='-fPIC'
12099 lt_prog_compiler_static='-static'
12101 # Lahey Fortran 8.1.
12103 lt_prog_compiler_wl='-Wl,'
12104 lt_prog_compiler_pic='--shared'
12105 lt_prog_compiler_static='--static'
12108 # NAG Fortran compiler
12109 lt_prog_compiler_wl='-Wl,-Wl,,'
12110 lt_prog_compiler_pic='-PIC'
12111 lt_prog_compiler_static='-Bstatic'
12113 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12114 # Portland Group compilers (*not* the Pentium gcc compiler,
12115 # which looks to be a dead project)
12116 lt_prog_compiler_wl='-Wl,'
12117 lt_prog_compiler_pic='-fpic'
12118 lt_prog_compiler_static='-Bstatic'
12121 lt_prog_compiler_wl='-Wl,'
12122 # All Alpha code is PIC.
12123 lt_prog_compiler_static='-non_shared'
12125 xl* | bgxl* | bgf* | mpixl*)
12126 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12127 lt_prog_compiler_wl='-Wl,'
12128 lt_prog_compiler_pic='-qpic'
12129 lt_prog_compiler_static='-qstaticlink'
12132 case `$CC -V 2>&1 | sed 5q` in
12133 *Sun\ F* | *Sun*Fortran*)
12134 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12135 lt_prog_compiler_pic='-KPIC'
12136 lt_prog_compiler_static='-Bstatic'
12137 lt_prog_compiler_wl=''
12141 lt_prog_compiler_pic='-KPIC'
12142 lt_prog_compiler_static='-Bstatic'
12143 lt_prog_compiler_wl='-Wl,'
12151 lt_prog_compiler_pic='-KPIC'
12152 lt_prog_compiler_static='-Bstatic'
12156 # QNX uses GNU C++, but need to define -shared option too, otherwise
12157 # it will coredump.
12158 lt_prog_compiler_pic='-fPIC -shared'
12161 osf3* | osf4* | osf5*)
12162 lt_prog_compiler_wl='-Wl,'
12163 # All OSF/1 code is PIC.
12164 lt_prog_compiler_static='-non_shared'
12168 lt_prog_compiler_static='-non_shared'
12172 lt_prog_compiler_pic='-KPIC'
12173 lt_prog_compiler_static='-Bstatic'
12174 case $cc_basename in
12175 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12176 lt_prog_compiler_wl='-Qoption ld ';;
12178 lt_prog_compiler_wl='-Wl,';;
12183 lt_prog_compiler_wl='-Qoption ld '
12184 lt_prog_compiler_pic='-PIC'
12185 lt_prog_compiler_static='-Bstatic'
12188 sysv4 | sysv4.2uw2* | sysv4.3*)
12189 lt_prog_compiler_wl='-Wl,'
12190 lt_prog_compiler_pic='-KPIC'
12191 lt_prog_compiler_static='-Bstatic'
12195 if test -d /usr/nec ;then
12196 lt_prog_compiler_pic='-Kconform_pic'
12197 lt_prog_compiler_static='-Bstatic'
12201 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12202 lt_prog_compiler_wl='-Wl,'
12203 lt_prog_compiler_pic='-KPIC'
12204 lt_prog_compiler_static='-Bstatic'
12208 lt_prog_compiler_wl='-Wl,'
12209 lt_prog_compiler_can_build_shared=no
12213 lt_prog_compiler_pic='-pic'
12214 lt_prog_compiler_static='-Bstatic'
12218 lt_prog_compiler_can_build_shared=no
12224 # For platforms which do not support PIC, -DPIC is meaningless:
12226 lt_prog_compiler_pic=
12229 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12234 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12235 if ${lt_cv_prog_compiler_pic+:} false; then :
12236 $as_echo_n "(cached) " >&6
12238 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12241 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12242 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12245 # Check to make sure the PIC flag actually works.
12247 if test -n "$lt_prog_compiler_pic"; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12249 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12250 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12251 $as_echo_n "(cached) " >&6
12253 lt_cv_prog_compiler_pic_works=no
12254 ac_outfile=conftest.$ac_objext
12255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12256 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12257 # Insert the option either (1) after the last *FLAGS variable, or
12258 # (2) before a word containing "conftest.", or (3) at the end.
12259 # Note that $ac_compile itself does not contain backslashes and begins
12260 # with a dollar sign (not a hyphen), so the echo should work correctly.
12261 # The option is referenced via a variable to avoid confusing sed.
12262 lt_compile=`echo "$ac_compile" | $SED \
12263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12265 -e 's:$: $lt_compiler_flag:'`
12266 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12267 (eval "$lt_compile" 2>conftest.err)
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 if (exit $ac_status) && test -s "$ac_outfile"; then
12272 # The compiler can only warn and ignore the option if not recognized
12273 # So say no if there are warnings other than the usual output.
12274 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12275 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12276 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12277 lt_cv_prog_compiler_pic_works=yes
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12284 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12286 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12287 case $lt_prog_compiler_pic in
12289 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12292 lt_prog_compiler_pic=
12293 lt_prog_compiler_can_build_shared=no
12309 # Check to make sure the static flag actually works.
12311 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12313 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12314 if ${lt_cv_prog_compiler_static_works+:} false; then :
12315 $as_echo_n "(cached) " >&6
12317 lt_cv_prog_compiler_static_works=no
12318 save_LDFLAGS="$LDFLAGS"
12319 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12320 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12321 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12322 # The linker can only warn and ignore the option if not recognized
12323 # So say no if there are warnings
12324 if test -s conftest.err; then
12325 # Append any errors to the config.log.
12326 cat conftest.err 1>&5
12327 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12329 if diff conftest.exp conftest.er2 >/dev/null; then
12330 lt_cv_prog_compiler_static_works=yes
12333 lt_cv_prog_compiler_static_works=yes
12337 LDFLAGS="$save_LDFLAGS"
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12341 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12343 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12346 lt_prog_compiler_static=
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12356 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12357 if ${lt_cv_prog_compiler_c_o+:} false; then :
12358 $as_echo_n "(cached) " >&6
12360 lt_cv_prog_compiler_c_o=no
12361 $RM -r conftest 2>/dev/null
12365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12367 lt_compiler_flag="-o out/conftest2.$ac_objext"
12368 # Insert the option either (1) after the last *FLAGS variable, or
12369 # (2) before a word containing "conftest.", or (3) at the end.
12370 # Note that $ac_compile itself does not contain backslashes and begins
12371 # with a dollar sign (not a hyphen), so the echo should work correctly.
12372 lt_compile=`echo "$ac_compile" | $SED \
12373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12375 -e 's:$: $lt_compiler_flag:'`
12376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12377 (eval "$lt_compile" 2>out/conftest.err)
12379 cat out/conftest.err >&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12383 # The compiler can only warn and ignore the option if not recognized
12384 # So say no if there are warnings
12385 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12386 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12387 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12388 lt_cv_prog_compiler_c_o=yes
12393 # SGI C++ compiler will create directory out/ii_files/ for
12394 # template instantiation
12395 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12396 $RM out/* && rmdir out
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12403 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12412 if ${lt_cv_prog_compiler_c_o+:} false; then :
12413 $as_echo_n "(cached) " >&6
12415 lt_cv_prog_compiler_c_o=no
12416 $RM -r conftest 2>/dev/null
12420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12422 lt_compiler_flag="-o out/conftest2.$ac_objext"
12423 # Insert the option either (1) after the last *FLAGS variable, or
12424 # (2) before a word containing "conftest.", or (3) at the end.
12425 # Note that $ac_compile itself does not contain backslashes and begins
12426 # with a dollar sign (not a hyphen), so the echo should work correctly.
12427 lt_compile=`echo "$ac_compile" | $SED \
12428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12430 -e 's:$: $lt_compiler_flag:'`
12431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12432 (eval "$lt_compile" 2>out/conftest.err)
12434 cat out/conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12438 # The compiler can only warn and ignore the option if not recognized
12439 # So say no if there are warnings
12440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12443 lt_cv_prog_compiler_c_o=yes
12448 # SGI C++ compiler will create directory out/ii_files/ for
12449 # template instantiation
12450 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12451 $RM out/* && rmdir out
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12458 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12463 hard_links="nottested"
12464 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12465 # do not overwrite the value of need_locks provided by the user
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12467 $as_echo_n "checking if we can lock with hard links... " >&6; }
12470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12472 ln conftest.a conftest.b 2>&5 || hard_links=no
12473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12475 $as_echo "$hard_links" >&6; }
12476 if test "$hard_links" = no; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12478 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12491 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12494 allow_undefined_flag=
12495 always_export_symbols=no
12497 archive_expsym_cmds=
12498 compiler_needs_object=no
12499 enable_shared_with_static_runtimes=no
12500 export_dynamic_flag_spec=
12501 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12502 hardcode_automatic=no
12504 hardcode_direct_absolute=no
12505 hardcode_libdir_flag_spec=
12506 hardcode_libdir_flag_spec_ld=
12507 hardcode_libdir_separator=
12508 hardcode_minus_L=no
12509 hardcode_shlibpath_var=unsupported
12511 link_all_deplibs=unknown
12513 module_expsym_cmds=
12514 old_archive_from_new_cmds=
12515 old_archive_from_expsyms_cmds=
12516 thread_safe_flag_spec=
12517 whole_archive_flag_spec=
12518 # include_expsyms should be a list of space-separated symbols to be *always*
12519 # included in the symbol list
12521 # exclude_expsyms can be an extended regexp of symbols to exclude
12522 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12523 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12524 # as well as any symbol that contains `d'.
12525 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12526 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12527 # platforms (ab)use it in PIC code, but their linkers get confused if
12528 # the symbol is explicitly referenced. Since portable code cannot
12529 # rely on this symbol name, it's probably fine to never include it in
12530 # preloaded symbol tables.
12531 # Exclude shared library initialization/finalization symbols.
12532 extract_expsyms_cmds=
12535 cygwin* | mingw* | pw32* | cegcc*)
12536 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12537 # When not using gcc, we currently assume that we are using
12538 # Microsoft Visual C++.
12539 if test "$GCC" != yes; then
12544 # we just hope/assume this is gcc and not c89 (= MSVC++)
12554 # On some targets, GNU ld is compatible enough with the native linker
12555 # that we're better off using the native interface for both.
12556 lt_use_gnu_ld_interface=no
12557 if test "$with_gnu_ld" = yes; then
12560 # The AIX port of GNU ld has always aspired to compatibility
12561 # with the native linker. However, as the warning in the GNU ld
12562 # block says, versions before 2.19.5* couldn't really create working
12563 # shared libraries, regardless of the interface used.
12564 case `$LD -v 2>&1` in
12565 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12566 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12567 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12569 lt_use_gnu_ld_interface=yes
12574 lt_use_gnu_ld_interface=yes
12579 if test "$lt_use_gnu_ld_interface" = yes; then
12580 # If archive_cmds runs LD, not CC, wlarc should be empty
12583 # Set some defaults for GNU ld with shared library support. These
12584 # are reset later if shared libraries are not supported. Putting them
12585 # here allows them to be overridden if necessary.
12586 runpath_var=LD_RUN_PATH
12587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12588 export_dynamic_flag_spec='${wl}--export-dynamic'
12589 # ancient GNU ld didn't support --whole-archive et. al.
12590 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12591 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12593 whole_archive_flag_spec=
12595 supports_anon_versioning=no
12596 case `$LD -v 2>&1` in
12597 *GNU\ gold*) supports_anon_versioning=yes ;;
12598 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12599 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12600 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12601 *\ 2.11.*) ;; # other 2.11 versions
12602 *) supports_anon_versioning=yes ;;
12605 # See if GNU ld supports shared libraries.
12608 # On AIX/PPC, the GNU linker is very broken
12609 if test "$host_cpu" != ia64; then
12613 *** Warning: the GNU linker, at least up to release 2.19, is reported
12614 *** to be unable to reliably create shared libraries on AIX.
12615 *** Therefore, libtool is disabling shared libraries support. If you
12616 *** really care for shared libraries, you may want to install binutils
12617 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12618 *** You will then need to restart the configuration process.
12627 # see comment about AmigaOS4 .so support
12628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12629 archive_expsym_cmds=''
12632 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)'
12633 hardcode_libdir_flag_spec='-L$libdir'
12634 hardcode_minus_L=yes
12640 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12641 allow_undefined_flag=unsupported
12642 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12643 # support --undefined. This deserves some investigation. FIXME
12644 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12650 cygwin* | mingw* | pw32* | cegcc*)
12651 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12652 # as there is no search path for DLLs.
12653 hardcode_libdir_flag_spec='-L$libdir'
12654 export_dynamic_flag_spec='${wl}--export-all-symbols'
12655 allow_undefined_flag=unsupported
12656 always_export_symbols=no
12657 enable_shared_with_static_runtimes=yes
12658 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'
12659 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12661 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12663 # If the export-symbols file already is a .def file (1st line
12664 # is EXPORTS), use it as is; otherwise, prepend...
12665 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12666 cp $export_symbols $output_objdir/$soname.def;
12668 echo EXPORTS > $output_objdir/$soname.def;
12669 cat $export_symbols >> $output_objdir/$soname.def;
12671 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12679 link_all_deplibs=yes
12684 hardcode_shlibpath_var=no
12685 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12686 export_dynamic_flag_spec='${wl}-E'
12687 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12688 # Instead, shared libraries are loaded at an image base (0x10000000 by
12689 # default) and relocated if they conflict, which is a slow very memory
12690 # consuming and fragmenting process. To avoid this, we pick a random,
12691 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12692 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12693 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12694 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'
12697 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12699 if test "$host_os" = linux-dietlibc; then
12700 case $cc_basename in
12701 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12704 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12705 && test "$tmp_diet" = no
12707 tmp_addflag=' $pic_flag'
12708 tmp_sharedflag='-shared'
12709 case $cc_basename,$host_cpu in
12710 pgcc*) # Portland Group C compiler
12711 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'
12712 tmp_addflag=' $pic_flag'
12714 pgf77* | pgf90* | pgf95* | pgfortran*)
12715 # Portland Group f77 and f90 compilers
12716 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'
12717 tmp_addflag=' $pic_flag -Mnomain' ;;
12718 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12719 tmp_addflag=' -i_dynamic' ;;
12720 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12721 tmp_addflag=' -i_dynamic -nofor_main' ;;
12722 ifc* | ifort*) # Intel Fortran compiler
12723 tmp_addflag=' -nofor_main' ;;
12724 lf95*) # Lahey Fortran 8.1
12725 whole_archive_flag_spec=
12726 tmp_sharedflag='--shared' ;;
12727 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12728 tmp_sharedflag='-qmkshrobj'
12730 nvcc*) # Cuda Compiler Driver 2.2
12731 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'
12732 compiler_needs_object=yes
12735 case `$CC -V 2>&1 | sed 5q` in
12736 *Sun\ C*) # Sun C 5.9
12737 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'
12738 compiler_needs_object=yes
12739 tmp_sharedflag='-G' ;;
12740 *Sun\ F*) # Sun Fortran 8.3
12741 tmp_sharedflag='-G' ;;
12743 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12745 if test "x$supports_anon_versioning" = xyes; then
12746 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12748 echo "local: *; };" >> $output_objdir/$libname.ver~
12749 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12752 case $cc_basename in
12753 xlf* | bgf* | bgxlf* | mpixlf*)
12754 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12755 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12756 hardcode_libdir_flag_spec=
12757 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12758 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12759 if test "x$supports_anon_versioning" = xyes; then
12760 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12761 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12762 echo "local: *; };" >> $output_objdir/$libname.ver~
12763 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12774 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12777 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12778 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12783 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12788 *** create shared libraries on Solaris systems. Therefore, libtool
12789 *** is disabling shared libraries support. We urge you to upgrade GNU
12790 *** binutils to release 2.9.1 or newer. Another option is to modify
12791 *** your PATH or compiler configuration so that the native linker is
12792 *** used, and then restart.
12795 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12796 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12797 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12804 case `$LD -v 2>&1` in
12805 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12809 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12810 *** reliably create shared libraries on SCO systems. Therefore, libtool
12811 *** is disabling shared libraries support. We urge you to upgrade GNU
12812 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12813 *** your PATH or compiler configuration so that the native linker is
12814 *** used, and then restart.
12819 # For security reasons, it is highly recommended that you always
12820 # use absolute paths for naming shared libraries, and exclude the
12821 # DT_RUNPATH tag from executables and libraries. But doing so
12822 # requires that you compile everything twice, which is a pain.
12823 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12825 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12826 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12835 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12837 hardcode_direct=yes
12838 hardcode_shlibpath_var=no
12842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12843 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12844 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12851 if test "$ld_shlibs" = no; then
12853 hardcode_libdir_flag_spec=
12854 export_dynamic_flag_spec=
12855 whole_archive_flag_spec=
12858 # PORTME fill in a description of your system's linker (not GNU ld)
12861 allow_undefined_flag=unsupported
12862 always_export_symbols=yes
12863 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'
12864 # Note: this linker hardcodes the directories in LIBPATH if there
12865 # are no directories specified by -L.
12866 hardcode_minus_L=yes
12867 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12868 # Neither direct hardcoding nor static linking is supported with a
12870 hardcode_direct=unsupported
12875 if test "$host_cpu" = ia64; then
12876 # On IA64, the linker does run time linking by default, so we don't
12877 # have to do anything special.
12878 aix_use_runtimelinking=no
12879 exp_sym_flag='-Bexport'
12882 # If we're using GNU nm, then we don't want the "-C" option.
12883 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12884 # Also, AIX nm treats weak defined symbols like other global
12885 # defined symbols, whereas GNU nm marks them as "W".
12886 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12887 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'
12889 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'
12891 aix_use_runtimelinking=no
12893 # Test if we are trying to use run time linking or normal
12894 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12895 # need to do runtime linking.
12896 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12897 for ld_flag in $LDFLAGS; do
12898 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12899 aix_use_runtimelinking=yes
12906 exp_sym_flag='-bexport'
12907 no_entry_flag='-bnoentry'
12910 # When large executables or shared objects are built, AIX ld can
12911 # have problems creating the table of contents. If linking a library
12912 # or program results in "error TOC overflow" add -mminimal-toc to
12913 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12914 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12917 hardcode_direct=yes
12918 hardcode_direct_absolute=yes
12919 hardcode_libdir_separator=':'
12920 link_all_deplibs=yes
12921 file_list_spec='${wl}-f,'
12923 if test "$GCC" = yes; then
12924 case $host_os in aix4.[012]|aix4.[012].*)
12925 # We only want to do this on AIX 4.2 and lower, the check
12926 # below for broken collect2 doesn't work under 4.3+
12927 collect2name=`${CC} -print-prog-name=collect2`
12928 if test -f "$collect2name" &&
12929 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12931 # We have reworked collect2
12934 # We have old collect2
12935 hardcode_direct=unsupported
12936 # It fails to find uninstalled libraries when the uninstalled
12937 # path is not listed in the libpath. Setting hardcode_minus_L
12938 # to unsupported forces relinking
12939 hardcode_minus_L=yes
12940 hardcode_libdir_flag_spec='-L$libdir'
12941 hardcode_libdir_separator=
12945 shared_flag='-shared'
12946 if test "$aix_use_runtimelinking" = yes; then
12947 shared_flag="$shared_flag "'${wl}-G'
12951 if test "$host_cpu" = ia64; then
12952 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12953 # chokes on -Wl,-G. The following line is correct:
12956 if test "$aix_use_runtimelinking" = yes; then
12957 shared_flag='${wl}-G'
12959 shared_flag='${wl}-bM:SRE'
12964 export_dynamic_flag_spec='${wl}-bexpall'
12965 # It seems that -bexpall does not export symbols beginning with
12966 # underscore (_), so it is better to generate a list of symbols to export.
12967 always_export_symbols=yes
12968 if test "$aix_use_runtimelinking" = yes; then
12969 # Warning - without using the other runtime loading flags (-brtl),
12970 # -berok will link without error, but may produce a broken library.
12971 allow_undefined_flag='-berok'
12972 # Determine the default libpath from the value encoded in an
12973 # empty executable.
12974 if test "${lt_cv_aix_libpath+set}" = set; then
12975 aix_libpath=$lt_cv_aix_libpath
12977 if ${lt_cv_aix_libpath_+:} false; then :
12978 $as_echo_n "(cached) " >&6
12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12991 if ac_fn_c_try_link "$LINENO"; then :
12993 lt_aix_libpath_sed='
12994 /Import File Strings/,/^$/ {
12996 s/^0 *\([^ ]*\) *$/\1/
13000 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13001 # Check for a 64-bit object if we didn't find anything.
13002 if test -z "$lt_cv_aix_libpath_"; then
13003 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13006 rm -f core conftest.err conftest.$ac_objext \
13007 conftest$ac_exeext conftest.$ac_ext
13008 if test -z "$lt_cv_aix_libpath_"; then
13009 lt_cv_aix_libpath_="/usr/lib:/lib"
13014 aix_libpath=$lt_cv_aix_libpath_
13017 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13018 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"
13020 if test "$host_cpu" = ia64; then
13021 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13022 allow_undefined_flag="-z nodefs"
13023 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"
13025 # Determine the default libpath from the value encoded in an
13026 # empty executable.
13027 if test "${lt_cv_aix_libpath+set}" = set; then
13028 aix_libpath=$lt_cv_aix_libpath
13030 if ${lt_cv_aix_libpath_+:} false; then :
13031 $as_echo_n "(cached) " >&6
13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13044 if ac_fn_c_try_link "$LINENO"; then :
13046 lt_aix_libpath_sed='
13047 /Import File Strings/,/^$/ {
13049 s/^0 *\([^ ]*\) *$/\1/
13053 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13054 # Check for a 64-bit object if we didn't find anything.
13055 if test -z "$lt_cv_aix_libpath_"; then
13056 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13059 rm -f core conftest.err conftest.$ac_objext \
13060 conftest$ac_exeext conftest.$ac_ext
13061 if test -z "$lt_cv_aix_libpath_"; then
13062 lt_cv_aix_libpath_="/usr/lib:/lib"
13067 aix_libpath=$lt_cv_aix_libpath_
13070 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13071 # Warning - without using the other run time loading flags,
13072 # -berok will link without error, but may produce a broken library.
13073 no_undefined_flag=' ${wl}-bernotok'
13074 allow_undefined_flag=' ${wl}-berok'
13075 if test "$with_gnu_ld" = yes; then
13076 # We only use this code for GNU lds that support --whole-archive.
13077 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13079 # Exported symbols can be pulled into shared objects from archives
13080 whole_archive_flag_spec='$convenience'
13082 archive_cmds_need_lc=yes
13083 # This is similar to how AIX traditionally builds its shared libraries.
13084 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'
13092 # see comment about AmigaOS4 .so support
13093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13094 archive_expsym_cmds=''
13097 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)'
13098 hardcode_libdir_flag_spec='-L$libdir'
13099 hardcode_minus_L=yes
13105 export_dynamic_flag_spec=-rdynamic
13108 cygwin* | mingw* | pw32* | cegcc*)
13109 # When not using gcc, we currently assume that we are using
13110 # Microsoft Visual C++.
13111 # hardcode_libdir_flag_spec is actually meaningless, as there is
13112 # no search path for DLLs.
13113 case $cc_basename in
13116 hardcode_libdir_flag_spec=' '
13117 allow_undefined_flag=unsupported
13118 always_export_symbols=yes
13120 # Tell ltmain to make .lib files, not .a files.
13122 # Tell ltmain to make .dll files, not .so files.
13124 # FIXME: Setting linknames here is a bad hack.
13125 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13126 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13127 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13129 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13131 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13133 # The linker will not automatically build a static lib if we build a DLL.
13134 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13135 enable_shared_with_static_runtimes=yes
13136 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13138 old_postinstall_cmds='chmod 644 $oldlib'
13139 postlink_cmds='lt_outputfile="@OUTPUT@"~
13140 lt_tool_outputfile="@TOOL_OUTPUT@"~
13141 case $lt_outputfile in
13144 lt_outputfile="$lt_outputfile.exe"
13145 lt_tool_outputfile="$lt_tool_outputfile.exe"
13148 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13149 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13150 $RM "$lt_outputfile.manifest";
13154 # Assume MSVC wrapper
13155 hardcode_libdir_flag_spec=' '
13156 allow_undefined_flag=unsupported
13157 # Tell ltmain to make .lib files, not .a files.
13159 # Tell ltmain to make .dll files, not .so files.
13161 # FIXME: Setting linknames here is a bad hack.
13162 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13163 # The linker will automatically build a .lib file if we build a DLL.
13164 old_archive_from_new_cmds='true'
13165 # FIXME: Should let the user specify the lib program.
13166 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13167 enable_shared_with_static_runtimes=yes
13172 darwin* | rhapsody*)
13175 archive_cmds_need_lc=no
13177 hardcode_automatic=yes
13178 hardcode_shlibpath_var=unsupported
13179 if test "$lt_cv_ld_force_load" = "yes"; then
13180 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\"`'
13182 whole_archive_flag_spec=''
13184 link_all_deplibs=yes
13185 allow_undefined_flag="$_lt_dar_allow_undefined"
13186 case $cc_basename in
13187 ifort*) _lt_dar_can_shared=yes ;;
13188 *) _lt_dar_can_shared=$GCC ;;
13190 if test "$_lt_dar_can_shared" = "yes"; then
13191 output_verbose_link_cmd=func_echo_all
13192 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13193 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13194 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}"
13195 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}"
13204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13205 hardcode_libdir_flag_spec='-L$libdir'
13206 hardcode_shlibpath_var=no
13213 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13214 # support. Future versions do this automatically, but an explicit c++rt0.o
13215 # does not break anything, and helps significantly (at the cost of a little
13218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13219 hardcode_libdir_flag_spec='-R$libdir'
13220 hardcode_direct=yes
13221 hardcode_shlibpath_var=no
13224 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13226 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13227 hardcode_direct=yes
13228 hardcode_minus_L=yes
13229 hardcode_shlibpath_var=no
13232 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13233 freebsd* | dragonfly*)
13234 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13235 hardcode_libdir_flag_spec='-R$libdir'
13236 hardcode_direct=yes
13237 hardcode_shlibpath_var=no
13241 if test "$GCC" = yes; then
13242 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'
13244 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'
13246 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13247 hardcode_libdir_separator=:
13248 hardcode_direct=yes
13250 # hardcode_minus_L: Not really in the search PATH,
13251 # but as the default location of the library.
13252 hardcode_minus_L=yes
13253 export_dynamic_flag_spec='${wl}-E'
13257 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13258 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13260 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13262 if test "$with_gnu_ld" = no; then
13263 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13264 hardcode_libdir_flag_spec_ld='+b $libdir'
13265 hardcode_libdir_separator=:
13266 hardcode_direct=yes
13267 hardcode_direct_absolute=yes
13268 export_dynamic_flag_spec='${wl}-E'
13269 # hardcode_minus_L: Not really in the search PATH,
13270 # but as the default location of the library.
13271 hardcode_minus_L=yes
13276 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13279 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13282 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13285 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13291 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13294 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13298 # Older versions of the 11.00 compiler do not understand -b yet
13299 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13301 $as_echo_n "checking if $CC understands -b... " >&6; }
13302 if ${lt_cv_prog_compiler__b+:} false; then :
13303 $as_echo_n "(cached) " >&6
13305 lt_cv_prog_compiler__b=no
13306 save_LDFLAGS="$LDFLAGS"
13307 LDFLAGS="$LDFLAGS -b"
13308 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13310 # The linker can only warn and ignore the option if not recognized
13311 # So say no if there are warnings
13312 if test -s conftest.err; then
13313 # Append any errors to the config.log.
13314 cat conftest.err 1>&5
13315 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13317 if diff conftest.exp conftest.er2 >/dev/null; then
13318 lt_cv_prog_compiler__b=yes
13321 lt_cv_prog_compiler__b=yes
13325 LDFLAGS="$save_LDFLAGS"
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13329 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13331 if test x"$lt_cv_prog_compiler__b" = xyes; then
13332 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13334 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13340 if test "$with_gnu_ld" = no; then
13341 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13342 hardcode_libdir_separator=:
13347 hardcode_shlibpath_var=no
13350 hardcode_direct=yes
13351 hardcode_direct_absolute=yes
13352 export_dynamic_flag_spec='${wl}-E'
13354 # hardcode_minus_L: Not really in the search PATH,
13355 # but as the default location of the library.
13356 hardcode_minus_L=yes
13362 irix5* | irix6* | nonstopux*)
13363 if test "$GCC" = yes; then
13364 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'
13365 # Try to use the -exported_symbol ld option, if it does not
13366 # work, assume that -exports_file does not work either and
13367 # implicitly export all symbols.
13368 # This should be the same for all languages, so no per-tag cache variable.
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13370 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13371 if ${lt_cv_irix_exported_symbol+:} false; then :
13372 $as_echo_n "(cached) " >&6
13374 save_LDFLAGS="$LDFLAGS"
13375 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h. */
13378 int foo (void) { return 0; }
13380 if ac_fn_c_try_link "$LINENO"; then :
13381 lt_cv_irix_exported_symbol=yes
13383 lt_cv_irix_exported_symbol=no
13385 rm -f core conftest.err conftest.$ac_objext \
13386 conftest$ac_exeext conftest.$ac_ext
13387 LDFLAGS="$save_LDFLAGS"
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13390 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13391 if test "$lt_cv_irix_exported_symbol" = yes; then
13392 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'
13395 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'
13396 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'
13398 archive_cmds_need_lc='no'
13399 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13400 hardcode_libdir_separator=:
13402 link_all_deplibs=yes
13406 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13409 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13411 hardcode_libdir_flag_spec='-R$libdir'
13412 hardcode_direct=yes
13413 hardcode_shlibpath_var=no
13417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13418 hardcode_direct=yes
13419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13420 hardcode_libdir_separator=:
13421 hardcode_shlibpath_var=no
13428 if test -f /usr/libexec/ld.so; then
13429 hardcode_direct=yes
13430 hardcode_shlibpath_var=no
13431 hardcode_direct_absolute=yes
13432 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13433 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13434 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13435 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13436 export_dynamic_flag_spec='${wl}-E'
13439 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13440 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13441 hardcode_libdir_flag_spec='-R$libdir'
13444 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13445 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13455 hardcode_libdir_flag_spec='-L$libdir'
13456 hardcode_minus_L=yes
13457 allow_undefined_flag=unsupported
13458 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'
13459 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13463 if test "$GCC" = yes; then
13464 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13465 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'
13467 allow_undefined_flag=' -expect_unresolved \*'
13468 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'
13470 archive_cmds_need_lc='no'
13471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13472 hardcode_libdir_separator=:
13475 osf4* | osf5*) # as osf3* with the addition of -msym flag
13476 if test "$GCC" = yes; then
13477 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13478 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'
13479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13481 allow_undefined_flag=' -expect_unresolved \*'
13482 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'
13483 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~
13484 $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'
13486 # Both c and cxx compiler support -rpath directly
13487 hardcode_libdir_flag_spec='-rpath $libdir'
13489 archive_cmds_need_lc='no'
13490 hardcode_libdir_separator=:
13494 no_undefined_flag=' -z defs'
13495 if test "$GCC" = yes; then
13497 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13498 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13499 $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'
13501 case `$CC -V 2>&1` in
13504 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13505 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13506 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13510 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13511 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13512 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13516 hardcode_libdir_flag_spec='-R$libdir'
13517 hardcode_shlibpath_var=no
13519 solaris2.[0-5] | solaris2.[0-5].*) ;;
13521 # The compiler driver will combine and reorder linker options,
13522 # but understands `-z linker_flag'. GCC discards it without `$wl',
13523 # but is careful enough not to reorder.
13524 # Supported since Solaris 2.6 (maybe 2.5.1?)
13525 if test "$GCC" = yes; then
13526 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13528 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13532 link_all_deplibs=yes
13536 if test "x$host_vendor" = xsequent; then
13537 # Use $CC to link under sequent, because it throws in some extra .o
13538 # files that make .init and .fini sections work.
13539 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13541 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13543 hardcode_libdir_flag_spec='-L$libdir'
13544 hardcode_direct=yes
13545 hardcode_minus_L=yes
13546 hardcode_shlibpath_var=no
13550 case $host_vendor in
13552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13553 hardcode_direct=yes # is this really true???
13556 ## LD is ld it makes a PLAMLIB
13557 ## CC just makes a GrossModule.
13558 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13559 reload_cmds='$CC -r -o $output$reload_objs'
13563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13564 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13567 runpath_var='LD_RUN_PATH'
13568 hardcode_shlibpath_var=no
13572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13573 hardcode_shlibpath_var=no
13574 export_dynamic_flag_spec='-Bexport'
13578 if test -d /usr/nec; then
13579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13580 hardcode_shlibpath_var=no
13581 runpath_var=LD_RUN_PATH
13582 hardcode_runpath_var=yes
13587 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13588 no_undefined_flag='${wl}-z,text'
13589 archive_cmds_need_lc=no
13590 hardcode_shlibpath_var=no
13591 runpath_var='LD_RUN_PATH'
13593 if test "$GCC" = yes; then
13594 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13595 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13597 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13598 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13602 sysv5* | sco3.2v5* | sco5v6*)
13603 # Note: We can NOT use -z defs as we might desire, because we do not
13604 # link with -lc, and that would cause any symbols used from libc to
13605 # always be unresolved, which means just about no library would
13606 # ever link correctly. If we're not using GNU ld we use -z text
13607 # though, which does catch some bad symbols but isn't as heavy-handed
13609 no_undefined_flag='${wl}-z,text'
13610 allow_undefined_flag='${wl}-z,nodefs'
13611 archive_cmds_need_lc=no
13612 hardcode_shlibpath_var=no
13613 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13614 hardcode_libdir_separator=':'
13615 link_all_deplibs=yes
13616 export_dynamic_flag_spec='${wl}-Bexport'
13617 runpath_var='LD_RUN_PATH'
13619 if test "$GCC" = yes; then
13620 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13621 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13623 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13624 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13630 hardcode_libdir_flag_spec='-L$libdir'
13631 hardcode_shlibpath_var=no
13639 if test x$host_vendor = xsni; then
13641 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13642 export_dynamic_flag_spec='${wl}-Blargedynsym'
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13649 $as_echo "$ld_shlibs" >&6; }
13650 test "$ld_shlibs" = no && can_build_shared=no
13652 with_gnu_ld=$with_gnu_ld
13669 # Do we need to explicitly link libc?
13671 case "x$archive_cmds_need_lc" in
13673 # Assume -lc should be added
13674 archive_cmds_need_lc=yes
13676 if test "$enable_shared" = yes && test "$GCC" = yes; then
13677 case $archive_cmds in
13679 # FIXME: we may have to deal with multi-command sequences.
13682 # Test whether the compiler implicitly links with -lc since on some
13683 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13684 # to ld, don't add -lc before -lgcc.
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13686 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13687 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13688 $as_echo_n "(cached) " >&6
13691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13694 (eval $ac_compile) 2>&5
13696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13697 test $ac_status = 0; } 2>conftest.err; then
13700 libobjs=conftest.$ac_objext
13702 wl=$lt_prog_compiler_wl
13703 pic_flag=$lt_prog_compiler_pic
13709 lt_save_allow_undefined_flag=$allow_undefined_flag
13710 allow_undefined_flag=
13711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13712 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13715 test $ac_status = 0; }
13717 lt_cv_archive_cmds_need_lc=no
13719 lt_cv_archive_cmds_need_lc=yes
13721 allow_undefined_flag=$lt_save_allow_undefined_flag
13723 cat conftest.err 1>&5
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13729 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13730 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13894 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13896 if test "$GCC" = yes; then
13898 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13899 *) lt_awk_arg="/^libraries:/" ;;
13902 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13903 *) lt_sed_strip_eq="s,=/,/,g" ;;
13905 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13906 case $lt_search_path_spec in
13908 # if the path contains ";" then we assume it to be the separator
13909 # otherwise default to the standard path separator (i.e. ":") - it is
13910 # assumed that no part of a normal pathname contains ";" but that should
13911 # okay in the real world where ";" in dirpaths is itself problematic.
13912 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13915 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13918 # Ok, now we have the path, separated by spaces, we can step through it
13919 # and add multilib dir if necessary.
13920 lt_tmp_lt_search_path_spec=
13921 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13922 for lt_sys_path in $lt_search_path_spec; do
13923 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13924 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13926 test -d "$lt_sys_path" && \
13927 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13930 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13931 BEGIN {RS=" "; FS="/|\n";} {
13934 for (lt_i = NF; lt_i > 0; lt_i--) {
13935 if ($lt_i != "" && $lt_i != ".") {
13936 if ($lt_i == "..") {
13939 if (lt_count == 0) {
13940 lt_foo="/" $lt_i lt_foo;
13947 if (lt_foo != "") { lt_freq[lt_foo]++; }
13948 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13950 # AWK program above erroneously prepends '/' to C:/dos/paths
13953 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13954 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13956 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13958 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13960 library_names_spec=
13961 libname_spec='lib$name'
13965 postuninstall_cmds=
13969 shlibpath_overrides_runpath=unknown
13971 dynamic_linker="$host_os ld.so"
13972 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13973 need_lib_prefix=unknown
13974 hardcode_into_libs=no
13976 # when you set need_version to no, make sure it does not cause -set_version
13977 # flags to be left without arguments
13978 need_version=unknown
13983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13984 shlibpath_var=LIBPATH
13986 # AIX 3 has no versioning support, so we append a major version to the name.
13987 soname_spec='${libname}${release}${shared_ext}$major'
13994 hardcode_into_libs=yes
13995 if test "$host_cpu" = ia64; then
13996 # AIX 5 supports IA64
13997 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13998 shlibpath_var=LD_LIBRARY_PATH
14000 # With GCC up to 2.95.x, collect2 would create an import file
14001 # for dependence libraries. The import file would start with
14002 # the line `#! .'. This would cause the generated library to
14003 # depend on `.', always an invalid library. This was fixed in
14004 # development snapshots of GCC prior to 3.0.
14006 aix4 | aix4.[01] | aix4.[01].*)
14007 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14009 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14012 can_build_shared=no
14016 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14017 # soname into executable. Probably we can add versioning support to
14018 # collect2, so additional links can be useful in future.
14019 if test "$aix_use_runtimelinking" = yes; then
14020 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14021 # instead of lib<name>.a to let people know that these are not
14022 # typical AIX shared libraries.
14023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025 # We preserve .a as extension for shared libraries through AIX4.2
14026 # and later when we are not doing run time linking.
14027 library_names_spec='${libname}${release}.a $libname.a'
14028 soname_spec='${libname}${release}${shared_ext}$major'
14030 shlibpath_var=LIBPATH
14037 # Since July 2007 AmigaOS4 officially supports .so libraries.
14038 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14042 library_names_spec='$libname.ixlibrary $libname.a'
14043 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14044 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'
14050 library_names_spec='${libname}${shared_ext}'
14051 dynamic_linker="$host_os ld.so"
14052 shlibpath_var=LIBRARY_PATH
14058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059 soname_spec='${libname}${release}${shared_ext}$major'
14060 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14061 shlibpath_var=LD_LIBRARY_PATH
14062 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14063 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14064 # the default ld.so.conf also contains /usr/contrib/lib and
14065 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14066 # libtool to hard-code these into programs
14069 cygwin* | mingw* | pw32* | cegcc*)
14070 version_type=windows
14075 case $GCC,$cc_basename in
14078 library_names_spec='$libname.dll.a'
14079 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14080 postinstall_cmds='base_file=`basename \${file}`~
14081 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14082 dldir=$destdir/`dirname \$dlpath`~
14083 test -d \$dldir || mkdir -p \$dldir~
14084 $install_prog $dir/$dlname \$dldir/$dlname~
14085 chmod a+x \$dldir/$dlname~
14086 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14087 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14089 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14090 dlpath=$dir/\$dldll~
14092 shlibpath_overrides_runpath=yes
14096 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14097 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14099 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14102 # MinGW DLLs use traditional 'lib' prefix
14103 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14106 # pw32 DLLs use 'pw' prefix rather than 'lib'
14107 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14110 dynamic_linker='Win32 ld.exe'
14115 libname_spec='$name'
14116 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14117 library_names_spec='${libname}.dll.lib'
14121 sys_lib_search_path_spec=
14124 for lt_path in $LIB
14127 # Let DOS variable expansion print the short 8.3 style file name.
14128 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14129 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14132 # Convert to MSYS style.
14133 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14136 # Convert to unix form, then to dos form, then back to unix form
14137 # but this time dos style (no spaces!) so that the unix form looks
14138 # like /cygdrive/c/PROGRA~1:/cygdr...
14139 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14140 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14141 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14144 sys_lib_search_path_spec="$LIB"
14145 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14146 # It is most probably a Windows format PATH.
14147 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14149 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14151 # FIXME: find the short name or the path components, as spaces are
14152 # common. (e.g. "Program Files" -> "PROGRA~1")
14156 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14157 postinstall_cmds='base_file=`basename \${file}`~
14158 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14159 dldir=$destdir/`dirname \$dlpath`~
14160 test -d \$dldir || mkdir -p \$dldir~
14161 $install_prog $dir/$dlname \$dldir/$dlname'
14162 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14163 dlpath=$dir/\$dldll~
14165 shlibpath_overrides_runpath=yes
14166 dynamic_linker='Win32 link.exe'
14170 # Assume MSVC wrapper
14171 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14172 dynamic_linker='Win32 ld.exe'
14175 # FIXME: first we should search . and the directory the executable is in
14179 darwin* | rhapsody*)
14180 dynamic_linker="$host_os dyld"
14181 version_type=darwin
14184 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14185 soname_spec='${libname}${release}${major}$shared_ext'
14186 shlibpath_overrides_runpath=yes
14187 shlibpath_var=DYLD_LIBRARY_PATH
14188 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14190 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14191 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14199 soname_spec='${libname}${release}${shared_ext}$major'
14200 shlibpath_var=LD_LIBRARY_PATH
14207 freebsd* | dragonfly*)
14208 # DragonFly does not have aout. When/if they implement a new
14209 # versioning mechanism, adjust this.
14210 if test -x /usr/bin/objformat; then
14211 objformat=`/usr/bin/objformat`
14214 freebsd[123]*) objformat=aout ;;
14215 *) objformat=elf ;;
14218 version_type=freebsd-$objformat
14219 case $version_type in
14221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14230 shlibpath_var=LD_LIBRARY_PATH
14233 shlibpath_overrides_runpath=yes
14235 freebsd3.[01]* | freebsdelf3.[01]*)
14236 shlibpath_overrides_runpath=yes
14237 hardcode_into_libs=yes
14239 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14240 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14241 shlibpath_overrides_runpath=no
14242 hardcode_into_libs=yes
14244 *) # from 4.6 on, and DragonFly
14245 shlibpath_overrides_runpath=yes
14246 hardcode_into_libs=yes
14255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14256 soname_spec='${libname}${release}${shared_ext}$major'
14257 shlibpath_var=LD_LIBRARY_PATH
14258 hardcode_into_libs=yes
14265 dynamic_linker="$host_os runtime_loader"
14266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14267 soname_spec='${libname}${release}${shared_ext}$major'
14268 shlibpath_var=LIBRARY_PATH
14269 shlibpath_overrides_runpath=yes
14270 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14271 hardcode_into_libs=yes
14274 hpux9* | hpux10* | hpux11*)
14275 # Give a soname corresponding to the major version so that dld.sl refuses to
14276 # link against other versions.
14283 hardcode_into_libs=yes
14284 dynamic_linker="$host_os dld.so"
14285 shlibpath_var=LD_LIBRARY_PATH
14286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14288 soname_spec='${libname}${release}${shared_ext}$major'
14289 if test "X$HPUX_IA64_MODE" = X32; then
14290 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14292 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14294 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14298 hardcode_into_libs=yes
14299 dynamic_linker="$host_os dld.sl"
14300 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14301 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14303 soname_spec='${libname}${release}${shared_ext}$major'
14304 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14305 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14309 dynamic_linker="$host_os dld.sl"
14310 shlibpath_var=SHLIB_PATH
14311 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14313 soname_spec='${libname}${release}${shared_ext}$major'
14316 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14317 postinstall_cmds='chmod 555 $lib'
14318 # or fails outright, so override atomically:
14319 install_override_mode=555
14326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14327 soname_spec='${libname}${release}${shared_ext}$major'
14328 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14329 shlibpath_var=LD_LIBRARY_PATH
14330 shlibpath_overrides_runpath=no
14331 hardcode_into_libs=yes
14334 irix5* | irix6* | nonstopux*)
14336 nonstopux*) version_type=nonstopux ;;
14338 if test "$lt_cv_prog_gnu_ld" = yes; then
14346 soname_spec='${libname}${release}${shared_ext}$major'
14347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14349 irix5* | nonstopux*)
14350 libsuff= shlibsuff=
14353 case $LD in # libtool.m4 will add one of these switches to LD
14354 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14355 libsuff= shlibsuff= libmagic=32-bit;;
14356 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14357 libsuff=32 shlibsuff=N32 libmagic=N32;;
14358 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14359 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14360 *) libsuff= shlibsuff= libmagic=never-match;;
14364 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14365 shlibpath_overrides_runpath=no
14366 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14367 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14368 hardcode_into_libs=yes
14371 # No shared lib support for Linux oldld, aout, or coff.
14372 linux*oldld* | linux*aout* | linux*coff*)
14376 # This must be Linux ELF.
14377 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14382 soname_spec='${libname}${release}${shared_ext}$major'
14383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14384 shlibpath_var=LD_LIBRARY_PATH
14385 shlibpath_overrides_runpath=no
14387 # Some binutils ld are patched to set DT_RUNPATH
14388 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14389 $as_echo_n "(cached) " >&6
14391 lt_cv_shlibpath_overrides_runpath=no
14392 save_LDFLAGS=$LDFLAGS
14393 save_libdir=$libdir
14394 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14395 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14407 if ac_fn_c_try_link "$LINENO"; then :
14408 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14409 lt_cv_shlibpath_overrides_runpath=yes
14412 rm -f core conftest.err conftest.$ac_objext \
14413 conftest$ac_exeext conftest.$ac_ext
14414 LDFLAGS=$save_LDFLAGS
14415 libdir=$save_libdir
14419 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14421 # This implies no fast_install, which is unacceptable.
14422 # Some rework will be needed to allow for fast_install
14423 # before this can be enabled.
14424 hardcode_into_libs=yes
14426 # Append ld.so.conf contents to the search path
14427 if test -f /etc/ld.so.conf; then
14428 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' ' '`
14429 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14432 # We used to test for /lib/ld.so.1 and disable shared libraries on
14433 # powerpc, because MkLinux only supported shared libraries with the
14434 # GNU dynamic linker. Since this was broken with cross compilers,
14435 # most powerpc-linux boxes support dynamic linking these days and
14436 # people can always --disable-shared, the test was removed, and we
14437 # assume the GNU/Linux dynamic linker is in use.
14438 dynamic_linker='GNU/Linux ld.so'
14445 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14448 dynamic_linker='NetBSD (a.out) ld.so'
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14451 soname_spec='${libname}${release}${shared_ext}$major'
14452 dynamic_linker='NetBSD ld.elf_so'
14454 shlibpath_var=LD_LIBRARY_PATH
14455 shlibpath_overrides_runpath=yes
14456 hardcode_into_libs=yes
14461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14462 shlibpath_var=LD_LIBRARY_PATH
14463 shlibpath_overrides_runpath=yes
14470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14471 soname_spec='${libname}${release}${shared_ext}$major'
14472 shlibpath_var=LD_LIBRARY_PATH
14473 shlibpath_overrides_runpath=no
14474 hardcode_into_libs=yes
14475 dynamic_linker='ldqnx.so'
14480 sys_lib_dlsearch_path_spec="/usr/lib"
14482 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14484 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14485 *) need_version=no ;;
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14489 shlibpath_var=LD_LIBRARY_PATH
14490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14492 openbsd2.[89] | openbsd2.[89].*)
14493 shlibpath_overrides_runpath=no
14496 shlibpath_overrides_runpath=yes
14500 shlibpath_overrides_runpath=yes
14505 libname_spec='$name'
14508 library_names_spec='$libname${shared_ext} $libname.a'
14509 dynamic_linker='OS/2 ld.exe'
14510 shlibpath_var=LIBPATH
14513 osf3* | osf4* | osf5*)
14517 soname_spec='${libname}${release}${shared_ext}$major'
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519 shlibpath_var=LD_LIBRARY_PATH
14520 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14521 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533 soname_spec='${libname}${release}${shared_ext}$major'
14534 shlibpath_var=LD_LIBRARY_PATH
14535 shlibpath_overrides_runpath=yes
14536 hardcode_into_libs=yes
14537 # ldd complains unless libraries are executable
14538 postinstall_cmds='chmod +x $lib'
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14544 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14545 shlibpath_var=LD_LIBRARY_PATH
14546 shlibpath_overrides_runpath=yes
14547 if test "$with_gnu_ld" = yes; then
14555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14556 soname_spec='${libname}${release}${shared_ext}$major'
14557 shlibpath_var=LD_LIBRARY_PATH
14558 case $host_vendor in
14560 shlibpath_overrides_runpath=no
14562 runpath_var=LD_RUN_PATH
14570 shlibpath_overrides_runpath=no
14571 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14577 if test -d /usr/nec ;then
14579 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14580 soname_spec='$libname${shared_ext}.$major'
14581 shlibpath_var=LD_LIBRARY_PATH
14585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14586 version_type=freebsd-elf
14589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14590 soname_spec='${libname}${release}${shared_ext}$major'
14591 shlibpath_var=LD_LIBRARY_PATH
14592 shlibpath_overrides_runpath=yes
14593 hardcode_into_libs=yes
14594 if test "$with_gnu_ld" = yes; then
14595 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14597 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14600 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14604 sys_lib_dlsearch_path_spec='/usr/lib'
14608 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14613 shlibpath_var=LD_LIBRARY_PATH
14614 shlibpath_overrides_runpath=no
14615 hardcode_into_libs=yes
14620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14621 soname_spec='${libname}${release}${shared_ext}$major'
14622 shlibpath_var=LD_LIBRARY_PATH
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14630 $as_echo "$dynamic_linker" >&6; }
14631 test "$dynamic_linker" = no && can_build_shared=no
14633 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14634 if test "$GCC" = yes; then
14635 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14638 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14639 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14641 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14642 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14737 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14739 if test -n "$hardcode_libdir_flag_spec" ||
14740 test -n "$runpath_var" ||
14741 test "X$hardcode_automatic" = "Xyes" ; then
14743 # We can hardcode non-existent directories.
14744 if test "$hardcode_direct" != no &&
14745 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14746 # have to relink, otherwise we might link with an installed library
14747 # when we should be linking with a yet-to-be-installed one
14748 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14749 test "$hardcode_minus_L" != no; then
14750 # Linking always hardcodes the temporary library directory.
14751 hardcode_action=relink
14753 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14754 hardcode_action=immediate
14757 # We cannot hardcode anything, or else we can only hardcode existing
14759 hardcode_action=unsupported
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14762 $as_echo "$hardcode_action" >&6; }
14764 if test "$hardcode_action" = relink ||
14765 test "$inherit_rpath" = yes; then
14766 # Fast installation is not supported
14767 enable_fast_install=no
14768 elif test "$shlibpath_overrides_runpath" = yes ||
14769 test "$enable_shared" = no; then
14770 # Fast installation is not necessary
14771 enable_fast_install=needless
14779 if test "x$enable_dlopen" != xyes; then
14780 enable_dlopen=unknown
14781 enable_dlopen_self=unknown
14782 enable_dlopen_self_static=unknown
14789 lt_cv_dlopen="load_add_on"
14791 lt_cv_dlopen_self=yes
14794 mingw* | pw32* | cegcc*)
14795 lt_cv_dlopen="LoadLibrary"
14800 lt_cv_dlopen="dlopen"
14805 # if libdl is installed we need to link against it
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14807 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14808 if ${ac_cv_lib_dl_dlopen+:} false; then :
14809 $as_echo_n "(cached) " >&6
14811 ac_check_lib_save_LIBS=$LIBS
14813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814 /* end confdefs.h. */
14816 /* Override any GCC internal prototype to avoid an error.
14817 Use char because int might match the return type of a GCC
14818 builtin and then its argument prototype would still apply. */
14831 if ac_fn_c_try_link "$LINENO"; then :
14832 ac_cv_lib_dl_dlopen=yes
14834 ac_cv_lib_dl_dlopen=no
14836 rm -f core conftest.err conftest.$ac_objext \
14837 conftest$ac_exeext conftest.$ac_ext
14838 LIBS=$ac_check_lib_save_LIBS
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14841 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14842 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14843 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14846 lt_cv_dlopen="dyld"
14848 lt_cv_dlopen_self=yes
14855 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14856 if test "x$ac_cv_func_shl_load" = xyes; then :
14857 lt_cv_dlopen="shl_load"
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14860 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14861 if ${ac_cv_lib_dld_shl_load+:} false; then :
14862 $as_echo_n "(cached) " >&6
14864 ac_check_lib_save_LIBS=$LIBS
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14869 /* Override any GCC internal prototype to avoid an error.
14870 Use char because int might match the return type of a GCC
14871 builtin and then its argument prototype would still apply. */
14879 return shl_load ();
14884 if ac_fn_c_try_link "$LINENO"; then :
14885 ac_cv_lib_dld_shl_load=yes
14887 ac_cv_lib_dld_shl_load=no
14889 rm -f core conftest.err conftest.$ac_objext \
14890 conftest$ac_exeext conftest.$ac_ext
14891 LIBS=$ac_check_lib_save_LIBS
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14894 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14895 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14896 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14898 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14899 if test "x$ac_cv_func_dlopen" = xyes; then :
14900 lt_cv_dlopen="dlopen"
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14903 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14904 if ${ac_cv_lib_dl_dlopen+:} false; then :
14905 $as_echo_n "(cached) " >&6
14907 ac_check_lib_save_LIBS=$LIBS
14909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14910 /* end confdefs.h. */
14912 /* Override any GCC internal prototype to avoid an error.
14913 Use char because int might match the return type of a GCC
14914 builtin and then its argument prototype would still apply. */
14927 if ac_fn_c_try_link "$LINENO"; then :
14928 ac_cv_lib_dl_dlopen=yes
14930 ac_cv_lib_dl_dlopen=no
14932 rm -f core conftest.err conftest.$ac_objext \
14933 conftest$ac_exeext conftest.$ac_ext
14934 LIBS=$ac_check_lib_save_LIBS
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14937 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14938 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14939 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14942 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14943 if ${ac_cv_lib_svld_dlopen+:} false; then :
14944 $as_echo_n "(cached) " >&6
14946 ac_check_lib_save_LIBS=$LIBS
14947 LIBS="-lsvld $LIBS"
14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949 /* end confdefs.h. */
14951 /* Override any GCC internal prototype to avoid an error.
14952 Use char because int might match the return type of a GCC
14953 builtin and then its argument prototype would still apply. */
14966 if ac_fn_c_try_link "$LINENO"; then :
14967 ac_cv_lib_svld_dlopen=yes
14969 ac_cv_lib_svld_dlopen=no
14971 rm -f core conftest.err conftest.$ac_objext \
14972 conftest$ac_exeext conftest.$ac_ext
14973 LIBS=$ac_check_lib_save_LIBS
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14976 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14977 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14978 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14981 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14982 if ${ac_cv_lib_dld_dld_link+:} false; then :
14983 $as_echo_n "(cached) " >&6
14985 ac_check_lib_save_LIBS=$LIBS
14987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h. */
14990 /* Override any GCC internal prototype to avoid an error.
14991 Use char because int might match the return type of a GCC
14992 builtin and then its argument prototype would still apply. */
15000 return dld_link ();
15005 if ac_fn_c_try_link "$LINENO"; then :
15006 ac_cv_lib_dld_dld_link=yes
15008 ac_cv_lib_dld_dld_link=no
15010 rm -f core conftest.err conftest.$ac_objext \
15011 conftest$ac_exeext conftest.$ac_ext
15012 LIBS=$ac_check_lib_save_LIBS
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15015 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15016 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15017 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15038 if test "x$lt_cv_dlopen" != xno; then
15044 case $lt_cv_dlopen in
15046 save_CPPFLAGS="$CPPFLAGS"
15047 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15049 save_LDFLAGS="$LDFLAGS"
15050 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15053 LIBS="$lt_cv_dlopen_libs $LIBS"
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15056 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15057 if ${lt_cv_dlopen_self+:} false; then :
15058 $as_echo_n "(cached) " >&6
15060 if test "$cross_compiling" = yes; then :
15061 lt_cv_dlopen_self=cross
15063 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15064 lt_status=$lt_dlunknown
15065 cat > conftest.$ac_ext <<_LT_EOF
15066 #line $LINENO "configure"
15067 #include "confdefs.h"
15076 # define LT_DLGLOBAL RTLD_GLOBAL
15079 # define LT_DLGLOBAL DL_GLOBAL
15081 # define LT_DLGLOBAL 0
15085 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15086 find out it does not work in some platform. */
15087 #ifndef LT_DLLAZY_OR_NOW
15089 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15092 # define LT_DLLAZY_OR_NOW DL_LAZY
15095 # define LT_DLLAZY_OR_NOW RTLD_NOW
15098 # define LT_DLLAZY_OR_NOW DL_NOW
15100 # define LT_DLLAZY_OR_NOW 0
15107 /* When -fvisbility=hidden is used, assume the code has been annotated
15108 correspondingly for the symbols needed. */
15109 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15110 int fnord () __attribute__((visibility("default")));
15113 int fnord () { return 42; }
15116 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15117 int status = $lt_dlunknown;
15121 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15124 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15125 else puts (dlerror ());
15127 /* dlclose (self); */
15135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15136 (eval $ac_link) 2>&5
15138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15139 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15140 (./conftest; exit; ) >&5 2>/dev/null
15142 case x$lt_status in
15143 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15144 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15145 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15148 # compilation failed
15149 lt_cv_dlopen_self=no
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15157 $as_echo "$lt_cv_dlopen_self" >&6; }
15159 if test "x$lt_cv_dlopen_self" = xyes; then
15160 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15162 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15163 if ${lt_cv_dlopen_self_static+:} false; then :
15164 $as_echo_n "(cached) " >&6
15166 if test "$cross_compiling" = yes; then :
15167 lt_cv_dlopen_self_static=cross
15169 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15170 lt_status=$lt_dlunknown
15171 cat > conftest.$ac_ext <<_LT_EOF
15172 #line $LINENO "configure"
15173 #include "confdefs.h"
15182 # define LT_DLGLOBAL RTLD_GLOBAL
15185 # define LT_DLGLOBAL DL_GLOBAL
15187 # define LT_DLGLOBAL 0
15191 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15192 find out it does not work in some platform. */
15193 #ifndef LT_DLLAZY_OR_NOW
15195 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15198 # define LT_DLLAZY_OR_NOW DL_LAZY
15201 # define LT_DLLAZY_OR_NOW RTLD_NOW
15204 # define LT_DLLAZY_OR_NOW DL_NOW
15206 # define LT_DLLAZY_OR_NOW 0
15213 /* When -fvisbility=hidden is used, assume the code has been annotated
15214 correspondingly for the symbols needed. */
15215 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15216 int fnord () __attribute__((visibility("default")));
15219 int fnord () { return 42; }
15222 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15223 int status = $lt_dlunknown;
15227 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15230 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15231 else puts (dlerror ());
15233 /* dlclose (self); */
15241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15242 (eval $ac_link) 2>&5
15244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15245 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15246 (./conftest; exit; ) >&5 2>/dev/null
15248 case x$lt_status in
15249 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15250 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15251 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15254 # compilation failed
15255 lt_cv_dlopen_self_static=no
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15263 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15266 CPPFLAGS="$save_CPPFLAGS"
15267 LDFLAGS="$save_LDFLAGS"
15272 case $lt_cv_dlopen_self in
15273 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15274 *) enable_dlopen_self=unknown ;;
15277 case $lt_cv_dlopen_self_static in
15278 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15279 *) enable_dlopen_self_static=unknown ;;
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15302 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15303 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15304 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15305 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15307 $as_echo "yes" >&6; }
15309 # FIXME - insert some real tests, host_os isn't really good enough
15312 if test -n "$STRIP" ; then
15313 striplib="$STRIP -x"
15314 old_striplib="$STRIP -S"
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15316 $as_echo "yes" >&6; }
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15319 $as_echo "no" >&6; }
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15324 $as_echo "no" >&6; }
15340 # Report which library types will actually be built
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15342 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15344 $as_echo "$can_build_shared" >&6; }
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15347 $as_echo_n "checking whether to build shared libraries... " >&6; }
15348 test "$can_build_shared" = "no" && enable_shared=no
15350 # On AIX, shared libraries and static libraries use the same namespace, and
15351 # are all built from PIC.
15354 test "$enable_shared" = yes && enable_static=no
15355 if test -n "$RANLIB"; then
15356 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15357 postinstall_cmds='$RANLIB $lib'
15362 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15363 test "$enable_shared" = yes && enable_static=no
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15368 $as_echo "$enable_shared" >&6; }
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15371 $as_echo_n "checking whether to build static libraries... " >&6; }
15372 # Make sure either enable_shared or enable_static is yes.
15373 test "$enable_shared" = yes || enable_static=yes
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15375 $as_echo "$enable_static" >&6; }
15382 ac_cpp='$CPP $CPPFLAGS'
15383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15389 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15390 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15391 (test "X$CXX" != "Xg++"))) ; then
15393 ac_cpp='$CXXCPP $CPPFLAGS'
15394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15398 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15399 if test -z "$CXXCPP"; then
15400 if ${ac_cv_prog_CXXCPP+:} false; then :
15401 $as_echo_n "(cached) " >&6
15403 # Double quotes because CXXCPP needs to be expanded
15404 for CXXCPP in "$CXX -E" "/lib/cpp"
15406 ac_preproc_ok=false
15407 for ac_cxx_preproc_warn_flag in '' yes
15409 # Use a header file that comes with gcc, so configuring glibc
15410 # with a fresh cross-compiler works.
15411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15412 # <limits.h> exists even on freestanding compilers.
15413 # On the NeXT, cc -E runs the code through the compiler's parser,
15414 # not just through cpp. "Syntax error" is here to catch this case.
15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416 /* end confdefs.h. */
15418 # include <limits.h>
15420 # include <assert.h>
15424 if ac_fn_cxx_try_cpp "$LINENO"; then :
15427 # Broken: fails on valid input.
15430 rm -f conftest.err conftest.i conftest.$ac_ext
15432 # OK, works on sane cases. Now check whether nonexistent headers
15433 # can be detected and how.
15434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15435 /* end confdefs.h. */
15436 #include <ac_nonexistent.h>
15438 if ac_fn_cxx_try_cpp "$LINENO"; then :
15439 # Broken: success on invalid input.
15442 # Passes both tests.
15446 rm -f conftest.err conftest.i conftest.$ac_ext
15449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15450 rm -f conftest.i conftest.err conftest.$ac_ext
15451 if $ac_preproc_ok; then :
15456 ac_cv_prog_CXXCPP=$CXXCPP
15459 CXXCPP=$ac_cv_prog_CXXCPP
15461 ac_cv_prog_CXXCPP=$CXXCPP
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15464 $as_echo "$CXXCPP" >&6; }
15465 ac_preproc_ok=false
15466 for ac_cxx_preproc_warn_flag in '' yes
15468 # Use a header file that comes with gcc, so configuring glibc
15469 # with a fresh cross-compiler works.
15470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15471 # <limits.h> exists even on freestanding compilers.
15472 # On the NeXT, cc -E runs the code through the compiler's parser,
15473 # not just through cpp. "Syntax error" is here to catch this case.
15474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475 /* end confdefs.h. */
15477 # include <limits.h>
15479 # include <assert.h>
15483 if ac_fn_cxx_try_cpp "$LINENO"; then :
15486 # Broken: fails on valid input.
15489 rm -f conftest.err conftest.i conftest.$ac_ext
15491 # OK, works on sane cases. Now check whether nonexistent headers
15492 # can be detected and how.
15493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15494 /* end confdefs.h. */
15495 #include <ac_nonexistent.h>
15497 if ac_fn_cxx_try_cpp "$LINENO"; then :
15498 # Broken: success on invalid input.
15501 # Passes both tests.
15505 rm -f conftest.err conftest.i conftest.$ac_ext
15508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15509 rm -f conftest.i conftest.err conftest.$ac_ext
15510 if $ac_preproc_ok; then :
15513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15515 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15516 See \`config.log' for more details" "$LINENO" 5; }
15520 ac_cpp='$CPP $CPPFLAGS'
15521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15526 _lt_caught_CXX_error=yes
15530 ac_cpp='$CXXCPP $CPPFLAGS'
15531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15535 archive_cmds_need_lc_CXX=no
15536 allow_undefined_flag_CXX=
15537 always_export_symbols_CXX=no
15538 archive_expsym_cmds_CXX=
15539 compiler_needs_object_CXX=no
15540 export_dynamic_flag_spec_CXX=
15541 hardcode_direct_CXX=no
15542 hardcode_direct_absolute_CXX=no
15543 hardcode_libdir_flag_spec_CXX=
15544 hardcode_libdir_flag_spec_ld_CXX=
15545 hardcode_libdir_separator_CXX=
15546 hardcode_minus_L_CXX=no
15547 hardcode_shlibpath_var_CXX=unsupported
15548 hardcode_automatic_CXX=no
15549 inherit_rpath_CXX=no
15551 module_expsym_cmds_CXX=
15552 link_all_deplibs_CXX=unknown
15553 old_archive_cmds_CXX=$old_archive_cmds
15554 reload_flag_CXX=$reload_flag
15555 reload_cmds_CXX=$reload_cmds
15556 no_undefined_flag_CXX=
15557 whole_archive_flag_spec_CXX=
15558 enable_shared_with_static_runtimes_CXX=no
15560 # Source file extension for C++ test sources.
15563 # Object file extension for compiled C++ test sources.
15567 # No sense in running all these tests if we already determined that
15568 # the CXX compiler isn't working. Some variables (like enable_shared)
15569 # are currently assumed to apply to all compilers on this platform,
15570 # and will be corrupted by setting them based on a non-working compiler.
15571 if test "$_lt_caught_CXX_error" != yes; then
15572 # Code to be used in simple compile tests
15573 lt_simple_compile_test_code="int some_variable = 0;"
15575 # Code to be used in simple link tests
15576 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15578 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15585 # If no C compiler was specified, use CC.
15588 # If no C compiler flags were specified, use CFLAGS.
15589 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15591 # Allow CC to be a program name with arguments.
15595 # save warnings/boilerplate of simple test code
15596 ac_outfile=conftest.$ac_objext
15597 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15598 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15599 _lt_compiler_boilerplate=`cat conftest.err`
15602 ac_outfile=conftest.$ac_objext
15603 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15604 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15605 _lt_linker_boilerplate=`cat conftest.err`
15609 # Allow CC to be a program name with arguments.
15611 lt_save_CFLAGS=$CFLAGS
15615 lt_save_with_gnu_ld=$with_gnu_ld
15616 lt_save_path_LD=$lt_cv_path_LD
15617 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15618 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15620 $as_unset lt_cv_prog_gnu_ld
15622 if test -n "${lt_cv_path_LDCXX+set}"; then
15623 lt_cv_path_LD=$lt_cv_path_LDCXX
15625 $as_unset lt_cv_path_LD
15627 test -z "${LDCXX+set}" || LD=$LDCXX
15632 for cc_temp in $compiler""; do
15634 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15635 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15640 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15643 if test -n "$compiler"; then
15644 # We don't want -fno-exception when compiling C++ code, so set the
15645 # no_builtin_flag separately
15646 if test "$GXX" = yes; then
15647 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15649 lt_prog_compiler_no_builtin_flag_CXX=
15652 if test "$GXX" = yes; then
15653 # Set up default GNU C++ configuration
15657 # Check whether --with-gnu-ld was given.
15658 if test "${with_gnu_ld+set}" = set; then :
15659 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15665 if test "$GCC" = yes; then
15666 # Check if gcc -print-prog-name=ld gives a path.
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15668 $as_echo_n "checking for ld used by $CC... " >&6; }
15671 # gcc leaves a trailing carriage return which upsets mingw
15672 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15674 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15677 # Accept absolute paths.
15679 re_direlt='/[^/][^/]*/\.\./'
15680 # Canonicalize the pathname of ld
15681 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15682 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15683 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15685 test -z "$LD" && LD="$ac_prog"
15688 # If it fails, then pretend we aren't using GCC.
15692 # If it is relative, then search for the first ld in PATH.
15693 with_gnu_ld=unknown
15696 elif test "$with_gnu_ld" = yes; then
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15698 $as_echo_n "checking for GNU ld... " >&6; }
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15701 $as_echo_n "checking for non-GNU ld... " >&6; }
15703 if ${lt_cv_path_LD+:} false; then :
15704 $as_echo_n "(cached) " >&6
15706 if test -z "$LD"; then
15707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15708 for ac_dir in $PATH; do
15710 test -z "$ac_dir" && ac_dir=.
15711 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15712 lt_cv_path_LD="$ac_dir/$ac_prog"
15713 # Check to see if the program is GNU ld. I'd rather use --version,
15714 # but apparently some variants of GNU ld only accept -v.
15715 # Break only if it was the GNU/non-GNU ld that we prefer.
15716 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15717 *GNU* | *'with BFD'*)
15718 test "$with_gnu_ld" != no && break
15721 test "$with_gnu_ld" != yes && break
15728 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15732 LD="$lt_cv_path_LD"
15733 if test -n "$LD"; then
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15735 $as_echo "$LD" >&6; }
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15738 $as_echo "no" >&6; }
15740 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15742 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15743 if ${lt_cv_prog_gnu_ld+:} false; then :
15744 $as_echo_n "(cached) " >&6
15746 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15747 case `$LD -v 2>&1 </dev/null` in
15748 *GNU* | *'with BFD'*)
15749 lt_cv_prog_gnu_ld=yes
15752 lt_cv_prog_gnu_ld=no
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15757 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15758 with_gnu_ld=$lt_cv_prog_gnu_ld
15766 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15767 # archiving commands below assume that GNU ld is being used.
15768 if test "$with_gnu_ld" = yes; then
15769 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15770 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'
15772 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15773 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15775 # If archive_cmds runs LD, not CC, wlarc should be empty
15776 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15777 # investigate it a little bit more. (MM)
15780 # ancient GNU ld didn't support --whole-archive et. al.
15781 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15782 $GREP 'no-whole-archive' > /dev/null; then
15783 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15785 whole_archive_flag_spec_CXX=
15791 # A generic and very simple default shared library creation
15792 # command for GNU C++ for the case where it uses the native
15793 # linker, instead of GNU ld. If possible, this setting should
15794 # overridden to take advantage of the native linker features on
15795 # the platform it is being used on.
15796 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15799 # Commands to make compiler produce verbose output that lists
15800 # what "hidden" libraries, object files and flags are used when
15801 # linking a shared library.
15802 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15810 # PORTME: fill in a description of your system's C++ link characteristics
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15812 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15816 # FIXME: insert proper C++ library support
15820 if test "$host_cpu" = ia64; then
15821 # On IA64, the linker does run time linking by default, so we don't
15822 # have to do anything special.
15823 aix_use_runtimelinking=no
15824 exp_sym_flag='-Bexport'
15827 aix_use_runtimelinking=no
15829 # Test if we are trying to use run time linking or normal
15830 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15831 # need to do runtime linking.
15832 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15833 for ld_flag in $LDFLAGS; do
15836 aix_use_runtimelinking=yes
15844 exp_sym_flag='-bexport'
15845 no_entry_flag='-bnoentry'
15848 # When large executables or shared objects are built, AIX ld can
15849 # have problems creating the table of contents. If linking a library
15850 # or program results in "error TOC overflow" add -mminimal-toc to
15851 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15852 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15854 archive_cmds_CXX=''
15855 hardcode_direct_CXX=yes
15856 hardcode_direct_absolute_CXX=yes
15857 hardcode_libdir_separator_CXX=':'
15858 link_all_deplibs_CXX=yes
15859 file_list_spec_CXX='${wl}-f,'
15861 if test "$GXX" = yes; then
15862 case $host_os in aix4.[012]|aix4.[012].*)
15863 # We only want to do this on AIX 4.2 and lower, the check
15864 # below for broken collect2 doesn't work under 4.3+
15865 collect2name=`${CC} -print-prog-name=collect2`
15866 if test -f "$collect2name" &&
15867 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15869 # We have reworked collect2
15872 # We have old collect2
15873 hardcode_direct_CXX=unsupported
15874 # It fails to find uninstalled libraries when the uninstalled
15875 # path is not listed in the libpath. Setting hardcode_minus_L
15876 # to unsupported forces relinking
15877 hardcode_minus_L_CXX=yes
15878 hardcode_libdir_flag_spec_CXX='-L$libdir'
15879 hardcode_libdir_separator_CXX=
15882 shared_flag='-shared'
15883 if test "$aix_use_runtimelinking" = yes; then
15884 shared_flag="$shared_flag "'${wl}-G'
15888 if test "$host_cpu" = ia64; then
15889 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15890 # chokes on -Wl,-G. The following line is correct:
15893 if test "$aix_use_runtimelinking" = yes; then
15894 shared_flag='${wl}-G'
15896 shared_flag='${wl}-bM:SRE'
15901 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15902 # It seems that -bexpall does not export symbols beginning with
15903 # underscore (_), so it is better to generate a list of symbols to
15905 always_export_symbols_CXX=yes
15906 if test "$aix_use_runtimelinking" = yes; then
15907 # Warning - without using the other runtime loading flags (-brtl),
15908 # -berok will link without error, but may produce a broken library.
15909 allow_undefined_flag_CXX='-berok'
15910 # Determine the default libpath from the value encoded in an empty
15912 if test "${lt_cv_aix_libpath+set}" = set; then
15913 aix_libpath=$lt_cv_aix_libpath
15915 if ${lt_cv_aix_libpath__CXX+:} false; then :
15916 $as_echo_n "(cached) " >&6
15918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919 /* end confdefs.h. */
15929 if ac_fn_cxx_try_link "$LINENO"; then :
15931 lt_aix_libpath_sed='
15932 /Import File Strings/,/^$/ {
15934 s/^0 *\([^ ]*\) *$/\1/
15938 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15939 # Check for a 64-bit object if we didn't find anything.
15940 if test -z "$lt_cv_aix_libpath__CXX"; then
15941 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15944 rm -f core conftest.err conftest.$ac_objext \
15945 conftest$ac_exeext conftest.$ac_ext
15946 if test -z "$lt_cv_aix_libpath__CXX"; then
15947 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15952 aix_libpath=$lt_cv_aix_libpath__CXX
15955 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15957 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"
15959 if test "$host_cpu" = ia64; then
15960 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15961 allow_undefined_flag_CXX="-z nodefs"
15962 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"
15964 # Determine the default libpath from the value encoded in an
15965 # empty executable.
15966 if test "${lt_cv_aix_libpath+set}" = set; then
15967 aix_libpath=$lt_cv_aix_libpath
15969 if ${lt_cv_aix_libpath__CXX+:} false; then :
15970 $as_echo_n "(cached) " >&6
15972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h. */
15983 if ac_fn_cxx_try_link "$LINENO"; then :
15985 lt_aix_libpath_sed='
15986 /Import File Strings/,/^$/ {
15988 s/^0 *\([^ ]*\) *$/\1/
15992 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15993 # Check for a 64-bit object if we didn't find anything.
15994 if test -z "$lt_cv_aix_libpath__CXX"; then
15995 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15998 rm -f core conftest.err conftest.$ac_objext \
15999 conftest$ac_exeext conftest.$ac_ext
16000 if test -z "$lt_cv_aix_libpath__CXX"; then
16001 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16006 aix_libpath=$lt_cv_aix_libpath__CXX
16009 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16010 # Warning - without using the other run time loading flags,
16011 # -berok will link without error, but may produce a broken library.
16012 no_undefined_flag_CXX=' ${wl}-bernotok'
16013 allow_undefined_flag_CXX=' ${wl}-berok'
16014 if test "$with_gnu_ld" = yes; then
16015 # We only use this code for GNU lds that support --whole-archive.
16016 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16018 # Exported symbols can be pulled into shared objects from archives
16019 whole_archive_flag_spec_CXX='$convenience'
16021 archive_cmds_need_lc_CXX=yes
16022 # This is similar to how AIX traditionally builds its shared
16024 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'
16030 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16031 allow_undefined_flag_CXX=unsupported
16032 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16033 # support --undefined. This deserves some investigation. FIXME
16034 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16041 case $cc_basename in
16043 # FIXME: insert proper C++ library support
16049 cygwin* | mingw* | pw32* | cegcc*)
16050 case $GXX,$cc_basename in
16053 # hardcode_libdir_flag_spec is actually meaningless, as there is
16054 # no search path for DLLs.
16055 hardcode_libdir_flag_spec_CXX=' '
16056 allow_undefined_flag_CXX=unsupported
16057 always_export_symbols_CXX=yes
16058 file_list_spec_CXX='@'
16059 # Tell ltmain to make .lib files, not .a files.
16061 # Tell ltmain to make .dll files, not .so files.
16063 # FIXME: Setting linknames here is a bad hack.
16064 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16065 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16066 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16068 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16070 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16072 # The linker will not automatically build a static lib if we build a DLL.
16073 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16074 enable_shared_with_static_runtimes_CXX=yes
16076 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16077 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16078 lt_tool_outputfile="@TOOL_OUTPUT@"~
16079 case $lt_outputfile in
16082 lt_outputfile="$lt_outputfile.exe"
16083 lt_tool_outputfile="$lt_tool_outputfile.exe"
16086 func_to_tool_file "$lt_outputfile"~
16087 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16088 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16089 $RM "$lt_outputfile.manifest";
16094 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16095 # as there is no search path for DLLs.
16096 hardcode_libdir_flag_spec_CXX='-L$libdir'
16097 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
16098 allow_undefined_flag_CXX=unsupported
16099 always_export_symbols_CXX=no
16100 enable_shared_with_static_runtimes_CXX=yes
16102 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16103 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'
16104 # If the export-symbols file already is a .def file (1st line
16105 # is EXPORTS), use it as is; otherwise, prepend...
16106 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16107 cp $export_symbols $output_objdir/$soname.def;
16109 echo EXPORTS > $output_objdir/$soname.def;
16110 cat $export_symbols >> $output_objdir/$soname.def;
16112 $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'
16119 darwin* | rhapsody*)
16122 archive_cmds_need_lc_CXX=no
16123 hardcode_direct_CXX=no
16124 hardcode_automatic_CXX=yes
16125 hardcode_shlibpath_var_CXX=unsupported
16126 if test "$lt_cv_ld_force_load" = "yes"; then
16127 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\"`'
16129 whole_archive_flag_spec_CXX=''
16131 link_all_deplibs_CXX=yes
16132 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16133 case $cc_basename in
16134 ifort*) _lt_dar_can_shared=yes ;;
16135 *) _lt_dar_can_shared=$GCC ;;
16137 if test "$_lt_dar_can_shared" = "yes"; then
16138 output_verbose_link_cmd=func_echo_all
16139 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}"
16140 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16141 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}"
16142 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}"
16143 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16144 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}"
16145 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}"
16155 case $cc_basename in
16157 # FIXME: insert proper C++ library support
16161 # Green Hills C++ Compiler
16162 # FIXME: insert proper C++ library support
16166 # FIXME: insert proper C++ library support
16173 # C++ shared libraries reported to be fairly broken before
16179 archive_cmds_need_lc_CXX=no
16182 freebsd* | dragonfly*)
16183 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16192 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16193 link_all_deplibs_CXX=yes
16197 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16198 hardcode_libdir_separator_CXX=:
16199 export_dynamic_flag_spec_CXX='${wl}-E'
16200 hardcode_direct_CXX=yes
16201 hardcode_minus_L_CXX=yes # Not in the search PATH,
16202 # but as the default
16203 # location of the library.
16205 case $cc_basename in
16207 # FIXME: insert proper C++ library support
16211 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'
16212 # Commands to make compiler produce verbose output that lists
16213 # what "hidden" libraries, object files and flags are used when
16214 # linking a shared library.
16216 # There doesn't appear to be a way to prevent this compiler from
16217 # explicitly linking system object files so we need to strip them
16218 # from the output so that they don't get included in the library
16220 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"'
16223 if test "$GXX" = yes; then
16224 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'
16226 # FIXME: insert proper C++ library support
16234 if test $with_gnu_ld = no; then
16235 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16236 hardcode_libdir_separator_CXX=:
16242 export_dynamic_flag_spec_CXX='${wl}-E'
16248 hardcode_direct_CXX=no
16249 hardcode_shlibpath_var_CXX=no
16252 hardcode_direct_CXX=yes
16253 hardcode_direct_absolute_CXX=yes
16254 hardcode_minus_L_CXX=yes # Not in the search PATH,
16255 # but as the default
16256 # location of the library.
16260 case $cc_basename in
16262 # FIXME: insert proper C++ library support
16268 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16271 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16274 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16277 # Commands to make compiler produce verbose output that lists
16278 # what "hidden" libraries, object files and flags are used when
16279 # linking a shared library.
16281 # There doesn't appear to be a way to prevent this compiler from
16282 # explicitly linking system object files so we need to strip them
16283 # from the output so that they don't get included in the library
16285 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"'
16288 if test "$GXX" = yes; then
16289 if test $with_gnu_ld = no; then
16292 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16295 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16298 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'
16303 # FIXME: insert proper C++ library support
16311 hardcode_direct_CXX=no
16312 hardcode_shlibpath_var_CXX=no
16313 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16314 export_dynamic_flag_spec_CXX='${wl}-E'
16315 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16316 # Instead, shared libraries are loaded at an image base (0x10000000 by
16317 # default) and relocated if they conflict, which is a slow very memory
16318 # consuming and fragmenting process. To avoid this, we pick a random,
16319 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16320 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16321 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'
16322 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'
16325 case $cc_basename in
16328 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'
16330 # Archives containing C++ object files must be created using
16331 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16332 # necessary to make sure instantiated templates are included
16334 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16337 if test "$GXX" = yes; then
16338 if test "$with_gnu_ld" = no; then
16339 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'
16341 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'
16344 link_all_deplibs_CXX=yes
16347 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16348 hardcode_libdir_separator_CXX=:
16349 inherit_rpath_CXX=yes
16352 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16353 case $cc_basename in
16355 # Kuck and Associates, Inc. (KAI) C++ Compiler
16357 # KCC will only create a shared library if the output file
16358 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16359 # to its proper name (with version) after linking.
16360 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'
16361 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'
16362 # Commands to make compiler produce verbose output that lists
16363 # what "hidden" libraries, object files and flags are used when
16364 # linking a shared library.
16366 # There doesn't appear to be a way to prevent this compiler from
16367 # explicitly linking system object files so we need to strip them
16368 # from the output so that they don't get included in the library
16370 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"'
16372 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16373 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16375 # Archives containing C++ object files must be created using
16376 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16377 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16382 # version 8.0 and above of icpc choke on multiply defined symbols
16383 # if we add $predep_objects and $postdep_objects, however 7.1 and
16384 # earlier do not add the objects themselves.
16385 case `$CC -V 2>&1` in
16387 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16388 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'
16390 *) # Version 8.0 or newer
16393 ia64*) tmp_idyn=' -i_dynamic';;
16395 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16396 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'
16399 archive_cmds_need_lc_CXX=no
16400 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16401 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16402 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16405 # Portland Group C++ compiler
16407 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16408 prelink_cmds_CXX='tpldir=Template.dir~
16410 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16411 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16412 old_archive_cmds_CXX='tpldir=Template.dir~
16414 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16415 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16417 archive_cmds_CXX='tpldir=Template.dir~
16419 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16420 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16421 archive_expsym_cmds_CXX='tpldir=Template.dir~
16423 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16424 $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'
16426 *) # Version 6 and above use weak symbols
16427 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16428 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'
16432 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16433 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16434 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'
16438 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16439 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'
16441 runpath_var=LD_RUN_PATH
16442 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16443 hardcode_libdir_separator_CXX=:
16445 # Commands to make compiler produce verbose output that lists
16446 # what "hidden" libraries, object files and flags are used when
16447 # linking a shared library.
16449 # There doesn't appear to be a way to prevent this compiler from
16450 # explicitly linking system object files so we need to strip them
16451 # from the output so that they don't get included in the library
16453 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'
16455 xl* | mpixl* | bgxl*)
16456 # IBM XL 8.0 on PPC, with GNU ld
16457 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16458 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16459 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16460 if test "x$supports_anon_versioning" = xyes; then
16461 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16462 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16463 echo "local: *; };" >> $output_objdir/$libname.ver~
16464 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16468 case `$CC -V 2>&1 | sed 5q` in
16471 no_undefined_flag_CXX=' -zdefs'
16472 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16473 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'
16474 hardcode_libdir_flag_spec_CXX='-R$libdir'
16475 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'
16476 compiler_needs_object_CXX=yes
16478 # Not sure whether something based on
16479 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16481 output_verbose_link_cmd='func_echo_all'
16483 # Archives containing C++ object files must be created using
16484 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16485 # necessary to make sure instantiated templates are included
16487 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16495 # FIXME: insert proper C++ library support
16500 # FIXME: insert proper C++ library support
16505 case $cc_basename in
16507 # FIXME: insert proper C++ library support
16511 # FIXME: insert proper C++ library support
16518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16519 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16521 hardcode_libdir_flag_spec_CXX='-R$libdir'
16522 hardcode_direct_CXX=yes
16523 hardcode_shlibpath_var_CXX=no
16525 # Workaround some broken pre-1.5 toolchains
16526 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16534 # C++ shared libraries are fairly broken
16539 if test -f /usr/libexec/ld.so; then
16540 hardcode_direct_CXX=yes
16541 hardcode_shlibpath_var_CXX=no
16542 hardcode_direct_absolute_CXX=yes
16543 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16544 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16545 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16546 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16547 export_dynamic_flag_spec_CXX='${wl}-E'
16548 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16550 output_verbose_link_cmd=func_echo_all
16556 osf3* | osf4* | osf5*)
16557 case $cc_basename in
16559 # Kuck and Associates, Inc. (KAI) C++ Compiler
16561 # KCC will only create a shared library if the output file
16562 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16563 # to its proper name (with version) after linking.
16564 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'
16566 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16567 hardcode_libdir_separator_CXX=:
16569 # Archives containing C++ object files must be created using
16570 # the KAI C++ compiler.
16572 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16573 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16577 # Rational C++ 2.4.1
16578 # FIXME: insert proper C++ library support
16584 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16585 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'
16586 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16589 allow_undefined_flag_CXX=' -expect_unresolved \*'
16590 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'
16591 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16592 echo "-hidden">> $lib.exp~
16593 $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~
16595 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16599 hardcode_libdir_separator_CXX=:
16601 # Commands to make compiler produce verbose output that lists
16602 # what "hidden" libraries, object files and flags are used when
16603 # linking a shared library.
16605 # There doesn't appear to be a way to prevent this compiler from
16606 # explicitly linking system object files so we need to strip them
16607 # from the output so that they don't get included in the library
16609 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"'
16612 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16613 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16616 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'
16619 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'
16623 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16624 hardcode_libdir_separator_CXX=:
16626 # Commands to make compiler produce verbose output that lists
16627 # what "hidden" libraries, object files and flags are used when
16628 # linking a shared library.
16629 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16632 # FIXME: insert proper C++ library support
16640 # FIXME: insert proper C++ library support
16645 case $cc_basename in
16648 # FIXME: insert proper C++ library support
16653 # FIXME: insert proper C++ library support
16657 # FIXME: insert proper C++ library support
16664 case $cc_basename in
16666 # Sun C++ 4.2, 5.x and Centerline C++
16667 archive_cmds_need_lc_CXX=yes
16668 no_undefined_flag_CXX=' -zdefs'
16669 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16670 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16671 $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'
16673 hardcode_libdir_flag_spec_CXX='-R$libdir'
16674 hardcode_shlibpath_var_CXX=no
16676 solaris2.[0-5] | solaris2.[0-5].*) ;;
16678 # The compiler driver will combine and reorder linker options,
16679 # but understands `-z linker_flag'.
16680 # Supported since Solaris 2.6 (maybe 2.5.1?)
16681 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16684 link_all_deplibs_CXX=yes
16686 output_verbose_link_cmd='func_echo_all'
16688 # Archives containing C++ object files must be created using
16689 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16690 # necessary to make sure instantiated templates are included
16692 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16695 # Green Hills C++ Compiler
16696 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16698 # The C++ compiler must be used to create the archive.
16699 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16702 # GNU C++ compiler with Solaris linker
16703 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16704 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16705 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16706 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16707 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16708 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16710 # Commands to make compiler produce verbose output that lists
16711 # what "hidden" libraries, object files and flags are used when
16712 # linking a shared library.
16713 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16715 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16717 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16718 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16719 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16721 # Commands to make compiler produce verbose output that lists
16722 # what "hidden" libraries, object files and flags are used when
16723 # linking a shared library.
16724 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16727 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16729 solaris2.[0-5] | solaris2.[0-5].*) ;;
16731 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16739 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16740 no_undefined_flag_CXX='${wl}-z,text'
16741 archive_cmds_need_lc_CXX=no
16742 hardcode_shlibpath_var_CXX=no
16743 runpath_var='LD_RUN_PATH'
16745 case $cc_basename in
16747 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16748 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16751 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16752 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16757 sysv5* | sco3.2v5* | sco5v6*)
16758 # Note: We can NOT use -z defs as we might desire, because we do not
16759 # link with -lc, and that would cause any symbols used from libc to
16760 # always be unresolved, which means just about no library would
16761 # ever link correctly. If we're not using GNU ld we use -z text
16762 # though, which does catch some bad symbols but isn't as heavy-handed
16764 no_undefined_flag_CXX='${wl}-z,text'
16765 allow_undefined_flag_CXX='${wl}-z,nodefs'
16766 archive_cmds_need_lc_CXX=no
16767 hardcode_shlibpath_var_CXX=no
16768 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16769 hardcode_libdir_separator_CXX=':'
16770 link_all_deplibs_CXX=yes
16771 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16772 runpath_var='LD_RUN_PATH'
16774 case $cc_basename in
16776 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16777 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16778 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16779 '"$old_archive_cmds_CXX"
16780 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16781 '"$reload_cmds_CXX"
16784 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16785 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16791 case $cc_basename in
16793 # NonStop-UX NCC 3.20
16794 # FIXME: insert proper C++ library support
16798 # FIXME: insert proper C++ library support
16805 # FIXME: insert proper C++ library support
16810 # FIXME: insert proper C++ library support
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16816 $as_echo "$ld_shlibs_CXX" >&6; }
16817 test "$ld_shlibs_CXX" = no && can_build_shared=no
16823 ## There is no encapsulation within the following macros, do not change
16824 ## the running order or otherwise move them around unless you know exactly
16825 ## what you are doing...
16826 # Dependencies to place before and after the object being linked:
16827 predep_objects_CXX=
16828 postdep_objects_CXX=
16831 compiler_lib_search_path_CXX=
16833 cat > conftest.$ac_ext <<_LT_EOF
16837 Foo (void) { a = 0; }
16844 _lt_libdeps_save_CFLAGS=$CFLAGS
16845 case "$CC $CFLAGS " in #(
16846 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16847 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16851 (eval $ac_compile) 2>&5
16853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16854 test $ac_status = 0; }; then
16855 # Parse the compiler output and extract the necessary
16856 # objects, libraries and library flags.
16858 # Sentinel used to keep track of whether or not we are before
16859 # the conftest object file.
16860 pre_test_object_deps_done=no
16862 for p in `eval "$output_verbose_link_cmd"`; do
16863 case ${prev}${p} in
16866 # Some compilers place space between "-{L,R}" and the path.
16867 # Remove the space.
16868 if test $p = "-L" ||
16869 test $p = "-R"; then
16874 # Expand the sysroot to ease extracting the directories later.
16875 if test -z "$prev"; then
16877 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16878 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16879 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16883 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16885 if test "$pre_test_object_deps_done" = no; then
16888 # Internal compiler library paths should come after those
16889 # provided the user. The postdeps already come after the
16890 # user supplied libs so there is no need to process them.
16891 if test -z "$compiler_lib_search_path_CXX"; then
16892 compiler_lib_search_path_CXX="${prev}${p}"
16894 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16897 # The "-l" case would never come before the object being
16898 # linked, so don't bother handling this case.
16901 if test -z "$postdeps_CXX"; then
16902 postdeps_CXX="${prev}${p}"
16904 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16910 *.lto.$objext) ;; # Ignore GCC LTO objects
16912 # This assumes that the test object file only shows up
16913 # once in the compiler output.
16914 if test "$p" = "conftest.$objext"; then
16915 pre_test_object_deps_done=yes
16919 if test "$pre_test_object_deps_done" = no; then
16920 if test -z "$predep_objects_CXX"; then
16921 predep_objects_CXX="$p"
16923 predep_objects_CXX="$predep_objects_CXX $p"
16926 if test -z "$postdep_objects_CXX"; then
16927 postdep_objects_CXX="$p"
16929 postdep_objects_CXX="$postdep_objects_CXX $p"
16934 *) ;; # Ignore the rest.
16942 echo "libtool.m4: error: problem compiling CXX test program"
16945 $RM -f confest.$objext
16946 CFLAGS=$_lt_libdeps_save_CFLAGS
16948 # PORTME: override above test on systems where it is broken
16951 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16952 # hack all around it, let's just trust "g++" to DTRT.
16953 predep_objects_CXX=
16954 postdep_objects_CXX=
16959 case `$CC -V 2>&1 | sed 5q` in
16963 # The more standards-conforming stlport4 library is
16964 # incompatible with the Cstd library. Avoid specifying
16965 # it if it's in CXXFLAGS. Ignore libCrun as
16966 # -library=stlport4 depends on it.
16967 case " $CXX $CXXFLAGS " in
16968 *" -library=stlport4 "*)
16969 solaris_use_stlport4=yes
16973 if test "$solaris_use_stlport4" != yes; then
16974 postdeps_CXX='-library=Cstd -library=Crun'
16981 case $cc_basename in
16983 # The more standards-conforming stlport4 library is
16984 # incompatible with the Cstd library. Avoid specifying
16985 # it if it's in CXXFLAGS. Ignore libCrun as
16986 # -library=stlport4 depends on it.
16987 case " $CXX $CXXFLAGS " in
16988 *" -library=stlport4 "*)
16989 solaris_use_stlport4=yes
16993 # Adding this requires a known-good setup of shared libraries for
16994 # Sun compiler versions before 5.6, else PIC objects from an old
16995 # archive will be linked into the output, leading to subtle bugs.
16996 if test "$solaris_use_stlport4" != yes; then
16997 postdeps_CXX='-library=Cstd -library=Crun'
17005 case " $postdeps_CXX " in
17006 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17008 compiler_lib_search_dirs_CXX=
17009 if test -n "${compiler_lib_search_path_CXX}"; then
17010 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17043 lt_prog_compiler_wl_CXX=
17044 lt_prog_compiler_pic_CXX=
17045 lt_prog_compiler_static_CXX=
17048 # C++ specific cases for pic, static, wl, etc.
17049 if test "$GXX" = yes; then
17050 lt_prog_compiler_wl_CXX='-Wl,'
17051 lt_prog_compiler_static_CXX='-static'
17055 # All AIX code is PIC.
17056 if test "$host_cpu" = ia64; then
17057 # AIX 5 now supports IA64 processor
17058 lt_prog_compiler_static_CXX='-Bstatic'
17065 # see comment about AmigaOS4 .so support
17066 lt_prog_compiler_pic_CXX='-fPIC'
17069 # FIXME: we need at least 68020 code to build shared libraries, but
17070 # adding the `-m68020' flag to GCC prevents building anything better,
17072 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17077 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17078 # PIC is the default for these OSes.
17080 mingw* | cygwin* | os2* | pw32* | cegcc*)
17081 # This hack is so that the source file can tell whether it is being
17082 # built for inclusion in a dll (and should export symbols for example).
17083 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17084 # (--disable-auto-import) libraries
17085 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17087 darwin* | rhapsody*)
17088 # PIC is the default on this platform
17089 # Common symbols not allowed in MH_DYLIB files
17090 lt_prog_compiler_pic_CXX='-fno-common'
17093 # DJGPP does not support shared libraries at all
17094 lt_prog_compiler_pic_CXX=
17097 # PIC is the default for Haiku.
17098 # The "-static" flag exists, but is broken.
17099 lt_prog_compiler_static_CXX=
17102 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17103 # Instead, we relocate shared libraries at runtime.
17106 if test -d /usr/nec; then
17107 lt_prog_compiler_pic_CXX=-Kconform_pic
17111 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17112 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17113 # sets the default TLS model and affects inlining.
17118 lt_prog_compiler_pic_CXX='-fPIC'
17123 # QNX uses GNU C++, but need to define -shared option too, otherwise
17124 # it will coredump.
17125 lt_prog_compiler_pic_CXX='-fPIC -shared'
17128 lt_prog_compiler_pic_CXX='-fPIC'
17134 # All AIX code is PIC.
17135 if test "$host_cpu" = ia64; then
17136 # AIX 5 now supports IA64 processor
17137 lt_prog_compiler_static_CXX='-Bstatic'
17139 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17143 case $cc_basename in
17145 # Green Hills C++ Compiler
17146 # _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"
17150 mingw* | cygwin* | os2* | pw32* | cegcc*)
17151 # This hack is so that the source file can tell whether it is being
17152 # built for inclusion in a dll (and should export symbols for example).
17153 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17156 case $cc_basename in
17158 lt_prog_compiler_pic_CXX='-KPIC'
17161 # Green Hills C++ Compiler
17162 lt_prog_compiler_pic_CXX='-pic'
17168 freebsd* | dragonfly*)
17169 # FreeBSD uses GNU C++
17171 hpux9* | hpux10* | hpux11*)
17172 case $cc_basename in
17174 lt_prog_compiler_wl_CXX='-Wl,'
17175 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17176 if test "$host_cpu" != ia64; then
17177 lt_prog_compiler_pic_CXX='+Z'
17181 lt_prog_compiler_wl_CXX='-Wl,'
17182 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17188 lt_prog_compiler_pic_CXX='+Z'
17197 # This is c89, which is MS Visual C++ (no shared libs)
17198 # Anyone wants to do a port?
17200 irix5* | irix6* | nonstopux*)
17201 case $cc_basename in
17203 lt_prog_compiler_wl_CXX='-Wl,'
17204 lt_prog_compiler_static_CXX='-non_shared'
17205 # CC pic flag -KPIC is the default.
17211 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17212 case $cc_basename in
17215 lt_prog_compiler_wl_CXX='--backend -Wl,'
17216 lt_prog_compiler_pic_CXX='-fPIC'
17219 # old Intel C++ for x86_64 which still supported -KPIC.
17220 lt_prog_compiler_wl_CXX='-Wl,'
17221 lt_prog_compiler_pic_CXX='-KPIC'
17222 lt_prog_compiler_static_CXX='-static'
17225 # Intel C++, used to be incompatible with GCC.
17226 # ICC 10 doesn't accept -KPIC any more.
17227 lt_prog_compiler_wl_CXX='-Wl,'
17228 lt_prog_compiler_pic_CXX='-fPIC'
17229 lt_prog_compiler_static_CXX='-static'
17232 # Portland Group C++ compiler
17233 lt_prog_compiler_wl_CXX='-Wl,'
17234 lt_prog_compiler_pic_CXX='-fpic'
17235 lt_prog_compiler_static_CXX='-Bstatic'
17239 # Make sure the PIC flag is empty. It appears that all Alpha
17240 # Linux and Compaq Tru64 Unix objects are PIC.
17241 lt_prog_compiler_pic_CXX=
17242 lt_prog_compiler_static_CXX='-non_shared'
17244 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17245 # IBM XL 8.0, 9.0 on PPC and BlueGene
17246 lt_prog_compiler_wl_CXX='-Wl,'
17247 lt_prog_compiler_pic_CXX='-qpic'
17248 lt_prog_compiler_static_CXX='-qstaticlink'
17251 case `$CC -V 2>&1 | sed 5q` in
17254 lt_prog_compiler_pic_CXX='-KPIC'
17255 lt_prog_compiler_static_CXX='-Bstatic'
17256 lt_prog_compiler_wl_CXX='-Qoption ld '
17267 case $cc_basename in
17269 lt_prog_compiler_pic_CXX='-W c,exportall'
17278 # QNX uses GNU C++, but need to define -shared option too, otherwise
17279 # it will coredump.
17280 lt_prog_compiler_pic_CXX='-fPIC -shared'
17282 osf3* | osf4* | osf5*)
17283 case $cc_basename in
17285 lt_prog_compiler_wl_CXX='--backend -Wl,'
17288 # Rational C++ 2.4.1
17289 lt_prog_compiler_pic_CXX='-pic'
17292 # Digital/Compaq C++
17293 lt_prog_compiler_wl_CXX='-Wl,'
17294 # Make sure the PIC flag is empty. It appears that all Alpha
17295 # Linux and Compaq Tru64 Unix objects are PIC.
17296 lt_prog_compiler_pic_CXX=
17297 lt_prog_compiler_static_CXX='-non_shared'
17306 case $cc_basename in
17308 # Sun C++ 4.2, 5.x and Centerline C++
17309 lt_prog_compiler_pic_CXX='-KPIC'
17310 lt_prog_compiler_static_CXX='-Bstatic'
17311 lt_prog_compiler_wl_CXX='-Qoption ld '
17314 # Green Hills C++ Compiler
17315 lt_prog_compiler_pic_CXX='-PIC'
17322 case $cc_basename in
17325 lt_prog_compiler_pic_CXX='-pic'
17326 lt_prog_compiler_static_CXX='-Bstatic'
17330 lt_prog_compiler_pic_CXX='-pic'
17336 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17337 case $cc_basename in
17339 lt_prog_compiler_wl_CXX='-Wl,'
17340 lt_prog_compiler_pic_CXX='-KPIC'
17341 lt_prog_compiler_static_CXX='-Bstatic'
17346 case $cc_basename in
17348 # NonStop-UX NCC 3.20
17349 lt_prog_compiler_pic_CXX='-KPIC'
17358 lt_prog_compiler_can_build_shared_CXX=no
17364 # For platforms which do not support PIC, -DPIC is meaningless:
17366 lt_prog_compiler_pic_CXX=
17369 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17374 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17375 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17376 $as_echo_n "(cached) " >&6
17378 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17381 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17382 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17385 # Check to make sure the PIC flag actually works.
17387 if test -n "$lt_prog_compiler_pic_CXX"; then
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17389 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17390 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17391 $as_echo_n "(cached) " >&6
17393 lt_cv_prog_compiler_pic_works_CXX=no
17394 ac_outfile=conftest.$ac_objext
17395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17396 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17397 # Insert the option either (1) after the last *FLAGS variable, or
17398 # (2) before a word containing "conftest.", or (3) at the end.
17399 # Note that $ac_compile itself does not contain backslashes and begins
17400 # with a dollar sign (not a hyphen), so the echo should work correctly.
17401 # The option is referenced via a variable to avoid confusing sed.
17402 lt_compile=`echo "$ac_compile" | $SED \
17403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17405 -e 's:$: $lt_compiler_flag:'`
17406 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17407 (eval "$lt_compile" 2>conftest.err)
17409 cat conftest.err >&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 if (exit $ac_status) && test -s "$ac_outfile"; then
17412 # The compiler can only warn and ignore the option if not recognized
17413 # So say no if there are warnings other than the usual output.
17414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17417 lt_cv_prog_compiler_pic_works_CXX=yes
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17424 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17426 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17427 case $lt_prog_compiler_pic_CXX in
17429 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17432 lt_prog_compiler_pic_CXX=
17433 lt_prog_compiler_can_build_shared_CXX=no
17443 # Check to make sure the static flag actually works.
17445 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17447 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17448 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17449 $as_echo_n "(cached) " >&6
17451 lt_cv_prog_compiler_static_works_CXX=no
17452 save_LDFLAGS="$LDFLAGS"
17453 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17454 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17455 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17456 # The linker can only warn and ignore the option if not recognized
17457 # So say no if there are warnings
17458 if test -s conftest.err; then
17459 # Append any errors to the config.log.
17460 cat conftest.err 1>&5
17461 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17463 if diff conftest.exp conftest.er2 >/dev/null; then
17464 lt_cv_prog_compiler_static_works_CXX=yes
17467 lt_cv_prog_compiler_static_works_CXX=yes
17471 LDFLAGS="$save_LDFLAGS"
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17475 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17477 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17480 lt_prog_compiler_static_CXX=
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17487 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17488 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17489 $as_echo_n "(cached) " >&6
17491 lt_cv_prog_compiler_c_o_CXX=no
17492 $RM -r conftest 2>/dev/null
17496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17498 lt_compiler_flag="-o out/conftest2.$ac_objext"
17499 # Insert the option either (1) after the last *FLAGS variable, or
17500 # (2) before a word containing "conftest.", or (3) at the end.
17501 # Note that $ac_compile itself does not contain backslashes and begins
17502 # with a dollar sign (not a hyphen), so the echo should work correctly.
17503 lt_compile=`echo "$ac_compile" | $SED \
17504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17506 -e 's:$: $lt_compiler_flag:'`
17507 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17508 (eval "$lt_compile" 2>out/conftest.err)
17510 cat out/conftest.err >&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17514 # The compiler can only warn and ignore the option if not recognized
17515 # So say no if there are warnings
17516 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17517 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17518 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17519 lt_cv_prog_compiler_c_o_CXX=yes
17524 # SGI C++ compiler will create directory out/ii_files/ for
17525 # template instantiation
17526 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17527 $RM out/* && rmdir out
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17534 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17539 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17540 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17541 $as_echo_n "(cached) " >&6
17543 lt_cv_prog_compiler_c_o_CXX=no
17544 $RM -r conftest 2>/dev/null
17548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17550 lt_compiler_flag="-o out/conftest2.$ac_objext"
17551 # Insert the option either (1) after the last *FLAGS variable, or
17552 # (2) before a word containing "conftest.", or (3) at the end.
17553 # Note that $ac_compile itself does not contain backslashes and begins
17554 # with a dollar sign (not a hyphen), so the echo should work correctly.
17555 lt_compile=`echo "$ac_compile" | $SED \
17556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17558 -e 's:$: $lt_compiler_flag:'`
17559 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17560 (eval "$lt_compile" 2>out/conftest.err)
17562 cat out/conftest.err >&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17566 # The compiler can only warn and ignore the option if not recognized
17567 # So say no if there are warnings
17568 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17569 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17570 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17571 lt_cv_prog_compiler_c_o_CXX=yes
17576 # SGI C++ compiler will create directory out/ii_files/ for
17577 # template instantiation
17578 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17579 $RM out/* && rmdir out
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17586 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17591 hard_links="nottested"
17592 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17593 # do not overwrite the value of need_locks provided by the user
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17595 $as_echo_n "checking if we can lock with hard links... " >&6; }
17598 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17600 ln conftest.a conftest.b 2>&5 || hard_links=no
17601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17603 $as_echo "$hard_links" >&6; }
17604 if test "$hard_links" = no; then
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17606 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17616 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17618 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17619 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17622 # If we're using GNU nm, then we don't want the "-C" option.
17623 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17624 # Also, AIX nm treats weak defined symbols like other global defined
17625 # symbols, whereas GNU nm marks them as "W".
17626 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17627 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'
17629 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'
17633 export_symbols_cmds_CXX="$ltdll_cmds"
17635 cygwin* | mingw* | cegcc*)
17636 case $cc_basename in
17639 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'
17640 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17645 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17650 $as_echo "$ld_shlibs_CXX" >&6; }
17651 test "$ld_shlibs_CXX" = no && can_build_shared=no
17653 with_gnu_ld_CXX=$with_gnu_ld
17661 # Do we need to explicitly link libc?
17663 case "x$archive_cmds_need_lc_CXX" in
17665 # Assume -lc should be added
17666 archive_cmds_need_lc_CXX=yes
17668 if test "$enable_shared" = yes && test "$GCC" = yes; then
17669 case $archive_cmds_CXX in
17671 # FIXME: we may have to deal with multi-command sequences.
17674 # Test whether the compiler implicitly links with -lc since on some
17675 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17676 # to ld, don't add -lc before -lgcc.
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17678 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17679 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17680 $as_echo_n "(cached) " >&6
17683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17686 (eval $ac_compile) 2>&5
17688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17689 test $ac_status = 0; } 2>conftest.err; then
17692 libobjs=conftest.$ac_objext
17694 wl=$lt_prog_compiler_wl_CXX
17695 pic_flag=$lt_prog_compiler_pic_CXX
17701 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17702 allow_undefined_flag_CXX=
17703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17704 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17707 test $ac_status = 0; }
17709 lt_cv_archive_cmds_need_lc_CXX=no
17711 lt_cv_archive_cmds_need_lc_CXX=yes
17713 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17715 cat conftest.err 1>&5
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17721 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17722 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17793 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17795 library_names_spec=
17796 libname_spec='lib$name'
17800 postuninstall_cmds=
17804 shlibpath_overrides_runpath=unknown
17806 dynamic_linker="$host_os ld.so"
17807 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17808 need_lib_prefix=unknown
17809 hardcode_into_libs=no
17811 # when you set need_version to no, make sure it does not cause -set_version
17812 # flags to be left without arguments
17813 need_version=unknown
17818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17819 shlibpath_var=LIBPATH
17821 # AIX 3 has no versioning support, so we append a major version to the name.
17822 soname_spec='${libname}${release}${shared_ext}$major'
17829 hardcode_into_libs=yes
17830 if test "$host_cpu" = ia64; then
17831 # AIX 5 supports IA64
17832 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17833 shlibpath_var=LD_LIBRARY_PATH
17835 # With GCC up to 2.95.x, collect2 would create an import file
17836 # for dependence libraries. The import file would start with
17837 # the line `#! .'. This would cause the generated library to
17838 # depend on `.', always an invalid library. This was fixed in
17839 # development snapshots of GCC prior to 3.0.
17841 aix4 | aix4.[01] | aix4.[01].*)
17842 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17844 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17847 can_build_shared=no
17851 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17852 # soname into executable. Probably we can add versioning support to
17853 # collect2, so additional links can be useful in future.
17854 if test "$aix_use_runtimelinking" = yes; then
17855 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17856 # instead of lib<name>.a to let people know that these are not
17857 # typical AIX shared libraries.
17858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17860 # We preserve .a as extension for shared libraries through AIX4.2
17861 # and later when we are not doing run time linking.
17862 library_names_spec='${libname}${release}.a $libname.a'
17863 soname_spec='${libname}${release}${shared_ext}$major'
17865 shlibpath_var=LIBPATH
17872 # Since July 2007 AmigaOS4 officially supports .so libraries.
17873 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17877 library_names_spec='$libname.ixlibrary $libname.a'
17878 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17879 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'
17885 library_names_spec='${libname}${shared_ext}'
17886 dynamic_linker="$host_os ld.so"
17887 shlibpath_var=LIBRARY_PATH
17893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17894 soname_spec='${libname}${release}${shared_ext}$major'
17895 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17896 shlibpath_var=LD_LIBRARY_PATH
17897 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17898 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17899 # the default ld.so.conf also contains /usr/contrib/lib and
17900 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17901 # libtool to hard-code these into programs
17904 cygwin* | mingw* | pw32* | cegcc*)
17905 version_type=windows
17910 case $GCC,$cc_basename in
17913 library_names_spec='$libname.dll.a'
17914 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17915 postinstall_cmds='base_file=`basename \${file}`~
17916 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17917 dldir=$destdir/`dirname \$dlpath`~
17918 test -d \$dldir || mkdir -p \$dldir~
17919 $install_prog $dir/$dlname \$dldir/$dlname~
17920 chmod a+x \$dldir/$dlname~
17921 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17922 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17925 dlpath=$dir/\$dldll~
17927 shlibpath_overrides_runpath=yes
17931 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17932 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17936 # MinGW DLLs use traditional 'lib' prefix
17937 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17940 # pw32 DLLs use 'pw' prefix rather than 'lib'
17941 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17944 dynamic_linker='Win32 ld.exe'
17949 libname_spec='$name'
17950 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17951 library_names_spec='${libname}.dll.lib'
17955 sys_lib_search_path_spec=
17958 for lt_path in $LIB
17961 # Let DOS variable expansion print the short 8.3 style file name.
17962 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17963 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17966 # Convert to MSYS style.
17967 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17970 # Convert to unix form, then to dos form, then back to unix form
17971 # but this time dos style (no spaces!) so that the unix form looks
17972 # like /cygdrive/c/PROGRA~1:/cygdr...
17973 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17974 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17975 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17978 sys_lib_search_path_spec="$LIB"
17979 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17980 # It is most probably a Windows format PATH.
17981 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17983 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17985 # FIXME: find the short name or the path components, as spaces are
17986 # common. (e.g. "Program Files" -> "PROGRA~1")
17990 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17991 postinstall_cmds='base_file=`basename \${file}`~
17992 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17993 dldir=$destdir/`dirname \$dlpath`~
17994 test -d \$dldir || mkdir -p \$dldir~
17995 $install_prog $dir/$dlname \$dldir/$dlname'
17996 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17997 dlpath=$dir/\$dldll~
17999 shlibpath_overrides_runpath=yes
18000 dynamic_linker='Win32 link.exe'
18004 # Assume MSVC wrapper
18005 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18006 dynamic_linker='Win32 ld.exe'
18009 # FIXME: first we should search . and the directory the executable is in
18013 darwin* | rhapsody*)
18014 dynamic_linker="$host_os dyld"
18015 version_type=darwin
18018 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18019 soname_spec='${libname}${release}${major}$shared_ext'
18020 shlibpath_overrides_runpath=yes
18021 shlibpath_var=DYLD_LIBRARY_PATH
18022 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18024 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18032 soname_spec='${libname}${release}${shared_ext}$major'
18033 shlibpath_var=LD_LIBRARY_PATH
18040 freebsd* | dragonfly*)
18041 # DragonFly does not have aout. When/if they implement a new
18042 # versioning mechanism, adjust this.
18043 if test -x /usr/bin/objformat; then
18044 objformat=`/usr/bin/objformat`
18047 freebsd[123]*) objformat=aout ;;
18048 *) objformat=elf ;;
18051 version_type=freebsd-$objformat
18052 case $version_type in
18054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18063 shlibpath_var=LD_LIBRARY_PATH
18066 shlibpath_overrides_runpath=yes
18068 freebsd3.[01]* | freebsdelf3.[01]*)
18069 shlibpath_overrides_runpath=yes
18070 hardcode_into_libs=yes
18072 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18073 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18074 shlibpath_overrides_runpath=no
18075 hardcode_into_libs=yes
18077 *) # from 4.6 on, and DragonFly
18078 shlibpath_overrides_runpath=yes
18079 hardcode_into_libs=yes
18088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18089 soname_spec='${libname}${release}${shared_ext}$major'
18090 shlibpath_var=LD_LIBRARY_PATH
18091 hardcode_into_libs=yes
18098 dynamic_linker="$host_os runtime_loader"
18099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18100 soname_spec='${libname}${release}${shared_ext}$major'
18101 shlibpath_var=LIBRARY_PATH
18102 shlibpath_overrides_runpath=yes
18103 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18104 hardcode_into_libs=yes
18107 hpux9* | hpux10* | hpux11*)
18108 # Give a soname corresponding to the major version so that dld.sl refuses to
18109 # link against other versions.
18116 hardcode_into_libs=yes
18117 dynamic_linker="$host_os dld.so"
18118 shlibpath_var=LD_LIBRARY_PATH
18119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18121 soname_spec='${libname}${release}${shared_ext}$major'
18122 if test "X$HPUX_IA64_MODE" = X32; then
18123 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18125 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18131 hardcode_into_libs=yes
18132 dynamic_linker="$host_os dld.sl"
18133 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18136 soname_spec='${libname}${release}${shared_ext}$major'
18137 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18138 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18142 dynamic_linker="$host_os dld.sl"
18143 shlibpath_var=SHLIB_PATH
18144 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18146 soname_spec='${libname}${release}${shared_ext}$major'
18149 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18150 postinstall_cmds='chmod 555 $lib'
18151 # or fails outright, so override atomically:
18152 install_override_mode=555
18159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18160 soname_spec='${libname}${release}${shared_ext}$major'
18161 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18162 shlibpath_var=LD_LIBRARY_PATH
18163 shlibpath_overrides_runpath=no
18164 hardcode_into_libs=yes
18167 irix5* | irix6* | nonstopux*)
18169 nonstopux*) version_type=nonstopux ;;
18171 if test "$lt_cv_prog_gnu_ld" = yes; then
18179 soname_spec='${libname}${release}${shared_ext}$major'
18180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18182 irix5* | nonstopux*)
18183 libsuff= shlibsuff=
18186 case $LD in # libtool.m4 will add one of these switches to LD
18187 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18188 libsuff= shlibsuff= libmagic=32-bit;;
18189 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18190 libsuff=32 shlibsuff=N32 libmagic=N32;;
18191 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18192 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18193 *) libsuff= shlibsuff= libmagic=never-match;;
18197 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18198 shlibpath_overrides_runpath=no
18199 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18200 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18201 hardcode_into_libs=yes
18204 # No shared lib support for Linux oldld, aout, or coff.
18205 linux*oldld* | linux*aout* | linux*coff*)
18209 # This must be Linux ELF.
18210 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18215 soname_spec='${libname}${release}${shared_ext}$major'
18216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18217 shlibpath_var=LD_LIBRARY_PATH
18218 shlibpath_overrides_runpath=no
18220 # Some binutils ld are patched to set DT_RUNPATH
18221 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18222 $as_echo_n "(cached) " >&6
18224 lt_cv_shlibpath_overrides_runpath=no
18225 save_LDFLAGS=$LDFLAGS
18226 save_libdir=$libdir
18227 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18228 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230 /* end confdefs.h. */
18240 if ac_fn_cxx_try_link "$LINENO"; then :
18241 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18242 lt_cv_shlibpath_overrides_runpath=yes
18245 rm -f core conftest.err conftest.$ac_objext \
18246 conftest$ac_exeext conftest.$ac_ext
18247 LDFLAGS=$save_LDFLAGS
18248 libdir=$save_libdir
18252 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18254 # This implies no fast_install, which is unacceptable.
18255 # Some rework will be needed to allow for fast_install
18256 # before this can be enabled.
18257 hardcode_into_libs=yes
18259 # Append ld.so.conf contents to the search path
18260 if test -f /etc/ld.so.conf; then
18261 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' ' '`
18262 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18265 # We used to test for /lib/ld.so.1 and disable shared libraries on
18266 # powerpc, because MkLinux only supported shared libraries with the
18267 # GNU dynamic linker. Since this was broken with cross compilers,
18268 # most powerpc-linux boxes support dynamic linking these days and
18269 # people can always --disable-shared, the test was removed, and we
18270 # assume the GNU/Linux dynamic linker is in use.
18271 dynamic_linker='GNU/Linux ld.so'
18278 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18281 dynamic_linker='NetBSD (a.out) ld.so'
18283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18284 soname_spec='${libname}${release}${shared_ext}$major'
18285 dynamic_linker='NetBSD ld.elf_so'
18287 shlibpath_var=LD_LIBRARY_PATH
18288 shlibpath_overrides_runpath=yes
18289 hardcode_into_libs=yes
18294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18295 shlibpath_var=LD_LIBRARY_PATH
18296 shlibpath_overrides_runpath=yes
18303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18304 soname_spec='${libname}${release}${shared_ext}$major'
18305 shlibpath_var=LD_LIBRARY_PATH
18306 shlibpath_overrides_runpath=no
18307 hardcode_into_libs=yes
18308 dynamic_linker='ldqnx.so'
18313 sys_lib_dlsearch_path_spec="/usr/lib"
18315 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18317 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18318 *) need_version=no ;;
18320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18322 shlibpath_var=LD_LIBRARY_PATH
18323 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18325 openbsd2.[89] | openbsd2.[89].*)
18326 shlibpath_overrides_runpath=no
18329 shlibpath_overrides_runpath=yes
18333 shlibpath_overrides_runpath=yes
18338 libname_spec='$name'
18341 library_names_spec='$libname${shared_ext} $libname.a'
18342 dynamic_linker='OS/2 ld.exe'
18343 shlibpath_var=LIBPATH
18346 osf3* | osf4* | osf5*)
18350 soname_spec='${libname}${release}${shared_ext}$major'
18351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18352 shlibpath_var=LD_LIBRARY_PATH
18353 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18354 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18366 soname_spec='${libname}${release}${shared_ext}$major'
18367 shlibpath_var=LD_LIBRARY_PATH
18368 shlibpath_overrides_runpath=yes
18369 hardcode_into_libs=yes
18370 # ldd complains unless libraries are executable
18371 postinstall_cmds='chmod +x $lib'
18376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18377 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18378 shlibpath_var=LD_LIBRARY_PATH
18379 shlibpath_overrides_runpath=yes
18380 if test "$with_gnu_ld" = yes; then
18388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18389 soname_spec='${libname}${release}${shared_ext}$major'
18390 shlibpath_var=LD_LIBRARY_PATH
18391 case $host_vendor in
18393 shlibpath_overrides_runpath=no
18395 runpath_var=LD_RUN_PATH
18403 shlibpath_overrides_runpath=no
18404 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18410 if test -d /usr/nec ;then
18412 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18413 soname_spec='$libname${shared_ext}.$major'
18414 shlibpath_var=LD_LIBRARY_PATH
18418 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18419 version_type=freebsd-elf
18422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18423 soname_spec='${libname}${release}${shared_ext}$major'
18424 shlibpath_var=LD_LIBRARY_PATH
18425 shlibpath_overrides_runpath=yes
18426 hardcode_into_libs=yes
18427 if test "$with_gnu_ld" = yes; then
18428 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18430 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18433 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18437 sys_lib_dlsearch_path_spec='/usr/lib'
18441 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18446 shlibpath_var=LD_LIBRARY_PATH
18447 shlibpath_overrides_runpath=no
18448 hardcode_into_libs=yes
18453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18454 soname_spec='${libname}${release}${shared_ext}$major'
18455 shlibpath_var=LD_LIBRARY_PATH
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18463 $as_echo "$dynamic_linker" >&6; }
18464 test "$dynamic_linker" = no && can_build_shared=no
18466 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18467 if test "$GCC" = yes; then
18468 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18471 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18472 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18474 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18475 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18516 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18517 hardcode_action_CXX=
18518 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18519 test -n "$runpath_var_CXX" ||
18520 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18522 # We can hardcode non-existent directories.
18523 if test "$hardcode_direct_CXX" != no &&
18524 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18525 # have to relink, otherwise we might link with an installed library
18526 # when we should be linking with a yet-to-be-installed one
18527 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18528 test "$hardcode_minus_L_CXX" != no; then
18529 # Linking always hardcodes the temporary library directory.
18530 hardcode_action_CXX=relink
18532 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18533 hardcode_action_CXX=immediate
18536 # We cannot hardcode anything, or else we can only hardcode existing
18538 hardcode_action_CXX=unsupported
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18541 $as_echo "$hardcode_action_CXX" >&6; }
18543 if test "$hardcode_action_CXX" = relink ||
18544 test "$inherit_rpath_CXX" = yes; then
18545 # Fast installation is not supported
18546 enable_fast_install=no
18547 elif test "$shlibpath_overrides_runpath" = yes ||
18548 test "$enable_shared" = no; then
18549 # Fast installation is not necessary
18550 enable_fast_install=needless
18559 fi # test -n "$compiler"
18562 CFLAGS=$lt_save_CFLAGS
18566 with_gnu_ld=$lt_save_with_gnu_ld
18567 lt_cv_path_LDCXX=$lt_cv_path_LD
18568 lt_cv_path_LD=$lt_save_path_LD
18569 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18570 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18571 fi # test "$_lt_caught_CXX_error" != yes
18574 ac_cpp='$CPP $CPPFLAGS'
18575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18591 ac_config_commands="$ac_config_commands libtool"
18596 # Only expand once:
18601 # NTP has (so far) been relying on leading-edge autogen, which
18602 # means we need the appropriate corresponding libopts as well.
18603 # Therefore, by default:
18604 # - use the version of libopts we ship with
18605 # - do not install it
18606 # - build a static copy (AC_DISABLE_SHARED - done earlier)
18607 case "${enable_local_libopts+set}" in
18609 *) enable_local_libopts=yes ;;
18611 case "${enable_libopts_install+set}" in
18613 *) enable_libopts_install=no ;;
18616 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18617 if test "x$ac_cv_type_pid_t" = xyes; then :
18621 cat >>confdefs.h <<_ACEOF
18629 ac_header_dirent=no
18630 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18631 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18633 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18634 if eval \${$as_ac_Header+:} false; then :
18635 $as_echo_n "(cached) " >&6
18637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18638 /* end confdefs.h. */
18639 #include <sys/types.h>
18651 if ac_fn_c_try_compile "$LINENO"; then :
18652 eval "$as_ac_Header=yes"
18654 eval "$as_ac_Header=no"
18656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18658 eval ac_res=\$$as_ac_Header
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18660 $as_echo "$ac_res" >&6; }
18661 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18662 cat >>confdefs.h <<_ACEOF
18663 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18666 ac_header_dirent=$ac_hdr; break
18670 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18671 if test $ac_header_dirent = dirent.h; then
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18673 $as_echo_n "checking for library containing opendir... " >&6; }
18674 if ${ac_cv_search_opendir+:} false; then :
18675 $as_echo_n "(cached) " >&6
18677 ac_func_search_save_LIBS=$LIBS
18678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679 /* end confdefs.h. */
18681 /* Override any GCC internal prototype to avoid an error.
18682 Use char because int might match the return type of a GCC
18683 builtin and then its argument prototype would still apply. */
18696 for ac_lib in '' dir; do
18697 if test -z "$ac_lib"; then
18698 ac_res="none required"
18701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18703 if ac_fn_c_try_link "$LINENO"; then :
18704 ac_cv_search_opendir=$ac_res
18706 rm -f core conftest.err conftest.$ac_objext \
18708 if ${ac_cv_search_opendir+:} false; then :
18712 if ${ac_cv_search_opendir+:} false; then :
18715 ac_cv_search_opendir=no
18717 rm conftest.$ac_ext
18718 LIBS=$ac_func_search_save_LIBS
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18721 $as_echo "$ac_cv_search_opendir" >&6; }
18722 ac_res=$ac_cv_search_opendir
18723 if test "$ac_res" != no; then :
18724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18730 $as_echo_n "checking for library containing opendir... " >&6; }
18731 if ${ac_cv_search_opendir+:} false; then :
18732 $as_echo_n "(cached) " >&6
18734 ac_func_search_save_LIBS=$LIBS
18735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18736 /* end confdefs.h. */
18738 /* Override any GCC internal prototype to avoid an error.
18739 Use char because int might match the return type of a GCC
18740 builtin and then its argument prototype would still apply. */
18753 for ac_lib in '' x; do
18754 if test -z "$ac_lib"; then
18755 ac_res="none required"
18758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18760 if ac_fn_c_try_link "$LINENO"; then :
18761 ac_cv_search_opendir=$ac_res
18763 rm -f core conftest.err conftest.$ac_objext \
18765 if ${ac_cv_search_opendir+:} false; then :
18769 if ${ac_cv_search_opendir+:} false; then :
18772 ac_cv_search_opendir=no
18774 rm conftest.$ac_ext
18775 LIBS=$ac_func_search_save_LIBS
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18778 $as_echo "$ac_cv_search_opendir" >&6; }
18779 ac_res=$ac_cv_search_opendir
18780 if test "$ac_res" != no; then :
18781 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18788 # =================
18790 # =================
18792 sys/mman.h sys/param.h sys/poll.h sys/procset.h \
18793 sys/select.h sys/socket.h sys/stropts.h sys/time.h \
18794 sys/un.h sys/wait.h dlfcn.h errno.h \
18795 fcntl.h libgen.h libintl.h memory.h \
18796 netinet/in.h setjmp.h stdbool.h sysexits.h \
18799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18800 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18801 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18802 cat >>confdefs.h <<_ACEOF
18803 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18811 for ac_header in stdarg.h varargs.h
18813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18814 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18815 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18816 cat >>confdefs.h <<_ACEOF
18817 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18819 lo_have_arg_hdr=true;break
18821 lo_have_arg_hdr=false
18827 for ac_header in string.h strings.h
18829 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18830 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18831 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18832 cat >>confdefs.h <<_ACEOF
18833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18835 lo_have_str_hdr=true;break
18837 lo_have_str_hdr=false
18843 for ac_header in limits.h sys/limits.h values.h
18845 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18846 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18847 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18848 cat >>confdefs.h <<_ACEOF
18849 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18851 lo_have_lim_hdr=true;break
18853 lo_have_lim_hdr=false
18859 for ac_header in inttypes.h stdint.h
18861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18862 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18863 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18864 cat >>confdefs.h <<_ACEOF
18865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18867 lo_have_typ_hdr=true;break
18869 lo_have_typ_hdr=false
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
18876 $as_echo_n "checking for working stdnoreturn.h... " >&6; }
18877 if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
18878 $as_echo_n "(cached) " >&6
18880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18881 /* end confdefs.h. */
18882 #include <stdlib.h>
18883 #include <stdnoreturn.h>
18884 /* Do not check for 'noreturn' after the return type.
18885 C11 allows it, but it's rarely done that way
18886 and circa-2012 bleeding-edge GCC rejects it when given
18887 -Werror=old-style-declaration. */
18888 noreturn void foo1 (void) { exit (0); }
18889 _Noreturn void foo2 (void) { exit (0); }
18890 int testit (int argc, char **argv) {
18893 (argv[0][0] ? foo1 : foo2) ();
18904 if ac_fn_c_try_compile "$LINENO"; then :
18905 gl_cv_header_working_stdnoreturn_h=yes
18907 gl_cv_header_working_stdnoreturn_h=no
18909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
18912 $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
18914 if test $gl_cv_header_working_stdnoreturn_h = yes; then
18917 STDNORETURN_H='stdnoreturn.h'
18921 if test -n "$STDNORETURN_H"; then
18922 GL_GENERATE_STDNORETURN_H_TRUE=
18923 GL_GENERATE_STDNORETURN_H_FALSE='#'
18925 GL_GENERATE_STDNORETURN_H_TRUE='#'
18926 GL_GENERATE_STDNORETURN_H_FALSE=
18931 # ----------------------------------------------------------------------
18932 # check for various programs used during the build.
18933 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
18934 # ----------------------------------------------------------------------
18935 for ac_header in runetype.h wchar.h
18937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18938 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18939 $ac_includes_default
18940 #if HAVE_RUNETYPE_H
18941 # include <runetype.h>
18945 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18946 cat >>confdefs.h <<_ACEOF
18947 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18955 # Check whether --enable-nls was given.
18956 if test "${enable_nls+set}" = set; then :
18957 enableval=$enable_nls;
18960 if test "x$enable_nls" != "xno" && \
18961 test "X${ac_cv_header_libintl_h}" = Xyes; then :
18964 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18968 # --------------------------------------------
18969 # Verify certain entries from AC_CHECK_HEADERS
18970 # --------------------------------------------
18971 ${lo_have_arg_hdr} || \
18972 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
18974 ${lo_have_str_hdr} || \
18975 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
18977 ${lo_have_lim_hdr} || \
18978 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
18980 ${lo_have_typ_hdr} || \
18981 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
18983 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
18984 do eval as_ac_var=\${ac_cv_header_${f}_h}
18985 test "X${as_ac_var}" = Xyes || {
18986 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
18989 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
18990 echo '#include <stdint.h>' > inttypes.h
18992 # ----------------------------------------------------------------------
18993 # Checks for typedefs
18994 # ----------------------------------------------------------------------
18995 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
18996 if test "x$ac_cv_type_wchar_t" = xyes; then :
18998 cat >>confdefs.h <<_ACEOF
18999 #define HAVE_WCHAR_T 1
19005 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
19006 $ac_includes_default
19007 #if HAVE_RUNETYPE_H
19008 # include <runetype.h>
19011 # include <wchar.h>
19015 if test "x$ac_cv_type_wint_t" = xyes; then :
19017 cat >>confdefs.h <<_ACEOF
19018 #define HAVE_WINT_T 1
19024 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
19025 if test "x$ac_cv_type_int8_t" = xyes; then :
19027 cat >>confdefs.h <<_ACEOF
19028 #define HAVE_INT8_T 1
19033 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
19034 if test "x$ac_cv_type_uint8_t" = xyes; then :
19036 cat >>confdefs.h <<_ACEOF
19037 #define HAVE_UINT8_T 1
19042 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
19043 if test "x$ac_cv_type_int16_t" = xyes; then :
19045 cat >>confdefs.h <<_ACEOF
19046 #define HAVE_INT16_T 1
19051 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
19052 if test "x$ac_cv_type_uint16_t" = xyes; then :
19054 cat >>confdefs.h <<_ACEOF
19055 #define HAVE_UINT16_T 1
19060 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
19061 if test "x$ac_cv_type_int32_t" = xyes; then :
19063 cat >>confdefs.h <<_ACEOF
19064 #define HAVE_INT32_T 1
19069 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
19070 if test "x$ac_cv_type_uint32_t" = xyes; then :
19072 cat >>confdefs.h <<_ACEOF
19073 #define HAVE_UINT32_T 1
19078 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
19079 if test "x$ac_cv_type_intptr_t" = xyes; then :
19081 cat >>confdefs.h <<_ACEOF
19082 #define HAVE_INTPTR_T 1
19087 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
19088 if test "x$ac_cv_type_uintptr_t" = xyes; then :
19090 cat >>confdefs.h <<_ACEOF
19091 #define HAVE_UINTPTR_T 1
19096 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
19097 if test "x$ac_cv_type_uint_t" = xyes; then :
19099 cat >>confdefs.h <<_ACEOF
19100 #define HAVE_UINT_T 1
19105 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19106 if test "x$ac_cv_type_pid_t" = xyes; then :
19108 cat >>confdefs.h <<_ACEOF
19109 #define HAVE_PID_T 1
19114 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19115 if test "x$ac_cv_type_size_t" = xyes; then :
19117 cat >>confdefs.h <<_ACEOF
19118 #define HAVE_SIZE_T 1
19123 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19124 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19126 cat >>confdefs.h <<_ACEOF
19127 #define HAVE_PTRDIFF_T 1
19133 # The cast to long int works around a bug in the HP C Compiler
19134 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19135 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19136 # This bug is HP SR number 8606223364.
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
19138 $as_echo_n "checking size of char *... " >&6; }
19139 if ${ac_cv_sizeof_char_p+:} false; then :
19140 $as_echo_n "(cached) " >&6
19142 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
19145 if test "$ac_cv_type_char_p" = yes; then
19146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19148 as_fn_error 77 "cannot compute sizeof (char *)
19149 See \`config.log' for more details" "$LINENO" 5; }
19151 ac_cv_sizeof_char_p=0
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
19157 $as_echo "$ac_cv_sizeof_char_p" >&6; }
19161 cat >>confdefs.h <<_ACEOF
19162 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
19166 # The cast to long int works around a bug in the HP C Compiler
19167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19169 # This bug is HP SR number 8606223364.
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
19171 $as_echo_n "checking size of int... " >&6; }
19172 if ${ac_cv_sizeof_int+:} false; then :
19173 $as_echo_n "(cached) " >&6
19175 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
19178 if test "$ac_cv_type_int" = yes; then
19179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19181 as_fn_error 77 "cannot compute sizeof (int)
19182 See \`config.log' for more details" "$LINENO" 5; }
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
19190 $as_echo "$ac_cv_sizeof_int" >&6; }
19194 cat >>confdefs.h <<_ACEOF
19195 #define SIZEOF_INT $ac_cv_sizeof_int
19199 # The cast to long int works around a bug in the HP C Compiler
19200 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19201 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19202 # This bug is HP SR number 8606223364.
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
19204 $as_echo_n "checking size of long... " >&6; }
19205 if ${ac_cv_sizeof_long+:} false; then :
19206 $as_echo_n "(cached) " >&6
19208 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
19211 if test "$ac_cv_type_long" = yes; then
19212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19214 as_fn_error 77 "cannot compute sizeof (long)
19215 See \`config.log' for more details" "$LINENO" 5; }
19217 ac_cv_sizeof_long=0
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
19223 $as_echo "$ac_cv_sizeof_long" >&6; }
19227 cat >>confdefs.h <<_ACEOF
19228 #define SIZEOF_LONG $ac_cv_sizeof_long
19232 # The cast to long int works around a bug in the HP C Compiler
19233 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19234 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19235 # This bug is HP SR number 8606223364.
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
19237 $as_echo_n "checking size of short... " >&6; }
19238 if ${ac_cv_sizeof_short+:} false; then :
19239 $as_echo_n "(cached) " >&6
19241 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
19244 if test "$ac_cv_type_short" = yes; then
19245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19247 as_fn_error 77 "cannot compute sizeof (short)
19248 See \`config.log' for more details" "$LINENO" 5; }
19250 ac_cv_sizeof_short=0
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
19256 $as_echo "$ac_cv_sizeof_short" >&6; }
19260 cat >>confdefs.h <<_ACEOF
19261 #define SIZEOF_SHORT $ac_cv_sizeof_short
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
19270 $as_echo_n "checking for pathfind in -lgen... " >&6; }
19271 if ${ac_cv_lib_gen_pathfind+:} false; then :
19272 $as_echo_n "(cached) " >&6
19274 ac_check_lib_save_LIBS=$LIBS
19276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19277 /* end confdefs.h. */
19279 /* Override any GCC internal prototype to avoid an error.
19280 Use char because int might match the return type of a GCC
19281 builtin and then its argument prototype would still apply. */
19289 return pathfind ();
19294 if ac_fn_c_try_link "$LINENO"; then :
19295 ac_cv_lib_gen_pathfind=yes
19297 ac_cv_lib_gen_pathfind=no
19299 rm -f core conftest.err conftest.$ac_objext \
19300 conftest$ac_exeext conftest.$ac_ext
19301 LIBS=$ac_check_lib_save_LIBS
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
19304 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
19305 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
19306 cat >>confdefs.h <<_ACEOF
19307 #define HAVE_LIBGEN 1
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
19315 $as_echo_n "checking for gettext in -lintl... " >&6; }
19316 if ${ac_cv_lib_intl_gettext+:} false; then :
19317 $as_echo_n "(cached) " >&6
19319 ac_check_lib_save_LIBS=$LIBS
19320 LIBS="-lintl $LIBS"
19321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19322 /* end confdefs.h. */
19324 /* Override any GCC internal prototype to avoid an error.
19325 Use char because int might match the return type of a GCC
19326 builtin and then its argument prototype would still apply. */
19339 if ac_fn_c_try_link "$LINENO"; then :
19340 ac_cv_lib_intl_gettext=yes
19342 ac_cv_lib_intl_gettext=no
19344 rm -f core conftest.err conftest.$ac_objext \
19345 conftest$ac_exeext conftest.$ac_ext
19346 LIBS=$ac_check_lib_save_LIBS
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
19349 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
19350 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
19351 cat >>confdefs.h <<_ACEOF
19352 #define HAVE_LIBINTL 1
19355 LIBS="-lintl $LIBS"
19359 for ac_func in vprintf
19361 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19362 if test "x$ac_cv_func_vprintf" = xyes; then :
19363 cat >>confdefs.h <<_ACEOF
19364 #define HAVE_VPRINTF 1
19367 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19368 if test "x$ac_cv_func__doprnt" = xyes; then :
19370 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19378 for ac_header in vfork.h
19380 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19381 if test "x$ac_cv_header_vfork_h" = xyes; then :
19382 cat >>confdefs.h <<_ACEOF
19383 #define HAVE_VFORK_H 1
19390 for ac_func in fork vfork
19392 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19393 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19394 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19395 cat >>confdefs.h <<_ACEOF
19396 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19402 if test "x$ac_cv_func_fork" = xyes; then
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19404 $as_echo_n "checking for working fork... " >&6; }
19405 if ${ac_cv_func_fork_works+:} false; then :
19406 $as_echo_n "(cached) " >&6
19408 if test "$cross_compiling" = yes; then :
19409 ac_cv_func_fork_works=cross
19411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19412 /* end confdefs.h. */
19413 $ac_includes_default
19418 /* By Ruediger Kuhlmann. */
19419 return fork () < 0;
19425 if ac_fn_c_try_run "$LINENO"; then :
19426 ac_cv_func_fork_works=yes
19428 ac_cv_func_fork_works=no
19430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19431 conftest.$ac_objext conftest.beam conftest.$ac_ext
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19436 $as_echo "$ac_cv_func_fork_works" >&6; }
19439 ac_cv_func_fork_works=$ac_cv_func_fork
19441 if test "x$ac_cv_func_fork_works" = xcross; then
19443 *-*-amigaos* | *-*-msdosdjgpp*)
19444 # Override, as these systems have only a dummy fork() stub
19445 ac_cv_func_fork_works=no
19448 ac_cv_func_fork_works=yes
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19452 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19454 ac_cv_func_vfork_works=$ac_cv_func_vfork
19455 if test "x$ac_cv_func_vfork" = xyes; then
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19457 $as_echo_n "checking for working vfork... " >&6; }
19458 if ${ac_cv_func_vfork_works+:} false; then :
19459 $as_echo_n "(cached) " >&6
19461 if test "$cross_compiling" = yes; then :
19462 ac_cv_func_vfork_works=cross
19464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19465 /* end confdefs.h. */
19466 /* Thanks to Paul Eggert for this test. */
19467 $ac_includes_default
19468 #include <sys/wait.h>
19469 #ifdef HAVE_VFORK_H
19470 # include <vfork.h>
19472 /* On some sparc systems, changes by the child to local and incoming
19473 argument registers are propagated back to the parent. The compiler
19474 is told about this with #include <vfork.h>, but some compilers
19475 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19476 static variable whose address is put into a register that is
19477 clobbered by the vfork. */
19480 sparc_address_test (int arg)
19482 sparc_address_test (arg) int arg;
19485 static pid_t child;
19503 pid_t parent = getpid ();
19506 sparc_address_test (0);
19511 /* Here is another test for sparc vfork register problems. This
19512 test uses lots of local variables, at least as many local
19513 variables as main has allocated so far including compiler
19514 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19515 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19516 reuse the register of parent for one of the local variables,
19517 since it will think that parent can't possibly be used any more
19518 in this routine. Assigning to the local variable will thus
19519 munge parent in the parent process. */
19521 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19522 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19523 /* Convince the compiler that p..p7 are live; otherwise, it might
19524 use the same hardware register for all 8 local variables. */
19525 if (p != p1 || p != p2 || p != p3 || p != p4
19526 || p != p5 || p != p6 || p != p7)
19529 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19530 from child file descriptors. If the child closes a descriptor
19531 before it execs or exits, this munges the parent's descriptor
19532 as well. Test for this by closing stdout in the child. */
19533 _exit(close(fileno(stdout)) != 0);
19538 while (wait(&status) != child)
19541 /* Was there some problem with vforking? */
19544 /* Did the child fail? (This shouldn't happen.) */
19547 /* Did the vfork/compiler bug occur? */
19548 || parent != getpid()
19550 /* Did the file descriptor bug occur? */
19551 || fstat(fileno(stdout), &st) != 0
19556 if ac_fn_c_try_run "$LINENO"; then :
19557 ac_cv_func_vfork_works=yes
19559 ac_cv_func_vfork_works=no
19561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19562 conftest.$ac_objext conftest.beam conftest.$ac_ext
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19567 $as_echo "$ac_cv_func_vfork_works" >&6; }
19570 if test "x$ac_cv_func_fork_works" = xcross; then
19571 ac_cv_func_vfork_works=$ac_cv_func_vfork
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19573 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19576 if test "x$ac_cv_func_vfork_works" = xyes; then
19578 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19582 $as_echo "#define vfork fork" >>confdefs.h
19585 if test "x$ac_cv_func_fork_works" = xyes; then
19587 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19591 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
19592 strrchr strsignal fchmod fstat chmod
19594 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19595 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19596 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19597 cat >>confdefs.h <<_ACEOF
19598 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
19605 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
19606 if ${ac_cv_path_SED+:} false; then :
19607 $as_echo_n "(cached) " >&6
19609 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
19610 for ac_i in 1 2 3 4 5 6 7; do
19611 ac_script="$ac_script$as_nl$ac_script"
19613 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
19614 { ac_script=; unset ac_script;}
19615 if test -z "$SED"; then
19616 ac_path_SED_found=false
19617 # Loop through the user's path and test for each of PROGNAME-LIST
19618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19619 for as_dir in $PATH
19622 test -z "$as_dir" && as_dir=.
19623 for ac_prog in sed gsed; do
19624 for ac_exec_ext in '' $ac_executable_extensions; do
19625 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
19626 as_fn_executable_p "$ac_path_SED" || continue
19627 # Check for GNU ac_path_SED and select it if it is found.
19628 # Check for GNU $ac_path_SED
19629 case `"$ac_path_SED" --version 2>&1` in
19631 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
19634 $as_echo_n 0123456789 >"conftest.in"
19637 cat "conftest.in" "conftest.in" >"conftest.tmp"
19638 mv "conftest.tmp" "conftest.in"
19639 cp "conftest.in" "conftest.nl"
19640 $as_echo '' >> "conftest.nl"
19641 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
19642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19643 as_fn_arith $ac_count + 1 && ac_count=$as_val
19644 if test $ac_count -gt ${ac_path_SED_max-0}; then
19645 # Best one so far, save it but keep looking for a better one
19646 ac_cv_path_SED="$ac_path_SED"
19647 ac_path_SED_max=$ac_count
19649 # 10*(2^10) chars as input seems more than enough
19650 test $ac_count -gt 10 && break
19652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19655 $ac_path_SED_found && break 3
19660 if test -z "$ac_cv_path_SED"; then
19661 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
19664 ac_cv_path_SED=$SED
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
19669 $as_echo "$ac_cv_path_SED" >&6; }
19670 SED="$ac_cv_path_SED"
19675 POSIX_SHELL=`which bash`
19676 test -x "$POSIX_SHELL" && break
19677 POSIX_SHELL=`which dash`
19678 test -x "$POSIX_SHELL" && break
19679 POSIX_SHELL=/usr/xpg4/bin/sh
19680 test -x "$POSIX_SHELL" && break
19681 POSIX_SHELL=`/bin/sh -c '
19683 if ! true ; then exit 1 ; fi
19685 test -x "$POSIX_SHELL" && break
19686 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
19689 cat >>confdefs.h <<_ACEOF
19690 #define POSIX_SHELL "${POSIX_SHELL}"
19697 LIBOPTS_BUILD_BLOCKED=true
19700 NEED_LIBOPTS_DIR=''
19702 # Check whether --enable-local-libopts was given.
19703 if test "${enable_local_libopts+set}" = set; then :
19704 enableval=$enable_local_libopts;
19705 if test x$enableval = xyes ; then
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
19707 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
19708 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19709 NEED_LIBOPTS_DIR=true
19710 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19715 # Check whether --enable-libopts-install was given.
19716 if test "${enable_libopts_install+set}" = set; then :
19717 enableval=$enable_libopts_install;
19720 if test "X${enable_libopts_install}" = Xyes; then
19721 INSTALL_LIBOPTS_TRUE=
19722 INSTALL_LIBOPTS_FALSE='#'
19724 INSTALL_LIBOPTS_TRUE='#'
19725 INSTALL_LIBOPTS_FALSE=
19729 if test -z "${NEED_LIBOPTS_DIR}" ; then
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
19731 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
19733 # Check whether --with-autoopts-config was given.
19734 if test "${with_autoopts_config+set}" = set; then :
19735 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
19738 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
19739 if ${lo_cv_with_autoopts_config+:} false; then :
19740 $as_echo_n "(cached) " >&6
19742 if autoopts-config --help 2>/dev/null 1>&2
19743 then lo_cv_with_autoopts_config=autoopts-config
19744 elif libopts-config --help 2>/dev/null 1>&2
19745 then lo_cv_with_autoopts_config=libopts-config
19746 else lo_cv_with_autoopts_config=no ; fi
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
19749 $as_echo "$lo_cv_with_autoopts_config" >&6; }
19752 # end of AC_ARG_WITH
19754 if ${lo_cv_test_autoopts+:} false; then :
19755 $as_echo_n "(cached) " >&6
19758 if test -z "${lo_cv_with_autoopts_config}" \
19759 -o X"${lo_cv_with_autoopts_config}" = Xno
19761 if autoopts-config --help 2>/dev/null 1>&2
19762 then lo_cv_with_autoopts_config=autoopts-config
19763 elif libopts-config --help 2>/dev/null 1>&2
19764 then lo_cv_with_autoopts_config=libopts-config
19765 else lo_cv_with_autoopts_config=false ; fi
19767 lo_cv_test_autoopts=`
19768 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
19769 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
19770 then lo_cv_test_autoopts=no ; fi
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
19775 $as_echo "${lo_cv_test_autoopts}" >&6; }
19777 if test "X${lo_cv_test_autoopts}" != Xno
19779 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
19780 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
19782 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19783 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19784 NEED_LIBOPTS_DIR=true
19786 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
19787 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
19788 NEED_LIBOPTS_DIR=''
19790 if test -n "${NEED_LIBOPTS_DIR}"; then
19792 NEED_LIBOPTS_FALSE='#'
19794 NEED_LIBOPTS_TRUE='#'
19795 NEED_LIBOPTS_FALSE=
19800 LIBOPTS_DIR=sntp/libopts
19803 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
19805 # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD
19810 ntp_pkgconfig_min_version='0.15.0'
19811 if test -n "$ac_tool_prefix"; then
19812 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19813 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19815 $as_echo_n "checking for $ac_word... " >&6; }
19816 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19817 $as_echo_n "(cached) " >&6
19819 case $PKG_CONFIG in
19821 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19825 for as_dir in $PATH
19828 test -z "$as_dir" && as_dir=.
19829 for ac_exec_ext in '' $ac_executable_extensions; do
19830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19831 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19842 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19843 if test -n "$PKG_CONFIG"; then
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19845 $as_echo "$PKG_CONFIG" >&6; }
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19848 $as_echo "no" >&6; }
19853 if test -z "$ac_cv_path_PKG_CONFIG"; then
19854 ac_pt_PKG_CONFIG=$PKG_CONFIG
19855 # Extract the first word of "pkg-config", so it can be a program name with args.
19856 set dummy pkg-config; ac_word=$2
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19858 $as_echo_n "checking for $ac_word... " >&6; }
19859 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19860 $as_echo_n "(cached) " >&6
19862 case $ac_pt_PKG_CONFIG in
19864 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19868 for as_dir in $PATH
19871 test -z "$as_dir" && as_dir=.
19872 for ac_exec_ext in '' $ac_executable_extensions; do
19873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19874 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19885 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19886 if test -n "$ac_pt_PKG_CONFIG"; then
19887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19888 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19891 $as_echo "no" >&6; }
19894 if test "x$ac_pt_PKG_CONFIG" = x; then
19897 case $cross_compiling:$ac_tool_warned in
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19901 ac_tool_warned=yes ;;
19903 PKG_CONFIG=$ac_pt_PKG_CONFIG
19906 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19909 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
19910 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
19912 case "$PKG_CONFIG" in
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
19915 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
19916 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19918 $as_echo "yes" >&6; }
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19921 $as_echo "no" >&6; }
19930 # Check whether --enable-local-libevent was given.
19931 if test "${enable_local_libevent+set}" = set; then :
19932 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
19934 ntp_use_local_libevent=${ntp_use_local_libevent-detect}
19942 ntp_libevent_min_version=2
19943 ntp_libevent_tearoff=sntp/libevent
19948 case "$ntp_use_local_libevent" in
19951 *) # If we have (a good enough) pkg-config, see if it can find libevent
19952 case "$PKG_CONFIG" in
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
19955 $as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
19956 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
19958 ntp_use_local_libevent=no
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
19960 $as_echo "$as_me: Using the installed libevent" >&6;}
19961 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
19962 # HMS: I hope the following is accurate.
19963 # We don't need -levent, we only need -levent_core.
19964 # While we could grab only the -L stuff, there *might* be
19965 # other flags there we want. Originally we just removed -levent
19966 # but then somebody decided to install -levent-2.0
19967 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
19968 # So now we dance...
19970 for i in `$PKG_CONFIG --libs libevent`
19974 *) case "$LDADD_LIBEVENT" in
19975 '') LDADD_LIBEVENT="$i" ;;
19976 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
19981 case "$LIBISC_PTHREADS_NOTHREADS" in
19983 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
19985 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19987 $as_echo "yes" >&6; }
19989 ntp_use_local_libevent=yes
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19991 $as_echo "no" >&6; }
19995 ntp_use_local_libevent=yes
20001 case "$ntp_use_local_libevent" in
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
20004 $as_echo "$as_me: Using libevent tearoff" >&6;}
20005 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
20006 case "$LIBISC_PTHREADS_NOTHREADS" in
20008 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
20011 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
20015 if test "x$ntp_use_local_libevent" = "xyes"; then
20016 BUILD_LIBEVENT_TRUE=
20017 BUILD_LIBEVENT_FALSE='#'
20019 BUILD_LIBEVENT_TRUE='#'
20020 BUILD_LIBEVENT_FALSE=
20028 # Expose a cross-compilation indicator to makefiles
20029 if test $build != $host; then
20030 NTP_CROSSCOMPILE_TRUE=
20031 NTP_CROSSCOMPILE_FALSE='#'
20033 NTP_CROSSCOMPILE_TRUE='#'
20034 NTP_CROSSCOMPILE_FALSE=
20039 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20040 if test "x$ac_cv_type_size_t" = xyes; then :
20044 cat >>confdefs.h <<_ACEOF
20045 #define size_t unsigned int
20051 # Check whether --enable-c99-snprintf was given.
20052 if test "${enable_c99_snprintf+set}" = set; then :
20053 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
20055 force_c99_snprintf=no
20059 case "$force_c99_snprintf" in
20061 hw_force_rpl_snprintf=yes
20062 hw_force_rpl_vsnprintf=yes
20070 for ac_header in $ac_header_list
20072 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20073 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20075 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20076 cat >>confdefs.h <<_ACEOF
20077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20091 $as_echo_n "checking for unsigned long long int... " >&6; }
20092 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
20093 $as_echo_n "(cached) " >&6
20095 ac_cv_type_unsigned_long_long_int=yes
20096 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20098 /* end confdefs.h. */
20100 /* For now, do not test the preprocessor; as of 2007 there are too many
20101 implementations with broken preprocessors. Perhaps this can
20102 be revisited in 2012. In the meantime, code should not expect
20103 #if to work with literals wider than 32 bits. */
20104 /* Test literals. */
20105 long long int ll = 9223372036854775807ll;
20106 long long int nll = -9223372036854775807LL;
20107 unsigned long long int ull = 18446744073709551615ULL;
20108 /* Test constant expressions. */
20109 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20111 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20117 /* Test availability of runtime routines for shift and division. */
20118 long long int llmax = 9223372036854775807ll;
20119 unsigned long long int ullmax = 18446744073709551615ull;
20120 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20121 | (llmax / ll) | (llmax % ll)
20122 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20123 | (ullmax / ull) | (ullmax % ull));
20129 if ac_fn_c_try_link "$LINENO"; then :
20132 ac_cv_type_unsigned_long_long_int=no
20134 rm -f core conftest.err conftest.$ac_objext \
20135 conftest$ac_exeext conftest.$ac_ext
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20139 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20140 if test $ac_cv_type_unsigned_long_long_int = yes; then
20142 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20147 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
20148 if test "x$ac_cv_func_vsnprintf" = xyes; then :
20149 hw_cv_func_vsnprintf=yes
20151 hw_cv_func_vsnprintf=no
20154 if test "$hw_cv_func_vsnprintf" = yes; then :
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
20156 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
20157 if ${hw_cv_func_vsnprintf_c99+:} false; then :
20158 $as_echo_n "(cached) " >&6
20160 if test "$cross_compiling" = yes; then :
20161 hw_cv_func_vsnprintf_c99=no
20163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20164 /* end confdefs.h. */
20166 #include <stdarg.h>
20169 static int testprintf(char *buf, size_t size, const char *format, ...)
20173 va_start(ap, format);
20174 result = vsnprintf(buf, size, format, ap);
20182 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20183 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20184 buf[0] != 'T' || buf[3] != '\0')
20190 if ac_fn_c_try_run "$LINENO"; then :
20191 hw_cv_func_vsnprintf_c99=yes
20193 hw_cv_func_vsnprintf_c99=no
20195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20196 conftest.$ac_objext conftest.beam conftest.$ac_ext
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
20201 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
20203 hw_cv_func_vsnprintf_c99=no
20206 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
20209 $as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
20210 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
20211 hw_use_rpl_vsnprintf=yes
20213 hw_use_rpl_vsnprintf=no
20215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
20216 $as_echo "$hw_use_rpl_vsnprintf" >&6; }
20217 if test "$hw_use_rpl_vsnprintf" = yes; then :
20219 $as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
20221 if test ${hw_nodef_vsnprintf=no} = no; then :
20223 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
20226 for ac_header in inttypes.h locale.h stddef.h stdint.h
20228 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20229 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20230 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20231 cat >>confdefs.h <<_ACEOF
20232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20239 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
20241 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
20243 cat >>confdefs.h <<_ACEOF
20244 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
20249 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
20251 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
20253 cat >>confdefs.h <<_ACEOF
20254 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
20262 $as_echo_n "checking for long double... " >&6; }
20263 if ${ac_cv_type_long_double+:} false; then :
20264 $as_echo_n "(cached) " >&6
20266 if test "$GCC" = yes; then
20267 ac_cv_type_long_double=yes
20269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20270 /* end confdefs.h. */
20271 /* The Stardent Vistra knows sizeof (long double), but does
20273 long double foo = 0.0L;
20277 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
20278 sizeof (double) <= sizeof (long double))];
20279 test_array [0] = 0;
20280 return test_array [0];
20286 if ac_fn_c_try_compile "$LINENO"; then :
20287 ac_cv_type_long_double=yes
20289 ac_cv_type_long_double=no
20291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
20295 $as_echo "$ac_cv_type_long_double" >&6; }
20296 if test $ac_cv_type_long_double = yes; then
20298 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20305 $as_echo_n "checking for long long int... " >&6; }
20306 if ${ac_cv_type_long_long_int+:} false; then :
20307 $as_echo_n "(cached) " >&6
20309 ac_cv_type_long_long_int=yes
20310 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20311 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
20312 if test $ac_cv_type_long_long_int = yes; then
20313 if test "$cross_compiling" = yes; then :
20316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20317 /* end confdefs.h. */
20318 #include <limits.h>
20321 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20322 # define LLONG_MAX (HALF - 1 + HALF)
20327 long long int n = 1;
20331 long long int m = n << i;
20334 if (LLONG_MAX / 2 < m)
20342 if ac_fn_c_try_run "$LINENO"; then :
20345 ac_cv_type_long_long_int=no
20347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20348 conftest.$ac_objext conftest.beam conftest.$ac_ext
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
20355 $as_echo "$ac_cv_type_long_long_int" >&6; }
20356 if test $ac_cv_type_long_long_int = yes; then
20358 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20364 $as_echo_n "checking for unsigned long long int... " >&6; }
20365 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
20366 $as_echo_n "(cached) " >&6
20368 ac_cv_type_unsigned_long_long_int=yes
20369 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20371 /* end confdefs.h. */
20373 /* For now, do not test the preprocessor; as of 2007 there are too many
20374 implementations with broken preprocessors. Perhaps this can
20375 be revisited in 2012. In the meantime, code should not expect
20376 #if to work with literals wider than 32 bits. */
20377 /* Test literals. */
20378 long long int ll = 9223372036854775807ll;
20379 long long int nll = -9223372036854775807LL;
20380 unsigned long long int ull = 18446744073709551615ULL;
20381 /* Test constant expressions. */
20382 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20384 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20390 /* Test availability of runtime routines for shift and division. */
20391 long long int llmax = 9223372036854775807ll;
20392 unsigned long long int ullmax = 18446744073709551615ull;
20393 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20394 | (llmax / ll) | (llmax % ll)
20395 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20396 | (ullmax / ull) | (ullmax % ull));
20402 if ac_fn_c_try_link "$LINENO"; then :
20405 ac_cv_type_unsigned_long_long_int=no
20407 rm -f core conftest.err conftest.$ac_objext \
20408 conftest$ac_exeext conftest.$ac_ext
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20412 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20413 if test $ac_cv_type_unsigned_long_long_int = yes; then
20415 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20419 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20420 if test "x$ac_cv_type_size_t" = xyes; then :
20424 cat >>confdefs.h <<_ACEOF
20425 #define size_t unsigned int
20432 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
20433 if test "x$ac_cv_type_intmax_t" = xyes; then :
20435 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20438 test $ac_cv_type_long_long_int = yes \
20439 && ac_type='long long int' \
20440 || ac_type='long int'
20442 cat >>confdefs.h <<_ACEOF
20443 #define intmax_t $ac_type
20451 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
20452 if test "x$ac_cv_type_uintmax_t" = xyes; then :
20454 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20457 test $ac_cv_type_unsigned_long_long_int = yes \
20458 && ac_type='unsigned long long int' \
20459 || ac_type='unsigned long int'
20461 cat >>confdefs.h <<_ACEOF
20462 #define uintmax_t $ac_type
20469 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20470 if test "x$ac_cv_type_uintptr_t" = xyes; then :
20472 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
20475 for ac_type in 'unsigned int' 'unsigned long int' \
20476 'unsigned long long int'; do
20477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20478 /* end confdefs.h. */
20479 $ac_includes_default
20483 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
20484 test_array [0] = 0;
20485 return test_array [0];
20491 if ac_fn_c_try_compile "$LINENO"; then :
20493 cat >>confdefs.h <<_ACEOF
20494 #define uintptr_t $ac_type
20499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20500 test -z "$ac_type" && break
20505 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20506 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20508 cat >>confdefs.h <<_ACEOF
20509 #define HAVE_PTRDIFF_T 1
20515 for ac_func in localeconv
20517 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
20518 if test "x$ac_cv_func_localeconv" = xyes; then :
20519 cat >>confdefs.h <<_ACEOF
20520 #define HAVE_LOCALECONV 1
20527 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20529 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20530 if ${ac_cv_c_const+:} false; then :
20531 $as_echo_n "(cached) " >&6
20533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20534 /* end confdefs.h. */
20540 #ifndef __cplusplus
20541 /* Ultrix mips cc rejects this sort of thing. */
20542 typedef int charset[2];
20543 const charset cs = { 0, 0 };
20544 /* SunOS 4.1.1 cc rejects this. */
20545 char const *const *pcpcc;
20547 /* NEC SVR4.0.2 mips cc rejects this. */
20548 struct point {int x, y;};
20549 static struct point const zero = {0,0};
20550 /* AIX XL C 1.02.0.0 rejects this.
20551 It does not let you subtract one const X* pointer from another in
20552 an arm of an if-expression whose if-part is not a constant
20554 const char *g = "string";
20555 pcpcc = &g + (g ? g-g : 0);
20556 /* HPUX 7.0 cc rejects these. */
20558 ppc = (char**) pcpcc;
20559 pcpcc = (char const *const *) ppc;
20560 { /* SCO 3.2v4 cc rejects this sort of thing. */
20563 char const *s = 0 ? (char *) 0 : (char const *) 0;
20568 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20569 int x[] = {25, 17};
20570 const int *foo = &x[0];
20573 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20574 typedef const int *iptr;
20578 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20579 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20580 struct s { int j; const int *ap[3]; } bx;
20581 struct s *b = &bx; b->j = 5;
20583 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20584 const int foo = 10;
20585 if (!foo) return 0;
20587 return !cs[0] && !zero.x;
20594 if ac_fn_c_try_compile "$LINENO"; then :
20599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20602 $as_echo "$ac_cv_c_const" >&6; }
20603 if test $ac_cv_c_const = no; then
20605 $as_echo "#define const /**/" >>confdefs.h
20612 case " $LIBOBJS " in
20613 *" snprintf.$ac_objext "* ) ;;
20614 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20618 _hw_cv_func_xprintf_replace_done=yes
20624 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20625 if test "x$ac_cv_func_snprintf" = xyes; then :
20626 hw_cv_func_snprintf=yes
20628 hw_cv_func_snprintf=no
20631 if test "$hw_cv_func_snprintf" = yes; then :
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
20633 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
20634 if ${hw_cv_func_snprintf_c99+:} false; then :
20635 $as_echo_n "(cached) " >&6
20637 if test "$cross_compiling" = yes; then :
20638 hw_cv_func_snprintf_c99=no
20640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641 /* end confdefs.h. */
20647 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20648 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20649 buf[0] != 'T' || buf[3] != '\0')
20655 if ac_fn_c_try_run "$LINENO"; then :
20656 hw_cv_func_snprintf_c99=yes
20658 hw_cv_func_snprintf_c99=no
20660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20661 conftest.$ac_objext conftest.beam conftest.$ac_ext
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
20666 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
20668 hw_cv_func_snprintf_c99=no
20671 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
20674 $as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
20675 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
20676 hw_use_rpl_snprintf=yes
20678 hw_use_rpl_snprintf=no
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
20681 $as_echo "$hw_use_rpl_snprintf" >&6; }
20682 if test "$hw_use_rpl_snprintf" = yes; then :
20684 $as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
20686 if test ${hw_nodef_snprintf=no} = no; then :
20688 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
20692 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20694 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20695 if ${ac_cv_c_const+:} false; then :
20696 $as_echo_n "(cached) " >&6
20698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20699 /* end confdefs.h. */
20705 #ifndef __cplusplus
20706 /* Ultrix mips cc rejects this sort of thing. */
20707 typedef int charset[2];
20708 const charset cs = { 0, 0 };
20709 /* SunOS 4.1.1 cc rejects this. */
20710 char const *const *pcpcc;
20712 /* NEC SVR4.0.2 mips cc rejects this. */
20713 struct point {int x, y;};
20714 static struct point const zero = {0,0};
20715 /* AIX XL C 1.02.0.0 rejects this.
20716 It does not let you subtract one const X* pointer from another in
20717 an arm of an if-expression whose if-part is not a constant
20719 const char *g = "string";
20720 pcpcc = &g + (g ? g-g : 0);
20721 /* HPUX 7.0 cc rejects these. */
20723 ppc = (char**) pcpcc;
20724 pcpcc = (char const *const *) ppc;
20725 { /* SCO 3.2v4 cc rejects this sort of thing. */
20728 char const *s = 0 ? (char *) 0 : (char const *) 0;
20733 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20734 int x[] = {25, 17};
20735 const int *foo = &x[0];
20738 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20739 typedef const int *iptr;
20743 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20744 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20745 struct s { int j; const int *ap[3]; } bx;
20746 struct s *b = &bx; b->j = 5;
20748 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20749 const int foo = 10;
20750 if (!foo) return 0;
20752 return !cs[0] && !zero.x;
20759 if ac_fn_c_try_compile "$LINENO"; then :
20764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20767 $as_echo "$ac_cv_c_const" >&6; }
20768 if test $ac_cv_c_const = no; then
20770 $as_echo "#define const /**/" >>confdefs.h
20777 case " $LIBOBJS " in
20778 *" snprintf.$ac_objext "* ) ;;
20779 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20783 _hw_cv_func_xprintf_replace_done=yes
20792 # HMS: Save $LIBS and empty it.
20793 # any LIBS we add here should go in to LDADD_LIBNTP
20800 # [Bug 2332] because we need to know if we are using GNU ld...
20803 # Check whether --with-gnu-ld was given.
20804 if test "${with_gnu_ld+set}" = set; then :
20805 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20811 if test "$GCC" = yes; then
20812 # Check if gcc -print-prog-name=ld gives a path.
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20814 $as_echo_n "checking for ld used by $CC... " >&6; }
20817 # gcc leaves a trailing carriage return which upsets mingw
20818 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20820 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20823 # Accept absolute paths.
20825 re_direlt='/[^/][^/]*/\.\./'
20826 # Canonicalize the pathname of ld
20827 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20828 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20829 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20831 test -z "$LD" && LD="$ac_prog"
20834 # If it fails, then pretend we aren't using GCC.
20838 # If it is relative, then search for the first ld in PATH.
20839 with_gnu_ld=unknown
20842 elif test "$with_gnu_ld" = yes; then
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20844 $as_echo_n "checking for GNU ld... " >&6; }
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20847 $as_echo_n "checking for non-GNU ld... " >&6; }
20849 if ${lt_cv_path_LD+:} false; then :
20850 $as_echo_n "(cached) " >&6
20852 if test -z "$LD"; then
20853 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20854 for ac_dir in $PATH; do
20856 test -z "$ac_dir" && ac_dir=.
20857 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20858 lt_cv_path_LD="$ac_dir/$ac_prog"
20859 # Check to see if the program is GNU ld. I'd rather use --version,
20860 # but apparently some variants of GNU ld only accept -v.
20861 # Break only if it was the GNU/non-GNU ld that we prefer.
20862 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20863 *GNU* | *'with BFD'*)
20864 test "$with_gnu_ld" != no && break
20867 test "$with_gnu_ld" != yes && break
20874 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20878 LD="$lt_cv_path_LD"
20879 if test -n "$LD"; then
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20881 $as_echo "$LD" >&6; }
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20884 $as_echo "no" >&6; }
20886 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20888 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20889 if ${lt_cv_prog_gnu_ld+:} false; then :
20890 $as_echo_n "(cached) " >&6
20892 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20893 case `$LD -v 2>&1 </dev/null` in
20894 *GNU* | *'with BFD'*)
20895 lt_cv_prog_gnu_ld=yes
20898 lt_cv_prog_gnu_ld=no
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20903 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20904 with_gnu_ld=$lt_cv_prog_gnu_ld
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
20914 $as_echo_n "checking for directory path separator... " >&6; }
20915 if ${ntp_cv_dir_sep+:} false; then :
20916 $as_echo_n "(cached) " >&6
20919 case "$ntp_cv_dir_sep" in
20922 *djgpp | *mingw32* | *emx*)
20923 ntp_cv_dir_sep="'\\'"
20926 ntp_cv_dir_sep="'/'"
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
20934 $as_echo "$ntp_cv_dir_sep" >&6; }
20936 cat >>confdefs.h <<_ACEOF
20937 #define DIR_SEP $ntp_cv_dir_sep
20942 NTP_ORIG_LIBS="$LIBS"
20944 # Check whether --with-lineeditlibs was given.
20945 if test "${with_lineeditlibs+set}" = set; then :
20946 withval=$with_lineeditlibs; use_lineeditlibs="$withval"
20948 use_lineeditlibs="edit,editline"
20952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
20953 $as_echo_n "checking line editing libraries... " >&6; }
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
20955 $as_echo "$use_lineeditlibs" >&6; }
20956 case "$use_lineeditlibs" in
20958 ntp_lib_lineedit=no
20961 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
20962 for term_lib in "" termcap curses ncurses; do
20963 case "$term_lib" in
20965 TRY_LIB="-l$lineedit_lib"
20968 TRY_LIB="-l$lineedit_lib -l$term_lib"
20971 LIBS="$NTP_ORIG_LIBS $TRY_LIB"
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
20973 $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
20974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20975 /* end confdefs.h. */
20977 /* Override any GCC internal prototype to avoid an error.
20978 Use char because int might match the return type of a GCC
20979 builtin and then its argument prototype would still apply. */
20987 return readline ();
20992 if ac_fn_c_try_link "$LINENO"; then :
20993 ntp_lib_lineedit="$TRY_LIB"
20995 rm -f core conftest.err conftest.$ac_objext \
20996 conftest$ac_exeext conftest.$ac_ext
20997 case "$ntp_lib_lineedit" in
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21000 $as_echo "no" >&6; }
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21005 $as_echo "yes" >&6; }
21008 case "$term_lib" in
21010 # do not try el_gets without a terminal library
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
21014 $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
21015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21016 /* end confdefs.h. */
21018 /* Override any GCC internal prototype to avoid an error.
21019 Use char because int might match the return type of a GCC
21020 builtin and then its argument prototype would still apply. */
21033 if ac_fn_c_try_link "$LINENO"; then :
21034 ntp_lib_lineedit="$TRY_LIB"
21036 rm -f core conftest.err conftest.$ac_objext \
21037 conftest$ac_exeext conftest.$ac_ext
21038 case "$ntp_lib_lineedit" in
21040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21041 $as_echo "no" >&6; }
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21045 $as_echo "yes" >&6; }
21048 esac # $ntp_lib_lineedit
21051 case "$ntp_lib_lineedit" in
21059 LIBS="$NTP_ORIG_LIBS"
21061 esac # $use_lineeditlibs
21063 case "$ntp_lib_lineedit" in
21065 ntp_lib_lineedit="no"
21070 EDITLINE_LIBS="$ntp_lib_lineedit"
21073 esac # $ntp_lib_lineedit
21075 case "$ntp_lib_lineedit" in
21079 for ac_header in readline.h readline/readline.h histedit.h
21081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21082 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21083 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21084 cat >>confdefs.h <<_ACEOF
21085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21092 for ac_header in history.h readline/history.h
21094 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21095 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21096 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21097 cat >>confdefs.h <<_ACEOF
21098 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21106 case "$ac_cv_header_histedit_h" in
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
21109 $as_echo_n "checking number of arguments to el_init()... " >&6; }
21110 if ${ntp_cv_el_init_args+:} false; then :
21111 $as_echo_n "(cached) " >&6
21113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114 /* end confdefs.h. */
21117 #include <histedit.h>
21123 el_init("conftest", stdin, stdout, stderr);
21130 if ac_fn_c_try_compile "$LINENO"; then :
21131 ntp_cv_el_init_args=4
21133 ntp_cv_el_init_args=3
21136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
21140 $as_echo "$ntp_cv_el_init_args" >&6; }
21142 cat >>confdefs.h <<_ACEOF
21143 #define EL_INIT_ARGS $ntp_cv_el_init_args
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
21149 $as_echo_n "checking whether readline supports history... " >&6; }
21151 ntp_lib_lineedit_history="no"
21153 LIBS="$ORIG_LIBS $ntp_lib_lineedit"
21154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21155 /* end confdefs.h. */
21157 /* Override any GCC internal prototype to avoid an error.
21158 Use char because int might match the return type of a GCC
21159 builtin and then its argument prototype would still apply. */
21163 char add_history ();
21167 return add_history ();
21172 if ac_fn_c_try_link "$LINENO"; then :
21173 ntp_lib_lineedit_history="yes"
21175 rm -f core conftest.err conftest.$ac_objext \
21176 conftest$ac_exeext conftest.$ac_ext
21179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
21180 $as_echo "$ntp_lib_lineedit_history" >&6; }
21182 case "$ntp_lib_lineedit_history" in
21185 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
21188 esac # $ntp_lib_lineedit
21189 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
21190 { ORIG_LIBS=; unset ORIG_LIBS;}
21191 { TRY_LIB=; unset TRY_LIB;}
21192 { use_lineeditlibs=; unset use_lineeditlibs;}
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
21202 $as_echo_n "checking for library containing cos... " >&6; }
21203 if ${ac_cv_search_cos+:} false; then :
21204 $as_echo_n "(cached) " >&6
21206 ac_func_search_save_LIBS=$LIBS
21207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21208 /* end confdefs.h. */
21210 /* Override any GCC internal prototype to avoid an error.
21211 Use char because int might match the return type of a GCC
21212 builtin and then its argument prototype would still apply. */
21225 for ac_lib in '' m; do
21226 if test -z "$ac_lib"; then
21227 ac_res="none required"
21230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21232 if ac_fn_c_try_link "$LINENO"; then :
21233 ac_cv_search_cos=$ac_res
21235 rm -f core conftest.err conftest.$ac_objext \
21237 if ${ac_cv_search_cos+:} false; then :
21241 if ${ac_cv_search_cos+:} false; then :
21244 ac_cv_search_cos=no
21246 rm conftest.$ac_ext
21247 LIBS=$ac_func_search_save_LIBS
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
21250 $as_echo "$ac_cv_search_cos" >&6; }
21251 ac_res=$ac_cv_search_cos
21252 if test "$ac_res" != no; then :
21253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21261 { _libs=; unset _libs;}
21264 for ac_header in vfork.h
21266 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21267 if test "x$ac_cv_header_vfork_h" = xyes; then :
21268 cat >>confdefs.h <<_ACEOF
21269 #define HAVE_VFORK_H 1
21276 for ac_func in fork vfork
21278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21279 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21280 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21281 cat >>confdefs.h <<_ACEOF
21282 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21288 if test "x$ac_cv_func_fork" = xyes; then
21289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21290 $as_echo_n "checking for working fork... " >&6; }
21291 if ${ac_cv_func_fork_works+:} false; then :
21292 $as_echo_n "(cached) " >&6
21294 if test "$cross_compiling" = yes; then :
21295 ac_cv_func_fork_works=cross
21297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21298 /* end confdefs.h. */
21299 $ac_includes_default
21304 /* By Ruediger Kuhlmann. */
21305 return fork () < 0;
21311 if ac_fn_c_try_run "$LINENO"; then :
21312 ac_cv_func_fork_works=yes
21314 ac_cv_func_fork_works=no
21316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21317 conftest.$ac_objext conftest.beam conftest.$ac_ext
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21322 $as_echo "$ac_cv_func_fork_works" >&6; }
21325 ac_cv_func_fork_works=$ac_cv_func_fork
21327 if test "x$ac_cv_func_fork_works" = xcross; then
21329 *-*-amigaos* | *-*-msdosdjgpp*)
21330 # Override, as these systems have only a dummy fork() stub
21331 ac_cv_func_fork_works=no
21334 ac_cv_func_fork_works=yes
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21338 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21340 ac_cv_func_vfork_works=$ac_cv_func_vfork
21341 if test "x$ac_cv_func_vfork" = xyes; then
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21343 $as_echo_n "checking for working vfork... " >&6; }
21344 if ${ac_cv_func_vfork_works+:} false; then :
21345 $as_echo_n "(cached) " >&6
21347 if test "$cross_compiling" = yes; then :
21348 ac_cv_func_vfork_works=cross
21350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21351 /* end confdefs.h. */
21352 /* Thanks to Paul Eggert for this test. */
21353 $ac_includes_default
21354 #include <sys/wait.h>
21355 #ifdef HAVE_VFORK_H
21356 # include <vfork.h>
21358 /* On some sparc systems, changes by the child to local and incoming
21359 argument registers are propagated back to the parent. The compiler
21360 is told about this with #include <vfork.h>, but some compilers
21361 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21362 static variable whose address is put into a register that is
21363 clobbered by the vfork. */
21366 sparc_address_test (int arg)
21368 sparc_address_test (arg) int arg;
21371 static pid_t child;
21389 pid_t parent = getpid ();
21392 sparc_address_test (0);
21397 /* Here is another test for sparc vfork register problems. This
21398 test uses lots of local variables, at least as many local
21399 variables as main has allocated so far including compiler
21400 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21401 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21402 reuse the register of parent for one of the local variables,
21403 since it will think that parent can't possibly be used any more
21404 in this routine. Assigning to the local variable will thus
21405 munge parent in the parent process. */
21407 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21408 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21409 /* Convince the compiler that p..p7 are live; otherwise, it might
21410 use the same hardware register for all 8 local variables. */
21411 if (p != p1 || p != p2 || p != p3 || p != p4
21412 || p != p5 || p != p6 || p != p7)
21415 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21416 from child file descriptors. If the child closes a descriptor
21417 before it execs or exits, this munges the parent's descriptor
21418 as well. Test for this by closing stdout in the child. */
21419 _exit(close(fileno(stdout)) != 0);
21424 while (wait(&status) != child)
21427 /* Was there some problem with vforking? */
21430 /* Did the child fail? (This shouldn't happen.) */
21433 /* Did the vfork/compiler bug occur? */
21434 || parent != getpid()
21436 /* Did the file descriptor bug occur? */
21437 || fstat(fileno(stdout), &st) != 0
21442 if ac_fn_c_try_run "$LINENO"; then :
21443 ac_cv_func_vfork_works=yes
21445 ac_cv_func_vfork_works=no
21447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21448 conftest.$ac_objext conftest.beam conftest.$ac_ext
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21453 $as_echo "$ac_cv_func_vfork_works" >&6; }
21456 if test "x$ac_cv_func_fork_works" = xcross; then
21457 ac_cv_func_vfork_works=$ac_cv_func_vfork
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21459 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21462 if test "x$ac_cv_func_vfork_works" = xyes; then
21464 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21468 $as_echo "#define vfork fork" >>confdefs.h
21471 if test "x$ac_cv_func_fork_works" = xyes; then
21473 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21477 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21478 # for constant arguments. Useless!
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21480 $as_echo_n "checking for working alloca.h... " >&6; }
21481 if ${ac_cv_working_alloca_h+:} false; then :
21482 $as_echo_n "(cached) " >&6
21484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21485 /* end confdefs.h. */
21486 #include <alloca.h>
21490 char *p = (char *) alloca (2 * sizeof (int));
21496 if ac_fn_c_try_link "$LINENO"; then :
21497 ac_cv_working_alloca_h=yes
21499 ac_cv_working_alloca_h=no
21501 rm -f core conftest.err conftest.$ac_objext \
21502 conftest$ac_exeext conftest.$ac_ext
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21505 $as_echo "$ac_cv_working_alloca_h" >&6; }
21506 if test $ac_cv_working_alloca_h = yes; then
21508 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21513 $as_echo_n "checking for alloca... " >&6; }
21514 if ${ac_cv_func_alloca_works+:} false; then :
21515 $as_echo_n "(cached) " >&6
21517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21518 /* end confdefs.h. */
21520 # define alloca __builtin_alloca
21523 # include <malloc.h>
21524 # define alloca _alloca
21526 # ifdef HAVE_ALLOCA_H
21527 # include <alloca.h>
21532 # ifndef alloca /* predefined by HP cc +Olibcalls */
21533 void *alloca (size_t);
21543 char *p = (char *) alloca (1);
21549 if ac_fn_c_try_link "$LINENO"; then :
21550 ac_cv_func_alloca_works=yes
21552 ac_cv_func_alloca_works=no
21554 rm -f core conftest.err conftest.$ac_objext \
21555 conftest$ac_exeext conftest.$ac_ext
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21558 $as_echo "$ac_cv_func_alloca_works" >&6; }
21560 if test $ac_cv_func_alloca_works = yes; then
21562 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21565 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21566 # that cause trouble. Some versions do not even contain alloca or
21567 # contain a buggy version. If you still want to use their alloca,
21568 # use ar to extract alloca.o from them instead of compiling alloca.c.
21570 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21572 $as_echo "#define C_ALLOCA 1" >>confdefs.h
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21576 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21577 if ${ac_cv_os_cray+:} false; then :
21578 $as_echo_n "(cached) " >&6
21580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21581 /* end confdefs.h. */
21582 #if defined CRAY && ! defined CRAY2
21589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21590 $EGREP "webecray" >/dev/null 2>&1; then :
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21599 $as_echo "$ac_cv_os_cray" >&6; }
21600 if test $ac_cv_os_cray = yes; then
21601 for ac_func in _getb67 GETB67 getb67; do
21602 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21603 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21604 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21606 cat >>confdefs.h <<_ACEOF
21607 #define CRAY_STACKSEG_END $ac_func
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21617 $as_echo_n "checking stack direction for C alloca... " >&6; }
21618 if ${ac_cv_c_stack_direction+:} false; then :
21619 $as_echo_n "(cached) " >&6
21621 if test "$cross_compiling" = yes; then :
21622 ac_cv_c_stack_direction=0
21624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21625 /* end confdefs.h. */
21626 $ac_includes_default
21628 find_stack_direction (int *addr, int depth)
21630 int dir, dummy = 0;
21633 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21634 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21635 return dir + dummy;
21639 main (int argc, char **argv)
21641 return find_stack_direction (0, argc + !argv + 20) < 0;
21644 if ac_fn_c_try_run "$LINENO"; then :
21645 ac_cv_c_stack_direction=1
21647 ac_cv_c_stack_direction=-1
21649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21650 conftest.$ac_objext conftest.beam conftest.$ac_ext
21654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21655 $as_echo "$ac_cv_c_stack_direction" >&6; }
21656 cat >>confdefs.h <<_ACEOF
21657 #define STACK_DIRECTION $ac_cv_c_stack_direction
21663 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
21664 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
21670 cat >>confdefs.h <<_ACEOF
21671 #define HAVE_DECL_STRERROR_R $ac_have_decl
21674 for ac_func in strerror_r
21676 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21677 if test "x$ac_cv_func_strerror_r" = xyes; then :
21678 cat >>confdefs.h <<_ACEOF
21679 #define HAVE_STRERROR_R 1
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
21686 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
21687 if ${ac_cv_func_strerror_r_char_p+:} false; then :
21688 $as_echo_n "(cached) " >&6
21691 ac_cv_func_strerror_r_char_p=no
21692 if test $ac_cv_have_decl_strerror_r = yes; then
21693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21694 /* end confdefs.h. */
21695 $ac_includes_default
21701 char x = *strerror_r (0, buf, sizeof buf);
21702 char *p = strerror_r (0, buf, sizeof buf);
21709 if ac_fn_c_try_compile "$LINENO"; then :
21710 ac_cv_func_strerror_r_char_p=yes
21712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21714 # strerror_r is not declared. Choose between
21715 # systems that have relatively inaccessible declarations for the
21716 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
21717 # former has a strerror_r that returns char*, while the latter
21718 # has a strerror_r that returns `int'.
21719 # This test should segfault on the DEC system.
21720 if test "$cross_compiling" = yes; then :
21723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21724 /* end confdefs.h. */
21725 $ac_includes_default
21726 extern char *strerror_r ();
21731 char x = *strerror_r (0, buf, sizeof buf);
21732 return ! isalpha (x);
21737 if ac_fn_c_try_run "$LINENO"; then :
21738 ac_cv_func_strerror_r_char_p=yes
21740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21741 conftest.$ac_objext conftest.beam conftest.$ac_ext
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
21748 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21749 if test $ac_cv_func_strerror_r_char_p = yes; then
21751 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
21756 ac_busted_vpath_in_make=no
21758 *-*-irix6.1*) # 64 bit only
21761 *-*-irix6*) # 6.2 (and later?)
21762 ac_busted_vpath_in_make=yes
21765 ac_busted_vpath_in_make=yes
21768 ac_busted_vpath_in_make=yes
21772 case "$ac_busted_vpath_in_make$srcdir" in
21775 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
21777 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
21785 # Was *-*-aix[[4-9]]*
21786 # XXX only verified thru AIX6. But...
21787 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
21788 # that this support would be in 5.3, removed in 6, and added back.
21790 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
21791 # (returning ENOSYS). I didn't check 4.2. If, in the future,
21792 # IBM pulls its thumbs out long enough to implement clock_settime,
21793 # this conditional will need to change. Maybe use AC_TRY_RUN
21794 # instead to try to set the time to itself and check errno.
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21798 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21799 if ${ac_cv_search_clock_gettime+:} false; then :
21800 $as_echo_n "(cached) " >&6
21802 ac_func_search_save_LIBS=$LIBS
21803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21804 /* end confdefs.h. */
21806 /* Override any GCC internal prototype to avoid an error.
21807 Use char because int might match the return type of a GCC
21808 builtin and then its argument prototype would still apply. */
21812 char clock_gettime ();
21816 return clock_gettime ();
21821 for ac_lib in '' rt; do
21822 if test -z "$ac_lib"; then
21823 ac_res="none required"
21826 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21828 if ac_fn_c_try_link "$LINENO"; then :
21829 ac_cv_search_clock_gettime=$ac_res
21831 rm -f core conftest.err conftest.$ac_objext \
21833 if ${ac_cv_search_clock_gettime+:} false; then :
21837 if ${ac_cv_search_clock_gettime+:} false; then :
21840 ac_cv_search_clock_gettime=no
21842 rm conftest.$ac_ext
21843 LIBS=$ac_func_search_save_LIBS
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21846 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21847 ac_res=$ac_cv_search_clock_gettime
21848 if test "$ac_res" != no; then :
21849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21850 case "$ac_cv_search_clock_gettime" in
21851 'none required') ;;
21853 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
21858 for ac_func in clock_getres clock_gettime clock_settime
21860 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21861 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21862 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21863 cat >>confdefs.h <<_ACEOF
21864 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21873 for ac_func in getclock stime timegm strlcpy strlcat
21875 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21876 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21877 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21878 cat >>confdefs.h <<_ACEOF
21879 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
21890 $as_echo_n "checking for library containing snprintb... " >&6; }
21891 if ${ac_cv_search_snprintb+:} false; then :
21892 $as_echo_n "(cached) " >&6
21894 ac_func_search_save_LIBS=$LIBS
21895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21896 /* end confdefs.h. */
21898 /* Override any GCC internal prototype to avoid an error.
21899 Use char because int might match the return type of a GCC
21900 builtin and then its argument prototype would still apply. */
21908 return snprintb ();
21913 for ac_lib in '' util; do
21914 if test -z "$ac_lib"; then
21915 ac_res="none required"
21918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21920 if ac_fn_c_try_link "$LINENO"; then :
21921 ac_cv_search_snprintb=$ac_res
21923 rm -f core conftest.err conftest.$ac_objext \
21925 if ${ac_cv_search_snprintb+:} false; then :
21929 if ${ac_cv_search_snprintb+:} false; then :
21932 ac_cv_search_snprintb=no
21934 rm conftest.$ac_ext
21935 LIBS=$ac_func_search_save_LIBS
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
21938 $as_echo "$ac_cv_search_snprintb" >&6; }
21939 ac_res=$ac_cv_search_snprintb
21940 if test "$ac_res" != no; then :
21941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21942 case "$ac_cv_search_snprintb" in
21943 'none required') ;;
21945 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
21948 $as_echo "#define USE_SNPRINTB 1" >>confdefs.h
21954 for ac_header in errno.h sys/socket.h sys/types.h time.h
21956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21957 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21958 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21959 cat >>confdefs.h <<_ACEOF
21960 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21967 for ac_header in net/if.h
21969 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
21970 #ifdef HAVE_SYS_SOCKET_H
21971 # include <sys/socket.h>
21975 if test "x$ac_cv_header_net_if_h" = xyes; then :
21976 cat >>confdefs.h <<_ACEOF
21977 #define HAVE_NET_IF_H 1
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
21987 $as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
21988 if ${ntp_cv_predecl_mpinfou+:} false; then :
21989 $as_echo_n "(cached) " >&6
21992 np_cv_predecl_mpinfou=no
21993 case "$ac_cv_header_net_if_h" in
21995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21996 /* end confdefs.h. */
21998 typedef union mpinfou {
21999 struct pdk_mpinfo *pdkptr;
22000 struct mpinfo *pikptr;
22002 #ifdef HAVE_SYS_SOCKET_H
22003 # include <sys/socket.h>
22005 #include <net/if.h>
22017 if ac_fn_c_try_compile "$LINENO"; then :
22019 ntp_cv_predecl_mpinfou=yes
22020 ac_cv_header_net_if_h=yes
22024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
22030 $as_echo "$ntp_cv_predecl_mpinfou" >&6; }
22031 case "$ntp_cv_predecl_mpinfou" in
22033 cat >>confdefs.h <<_ACEOF
22034 #ifndef MPINFOU_PREDECLARED
22035 # define MPINFOU_PREDECLARED
22036 typedef union mpinfou {
22037 struct pdk_mpinfo *pdkptr;
22038 struct mpinfo *pikptr;
22048 for ac_header in linux/if_addr.h
22050 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
22051 #ifdef HAVE_SYS_SOCKET_H
22052 # include <sys/socket.h>
22056 if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
22057 cat >>confdefs.h <<_ACEOF
22058 #define HAVE_LINUX_IF_ADDR_H 1
22067 for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
22069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22070 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22071 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22072 cat >>confdefs.h <<_ACEOF
22073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22080 # sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
22081 for ac_header in sys/sysctl.h
22083 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
22084 #if defined HAVE_SYS_PARAM_H
22085 # include <sys/param.h>
22089 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
22090 cat >>confdefs.h <<_ACEOF
22091 #define HAVE_SYS_SYSCTL_H 1
22098 for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
22100 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22101 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22102 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22103 cat >>confdefs.h <<_ACEOF
22104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22112 for ac_header in resolv.h
22114 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
22115 #ifdef HAVE_SYS_TYPES_H
22116 # include <sys/types.h>
22118 #ifdef HAVE_NETINET_IN_H
22119 # include <netinet/in.h>
22121 #ifdef HAVE_ARPA_NAMESER_H
22122 # include <arpa/nameser.h>
22126 if test "x$ac_cv_header_resolv_h" = xyes; then :
22127 cat >>confdefs.h <<_ACEOF
22128 #define HAVE_RESOLV_H 1
22136 for ac_header in net/if_var.h
22138 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
22139 #if HAVE_SYS_TYPES_H
22140 # include <sys/types.h>
22142 #ifdef HAVE_SYS_SOCKET_H
22143 # include <sys/socket.h>
22145 #ifdef HAVE_NETINET_IN_H
22146 # include <netinet/in.h>
22148 #ifdef HAVE_NET_IF_H
22149 # include <net/if.h>
22153 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
22154 cat >>confdefs.h <<_ACEOF
22155 #define HAVE_NET_IF_VAR_H 1
22163 for ac_header in netinet/ip.h netinet/in_var.h
22165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22166 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22167 #ifdef HAVE_SYS_TYPES_H
22168 # include <sys/types.h>
22170 #ifdef HAVE_SYS_SOCKET_H
22171 # include <sys/socket.h>
22173 #ifdef HAVE_NET_IF_H
22174 # include <net/if.h>
22176 #ifdef HAVE_NETINET_IN_H
22177 # include <netinet/in.h>
22179 #ifdef HAVE_NET_IF_VAR_H
22180 # include <net/if_var.h>
22182 #ifdef HAVE_NETINET_IN_SYSTM_H
22183 # include <netinet/in_systm.h>
22187 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22188 cat >>confdefs.h <<_ACEOF
22189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22197 # HMS: Do we need to check for -lsocket before or after these tests?
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
22199 $as_echo_n "checking for library containing inet_pton... " >&6; }
22200 if ${ac_cv_search_inet_pton+:} false; then :
22201 $as_echo_n "(cached) " >&6
22203 ac_func_search_save_LIBS=$LIBS
22204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22205 /* end confdefs.h. */
22207 /* Override any GCC internal prototype to avoid an error.
22208 Use char because int might match the return type of a GCC
22209 builtin and then its argument prototype would still apply. */
22217 return inet_pton ();
22222 for ac_lib in '' nsl; do
22223 if test -z "$ac_lib"; then
22224 ac_res="none required"
22227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22229 if ac_fn_c_try_link "$LINENO"; then :
22230 ac_cv_search_inet_pton=$ac_res
22232 rm -f core conftest.err conftest.$ac_objext \
22234 if ${ac_cv_search_inet_pton+:} false; then :
22238 if ${ac_cv_search_inet_pton+:} false; then :
22241 ac_cv_search_inet_pton=no
22243 rm conftest.$ac_ext
22244 LIBS=$ac_func_search_save_LIBS
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
22247 $as_echo "$ac_cv_search_inet_pton" >&6; }
22248 ac_res=$ac_cv_search_inet_pton
22249 if test "$ac_res" != no; then :
22250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22251 case "$ac_cv_search_inet_pton" in
22252 'none required') ;;
22254 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
22260 $as_echo_n "checking for library containing inet_ntop... " >&6; }
22261 if ${ac_cv_search_inet_ntop+:} false; then :
22262 $as_echo_n "(cached) " >&6
22264 ac_func_search_save_LIBS=$LIBS
22265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22266 /* end confdefs.h. */
22268 /* Override any GCC internal prototype to avoid an error.
22269 Use char because int might match the return type of a GCC
22270 builtin and then its argument prototype would still apply. */
22278 return inet_ntop ();
22283 for ac_lib in '' resolv; do
22284 if test -z "$ac_lib"; then
22285 ac_res="none required"
22288 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
22290 if ac_fn_c_try_link "$LINENO"; then :
22291 ac_cv_search_inet_ntop=$ac_res
22293 rm -f core conftest.err conftest.$ac_objext \
22295 if ${ac_cv_search_inet_ntop+:} false; then :
22299 if ${ac_cv_search_inet_ntop+:} false; then :
22302 ac_cv_search_inet_ntop=no
22304 rm conftest.$ac_ext
22305 LIBS=$ac_func_search_save_LIBS
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
22308 $as_echo "$ac_cv_search_inet_ntop" >&6; }
22309 ac_res=$ac_cv_search_inet_ntop
22310 if test "$ac_res" != no; then :
22311 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22312 case "$ac_cv_search_inet_ntop" in
22313 'none required') ;;
22315 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
22321 # [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to
22322 # avoid keying on the OS name: If we find socket functions in
22323 # libsocket, next try for them in libxnet without libsocket, if found,
22324 # list both. If we simply tested libxnet first, we would find the
22325 # functions there and never add libsocket. See also [Bug 660]
22326 # http://bugs.ntp.org/show_bug.cgi?id=660#c9
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
22329 $as_echo_n "checking for library containing setsockopt... " >&6; }
22330 if ${ac_cv_search_setsockopt+:} false; then :
22331 $as_echo_n "(cached) " >&6
22333 ac_func_search_save_LIBS=$LIBS
22334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22335 /* end confdefs.h. */
22337 /* Override any GCC internal prototype to avoid an error.
22338 Use char because int might match the return type of a GCC
22339 builtin and then its argument prototype would still apply. */
22343 char setsockopt ();
22347 return setsockopt ();
22352 for ac_lib in '' socket; do
22353 if test -z "$ac_lib"; then
22354 ac_res="none required"
22357 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22359 if ac_fn_c_try_link "$LINENO"; then :
22360 ac_cv_search_setsockopt=$ac_res
22362 rm -f core conftest.err conftest.$ac_objext \
22364 if ${ac_cv_search_setsockopt+:} false; then :
22368 if ${ac_cv_search_setsockopt+:} false; then :
22371 ac_cv_search_setsockopt=no
22373 rm conftest.$ac_ext
22374 LIBS=$ac_func_search_save_LIBS
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
22377 $as_echo "$ac_cv_search_setsockopt" >&6; }
22378 ac_res=$ac_cv_search_setsockopt
22379 if test "$ac_res" != no; then :
22380 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22381 case "$ac_cv_search_setsockopt" in
22382 'none required') ;;
22384 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
22389 case "$ac_cv_search_setsockopt" in
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
22393 $as_echo_n "checking for library containing getsockopt... " >&6; }
22394 if ${ac_cv_search_getsockopt+:} false; then :
22395 $as_echo_n "(cached) " >&6
22397 ac_func_search_save_LIBS=$LIBS
22398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22399 /* end confdefs.h. */
22401 /* Override any GCC internal prototype to avoid an error.
22402 Use char because int might match the return type of a GCC
22403 builtin and then its argument prototype would still apply. */
22407 char getsockopt ();
22411 return getsockopt ();
22416 for ac_lib in '' xnet; do
22417 if test -z "$ac_lib"; then
22418 ac_res="none required"
22421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22423 if ac_fn_c_try_link "$LINENO"; then :
22424 ac_cv_search_getsockopt=$ac_res
22426 rm -f core conftest.err conftest.$ac_objext \
22428 if ${ac_cv_search_getsockopt+:} false; then :
22432 if ${ac_cv_search_getsockopt+:} false; then :
22435 ac_cv_search_getsockopt=no
22437 rm conftest.$ac_ext
22438 LIBS=$ac_func_search_save_LIBS
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
22441 $as_echo "$ac_cv_search_getsockopt" >&6; }
22442 ac_res=$ac_cv_search_getsockopt
22443 if test "$ac_res" != no; then :
22444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22445 case "$ac_cv_search_getsockopt" in
22446 'none required') ;;
22448 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
22453 # XXX Possible trouble here - reading the comments above and looking at the
22454 # code below I wonder if we'll add -lxnet when we don't need it.
22455 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
22456 # there when it is not needed?
22457 case "$ac_cv_search_getsockopt" in
22459 LIBS="-lxnet -lsocket $saved_LIBS"
22461 *) LIBS="-lsocket $saved_LIBS"
22466 { saved_LIBS=; unset saved_LIBS;}
22468 # Bug 2427 - look for recvmsg here.
22469 for ac_func in recvmsg
22471 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
22472 if test "x$ac_cv_func_recvmsg" = xyes; then :
22473 cat >>confdefs.h <<_ACEOF
22474 #define HAVE_RECVMSG 1
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22482 $as_echo_n "checking for inline... " >&6; }
22483 if ${ac_cv_c_inline+:} false; then :
22484 $as_echo_n "(cached) " >&6
22487 for ac_kw in inline __inline__ __inline; do
22488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22489 /* end confdefs.h. */
22490 #ifndef __cplusplus
22492 static $ac_kw foo_t static_foo () {return 0; }
22493 $ac_kw foo_t foo () {return 0; }
22497 if ac_fn_c_try_compile "$LINENO"; then :
22498 ac_cv_c_inline=$ac_kw
22500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22501 test "$ac_cv_c_inline" != no && break
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22506 $as_echo "$ac_cv_c_inline" >&6; }
22508 case $ac_cv_c_inline in
22511 case $ac_cv_c_inline in
22513 *) ac_val=$ac_cv_c_inline;;
22515 cat >>confdefs.h <<_ACEOF
22516 #ifndef __cplusplus
22517 #define inline $ac_val
22524 case "$ac_cv_c_inline" in
22529 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22535 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22536 if ${ac_cv_header_time+:} false; then :
22537 $as_echo_n "(cached) " >&6
22539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22540 /* end confdefs.h. */
22541 #include <sys/types.h>
22542 #include <sys/time.h>
22548 if ((struct tm *) 0)
22554 if ac_fn_c_try_compile "$LINENO"; then :
22555 ac_cv_header_time=yes
22557 ac_cv_header_time=no
22559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22562 $as_echo "$ac_cv_header_time" >&6; }
22563 if test $ac_cv_header_time = yes; then
22565 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22569 # The cast to long int works around a bug in the HP C Compiler
22570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22572 # This bug is HP SR number 8606223364.
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
22574 $as_echo_n "checking size of time_t... " >&6; }
22575 if ${ac_cv_sizeof_time_t+:} false; then :
22576 $as_echo_n "(cached) " >&6
22578 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
22581 if test "$ac_cv_type_time_t" = yes; then
22582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22584 as_fn_error 77 "cannot compute sizeof (time_t)
22585 See \`config.log' for more details" "$LINENO" 5; }
22587 ac_cv_sizeof_time_t=0
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
22593 $as_echo "$ac_cv_sizeof_time_t" >&6; }
22597 cat >>confdefs.h <<_ACEOF
22598 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22603 $as_echo_n "checking whether char is unsigned... " >&6; }
22604 if ${ac_cv_c_char_unsigned+:} false; then :
22605 $as_echo_n "(cached) " >&6
22607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22608 /* end confdefs.h. */
22609 $ac_includes_default
22613 static int test_array [1 - 2 * !(((char) -1) < 0)];
22614 test_array [0] = 0;
22615 return test_array [0];
22621 if ac_fn_c_try_compile "$LINENO"; then :
22622 ac_cv_c_char_unsigned=no
22624 ac_cv_c_char_unsigned=yes
22626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22629 $as_echo "$ac_cv_c_char_unsigned" >&6; }
22630 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22631 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22634 # The cast to long int works around a bug in the HP C Compiler
22635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22637 # This bug is HP SR number 8606223364.
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
22639 $as_echo_n "checking size of signed char... " >&6; }
22640 if ${ac_cv_sizeof_signed_char+:} false; then :
22641 $as_echo_n "(cached) " >&6
22643 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
22646 if test "$ac_cv_type_signed_char" = yes; then
22647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22649 as_fn_error 77 "cannot compute sizeof (signed char)
22650 See \`config.log' for more details" "$LINENO" 5; }
22652 ac_cv_sizeof_signed_char=0
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
22658 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
22662 cat >>confdefs.h <<_ACEOF
22663 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
22667 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
22668 if test "x$ac_cv_type_s_char" = xyes; then :
22670 cat >>confdefs.h <<_ACEOF
22671 #define HAVE_S_CHAR 1
22676 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22677 if test "x$ac_cv_type_long_long" = xyes; then :
22679 cat >>confdefs.h <<_ACEOF
22680 #define HAVE_LONG_LONG 1
22686 # The cast to long int works around a bug in the HP C Compiler
22687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22689 # This bug is HP SR number 8606223364.
22690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
22691 $as_echo_n "checking size of short... " >&6; }
22692 if ${ac_cv_sizeof_short+:} false; then :
22693 $as_echo_n "(cached) " >&6
22695 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
22698 if test "$ac_cv_type_short" = yes; then
22699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22701 as_fn_error 77 "cannot compute sizeof (short)
22702 See \`config.log' for more details" "$LINENO" 5; }
22704 ac_cv_sizeof_short=0
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
22710 $as_echo "$ac_cv_sizeof_short" >&6; }
22714 cat >>confdefs.h <<_ACEOF
22715 #define SIZEOF_SHORT $ac_cv_sizeof_short
22719 # The cast to long int works around a bug in the HP C Compiler
22720 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22721 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22722 # This bug is HP SR number 8606223364.
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
22724 $as_echo_n "checking size of int... " >&6; }
22725 if ${ac_cv_sizeof_int+:} false; then :
22726 $as_echo_n "(cached) " >&6
22728 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
22731 if test "$ac_cv_type_int" = yes; then
22732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22734 as_fn_error 77 "cannot compute sizeof (int)
22735 See \`config.log' for more details" "$LINENO" 5; }
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
22743 $as_echo "$ac_cv_sizeof_int" >&6; }
22747 cat >>confdefs.h <<_ACEOF
22748 #define SIZEOF_INT $ac_cv_sizeof_int
22752 # The cast to long int works around a bug in the HP C Compiler
22753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22755 # This bug is HP SR number 8606223364.
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
22757 $as_echo_n "checking size of long... " >&6; }
22758 if ${ac_cv_sizeof_long+:} false; then :
22759 $as_echo_n "(cached) " >&6
22761 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
22764 if test "$ac_cv_type_long" = yes; then
22765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22767 as_fn_error 77 "cannot compute sizeof (long)
22768 See \`config.log' for more details" "$LINENO" 5; }
22770 ac_cv_sizeof_long=0
22775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
22776 $as_echo "$ac_cv_sizeof_long" >&6; }
22780 cat >>confdefs.h <<_ACEOF
22781 #define SIZEOF_LONG $ac_cv_sizeof_long
22786 case "$ac_cv_type_long_long" in
22790 # The cast to long int works around a bug in the HP C Compiler
22791 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22792 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22793 # This bug is HP SR number 8606223364.
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
22795 $as_echo_n "checking size of long long... " >&6; }
22796 if ${ac_cv_sizeof_long_long+:} false; then :
22797 $as_echo_n "(cached) " >&6
22799 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
22802 if test "$ac_cv_type_long_long" = yes; then
22803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22805 as_fn_error 77 "cannot compute sizeof (long long)
22806 See \`config.log' for more details" "$LINENO" 5; }
22808 ac_cv_sizeof_long_long=0
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
22814 $as_echo "$ac_cv_sizeof_long_long" >&6; }
22818 cat >>confdefs.h <<_ACEOF
22819 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22826 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
22828 # We have a typedef for s_char. Might as well believe it...
22831 # We have signed chars, can't say 'signed char', no s_char typedef.
22833 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22837 # We have signed chars, can say 'signed char', no s_char typedef.
22839 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22843 # We have unsigned chars, can't say 'signed char', no s_char typedef.
22844 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
22847 # We have unsigned chars, can say 'signed char', no s_char typedef.
22849 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22855 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22856 if ${ac_cv_type_uid_t+:} false; then :
22857 $as_echo_n "(cached) " >&6
22859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22860 /* end confdefs.h. */
22861 #include <sys/types.h>
22864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22865 $EGREP "uid_t" >/dev/null 2>&1; then :
22866 ac_cv_type_uid_t=yes
22868 ac_cv_type_uid_t=no
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22874 $as_echo "$ac_cv_type_uid_t" >&6; }
22875 if test $ac_cv_type_uid_t = no; then
22877 $as_echo "#define uid_t int" >>confdefs.h
22880 $as_echo "#define gid_t int" >>confdefs.h
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
22890 $as_echo_n "checking if we're including debugging code... " >&6; }
22891 # Check whether --enable-debugging was given.
22892 if test "${enable_debugging+set}" = set; then :
22893 enableval=$enable_debugging; ntp_ok=$enableval
22902 $as_echo "#define DEBUG 1" >>confdefs.h
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22906 $as_echo "$ntp_ok" >&6; }
22910 # check if we can compile with pthreads
22911 for ac_header in semaphore.h
22913 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
22914 if test "x$ac_cv_header_semaphore_h" = xyes; then :
22915 cat >>confdefs.h <<_ACEOF
22916 #define HAVE_SEMAPHORE_H 1
22923 for ac_func in socketpair
22925 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
22926 if test "x$ac_cv_func_socketpair" = xyes; then :
22927 cat >>confdefs.h <<_ACEOF
22928 #define HAVE_SOCKETPAIR 1
22934 # Check whether --enable-thread-support was given.
22935 if test "${enable_thread_support+set}" = set; then :
22936 enableval=$enable_thread_support;
22938 enable_thread_support=yes
22943 case "$enable_thread_support" in
22945 ol_found_pthreads=no
22950 ac_cpp='$CPP $CPPFLAGS'
22951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22955 # OpenLDAP --with-threads
22957 # Check whether --with-threads was given.
22958 if test "${with_threads+set}" = set; then :
22959 withval=$with_threads;
22961 for ol_val in auto nt posix mach pth lwp yes no manual ; do
22962 if test "$withval" = "$ol_val" ; then
22966 if test "$ol_arg" = "invalid" ; then
22967 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
22969 ol_with_threads="$ol_arg"
22972 ol_with_threads="auto"
22974 # end --with-threads
22977 case "$ol_with_threads$host" in
22978 auto*-*-solaris2.[0-6])
22986 *-*-aix*) if test -z "$CC" ; then
22987 case "$ol_with_threads" in
22988 auto | yes | posix) ol_aix_threads=yes ;;
22994 if test $ol_aix_threads = yes ; then
22995 if test -z "${CC}" ; then
22996 for ac_prog in cc_r xlc_r cc
22998 # Extract the first word of "$ac_prog", so it can be a program name with args.
22999 set dummy $ac_prog; ac_word=$2
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23001 $as_echo_n "checking for $ac_word... " >&6; }
23002 if ${ac_cv_prog_CC+:} false; then :
23003 $as_echo_n "(cached) " >&6
23005 if test -n "$CC"; then
23006 ac_cv_prog_CC="$CC" # Let the user override the test.
23008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23009 for as_dir in $PATH
23012 test -z "$as_dir" && as_dir=.
23013 for ac_exec_ext in '' $ac_executable_extensions; do
23014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23015 ac_cv_prog_CC="$ac_prog"
23016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23026 if test -n "$CC"; then
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
23028 $as_echo "$CC" >&6; }
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23031 $as_echo "no" >&6; }
23035 test -n "$CC" && break
23039 if test "$CC" = cc ; then
23040 if test $ol_with_threads != auto ; then
23041 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
23043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
23044 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
23050 case ${CC} in cc_r | xlc_r)
23051 ol_with_threads=posix
23052 ol_cv_pthread_create=yes
23058 # OpenLDAP --with-yielding_select
23060 # Check whether --with-yielding_select was given.
23061 if test "${with_yielding_select+set}" = set; then :
23062 withval=$with_yielding_select;
23064 for ol_val in auto yes no manual ; do
23065 if test "$withval" = "$ol_val" ; then
23069 if test "$ol_arg" = "invalid" ; then
23070 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
23072 ol_with_yielding_select="$ol_arg"
23075 ol_with_yielding_select="auto"
23077 # end --with-yielding_select
23080 case $ol_with_threads in auto | yes | nt)
23083 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
23084 if test "x$ac_cv_func__beginthread" = xyes; then :
23089 if test $ac_cv_func__beginthread = yes ; then
23091 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
23093 ol_cv_nt_threads=yes
23097 if test "$ol_cv_nt_threads" = yes ; then
23099 ol_with_threads=found
23100 ol_with_yielding_select=yes
23103 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
23106 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
23110 if test $ol_with_threads = nt ; then
23111 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
23116 case $ol_with_threads in auto | yes | posix)
23118 for ac_header in pthread.h
23120 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
23121 if test "x$ac_cv_header_pthread_h" = xyes; then :
23122 cat >>confdefs.h <<_ACEOF
23123 #define HAVE_PTHREAD_H 1
23131 if test $ac_cv_header_pthread_h = yes ; then
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
23133 $as_echo_n "checking POSIX thread version... " >&6; }
23134 if ${ol_cv_pthread_version+:} false; then :
23135 $as_echo_n "(cached) " >&6
23138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23139 /* end confdefs.h. */
23141 # include <pthread.h>
23147 int i = PTHREAD_CREATE_JOINABLE;
23153 if ac_fn_c_try_compile "$LINENO"; then :
23155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23156 /* end confdefs.h. */
23157 #include <pthread.h>
23160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23161 $EGREP "pthread_detach" >/dev/null 2>&1; then :
23162 ol_cv_pthread_version=10
23164 ol_cv_pthread_version=8
23170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23171 /* end confdefs.h. */
23173 # include <pthread.h>
23174 # ifdef PTHREAD_CREATE_UNDETACHED
23179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23180 $EGREP "draft7" >/dev/null 2>&1; then :
23181 ol_cv_pthread_version=7
23184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23185 /* end confdefs.h. */
23186 #include <pthread.h>
23189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23190 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
23191 ol_cv_pthread_version=6
23194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23195 /* end confdefs.h. */
23197 # include <pthread.h>
23198 #ifdef PTHREAD_MUTEX_INITIALIZER
23203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23204 $EGREP "draft5" >/dev/null 2>&1; then :
23205 ol_cv_pthread_version=5
23207 ol_cv_pthread_version=4
23218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
23222 $as_echo "$ol_cv_pthread_version" >&6; }
23225 if test $ol_cv_pthread_version != 0 ; then
23227 cat >>confdefs.h <<_ACEOF
23228 #define HAVE_PTHREADS $ol_cv_pthread_version
23232 as_fn_error $? "unknown pthread version" "$LINENO" 5
23235 # consider threads found
23236 ol_with_threads=found
23239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
23240 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
23241 if ${ol_cv_header_linux_threads+:} false; then :
23242 $as_echo_n "(cached) " >&6
23244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23245 /* end confdefs.h. */
23246 #include <pthread.h>
23248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23249 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
23250 ol_cv_header_linux_threads=yes
23252 ol_cv_header_linux_threads=no
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
23259 $as_echo "$ol_cv_header_linux_threads" >&6; }
23260 if test $ol_cv_header_linux_threads = yes; then
23262 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
23268 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
23269 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
23270 $as_echo_n "(cached) " >&6
23272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23273 /* end confdefs.h. */
23274 #include <pthread.h>
23275 #ifdef _POSIX_THREAD_IS_GNU_PTH
23280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23281 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
23282 ol_cv_header_gnu_pth_pthread_h=yes
23284 ol_cv_header_gnu_pth_pthread_h=no
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
23291 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
23294 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
23295 for ac_header in sched.h
23297 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
23298 if test "x$ac_cv_header_sched_h" = xyes; then :
23299 cat >>confdefs.h <<_ACEOF
23300 #define HAVE_SCHED_H 1
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
23311 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
23312 if ${ol_cv_pthread_create+:} false; then :
23313 $as_echo_n "(cached) " >&6
23316 if test "$cross_compiling" = yes; then :
23317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23318 /* end confdefs.h. */
23320 /* pthread test headers */
23321 #include <pthread.h>
23322 #if HAVE_PTHREADS < 7
23326 #define NULL (void*)0
23329 static void *task(p)
23332 return (void *) (p == NULL);
23339 /* pthread test function */
23340 #ifndef PTHREAD_CREATE_DETACHED
23341 #define PTHREAD_CREATE_DETACHED 1
23345 int detach = PTHREAD_CREATE_DETACHED;
23347 #if HAVE_PTHREADS > 4
23348 /* Final pthreads */
23349 pthread_attr_t attr;
23351 status = pthread_attr_init(&attr);
23352 if( status ) return status;
23354 #if HAVE_PTHREADS < 7
23355 status = pthread_attr_setdetachstate(&attr, &detach);
23356 if( status < 0 ) status = errno;
23358 status = pthread_attr_setdetachstate(&attr, detach);
23360 if( status ) return status;
23361 status = pthread_create( &t, &attr, task, NULL );
23362 #if HAVE_PTHREADS < 7
23363 if( status < 0 ) status = errno;
23365 if( status ) return status;
23367 /* Draft 4 pthreads */
23368 status = pthread_create( &t, pthread_attr_default, task, NULL );
23369 if( status ) return errno;
23371 /* give thread a chance to complete */
23372 /* it should remain joinable and hence detachable */
23375 status = pthread_detach( &t );
23376 if( status ) return errno;
23379 #ifdef HAVE_LINUX_THREADS
23380 pthread_kill_other_threads_np();
23389 if ac_fn_c_try_link "$LINENO"; then :
23390 ol_cv_pthread_create=yes
23392 ol_cv_pthread_create=no
23394 rm -f core conftest.err conftest.$ac_objext \
23395 conftest$ac_exeext conftest.$ac_ext
23397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23398 /* end confdefs.h. */
23401 /* pthread test headers */
23402 #include <pthread.h>
23403 #if HAVE_PTHREADS < 7
23407 #define NULL (void*)0
23410 static void *task(p)
23413 return (void *) (p == NULL);
23417 int main(argc, argv)
23422 /* pthread test function */
23423 #ifndef PTHREAD_CREATE_DETACHED
23424 #define PTHREAD_CREATE_DETACHED 1
23428 int detach = PTHREAD_CREATE_DETACHED;
23430 #if HAVE_PTHREADS > 4
23431 /* Final pthreads */
23432 pthread_attr_t attr;
23434 status = pthread_attr_init(&attr);
23435 if( status ) return status;
23437 #if HAVE_PTHREADS < 7
23438 status = pthread_attr_setdetachstate(&attr, &detach);
23439 if( status < 0 ) status = errno;
23441 status = pthread_attr_setdetachstate(&attr, detach);
23443 if( status ) return status;
23444 status = pthread_create( &t, &attr, task, NULL );
23445 #if HAVE_PTHREADS < 7
23446 if( status < 0 ) status = errno;
23448 if( status ) return status;
23450 /* Draft 4 pthreads */
23451 status = pthread_create( &t, pthread_attr_default, task, NULL );
23452 if( status ) return errno;
23454 /* give thread a chance to complete */
23455 /* it should remain joinable and hence detachable */
23458 status = pthread_detach( &t );
23459 if( status ) return errno;
23462 #ifdef HAVE_LINUX_THREADS
23463 pthread_kill_other_threads_np();
23471 if ac_fn_c_try_run "$LINENO"; then :
23472 ol_cv_pthread_create=yes
23474 ol_cv_pthread_create=no
23476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23477 conftest.$ac_objext conftest.beam conftest.$ac_ext
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
23482 $as_echo "$ol_cv_pthread_create" >&6; }
23484 if test $ol_cv_pthread_create != no ; then
23485 ol_link_threads=posix
23486 ol_link_pthreads=""
23489 # Pthread try link: -kthread (ol_cv_pthread_kthread)
23490 if test "$ol_link_threads" = no ; then
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
23493 $as_echo_n "checking for pthread link with -kthread... " >&6; }
23494 if ${ol_cv_pthread_kthread+:} false; then :
23495 $as_echo_n "(cached) " >&6
23500 LIBS="-kthread $LIBS"
23502 if test "$cross_compiling" = yes; then :
23503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23504 /* end confdefs.h. */
23506 /* pthread test headers */
23507 #include <pthread.h>
23508 #if HAVE_PTHREADS < 7
23512 #define NULL (void*)0
23515 static void *task(p)
23518 return (void *) (p == NULL);
23525 /* pthread test function */
23526 #ifndef PTHREAD_CREATE_DETACHED
23527 #define PTHREAD_CREATE_DETACHED 1
23531 int detach = PTHREAD_CREATE_DETACHED;
23533 #if HAVE_PTHREADS > 4
23534 /* Final pthreads */
23535 pthread_attr_t attr;
23537 status = pthread_attr_init(&attr);
23538 if( status ) return status;
23540 #if HAVE_PTHREADS < 7
23541 status = pthread_attr_setdetachstate(&attr, &detach);
23542 if( status < 0 ) status = errno;
23544 status = pthread_attr_setdetachstate(&attr, detach);
23546 if( status ) return status;
23547 status = pthread_create( &t, &attr, task, NULL );
23548 #if HAVE_PTHREADS < 7
23549 if( status < 0 ) status = errno;
23551 if( status ) return status;
23553 /* Draft 4 pthreads */
23554 status = pthread_create( &t, pthread_attr_default, task, NULL );
23555 if( status ) return errno;
23557 /* give thread a chance to complete */
23558 /* it should remain joinable and hence detachable */
23561 status = pthread_detach( &t );
23562 if( status ) return errno;
23565 #ifdef HAVE_LINUX_THREADS
23566 pthread_kill_other_threads_np();
23575 if ac_fn_c_try_link "$LINENO"; then :
23576 ol_cv_pthread_kthread=yes
23578 ol_cv_pthread_kthread=no
23580 rm -f core conftest.err conftest.$ac_objext \
23581 conftest$ac_exeext conftest.$ac_ext
23583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23584 /* end confdefs.h. */
23587 /* pthread test headers */
23588 #include <pthread.h>
23589 #if HAVE_PTHREADS < 7
23593 #define NULL (void*)0
23596 static void *task(p)
23599 return (void *) (p == NULL);
23603 int main(argc, argv)
23608 /* pthread test function */
23609 #ifndef PTHREAD_CREATE_DETACHED
23610 #define PTHREAD_CREATE_DETACHED 1
23614 int detach = PTHREAD_CREATE_DETACHED;
23616 #if HAVE_PTHREADS > 4
23617 /* Final pthreads */
23618 pthread_attr_t attr;
23620 status = pthread_attr_init(&attr);
23621 if( status ) return status;
23623 #if HAVE_PTHREADS < 7
23624 status = pthread_attr_setdetachstate(&attr, &detach);
23625 if( status < 0 ) status = errno;
23627 status = pthread_attr_setdetachstate(&attr, detach);
23629 if( status ) return status;
23630 status = pthread_create( &t, &attr, task, NULL );
23631 #if HAVE_PTHREADS < 7
23632 if( status < 0 ) status = errno;
23634 if( status ) return status;
23636 /* Draft 4 pthreads */
23637 status = pthread_create( &t, pthread_attr_default, task, NULL );
23638 if( status ) return errno;
23640 /* give thread a chance to complete */
23641 /* it should remain joinable and hence detachable */
23644 status = pthread_detach( &t );
23645 if( status ) return errno;
23648 #ifdef HAVE_LINUX_THREADS
23649 pthread_kill_other_threads_np();
23657 if ac_fn_c_try_run "$LINENO"; then :
23658 ol_cv_pthread_kthread=yes
23660 ol_cv_pthread_kthread=no
23662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23663 conftest.$ac_objext conftest.beam conftest.$ac_ext
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
23672 $as_echo "$ol_cv_pthread_kthread" >&6; }
23674 if test $ol_cv_pthread_kthread = yes ; then
23675 ol_link_pthreads="-kthread"
23676 ol_link_threads=posix
23680 # Pthread try link: -pthread (ol_cv_pthread_pthread)
23681 if test "$ol_link_threads" = no ; then
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
23684 $as_echo_n "checking for pthread link with -pthread... " >&6; }
23685 if ${ol_cv_pthread_pthread+:} false; then :
23686 $as_echo_n "(cached) " >&6
23691 LIBS="-pthread $LIBS"
23693 if test "$cross_compiling" = yes; then :
23694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23695 /* end confdefs.h. */
23697 /* pthread test headers */
23698 #include <pthread.h>
23699 #if HAVE_PTHREADS < 7
23703 #define NULL (void*)0
23706 static void *task(p)
23709 return (void *) (p == NULL);
23716 /* pthread test function */
23717 #ifndef PTHREAD_CREATE_DETACHED
23718 #define PTHREAD_CREATE_DETACHED 1
23722 int detach = PTHREAD_CREATE_DETACHED;
23724 #if HAVE_PTHREADS > 4
23725 /* Final pthreads */
23726 pthread_attr_t attr;
23728 status = pthread_attr_init(&attr);
23729 if( status ) return status;
23731 #if HAVE_PTHREADS < 7
23732 status = pthread_attr_setdetachstate(&attr, &detach);
23733 if( status < 0 ) status = errno;
23735 status = pthread_attr_setdetachstate(&attr, detach);
23737 if( status ) return status;
23738 status = pthread_create( &t, &attr, task, NULL );
23739 #if HAVE_PTHREADS < 7
23740 if( status < 0 ) status = errno;
23742 if( status ) return status;
23744 /* Draft 4 pthreads */
23745 status = pthread_create( &t, pthread_attr_default, task, NULL );
23746 if( status ) return errno;
23748 /* give thread a chance to complete */
23749 /* it should remain joinable and hence detachable */
23752 status = pthread_detach( &t );
23753 if( status ) return errno;
23756 #ifdef HAVE_LINUX_THREADS
23757 pthread_kill_other_threads_np();
23766 if ac_fn_c_try_link "$LINENO"; then :
23767 ol_cv_pthread_pthread=yes
23769 ol_cv_pthread_pthread=no
23771 rm -f core conftest.err conftest.$ac_objext \
23772 conftest$ac_exeext conftest.$ac_ext
23774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23775 /* end confdefs.h. */
23778 /* pthread test headers */
23779 #include <pthread.h>
23780 #if HAVE_PTHREADS < 7
23784 #define NULL (void*)0
23787 static void *task(p)
23790 return (void *) (p == NULL);
23794 int main(argc, argv)
23799 /* pthread test function */
23800 #ifndef PTHREAD_CREATE_DETACHED
23801 #define PTHREAD_CREATE_DETACHED 1
23805 int detach = PTHREAD_CREATE_DETACHED;
23807 #if HAVE_PTHREADS > 4
23808 /* Final pthreads */
23809 pthread_attr_t attr;
23811 status = pthread_attr_init(&attr);
23812 if( status ) return status;
23814 #if HAVE_PTHREADS < 7
23815 status = pthread_attr_setdetachstate(&attr, &detach);
23816 if( status < 0 ) status = errno;
23818 status = pthread_attr_setdetachstate(&attr, detach);
23820 if( status ) return status;
23821 status = pthread_create( &t, &attr, task, NULL );
23822 #if HAVE_PTHREADS < 7
23823 if( status < 0 ) status = errno;
23825 if( status ) return status;
23827 /* Draft 4 pthreads */
23828 status = pthread_create( &t, pthread_attr_default, task, NULL );
23829 if( status ) return errno;
23831 /* give thread a chance to complete */
23832 /* it should remain joinable and hence detachable */
23835 status = pthread_detach( &t );
23836 if( status ) return errno;
23839 #ifdef HAVE_LINUX_THREADS
23840 pthread_kill_other_threads_np();
23848 if ac_fn_c_try_run "$LINENO"; then :
23849 ol_cv_pthread_pthread=yes
23851 ol_cv_pthread_pthread=no
23853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23854 conftest.$ac_objext conftest.beam conftest.$ac_ext
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
23863 $as_echo "$ol_cv_pthread_pthread" >&6; }
23865 if test $ol_cv_pthread_pthread = yes ; then
23866 ol_link_pthreads="-pthread"
23867 ol_link_threads=posix
23871 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
23872 if test "$ol_link_threads" = no ; then
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
23875 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
23876 if ${ol_cv_pthread_pthreads+:} false; then :
23877 $as_echo_n "(cached) " >&6
23882 LIBS="-pthreads $LIBS"
23884 if test "$cross_compiling" = yes; then :
23885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23886 /* end confdefs.h. */
23888 /* pthread test headers */
23889 #include <pthread.h>
23890 #if HAVE_PTHREADS < 7
23894 #define NULL (void*)0
23897 static void *task(p)
23900 return (void *) (p == NULL);
23907 /* pthread test function */
23908 #ifndef PTHREAD_CREATE_DETACHED
23909 #define PTHREAD_CREATE_DETACHED 1
23913 int detach = PTHREAD_CREATE_DETACHED;
23915 #if HAVE_PTHREADS > 4
23916 /* Final pthreads */
23917 pthread_attr_t attr;
23919 status = pthread_attr_init(&attr);
23920 if( status ) return status;
23922 #if HAVE_PTHREADS < 7
23923 status = pthread_attr_setdetachstate(&attr, &detach);
23924 if( status < 0 ) status = errno;
23926 status = pthread_attr_setdetachstate(&attr, detach);
23928 if( status ) return status;
23929 status = pthread_create( &t, &attr, task, NULL );
23930 #if HAVE_PTHREADS < 7
23931 if( status < 0 ) status = errno;
23933 if( status ) return status;
23935 /* Draft 4 pthreads */
23936 status = pthread_create( &t, pthread_attr_default, task, NULL );
23937 if( status ) return errno;
23939 /* give thread a chance to complete */
23940 /* it should remain joinable and hence detachable */
23943 status = pthread_detach( &t );
23944 if( status ) return errno;
23947 #ifdef HAVE_LINUX_THREADS
23948 pthread_kill_other_threads_np();
23957 if ac_fn_c_try_link "$LINENO"; then :
23958 ol_cv_pthread_pthreads=yes
23960 ol_cv_pthread_pthreads=no
23962 rm -f core conftest.err conftest.$ac_objext \
23963 conftest$ac_exeext conftest.$ac_ext
23965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23966 /* end confdefs.h. */
23969 /* pthread test headers */
23970 #include <pthread.h>
23971 #if HAVE_PTHREADS < 7
23975 #define NULL (void*)0
23978 static void *task(p)
23981 return (void *) (p == NULL);
23985 int main(argc, argv)
23990 /* pthread test function */
23991 #ifndef PTHREAD_CREATE_DETACHED
23992 #define PTHREAD_CREATE_DETACHED 1
23996 int detach = PTHREAD_CREATE_DETACHED;
23998 #if HAVE_PTHREADS > 4
23999 /* Final pthreads */
24000 pthread_attr_t attr;
24002 status = pthread_attr_init(&attr);
24003 if( status ) return status;
24005 #if HAVE_PTHREADS < 7
24006 status = pthread_attr_setdetachstate(&attr, &detach);
24007 if( status < 0 ) status = errno;
24009 status = pthread_attr_setdetachstate(&attr, detach);
24011 if( status ) return status;
24012 status = pthread_create( &t, &attr, task, NULL );
24013 #if HAVE_PTHREADS < 7
24014 if( status < 0 ) status = errno;
24016 if( status ) return status;
24018 /* Draft 4 pthreads */
24019 status = pthread_create( &t, pthread_attr_default, task, NULL );
24020 if( status ) return errno;
24022 /* give thread a chance to complete */
24023 /* it should remain joinable and hence detachable */
24026 status = pthread_detach( &t );
24027 if( status ) return errno;
24030 #ifdef HAVE_LINUX_THREADS
24031 pthread_kill_other_threads_np();
24039 if ac_fn_c_try_run "$LINENO"; then :
24040 ol_cv_pthread_pthreads=yes
24042 ol_cv_pthread_pthreads=no
24044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24045 conftest.$ac_objext conftest.beam conftest.$ac_ext
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
24054 $as_echo "$ol_cv_pthread_pthreads" >&6; }
24056 if test $ol_cv_pthread_pthreads = yes ; then
24057 ol_link_pthreads="-pthreads"
24058 ol_link_threads=posix
24062 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
24063 if test "$ol_link_threads" = no ; then
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
24066 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
24067 if ${ol_cv_pthread_mthreads+:} false; then :
24068 $as_echo_n "(cached) " >&6
24073 LIBS="-mthreads $LIBS"
24075 if test "$cross_compiling" = yes; then :
24076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24077 /* end confdefs.h. */
24079 /* pthread test headers */
24080 #include <pthread.h>
24081 #if HAVE_PTHREADS < 7
24085 #define NULL (void*)0
24088 static void *task(p)
24091 return (void *) (p == NULL);
24098 /* pthread test function */
24099 #ifndef PTHREAD_CREATE_DETACHED
24100 #define PTHREAD_CREATE_DETACHED 1
24104 int detach = PTHREAD_CREATE_DETACHED;
24106 #if HAVE_PTHREADS > 4
24107 /* Final pthreads */
24108 pthread_attr_t attr;
24110 status = pthread_attr_init(&attr);
24111 if( status ) return status;
24113 #if HAVE_PTHREADS < 7
24114 status = pthread_attr_setdetachstate(&attr, &detach);
24115 if( status < 0 ) status = errno;
24117 status = pthread_attr_setdetachstate(&attr, detach);
24119 if( status ) return status;
24120 status = pthread_create( &t, &attr, task, NULL );
24121 #if HAVE_PTHREADS < 7
24122 if( status < 0 ) status = errno;
24124 if( status ) return status;
24126 /* Draft 4 pthreads */
24127 status = pthread_create( &t, pthread_attr_default, task, NULL );
24128 if( status ) return errno;
24130 /* give thread a chance to complete */
24131 /* it should remain joinable and hence detachable */
24134 status = pthread_detach( &t );
24135 if( status ) return errno;
24138 #ifdef HAVE_LINUX_THREADS
24139 pthread_kill_other_threads_np();
24148 if ac_fn_c_try_link "$LINENO"; then :
24149 ol_cv_pthread_mthreads=yes
24151 ol_cv_pthread_mthreads=no
24153 rm -f core conftest.err conftest.$ac_objext \
24154 conftest$ac_exeext conftest.$ac_ext
24156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24157 /* end confdefs.h. */
24160 /* pthread test headers */
24161 #include <pthread.h>
24162 #if HAVE_PTHREADS < 7
24166 #define NULL (void*)0
24169 static void *task(p)
24172 return (void *) (p == NULL);
24176 int main(argc, argv)
24181 /* pthread test function */
24182 #ifndef PTHREAD_CREATE_DETACHED
24183 #define PTHREAD_CREATE_DETACHED 1
24187 int detach = PTHREAD_CREATE_DETACHED;
24189 #if HAVE_PTHREADS > 4
24190 /* Final pthreads */
24191 pthread_attr_t attr;
24193 status = pthread_attr_init(&attr);
24194 if( status ) return status;
24196 #if HAVE_PTHREADS < 7
24197 status = pthread_attr_setdetachstate(&attr, &detach);
24198 if( status < 0 ) status = errno;
24200 status = pthread_attr_setdetachstate(&attr, detach);
24202 if( status ) return status;
24203 status = pthread_create( &t, &attr, task, NULL );
24204 #if HAVE_PTHREADS < 7
24205 if( status < 0 ) status = errno;
24207 if( status ) return status;
24209 /* Draft 4 pthreads */
24210 status = pthread_create( &t, pthread_attr_default, task, NULL );
24211 if( status ) return errno;
24213 /* give thread a chance to complete */
24214 /* it should remain joinable and hence detachable */
24217 status = pthread_detach( &t );
24218 if( status ) return errno;
24221 #ifdef HAVE_LINUX_THREADS
24222 pthread_kill_other_threads_np();
24230 if ac_fn_c_try_run "$LINENO"; then :
24231 ol_cv_pthread_mthreads=yes
24233 ol_cv_pthread_mthreads=no
24235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24236 conftest.$ac_objext conftest.beam conftest.$ac_ext
24244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
24245 $as_echo "$ol_cv_pthread_mthreads" >&6; }
24247 if test $ol_cv_pthread_mthreads = yes ; then
24248 ol_link_pthreads="-mthreads"
24249 ol_link_threads=posix
24253 # Pthread try link: -thread (ol_cv_pthread_thread)
24254 if test "$ol_link_threads" = no ; then
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
24257 $as_echo_n "checking for pthread link with -thread... " >&6; }
24258 if ${ol_cv_pthread_thread+:} false; then :
24259 $as_echo_n "(cached) " >&6
24264 LIBS="-thread $LIBS"
24266 if test "$cross_compiling" = yes; then :
24267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24268 /* end confdefs.h. */
24270 /* pthread test headers */
24271 #include <pthread.h>
24272 #if HAVE_PTHREADS < 7
24276 #define NULL (void*)0
24279 static void *task(p)
24282 return (void *) (p == NULL);
24289 /* pthread test function */
24290 #ifndef PTHREAD_CREATE_DETACHED
24291 #define PTHREAD_CREATE_DETACHED 1
24295 int detach = PTHREAD_CREATE_DETACHED;
24297 #if HAVE_PTHREADS > 4
24298 /* Final pthreads */
24299 pthread_attr_t attr;
24301 status = pthread_attr_init(&attr);
24302 if( status ) return status;
24304 #if HAVE_PTHREADS < 7
24305 status = pthread_attr_setdetachstate(&attr, &detach);
24306 if( status < 0 ) status = errno;
24308 status = pthread_attr_setdetachstate(&attr, detach);
24310 if( status ) return status;
24311 status = pthread_create( &t, &attr, task, NULL );
24312 #if HAVE_PTHREADS < 7
24313 if( status < 0 ) status = errno;
24315 if( status ) return status;
24317 /* Draft 4 pthreads */
24318 status = pthread_create( &t, pthread_attr_default, task, NULL );
24319 if( status ) return errno;
24321 /* give thread a chance to complete */
24322 /* it should remain joinable and hence detachable */
24325 status = pthread_detach( &t );
24326 if( status ) return errno;
24329 #ifdef HAVE_LINUX_THREADS
24330 pthread_kill_other_threads_np();
24339 if ac_fn_c_try_link "$LINENO"; then :
24340 ol_cv_pthread_thread=yes
24342 ol_cv_pthread_thread=no
24344 rm -f core conftest.err conftest.$ac_objext \
24345 conftest$ac_exeext conftest.$ac_ext
24347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24348 /* end confdefs.h. */
24351 /* pthread test headers */
24352 #include <pthread.h>
24353 #if HAVE_PTHREADS < 7
24357 #define NULL (void*)0
24360 static void *task(p)
24363 return (void *) (p == NULL);
24367 int main(argc, argv)
24372 /* pthread test function */
24373 #ifndef PTHREAD_CREATE_DETACHED
24374 #define PTHREAD_CREATE_DETACHED 1
24378 int detach = PTHREAD_CREATE_DETACHED;
24380 #if HAVE_PTHREADS > 4
24381 /* Final pthreads */
24382 pthread_attr_t attr;
24384 status = pthread_attr_init(&attr);
24385 if( status ) return status;
24387 #if HAVE_PTHREADS < 7
24388 status = pthread_attr_setdetachstate(&attr, &detach);
24389 if( status < 0 ) status = errno;
24391 status = pthread_attr_setdetachstate(&attr, detach);
24393 if( status ) return status;
24394 status = pthread_create( &t, &attr, task, NULL );
24395 #if HAVE_PTHREADS < 7
24396 if( status < 0 ) status = errno;
24398 if( status ) return status;
24400 /* Draft 4 pthreads */
24401 status = pthread_create( &t, pthread_attr_default, task, NULL );
24402 if( status ) return errno;
24404 /* give thread a chance to complete */
24405 /* it should remain joinable and hence detachable */
24408 status = pthread_detach( &t );
24409 if( status ) return errno;
24412 #ifdef HAVE_LINUX_THREADS
24413 pthread_kill_other_threads_np();
24421 if ac_fn_c_try_run "$LINENO"; then :
24422 ol_cv_pthread_thread=yes
24424 ol_cv_pthread_thread=no
24426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24427 conftest.$ac_objext conftest.beam conftest.$ac_ext
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
24436 $as_echo "$ol_cv_pthread_thread" >&6; }
24438 if test $ol_cv_pthread_thread = yes ; then
24439 ol_link_pthreads="-thread"
24440 ol_link_threads=posix
24445 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
24446 if test "$ol_link_threads" = no ; then
24447 # try -lpthread -lmach -lexc -lc_r
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
24449 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
24450 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
24451 $as_echo_n "(cached) " >&6
24456 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
24458 if test "$cross_compiling" = yes; then :
24459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24460 /* end confdefs.h. */
24462 /* pthread test headers */
24463 #include <pthread.h>
24464 #if HAVE_PTHREADS < 7
24468 #define NULL (void*)0
24471 static void *task(p)
24474 return (void *) (p == NULL);
24481 /* pthread test function */
24482 #ifndef PTHREAD_CREATE_DETACHED
24483 #define PTHREAD_CREATE_DETACHED 1
24487 int detach = PTHREAD_CREATE_DETACHED;
24489 #if HAVE_PTHREADS > 4
24490 /* Final pthreads */
24491 pthread_attr_t attr;
24493 status = pthread_attr_init(&attr);
24494 if( status ) return status;
24496 #if HAVE_PTHREADS < 7
24497 status = pthread_attr_setdetachstate(&attr, &detach);
24498 if( status < 0 ) status = errno;
24500 status = pthread_attr_setdetachstate(&attr, detach);
24502 if( status ) return status;
24503 status = pthread_create( &t, &attr, task, NULL );
24504 #if HAVE_PTHREADS < 7
24505 if( status < 0 ) status = errno;
24507 if( status ) return status;
24509 /* Draft 4 pthreads */
24510 status = pthread_create( &t, pthread_attr_default, task, NULL );
24511 if( status ) return errno;
24513 /* give thread a chance to complete */
24514 /* it should remain joinable and hence detachable */
24517 status = pthread_detach( &t );
24518 if( status ) return errno;
24521 #ifdef HAVE_LINUX_THREADS
24522 pthread_kill_other_threads_np();
24531 if ac_fn_c_try_link "$LINENO"; then :
24532 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
24534 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
24536 rm -f core conftest.err conftest.$ac_objext \
24537 conftest$ac_exeext conftest.$ac_ext
24539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24540 /* end confdefs.h. */
24543 /* pthread test headers */
24544 #include <pthread.h>
24545 #if HAVE_PTHREADS < 7
24549 #define NULL (void*)0
24552 static void *task(p)
24555 return (void *) (p == NULL);
24559 int main(argc, argv)
24564 /* pthread test function */
24565 #ifndef PTHREAD_CREATE_DETACHED
24566 #define PTHREAD_CREATE_DETACHED 1
24570 int detach = PTHREAD_CREATE_DETACHED;
24572 #if HAVE_PTHREADS > 4
24573 /* Final pthreads */
24574 pthread_attr_t attr;
24576 status = pthread_attr_init(&attr);
24577 if( status ) return status;
24579 #if HAVE_PTHREADS < 7
24580 status = pthread_attr_setdetachstate(&attr, &detach);
24581 if( status < 0 ) status = errno;
24583 status = pthread_attr_setdetachstate(&attr, detach);
24585 if( status ) return status;
24586 status = pthread_create( &t, &attr, task, NULL );
24587 #if HAVE_PTHREADS < 7
24588 if( status < 0 ) status = errno;
24590 if( status ) return status;
24592 /* Draft 4 pthreads */
24593 status = pthread_create( &t, pthread_attr_default, task, NULL );
24594 if( status ) return errno;
24596 /* give thread a chance to complete */
24597 /* it should remain joinable and hence detachable */
24600 status = pthread_detach( &t );
24601 if( status ) return errno;
24604 #ifdef HAVE_LINUX_THREADS
24605 pthread_kill_other_threads_np();
24613 if ac_fn_c_try_run "$LINENO"; then :
24614 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
24616 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
24618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24619 conftest.$ac_objext conftest.beam conftest.$ac_ext
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
24628 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
24630 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
24631 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
24632 ol_link_threads=posix
24636 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
24637 if test "$ol_link_threads" = no ; then
24638 # try -lpthread -lmach -lexc
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
24640 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
24641 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
24642 $as_echo_n "(cached) " >&6
24647 LIBS="-lpthread -lmach -lexc $LIBS"
24649 if test "$cross_compiling" = yes; then :
24650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24651 /* end confdefs.h. */
24653 /* pthread test headers */
24654 #include <pthread.h>
24655 #if HAVE_PTHREADS < 7
24659 #define NULL (void*)0
24662 static void *task(p)
24665 return (void *) (p == NULL);
24672 /* pthread test function */
24673 #ifndef PTHREAD_CREATE_DETACHED
24674 #define PTHREAD_CREATE_DETACHED 1
24678 int detach = PTHREAD_CREATE_DETACHED;
24680 #if HAVE_PTHREADS > 4
24681 /* Final pthreads */
24682 pthread_attr_t attr;
24684 status = pthread_attr_init(&attr);
24685 if( status ) return status;
24687 #if HAVE_PTHREADS < 7
24688 status = pthread_attr_setdetachstate(&attr, &detach);
24689 if( status < 0 ) status = errno;
24691 status = pthread_attr_setdetachstate(&attr, detach);
24693 if( status ) return status;
24694 status = pthread_create( &t, &attr, task, NULL );
24695 #if HAVE_PTHREADS < 7
24696 if( status < 0 ) status = errno;
24698 if( status ) return status;
24700 /* Draft 4 pthreads */
24701 status = pthread_create( &t, pthread_attr_default, task, NULL );
24702 if( status ) return errno;
24704 /* give thread a chance to complete */
24705 /* it should remain joinable and hence detachable */
24708 status = pthread_detach( &t );
24709 if( status ) return errno;
24712 #ifdef HAVE_LINUX_THREADS
24713 pthread_kill_other_threads_np();
24722 if ac_fn_c_try_link "$LINENO"; then :
24723 ol_cv_pthread_lpthread_lmach_lexc=yes
24725 ol_cv_pthread_lpthread_lmach_lexc=no
24727 rm -f core conftest.err conftest.$ac_objext \
24728 conftest$ac_exeext conftest.$ac_ext
24730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24731 /* end confdefs.h. */
24734 /* pthread test headers */
24735 #include <pthread.h>
24736 #if HAVE_PTHREADS < 7
24740 #define NULL (void*)0
24743 static void *task(p)
24746 return (void *) (p == NULL);
24750 int main(argc, argv)
24755 /* pthread test function */
24756 #ifndef PTHREAD_CREATE_DETACHED
24757 #define PTHREAD_CREATE_DETACHED 1
24761 int detach = PTHREAD_CREATE_DETACHED;
24763 #if HAVE_PTHREADS > 4
24764 /* Final pthreads */
24765 pthread_attr_t attr;
24767 status = pthread_attr_init(&attr);
24768 if( status ) return status;
24770 #if HAVE_PTHREADS < 7
24771 status = pthread_attr_setdetachstate(&attr, &detach);
24772 if( status < 0 ) status = errno;
24774 status = pthread_attr_setdetachstate(&attr, detach);
24776 if( status ) return status;
24777 status = pthread_create( &t, &attr, task, NULL );
24778 #if HAVE_PTHREADS < 7
24779 if( status < 0 ) status = errno;
24781 if( status ) return status;
24783 /* Draft 4 pthreads */
24784 status = pthread_create( &t, pthread_attr_default, task, NULL );
24785 if( status ) return errno;
24787 /* give thread a chance to complete */
24788 /* it should remain joinable and hence detachable */
24791 status = pthread_detach( &t );
24792 if( status ) return errno;
24795 #ifdef HAVE_LINUX_THREADS
24796 pthread_kill_other_threads_np();
24804 if ac_fn_c_try_run "$LINENO"; then :
24805 ol_cv_pthread_lpthread_lmach_lexc=yes
24807 ol_cv_pthread_lpthread_lmach_lexc=no
24809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24810 conftest.$ac_objext conftest.beam conftest.$ac_ext
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
24819 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
24821 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
24822 ol_link_pthreads="-lpthread -lmach -lexc"
24823 ol_link_threads=posix
24828 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
24829 if test "$ol_link_threads" = no ; then
24830 # try -lpthread -Wl,-woff,85
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
24832 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
24833 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
24834 $as_echo_n "(cached) " >&6
24839 LIBS="-lpthread -Wl,-woff,85 $LIBS"
24841 if test "$cross_compiling" = yes; then :
24842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24843 /* end confdefs.h. */
24845 /* pthread test headers */
24846 #include <pthread.h>
24847 #if HAVE_PTHREADS < 7
24851 #define NULL (void*)0
24854 static void *task(p)
24857 return (void *) (p == NULL);
24864 /* pthread test function */
24865 #ifndef PTHREAD_CREATE_DETACHED
24866 #define PTHREAD_CREATE_DETACHED 1
24870 int detach = PTHREAD_CREATE_DETACHED;
24872 #if HAVE_PTHREADS > 4
24873 /* Final pthreads */
24874 pthread_attr_t attr;
24876 status = pthread_attr_init(&attr);
24877 if( status ) return status;
24879 #if HAVE_PTHREADS < 7
24880 status = pthread_attr_setdetachstate(&attr, &detach);
24881 if( status < 0 ) status = errno;
24883 status = pthread_attr_setdetachstate(&attr, detach);
24885 if( status ) return status;
24886 status = pthread_create( &t, &attr, task, NULL );
24887 #if HAVE_PTHREADS < 7
24888 if( status < 0 ) status = errno;
24890 if( status ) return status;
24892 /* Draft 4 pthreads */
24893 status = pthread_create( &t, pthread_attr_default, task, NULL );
24894 if( status ) return errno;
24896 /* give thread a chance to complete */
24897 /* it should remain joinable and hence detachable */
24900 status = pthread_detach( &t );
24901 if( status ) return errno;
24904 #ifdef HAVE_LINUX_THREADS
24905 pthread_kill_other_threads_np();
24914 if ac_fn_c_try_link "$LINENO"; then :
24915 ol_cv_pthread_lib_lpthread_woff=yes
24917 ol_cv_pthread_lib_lpthread_woff=no
24919 rm -f core conftest.err conftest.$ac_objext \
24920 conftest$ac_exeext conftest.$ac_ext
24922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24923 /* end confdefs.h. */
24926 /* pthread test headers */
24927 #include <pthread.h>
24928 #if HAVE_PTHREADS < 7
24932 #define NULL (void*)0
24935 static void *task(p)
24938 return (void *) (p == NULL);
24942 int main(argc, argv)
24947 /* pthread test function */
24948 #ifndef PTHREAD_CREATE_DETACHED
24949 #define PTHREAD_CREATE_DETACHED 1
24953 int detach = PTHREAD_CREATE_DETACHED;
24955 #if HAVE_PTHREADS > 4
24956 /* Final pthreads */
24957 pthread_attr_t attr;
24959 status = pthread_attr_init(&attr);
24960 if( status ) return status;
24962 #if HAVE_PTHREADS < 7
24963 status = pthread_attr_setdetachstate(&attr, &detach);
24964 if( status < 0 ) status = errno;
24966 status = pthread_attr_setdetachstate(&attr, detach);
24968 if( status ) return status;
24969 status = pthread_create( &t, &attr, task, NULL );
24970 #if HAVE_PTHREADS < 7
24971 if( status < 0 ) status = errno;
24973 if( status ) return status;
24975 /* Draft 4 pthreads */
24976 status = pthread_create( &t, pthread_attr_default, task, NULL );
24977 if( status ) return errno;
24979 /* give thread a chance to complete */
24980 /* it should remain joinable and hence detachable */
24983 status = pthread_detach( &t );
24984 if( status ) return errno;
24987 #ifdef HAVE_LINUX_THREADS
24988 pthread_kill_other_threads_np();
24996 if ac_fn_c_try_run "$LINENO"; then :
24997 ol_cv_pthread_lib_lpthread_woff=yes
24999 ol_cv_pthread_lib_lpthread_woff=no
25001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25002 conftest.$ac_objext conftest.beam conftest.$ac_ext
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
25011 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
25013 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
25014 ol_link_pthreads="-lpthread -Wl,-woff,85"
25015 ol_link_threads=posix
25020 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
25021 if test "$ol_link_threads" = no ; then
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
25024 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
25025 if ${ol_cv_pthread_lpthread+:} false; then :
25026 $as_echo_n "(cached) " >&6
25031 LIBS="-lpthread $LIBS"
25033 if test "$cross_compiling" = yes; then :
25034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25035 /* end confdefs.h. */
25037 /* pthread test headers */
25038 #include <pthread.h>
25039 #if HAVE_PTHREADS < 7
25043 #define NULL (void*)0
25046 static void *task(p)
25049 return (void *) (p == NULL);
25056 /* pthread test function */
25057 #ifndef PTHREAD_CREATE_DETACHED
25058 #define PTHREAD_CREATE_DETACHED 1
25062 int detach = PTHREAD_CREATE_DETACHED;
25064 #if HAVE_PTHREADS > 4
25065 /* Final pthreads */
25066 pthread_attr_t attr;
25068 status = pthread_attr_init(&attr);
25069 if( status ) return status;
25071 #if HAVE_PTHREADS < 7
25072 status = pthread_attr_setdetachstate(&attr, &detach);
25073 if( status < 0 ) status = errno;
25075 status = pthread_attr_setdetachstate(&attr, detach);
25077 if( status ) return status;
25078 status = pthread_create( &t, &attr, task, NULL );
25079 #if HAVE_PTHREADS < 7
25080 if( status < 0 ) status = errno;
25082 if( status ) return status;
25084 /* Draft 4 pthreads */
25085 status = pthread_create( &t, pthread_attr_default, task, NULL );
25086 if( status ) return errno;
25088 /* give thread a chance to complete */
25089 /* it should remain joinable and hence detachable */
25092 status = pthread_detach( &t );
25093 if( status ) return errno;
25096 #ifdef HAVE_LINUX_THREADS
25097 pthread_kill_other_threads_np();
25106 if ac_fn_c_try_link "$LINENO"; then :
25107 ol_cv_pthread_lpthread=yes
25109 ol_cv_pthread_lpthread=no
25111 rm -f core conftest.err conftest.$ac_objext \
25112 conftest$ac_exeext conftest.$ac_ext
25114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25115 /* end confdefs.h. */
25118 /* pthread test headers */
25119 #include <pthread.h>
25120 #if HAVE_PTHREADS < 7
25124 #define NULL (void*)0
25127 static void *task(p)
25130 return (void *) (p == NULL);
25134 int main(argc, argv)
25139 /* pthread test function */
25140 #ifndef PTHREAD_CREATE_DETACHED
25141 #define PTHREAD_CREATE_DETACHED 1
25145 int detach = PTHREAD_CREATE_DETACHED;
25147 #if HAVE_PTHREADS > 4
25148 /* Final pthreads */
25149 pthread_attr_t attr;
25151 status = pthread_attr_init(&attr);
25152 if( status ) return status;
25154 #if HAVE_PTHREADS < 7
25155 status = pthread_attr_setdetachstate(&attr, &detach);
25156 if( status < 0 ) status = errno;
25158 status = pthread_attr_setdetachstate(&attr, detach);
25160 if( status ) return status;
25161 status = pthread_create( &t, &attr, task, NULL );
25162 #if HAVE_PTHREADS < 7
25163 if( status < 0 ) status = errno;
25165 if( status ) return status;
25167 /* Draft 4 pthreads */
25168 status = pthread_create( &t, pthread_attr_default, task, NULL );
25169 if( status ) return errno;
25171 /* give thread a chance to complete */
25172 /* it should remain joinable and hence detachable */
25175 status = pthread_detach( &t );
25176 if( status ) return errno;
25179 #ifdef HAVE_LINUX_THREADS
25180 pthread_kill_other_threads_np();
25188 if ac_fn_c_try_run "$LINENO"; then :
25189 ol_cv_pthread_lpthread=yes
25191 ol_cv_pthread_lpthread=no
25193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25194 conftest.$ac_objext conftest.beam conftest.$ac_ext
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
25203 $as_echo "$ol_cv_pthread_lpthread" >&6; }
25205 if test $ol_cv_pthread_lpthread = yes ; then
25206 ol_link_pthreads="-lpthread"
25207 ol_link_threads=posix
25211 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
25212 if test "$ol_link_threads" = no ; then
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
25215 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
25216 if ${ol_cv_pthread_lc_r+:} false; then :
25217 $as_echo_n "(cached) " >&6
25224 if test "$cross_compiling" = yes; then :
25225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25226 /* end confdefs.h. */
25228 /* pthread test headers */
25229 #include <pthread.h>
25230 #if HAVE_PTHREADS < 7
25234 #define NULL (void*)0
25237 static void *task(p)
25240 return (void *) (p == NULL);
25247 /* pthread test function */
25248 #ifndef PTHREAD_CREATE_DETACHED
25249 #define PTHREAD_CREATE_DETACHED 1
25253 int detach = PTHREAD_CREATE_DETACHED;
25255 #if HAVE_PTHREADS > 4
25256 /* Final pthreads */
25257 pthread_attr_t attr;
25259 status = pthread_attr_init(&attr);
25260 if( status ) return status;
25262 #if HAVE_PTHREADS < 7
25263 status = pthread_attr_setdetachstate(&attr, &detach);
25264 if( status < 0 ) status = errno;
25266 status = pthread_attr_setdetachstate(&attr, detach);
25268 if( status ) return status;
25269 status = pthread_create( &t, &attr, task, NULL );
25270 #if HAVE_PTHREADS < 7
25271 if( status < 0 ) status = errno;
25273 if( status ) return status;
25275 /* Draft 4 pthreads */
25276 status = pthread_create( &t, pthread_attr_default, task, NULL );
25277 if( status ) return errno;
25279 /* give thread a chance to complete */
25280 /* it should remain joinable and hence detachable */
25283 status = pthread_detach( &t );
25284 if( status ) return errno;
25287 #ifdef HAVE_LINUX_THREADS
25288 pthread_kill_other_threads_np();
25297 if ac_fn_c_try_link "$LINENO"; then :
25298 ol_cv_pthread_lc_r=yes
25300 ol_cv_pthread_lc_r=no
25302 rm -f core conftest.err conftest.$ac_objext \
25303 conftest$ac_exeext conftest.$ac_ext
25305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25306 /* end confdefs.h. */
25309 /* pthread test headers */
25310 #include <pthread.h>
25311 #if HAVE_PTHREADS < 7
25315 #define NULL (void*)0
25318 static void *task(p)
25321 return (void *) (p == NULL);
25325 int main(argc, argv)
25330 /* pthread test function */
25331 #ifndef PTHREAD_CREATE_DETACHED
25332 #define PTHREAD_CREATE_DETACHED 1
25336 int detach = PTHREAD_CREATE_DETACHED;
25338 #if HAVE_PTHREADS > 4
25339 /* Final pthreads */
25340 pthread_attr_t attr;
25342 status = pthread_attr_init(&attr);
25343 if( status ) return status;
25345 #if HAVE_PTHREADS < 7
25346 status = pthread_attr_setdetachstate(&attr, &detach);
25347 if( status < 0 ) status = errno;
25349 status = pthread_attr_setdetachstate(&attr, detach);
25351 if( status ) return status;
25352 status = pthread_create( &t, &attr, task, NULL );
25353 #if HAVE_PTHREADS < 7
25354 if( status < 0 ) status = errno;
25356 if( status ) return status;
25358 /* Draft 4 pthreads */
25359 status = pthread_create( &t, pthread_attr_default, task, NULL );
25360 if( status ) return errno;
25362 /* give thread a chance to complete */
25363 /* it should remain joinable and hence detachable */
25366 status = pthread_detach( &t );
25367 if( status ) return errno;
25370 #ifdef HAVE_LINUX_THREADS
25371 pthread_kill_other_threads_np();
25379 if ac_fn_c_try_run "$LINENO"; then :
25380 ol_cv_pthread_lc_r=yes
25382 ol_cv_pthread_lc_r=no
25384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25385 conftest.$ac_objext conftest.beam conftest.$ac_ext
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
25394 $as_echo "$ol_cv_pthread_lc_r" >&6; }
25396 if test $ol_cv_pthread_lc_r = yes ; then
25397 ol_link_pthreads="-lc_r"
25398 ol_link_threads=posix
25403 # Pthread try link: -threads (ol_cv_pthread_threads)
25404 if test "$ol_link_threads" = no ; then
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
25407 $as_echo_n "checking for pthread link with -threads... " >&6; }
25408 if ${ol_cv_pthread_threads+:} false; then :
25409 $as_echo_n "(cached) " >&6
25414 LIBS="-threads $LIBS"
25416 if test "$cross_compiling" = yes; then :
25417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25418 /* end confdefs.h. */
25420 /* pthread test headers */
25421 #include <pthread.h>
25422 #if HAVE_PTHREADS < 7
25426 #define NULL (void*)0
25429 static void *task(p)
25432 return (void *) (p == NULL);
25439 /* pthread test function */
25440 #ifndef PTHREAD_CREATE_DETACHED
25441 #define PTHREAD_CREATE_DETACHED 1
25445 int detach = PTHREAD_CREATE_DETACHED;
25447 #if HAVE_PTHREADS > 4
25448 /* Final pthreads */
25449 pthread_attr_t attr;
25451 status = pthread_attr_init(&attr);
25452 if( status ) return status;
25454 #if HAVE_PTHREADS < 7
25455 status = pthread_attr_setdetachstate(&attr, &detach);
25456 if( status < 0 ) status = errno;
25458 status = pthread_attr_setdetachstate(&attr, detach);
25460 if( status ) return status;
25461 status = pthread_create( &t, &attr, task, NULL );
25462 #if HAVE_PTHREADS < 7
25463 if( status < 0 ) status = errno;
25465 if( status ) return status;
25467 /* Draft 4 pthreads */
25468 status = pthread_create( &t, pthread_attr_default, task, NULL );
25469 if( status ) return errno;
25471 /* give thread a chance to complete */
25472 /* it should remain joinable and hence detachable */
25475 status = pthread_detach( &t );
25476 if( status ) return errno;
25479 #ifdef HAVE_LINUX_THREADS
25480 pthread_kill_other_threads_np();
25489 if ac_fn_c_try_link "$LINENO"; then :
25490 ol_cv_pthread_threads=yes
25492 ol_cv_pthread_threads=no
25494 rm -f core conftest.err conftest.$ac_objext \
25495 conftest$ac_exeext conftest.$ac_ext
25497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25498 /* end confdefs.h. */
25501 /* pthread test headers */
25502 #include <pthread.h>
25503 #if HAVE_PTHREADS < 7
25507 #define NULL (void*)0
25510 static void *task(p)
25513 return (void *) (p == NULL);
25517 int main(argc, argv)
25522 /* pthread test function */
25523 #ifndef PTHREAD_CREATE_DETACHED
25524 #define PTHREAD_CREATE_DETACHED 1
25528 int detach = PTHREAD_CREATE_DETACHED;
25530 #if HAVE_PTHREADS > 4
25531 /* Final pthreads */
25532 pthread_attr_t attr;
25534 status = pthread_attr_init(&attr);
25535 if( status ) return status;
25537 #if HAVE_PTHREADS < 7
25538 status = pthread_attr_setdetachstate(&attr, &detach);
25539 if( status < 0 ) status = errno;
25541 status = pthread_attr_setdetachstate(&attr, detach);
25543 if( status ) return status;
25544 status = pthread_create( &t, &attr, task, NULL );
25545 #if HAVE_PTHREADS < 7
25546 if( status < 0 ) status = errno;
25548 if( status ) return status;
25550 /* Draft 4 pthreads */
25551 status = pthread_create( &t, pthread_attr_default, task, NULL );
25552 if( status ) return errno;
25554 /* give thread a chance to complete */
25555 /* it should remain joinable and hence detachable */
25558 status = pthread_detach( &t );
25559 if( status ) return errno;
25562 #ifdef HAVE_LINUX_THREADS
25563 pthread_kill_other_threads_np();
25571 if ac_fn_c_try_run "$LINENO"; then :
25572 ol_cv_pthread_threads=yes
25574 ol_cv_pthread_threads=no
25576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25577 conftest.$ac_objext conftest.beam conftest.$ac_ext
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
25586 $as_echo "$ol_cv_pthread_threads" >&6; }
25588 if test $ol_cv_pthread_threads = yes ; then
25589 ol_link_pthreads="-threads"
25590 ol_link_threads=posix
25595 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
25596 if test "$ol_link_threads" = no ; then
25597 # try -lpthreads -lmach -lexc -lc_r
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
25599 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
25600 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
25601 $as_echo_n "(cached) " >&6
25606 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
25608 if test "$cross_compiling" = yes; then :
25609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25610 /* end confdefs.h. */
25612 /* pthread test headers */
25613 #include <pthread.h>
25614 #if HAVE_PTHREADS < 7
25618 #define NULL (void*)0
25621 static void *task(p)
25624 return (void *) (p == NULL);
25631 /* pthread test function */
25632 #ifndef PTHREAD_CREATE_DETACHED
25633 #define PTHREAD_CREATE_DETACHED 1
25637 int detach = PTHREAD_CREATE_DETACHED;
25639 #if HAVE_PTHREADS > 4
25640 /* Final pthreads */
25641 pthread_attr_t attr;
25643 status = pthread_attr_init(&attr);
25644 if( status ) return status;
25646 #if HAVE_PTHREADS < 7
25647 status = pthread_attr_setdetachstate(&attr, &detach);
25648 if( status < 0 ) status = errno;
25650 status = pthread_attr_setdetachstate(&attr, detach);
25652 if( status ) return status;
25653 status = pthread_create( &t, &attr, task, NULL );
25654 #if HAVE_PTHREADS < 7
25655 if( status < 0 ) status = errno;
25657 if( status ) return status;
25659 /* Draft 4 pthreads */
25660 status = pthread_create( &t, pthread_attr_default, task, NULL );
25661 if( status ) return errno;
25663 /* give thread a chance to complete */
25664 /* it should remain joinable and hence detachable */
25667 status = pthread_detach( &t );
25668 if( status ) return errno;
25671 #ifdef HAVE_LINUX_THREADS
25672 pthread_kill_other_threads_np();
25681 if ac_fn_c_try_link "$LINENO"; then :
25682 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
25684 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
25686 rm -f core conftest.err conftest.$ac_objext \
25687 conftest$ac_exeext conftest.$ac_ext
25689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25690 /* end confdefs.h. */
25693 /* pthread test headers */
25694 #include <pthread.h>
25695 #if HAVE_PTHREADS < 7
25699 #define NULL (void*)0
25702 static void *task(p)
25705 return (void *) (p == NULL);
25709 int main(argc, argv)
25714 /* pthread test function */
25715 #ifndef PTHREAD_CREATE_DETACHED
25716 #define PTHREAD_CREATE_DETACHED 1
25720 int detach = PTHREAD_CREATE_DETACHED;
25722 #if HAVE_PTHREADS > 4
25723 /* Final pthreads */
25724 pthread_attr_t attr;
25726 status = pthread_attr_init(&attr);
25727 if( status ) return status;
25729 #if HAVE_PTHREADS < 7
25730 status = pthread_attr_setdetachstate(&attr, &detach);
25731 if( status < 0 ) status = errno;
25733 status = pthread_attr_setdetachstate(&attr, detach);
25735 if( status ) return status;
25736 status = pthread_create( &t, &attr, task, NULL );
25737 #if HAVE_PTHREADS < 7
25738 if( status < 0 ) status = errno;
25740 if( status ) return status;
25742 /* Draft 4 pthreads */
25743 status = pthread_create( &t, pthread_attr_default, task, NULL );
25744 if( status ) return errno;
25746 /* give thread a chance to complete */
25747 /* it should remain joinable and hence detachable */
25750 status = pthread_detach( &t );
25751 if( status ) return errno;
25754 #ifdef HAVE_LINUX_THREADS
25755 pthread_kill_other_threads_np();
25763 if ac_fn_c_try_run "$LINENO"; then :
25764 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
25766 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
25768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25769 conftest.$ac_objext conftest.beam conftest.$ac_ext
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
25778 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
25780 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
25781 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
25782 ol_link_threads=posix
25786 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
25787 if test "$ol_link_threads" = no ; then
25788 # try -lpthreads -lmach -lexc
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
25790 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
25791 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
25792 $as_echo_n "(cached) " >&6
25797 LIBS="-lpthreads -lmach -lexc $LIBS"
25799 if test "$cross_compiling" = yes; then :
25800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25801 /* end confdefs.h. */
25803 /* pthread test headers */
25804 #include <pthread.h>
25805 #if HAVE_PTHREADS < 7
25809 #define NULL (void*)0
25812 static void *task(p)
25815 return (void *) (p == NULL);
25822 /* pthread test function */
25823 #ifndef PTHREAD_CREATE_DETACHED
25824 #define PTHREAD_CREATE_DETACHED 1
25828 int detach = PTHREAD_CREATE_DETACHED;
25830 #if HAVE_PTHREADS > 4
25831 /* Final pthreads */
25832 pthread_attr_t attr;
25834 status = pthread_attr_init(&attr);
25835 if( status ) return status;
25837 #if HAVE_PTHREADS < 7
25838 status = pthread_attr_setdetachstate(&attr, &detach);
25839 if( status < 0 ) status = errno;
25841 status = pthread_attr_setdetachstate(&attr, detach);
25843 if( status ) return status;
25844 status = pthread_create( &t, &attr, task, NULL );
25845 #if HAVE_PTHREADS < 7
25846 if( status < 0 ) status = errno;
25848 if( status ) return status;
25850 /* Draft 4 pthreads */
25851 status = pthread_create( &t, pthread_attr_default, task, NULL );
25852 if( status ) return errno;
25854 /* give thread a chance to complete */
25855 /* it should remain joinable and hence detachable */
25858 status = pthread_detach( &t );
25859 if( status ) return errno;
25862 #ifdef HAVE_LINUX_THREADS
25863 pthread_kill_other_threads_np();
25872 if ac_fn_c_try_link "$LINENO"; then :
25873 ol_cv_pthread_lpthreads_lmach_lexc=yes
25875 ol_cv_pthread_lpthreads_lmach_lexc=no
25877 rm -f core conftest.err conftest.$ac_objext \
25878 conftest$ac_exeext conftest.$ac_ext
25880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25881 /* end confdefs.h. */
25884 /* pthread test headers */
25885 #include <pthread.h>
25886 #if HAVE_PTHREADS < 7
25890 #define NULL (void*)0
25893 static void *task(p)
25896 return (void *) (p == NULL);
25900 int main(argc, argv)
25905 /* pthread test function */
25906 #ifndef PTHREAD_CREATE_DETACHED
25907 #define PTHREAD_CREATE_DETACHED 1
25911 int detach = PTHREAD_CREATE_DETACHED;
25913 #if HAVE_PTHREADS > 4
25914 /* Final pthreads */
25915 pthread_attr_t attr;
25917 status = pthread_attr_init(&attr);
25918 if( status ) return status;
25920 #if HAVE_PTHREADS < 7
25921 status = pthread_attr_setdetachstate(&attr, &detach);
25922 if( status < 0 ) status = errno;
25924 status = pthread_attr_setdetachstate(&attr, detach);
25926 if( status ) return status;
25927 status = pthread_create( &t, &attr, task, NULL );
25928 #if HAVE_PTHREADS < 7
25929 if( status < 0 ) status = errno;
25931 if( status ) return status;
25933 /* Draft 4 pthreads */
25934 status = pthread_create( &t, pthread_attr_default, task, NULL );
25935 if( status ) return errno;
25937 /* give thread a chance to complete */
25938 /* it should remain joinable and hence detachable */
25941 status = pthread_detach( &t );
25942 if( status ) return errno;
25945 #ifdef HAVE_LINUX_THREADS
25946 pthread_kill_other_threads_np();
25954 if ac_fn_c_try_run "$LINENO"; then :
25955 ol_cv_pthread_lpthreads_lmach_lexc=yes
25957 ol_cv_pthread_lpthreads_lmach_lexc=no
25959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25960 conftest.$ac_objext conftest.beam conftest.$ac_ext
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
25969 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
25971 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
25972 ol_link_pthreads="-lpthreads -lmach -lexc"
25973 ol_link_threads=posix
25977 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
25978 if test "$ol_link_threads" = no ; then
25979 # try -lpthreads -lexc
25980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
25981 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
25982 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
25983 $as_echo_n "(cached) " >&6
25988 LIBS="-lpthreads -lexc $LIBS"
25990 if test "$cross_compiling" = yes; then :
25991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25992 /* end confdefs.h. */
25994 /* pthread test headers */
25995 #include <pthread.h>
25996 #if HAVE_PTHREADS < 7
26000 #define NULL (void*)0
26003 static void *task(p)
26006 return (void *) (p == NULL);
26013 /* pthread test function */
26014 #ifndef PTHREAD_CREATE_DETACHED
26015 #define PTHREAD_CREATE_DETACHED 1
26019 int detach = PTHREAD_CREATE_DETACHED;
26021 #if HAVE_PTHREADS > 4
26022 /* Final pthreads */
26023 pthread_attr_t attr;
26025 status = pthread_attr_init(&attr);
26026 if( status ) return status;
26028 #if HAVE_PTHREADS < 7
26029 status = pthread_attr_setdetachstate(&attr, &detach);
26030 if( status < 0 ) status = errno;
26032 status = pthread_attr_setdetachstate(&attr, detach);
26034 if( status ) return status;
26035 status = pthread_create( &t, &attr, task, NULL );
26036 #if HAVE_PTHREADS < 7
26037 if( status < 0 ) status = errno;
26039 if( status ) return status;
26041 /* Draft 4 pthreads */
26042 status = pthread_create( &t, pthread_attr_default, task, NULL );
26043 if( status ) return errno;
26045 /* give thread a chance to complete */
26046 /* it should remain joinable and hence detachable */
26049 status = pthread_detach( &t );
26050 if( status ) return errno;
26053 #ifdef HAVE_LINUX_THREADS
26054 pthread_kill_other_threads_np();
26063 if ac_fn_c_try_link "$LINENO"; then :
26064 ol_cv_pthread_lpthreads_lexc=yes
26066 ol_cv_pthread_lpthreads_lexc=no
26068 rm -f core conftest.err conftest.$ac_objext \
26069 conftest$ac_exeext conftest.$ac_ext
26071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26072 /* end confdefs.h. */
26075 /* pthread test headers */
26076 #include <pthread.h>
26077 #if HAVE_PTHREADS < 7
26081 #define NULL (void*)0
26084 static void *task(p)
26087 return (void *) (p == NULL);
26091 int main(argc, argv)
26096 /* pthread test function */
26097 #ifndef PTHREAD_CREATE_DETACHED
26098 #define PTHREAD_CREATE_DETACHED 1
26102 int detach = PTHREAD_CREATE_DETACHED;
26104 #if HAVE_PTHREADS > 4
26105 /* Final pthreads */
26106 pthread_attr_t attr;
26108 status = pthread_attr_init(&attr);
26109 if( status ) return status;
26111 #if HAVE_PTHREADS < 7
26112 status = pthread_attr_setdetachstate(&attr, &detach);
26113 if( status < 0 ) status = errno;
26115 status = pthread_attr_setdetachstate(&attr, detach);
26117 if( status ) return status;
26118 status = pthread_create( &t, &attr, task, NULL );
26119 #if HAVE_PTHREADS < 7
26120 if( status < 0 ) status = errno;
26122 if( status ) return status;
26124 /* Draft 4 pthreads */
26125 status = pthread_create( &t, pthread_attr_default, task, NULL );
26126 if( status ) return errno;
26128 /* give thread a chance to complete */
26129 /* it should remain joinable and hence detachable */
26132 status = pthread_detach( &t );
26133 if( status ) return errno;
26136 #ifdef HAVE_LINUX_THREADS
26137 pthread_kill_other_threads_np();
26145 if ac_fn_c_try_run "$LINENO"; then :
26146 ol_cv_pthread_lpthreads_lexc=yes
26148 ol_cv_pthread_lpthreads_lexc=no
26150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26151 conftest.$ac_objext conftest.beam conftest.$ac_ext
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
26160 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
26162 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
26163 ol_link_pthreads="-lpthreads -lexc"
26164 ol_link_threads=posix
26169 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
26170 if test "$ol_link_threads" = no ; then
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
26173 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
26174 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
26175 $as_echo_n "(cached) " >&6
26180 LIBS="-lpthreads $LIBS"
26182 if test "$cross_compiling" = yes; then :
26183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26184 /* end confdefs.h. */
26186 /* pthread test headers */
26187 #include <pthread.h>
26188 #if HAVE_PTHREADS < 7
26192 #define NULL (void*)0
26195 static void *task(p)
26198 return (void *) (p == NULL);
26205 /* pthread test function */
26206 #ifndef PTHREAD_CREATE_DETACHED
26207 #define PTHREAD_CREATE_DETACHED 1
26211 int detach = PTHREAD_CREATE_DETACHED;
26213 #if HAVE_PTHREADS > 4
26214 /* Final pthreads */
26215 pthread_attr_t attr;
26217 status = pthread_attr_init(&attr);
26218 if( status ) return status;
26220 #if HAVE_PTHREADS < 7
26221 status = pthread_attr_setdetachstate(&attr, &detach);
26222 if( status < 0 ) status = errno;
26224 status = pthread_attr_setdetachstate(&attr, detach);
26226 if( status ) return status;
26227 status = pthread_create( &t, &attr, task, NULL );
26228 #if HAVE_PTHREADS < 7
26229 if( status < 0 ) status = errno;
26231 if( status ) return status;
26233 /* Draft 4 pthreads */
26234 status = pthread_create( &t, pthread_attr_default, task, NULL );
26235 if( status ) return errno;
26237 /* give thread a chance to complete */
26238 /* it should remain joinable and hence detachable */
26241 status = pthread_detach( &t );
26242 if( status ) return errno;
26245 #ifdef HAVE_LINUX_THREADS
26246 pthread_kill_other_threads_np();
26255 if ac_fn_c_try_link "$LINENO"; then :
26256 ol_cv_pthread_lib_lpthreads=yes
26258 ol_cv_pthread_lib_lpthreads=no
26260 rm -f core conftest.err conftest.$ac_objext \
26261 conftest$ac_exeext conftest.$ac_ext
26263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26264 /* end confdefs.h. */
26267 /* pthread test headers */
26268 #include <pthread.h>
26269 #if HAVE_PTHREADS < 7
26273 #define NULL (void*)0
26276 static void *task(p)
26279 return (void *) (p == NULL);
26283 int main(argc, argv)
26288 /* pthread test function */
26289 #ifndef PTHREAD_CREATE_DETACHED
26290 #define PTHREAD_CREATE_DETACHED 1
26294 int detach = PTHREAD_CREATE_DETACHED;
26296 #if HAVE_PTHREADS > 4
26297 /* Final pthreads */
26298 pthread_attr_t attr;
26300 status = pthread_attr_init(&attr);
26301 if( status ) return status;
26303 #if HAVE_PTHREADS < 7
26304 status = pthread_attr_setdetachstate(&attr, &detach);
26305 if( status < 0 ) status = errno;
26307 status = pthread_attr_setdetachstate(&attr, detach);
26309 if( status ) return status;
26310 status = pthread_create( &t, &attr, task, NULL );
26311 #if HAVE_PTHREADS < 7
26312 if( status < 0 ) status = errno;
26314 if( status ) return status;
26316 /* Draft 4 pthreads */
26317 status = pthread_create( &t, pthread_attr_default, task, NULL );
26318 if( status ) return errno;
26320 /* give thread a chance to complete */
26321 /* it should remain joinable and hence detachable */
26324 status = pthread_detach( &t );
26325 if( status ) return errno;
26328 #ifdef HAVE_LINUX_THREADS
26329 pthread_kill_other_threads_np();
26337 if ac_fn_c_try_run "$LINENO"; then :
26338 ol_cv_pthread_lib_lpthreads=yes
26340 ol_cv_pthread_lib_lpthreads=no
26342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26343 conftest.$ac_objext conftest.beam conftest.$ac_ext
26351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
26352 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
26354 if test $ol_cv_pthread_lib_lpthreads = yes ; then
26355 ol_link_pthreads="-lpthreads"
26356 ol_link_threads=posix
26361 if test $ol_link_threads != no ; then
26362 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
26364 save_CPPFLAGS="$CPPFLAGS"
26366 LIBS="$LTHREAD_LIBS $LIBS"
26368 for ac_func in sched_yield pthread_yield thr_yield
26370 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26371 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26372 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26373 cat >>confdefs.h <<_ACEOF
26374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26381 if test $ac_cv_func_sched_yield = no &&
26382 test $ac_cv_func_pthread_yield = no &&
26383 test $ac_cv_func_thr_yield = no ; then
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
26385 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
26386 if ${ac_cv_lib_rt_sched_yield+:} false; then :
26387 $as_echo_n "(cached) " >&6
26389 ac_check_lib_save_LIBS=$LIBS
26391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26392 /* end confdefs.h. */
26394 /* Override any GCC internal prototype to avoid an error.
26395 Use char because int might match the return type of a GCC
26396 builtin and then its argument prototype would still apply. */
26400 char sched_yield ();
26404 return sched_yield ();
26409 if ac_fn_c_try_link "$LINENO"; then :
26410 ac_cv_lib_rt_sched_yield=yes
26412 ac_cv_lib_rt_sched_yield=no
26414 rm -f core conftest.err conftest.$ac_objext \
26415 conftest$ac_exeext conftest.$ac_ext
26416 LIBS=$ac_check_lib_save_LIBS
26418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
26419 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
26420 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
26421 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
26423 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
26425 ac_cv_func_sched_yield=yes
26427 ac_cv_func_sched_yield=no
26431 if test $ac_cv_func_sched_yield = no &&
26432 test $ac_cv_func_pthread_yield = no &&
26433 test "$ac_cv_func_thr_yield" = no ; then
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
26435 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
26438 for ac_func in pthread_kill
26440 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
26441 if test "x$ac_cv_func_pthread_kill" = xyes; then :
26442 cat >>confdefs.h <<_ACEOF
26443 #define HAVE_PTHREAD_KILL 1
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
26451 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
26452 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
26453 $as_echo_n "(cached) " >&6
26456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26457 /* end confdefs.h. */
26459 #include <pthread.h>
26460 pthread_rwlock_t rwlock;
26465 pthread_rwlock_destroy(&rwlock);
26470 if ac_fn_c_try_link "$LINENO"; then :
26471 ol_cv_func_pthread_rwlock_destroy=yes
26473 ol_cv_func_pthread_rwlock_destroy=no
26475 rm -f core conftest.err conftest.$ac_objext \
26476 conftest$ac_exeext conftest.$ac_ext
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
26480 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
26481 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
26483 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
26488 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
26489 if ${ol_cv_func_pthread_detach+:} false; then :
26490 $as_echo_n "(cached) " >&6
26493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26494 /* end confdefs.h. */
26496 #include <pthread.h>
26498 #define NULL (void*)0
26504 pthread_detach(NULL);
26509 if ac_fn_c_try_link "$LINENO"; then :
26510 ol_cv_func_pthread_detach=yes
26512 ol_cv_func_pthread_detach=no
26514 rm -f core conftest.err conftest.$ac_objext \
26515 conftest$ac_exeext conftest.$ac_ext
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
26519 $as_echo "$ol_cv_func_pthread_detach" >&6; }
26521 if test $ol_cv_func_pthread_detach = no ; then
26522 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
26526 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
26530 pthread_setconcurrency \
26531 pthread_getconcurrency \
26532 thr_setconcurrency \
26533 thr_getconcurrency \
26536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26537 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26538 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26539 cat >>confdefs.h <<_ACEOF
26540 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26548 for ac_func in pthread_kill_other_threads_np
26550 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
26551 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
26552 cat >>confdefs.h <<_ACEOF
26553 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
26560 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
26561 if ${ol_cv_sys_linux_threads+:} false; then :
26562 $as_echo_n "(cached) " >&6
26564 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
26566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
26567 $as_echo "$ol_cv_sys_linux_threads" >&6; }
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
26573 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
26574 if ${ol_cv_linux_threads+:} false; then :
26575 $as_echo_n "(cached) " >&6
26578 if test $ol_cv_header_linux_threads = yes &&
26579 test $ol_cv_sys_linux_threads = yes; then
26580 ol_cv_linux_threads=yes
26581 elif test $ol_cv_header_linux_threads = no &&
26582 test $ol_cv_sys_linux_threads = no; then
26583 ol_cv_linux_threads=no
26585 ol_cv_linux_threads=error
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
26590 $as_echo "$ol_cv_linux_threads" >&6; }
26593 if test $ol_cv_linux_threads = error; then
26594 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
26598 $as_echo_n "checking if pthread_create() works... " >&6; }
26599 if ${ol_cv_pthread_create_works+:} false; then :
26600 $as_echo_n "(cached) " >&6
26603 if test "$cross_compiling" = yes; then :
26604 ol_cv_pthread_create_works=yes
26606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26607 /* end confdefs.h. */
26610 /* pthread test headers */
26611 #include <pthread.h>
26612 #if HAVE_PTHREADS < 7
26616 #define NULL (void*)0
26619 static void *task(p)
26622 return (void *) (p == NULL);
26626 int main(argc, argv)
26631 /* pthread test function */
26632 #ifndef PTHREAD_CREATE_DETACHED
26633 #define PTHREAD_CREATE_DETACHED 1
26637 int detach = PTHREAD_CREATE_DETACHED;
26639 #if HAVE_PTHREADS > 4
26640 /* Final pthreads */
26641 pthread_attr_t attr;
26643 status = pthread_attr_init(&attr);
26644 if( status ) return status;
26646 #if HAVE_PTHREADS < 7
26647 status = pthread_attr_setdetachstate(&attr, &detach);
26648 if( status < 0 ) status = errno;
26650 status = pthread_attr_setdetachstate(&attr, detach);
26652 if( status ) return status;
26653 status = pthread_create( &t, &attr, task, NULL );
26654 #if HAVE_PTHREADS < 7
26655 if( status < 0 ) status = errno;
26657 if( status ) return status;
26659 /* Draft 4 pthreads */
26660 status = pthread_create( &t, pthread_attr_default, task, NULL );
26661 if( status ) return errno;
26663 /* give thread a chance to complete */
26664 /* it should remain joinable and hence detachable */
26667 status = pthread_detach( &t );
26668 if( status ) return errno;
26671 #ifdef HAVE_LINUX_THREADS
26672 pthread_kill_other_threads_np();
26680 if ac_fn_c_try_run "$LINENO"; then :
26681 ol_cv_pthread_create_works=yes
26683 ol_cv_pthread_create_works=no
26685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26686 conftest.$ac_objext conftest.beam conftest.$ac_ext
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
26691 $as_echo "$ol_cv_pthread_create_works" >&6; }
26693 if test $ol_cv_pthread_create_works = no ; then
26694 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
26697 ol_replace_broken_yield=no
26699 if test $ol_replace_broken_yield = yes ; then
26701 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
26705 if test x$ol_with_yielding_select = xauto ; then
26706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
26707 $as_echo_n "checking if select yields when using pthreads... " >&6; }
26708 if ${ol_cv_pthread_select_yields+:} false; then :
26709 $as_echo_n "(cached) " >&6
26712 if test "$cross_compiling" = yes; then :
26713 ol_cv_pthread_select_yields=cross
26715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26716 /* end confdefs.h. */
26718 #include <sys/types.h>
26719 #include <sys/time.h>
26720 #include <unistd.h>
26721 #include <pthread.h>
26723 #define NULL (void*) 0
26726 static int fildes[2];
26728 static void *task(p)
26740 FD_SET(fildes[0], &rfds);
26742 /* we're not interested in any fds */
26743 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
26750 exit(0); /* if we exit here, the select blocked the whole process */
26753 int main(argc, argv)
26759 /* create a pipe to select */
26760 if(pipe(&fildes[0])) {
26765 #ifdef HAVE_PTHREAD_SETCONCURRENCY
26766 (void) pthread_setconcurrency(2);
26768 #ifdef HAVE_THR_SETCONCURRENCY
26769 /* Set Solaris LWP concurrency to 2 */
26770 thr_setconcurrency(2);
26774 #if HAVE_PTHREADS < 6
26775 pthread_create(&t, pthread_attr_default, task, NULL);
26777 pthread_create(&t, NULL, task, NULL);
26780 /* make sure task runs first */
26781 #ifdef HAVE_THR_YIELD
26783 #elif defined( HAVE_SCHED_YIELD )
26785 #elif defined( HAVE_PTHREAD_YIELD )
26792 if ac_fn_c_try_run "$LINENO"; then :
26793 ol_cv_pthread_select_yields=no
26795 ol_cv_pthread_select_yields=yes
26797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26798 conftest.$ac_objext conftest.beam conftest.$ac_ext
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
26803 $as_echo "$ol_cv_pthread_select_yields" >&6; }
26805 if test $ol_cv_pthread_select_yields = cross ; then
26806 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
26809 if test $ol_cv_pthread_select_yields = yes ; then
26810 ol_with_yielding_select=yes
26814 CPPFLAGS="$save_CPPFLAGS"
26817 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
26821 if test $ol_with_threads = posix ; then
26822 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
26827 case $ol_with_threads in auto | yes | mach)
26829 for ac_header in mach/cthreads.h cthreads.h
26831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26832 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26833 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26834 cat >>confdefs.h <<_ACEOF
26835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26842 if test $ac_cv_header_mach_cthreads_h = yes ; then
26843 ol_with_threads=found
26845 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
26846 if test "x$ac_cv_func_cthread_fork" = xyes; then :
26847 ol_link_threads=yes
26851 if test $ol_link_threads = no ; then
26852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
26853 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
26854 if ${ol_cv_cthread_all_load+:} false; then :
26855 $as_echo_n "(cached) " >&6
26859 LIBS="-all_load $LIBS"
26860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26861 /* end confdefs.h. */
26862 #include <mach/cthreads.h>
26867 cthread_fork((void *)0, (void *)0);
26873 if ac_fn_c_try_link "$LINENO"; then :
26874 ol_cv_cthread_all_load=yes
26876 ol_cv_cthread_all_load=no
26878 rm -f core conftest.err conftest.$ac_objext \
26879 conftest$ac_exeext conftest.$ac_ext
26883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
26884 $as_echo "$ol_cv_cthread_all_load" >&6; }
26886 if test $ol_cv_cthread_all_load = yes ; then
26887 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
26888 ol_link_threads=mach
26889 ol_with_threads=found
26893 elif test $ac_cv_header_cthreads_h = yes ; then
26895 ol_with_threads=found
26898 LIBS="$LIBS -lthreads"
26899 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
26900 if test "x$ac_cv_func_cthread_fork" = xyes; then :
26901 ol_link_threads=yes
26906 if test $ol_link_threads = yes ; then
26907 LTHREAD_LIBS="-lthreads"
26908 ol_link_threads=mach
26909 ol_with_threads=found
26911 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
26914 elif test $ol_with_threads = mach ; then
26915 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
26918 if test $ol_link_threads = mach ; then
26920 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
26922 elif test $ol_with_threads = found ; then
26923 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
26928 case $ol_with_threads in auto | yes | pth)
26930 for ac_header in pth.h
26932 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
26933 if test "x$ac_cv_header_pth_h" = xyes; then :
26934 cat >>confdefs.h <<_ACEOF
26935 #define HAVE_PTH_H 1
26943 if test $ac_cv_header_pth_h = yes ; then
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
26945 $as_echo_n "checking for pth_version in -lpth... " >&6; }
26946 if ${ac_cv_lib_pth_pth_version+:} false; then :
26947 $as_echo_n "(cached) " >&6
26949 ac_check_lib_save_LIBS=$LIBS
26951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26952 /* end confdefs.h. */
26954 /* Override any GCC internal prototype to avoid an error.
26955 Use char because int might match the return type of a GCC
26956 builtin and then its argument prototype would still apply. */
26960 char pth_version ();
26964 return pth_version ();
26969 if ac_fn_c_try_link "$LINENO"; then :
26970 ac_cv_lib_pth_pth_version=yes
26972 ac_cv_lib_pth_pth_version=no
26974 rm -f core conftest.err conftest.$ac_objext \
26975 conftest$ac_exeext conftest.$ac_ext
26976 LIBS=$ac_check_lib_save_LIBS
26978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
26979 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
26980 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
26987 if test $have_pth = yes ; then
26989 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
26991 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26992 ol_link_threads=pth
26993 ol_with_threads=found
26995 if test x$ol_with_yielding_select = xauto ; then
26996 ol_with_yielding_select=yes
27003 case $ol_with_threads in auto | yes | lwp)
27005 for ac_header in thread.h synch.h
27007 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27008 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27009 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27010 cat >>confdefs.h <<_ACEOF
27011 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27018 if test $ac_cv_header_thread_h = yes &&
27019 test $ac_cv_header_synch_h = yes ; then
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
27021 $as_echo_n "checking for thr_create in -lthread... " >&6; }
27022 if ${ac_cv_lib_thread_thr_create+:} false; then :
27023 $as_echo_n "(cached) " >&6
27025 ac_check_lib_save_LIBS=$LIBS
27026 LIBS="-lthread $LIBS"
27027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27028 /* end confdefs.h. */
27030 /* Override any GCC internal prototype to avoid an error.
27031 Use char because int might match the return type of a GCC
27032 builtin and then its argument prototype would still apply. */
27036 char thr_create ();
27040 return thr_create ();
27045 if ac_fn_c_try_link "$LINENO"; then :
27046 ac_cv_lib_thread_thr_create=yes
27048 ac_cv_lib_thread_thr_create=no
27050 rm -f core conftest.err conftest.$ac_objext \
27051 conftest$ac_exeext conftest.$ac_ext
27052 LIBS=$ac_check_lib_save_LIBS
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
27055 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
27056 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
27063 if test $have_thr = yes ; then
27065 $as_echo "#define HAVE_THR 1" >>confdefs.h
27067 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
27068 ol_link_threads=thr
27070 if test x$ol_with_yielding_select = xauto ; then
27071 ol_with_yielding_select=yes
27075 thr_setconcurrency \
27076 thr_getconcurrency \
27079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27080 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27081 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27082 cat >>confdefs.h <<_ACEOF
27083 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27092 for ac_header in lwp/lwp.h
27094 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
27095 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
27096 cat >>confdefs.h <<_ACEOF
27097 #define HAVE_LWP_LWP_H 1
27104 if test $ac_cv_header_lwp_lwp_h = yes ; then
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
27106 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
27107 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
27108 $as_echo_n "(cached) " >&6
27110 ac_check_lib_save_LIBS=$LIBS
27112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27113 /* end confdefs.h. */
27115 /* Override any GCC internal prototype to avoid an error.
27116 Use char because int might match the return type of a GCC
27117 builtin and then its argument prototype would still apply. */
27121 char lwp_create ();
27125 return lwp_create ();
27130 if ac_fn_c_try_link "$LINENO"; then :
27131 ac_cv_lib_lwp_lwp_create=yes
27133 ac_cv_lib_lwp_lwp_create=no
27135 rm -f core conftest.err conftest.$ac_objext \
27136 conftest$ac_exeext conftest.$ac_ext
27137 LIBS=$ac_check_lib_save_LIBS
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
27140 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
27141 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
27148 if test $have_lwp = yes ; then
27150 $as_echo "#define HAVE_LWP 1" >>confdefs.h
27152 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
27153 ol_link_threads=lwp
27155 if test x$ol_with_yielding_select = xauto ; then
27156 ol_with_yielding_select=no
27163 if test $ol_with_yielding_select = yes ; then
27165 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
27169 if test $ol_with_threads = manual ; then
27170 ol_link_threads=yes
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
27173 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
27175 for ac_header in pthread.h sched.h
27177 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27178 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27179 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27180 cat >>confdefs.h <<_ACEOF
27181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27188 for ac_func in sched_yield pthread_yield
27190 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27191 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27192 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27193 cat >>confdefs.h <<_ACEOF
27194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
27202 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
27203 if ${ol_cv_header_linux_threads+:} false; then :
27204 $as_echo_n "(cached) " >&6
27206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27207 /* end confdefs.h. */
27208 #include <pthread.h>
27210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27211 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
27212 ol_cv_header_linux_threads=yes
27214 ol_cv_header_linux_threads=no
27220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
27221 $as_echo "$ol_cv_header_linux_threads" >&6; }
27222 if test $ol_cv_header_linux_threads = yes; then
27224 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
27229 for ac_header in mach/cthreads.h
27231 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
27232 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
27233 cat >>confdefs.h <<_ACEOF
27234 #define HAVE_MACH_CTHREADS_H 1
27241 for ac_header in lwp/lwp.h
27243 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
27244 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
27245 cat >>confdefs.h <<_ACEOF
27246 #define HAVE_LWP_LWP_H 1
27253 for ac_header in thread.h synch.h
27255 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27256 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27257 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27258 cat >>confdefs.h <<_ACEOF
27259 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27268 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27270 $as_echo "#define REENTRANT 1" >>confdefs.h
27273 $as_echo "#define _REENTRANT 1" >>confdefs.h
27276 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
27279 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
27282 $as_echo "#define THREADSAFE 1" >>confdefs.h
27285 $as_echo "#define _THREADSAFE 1" >>confdefs.h
27288 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
27291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
27292 $as_echo_n "checking for thread specific errno... " >&6; }
27293 if ${ol_cv_errno_thread_specific+:} false; then :
27294 $as_echo_n "(cached) " >&6
27297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27298 /* end confdefs.h. */
27308 if ac_fn_c_try_link "$LINENO"; then :
27309 ol_cv_errno_thread_specific=yes
27311 ol_cv_errno_thread_specific=no
27313 rm -f core conftest.err conftest.$ac_objext \
27314 conftest$ac_exeext conftest.$ac_ext
27317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
27318 $as_echo "$ol_cv_errno_thread_specific" >&6; }
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
27321 $as_echo_n "checking for thread specific h_errno... " >&6; }
27322 if ${ol_cv_h_errno_thread_specific+:} false; then :
27323 $as_echo_n "(cached) " >&6
27326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27327 /* end confdefs.h. */
27337 if ac_fn_c_try_link "$LINENO"; then :
27338 ol_cv_h_errno_thread_specific=yes
27340 ol_cv_h_errno_thread_specific=no
27342 rm -f core conftest.err conftest.$ac_objext \
27343 conftest$ac_exeext conftest.$ac_ext
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
27347 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
27349 if test $ol_cv_errno_thread_specific != yes ||
27350 test $ol_cv_h_errno_thread_specific != yes ; then
27351 LIBS="$LTHREAD_LIBS $LIBS"
27357 if test $ol_link_threads = no ; then
27358 if test $ol_with_threads = yes ; then
27359 as_fn_error $? "no suitable thread support" "$LINENO" 5
27362 if test $ol_with_threads = auto ; then
27363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
27364 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27369 $as_echo "#define NO_THREADS 1" >>confdefs.h
27377 if test $ol_link_threads != no ; then
27379 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
27383 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
27384 case "$ol_with_threads" in
27390 ol_found_pthreads=yes
27395 ac_cpp='$CPP $CPPFLAGS'
27396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27401 case "$ol_found_pthreads" in
27404 LIBS="$LTHREAD_LIBS $LIBS"
27405 saved_CFLAGS="$CFLAGS"
27406 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
27407 for ac_func in sem_timedwait
27409 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
27410 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
27411 cat >>confdefs.h <<_ACEOF
27412 #define HAVE_SEM_TIMEDWAIT 1
27419 { saved_LIBS=; unset saved_LIBS;}
27420 CFLAGS="$saved_CFLAGS"
27421 { saved_CFLAGS=; unset saved_CFLAGS;}
27422 case "$ac_cv_func_sem_timedwait" in
27424 PTHREAD_LIBS="$LTHREAD_LIBS"
27426 # Bug 2332: With GCC we need to force a reference to libgcc_s
27427 # (if libgcc_s exists) or the combination of
27428 # threads + setuid + mlockall does not work on linux because
27429 # thread cancellation fails to load libgcc_s with dlopen().
27430 # We have to pass this all as linker options to avoid argument
27431 # reordering by libtool.
27432 case "$GCC$with_gnu_ld" in
27434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lgcc_s" >&5
27435 $as_echo_n "checking for exit in -lgcc_s... " >&6; }
27436 if ${ac_cv_lib_gcc_s_exit+:} false; then :
27437 $as_echo_n "(cached) " >&6
27439 ac_check_lib_save_LIBS=$LIBS
27440 LIBS="-lgcc_s $LIBS"
27441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27442 /* end confdefs.h. */
27444 /* Override any GCC internal prototype to avoid an error.
27445 Use char because int might match the return type of a GCC
27446 builtin and then its argument prototype would still apply. */
27459 if ac_fn_c_try_link "$LINENO"; then :
27460 ac_cv_lib_gcc_s_exit=yes
27462 ac_cv_lib_gcc_s_exit=no
27464 rm -f core conftest.err conftest.$ac_objext \
27465 conftest$ac_exeext conftest.$ac_ext
27466 LIBS=$ac_check_lib_save_LIBS
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_s_exit" >&5
27469 $as_echo "$ac_cv_lib_gcc_s_exit" >&6; }
27470 if test "x$ac_cv_lib_gcc_s_exit" = xyes; then :
27471 PTHREAD_LIBS="$LTHREAD_LIBS -Wl,--no-as-needed,-lgcc_s,--as-needed"
27480 case "$have_pthreads" in
27482 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
27484 LIBS="$LTHREAD_LIBS $LIBS"
27485 saved_CFLAGS="$CFLAGS"
27486 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
27487 # The cast to long int works around a bug in the HP C Compiler
27488 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27489 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27490 # This bug is HP SR number 8606223364.
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
27492 $as_echo_n "checking size of pthread_t... " >&6; }
27493 if ${ac_cv_sizeof_pthread_t+:} false; then :
27494 $as_echo_n "(cached) " >&6
27496 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
27497 $ac_includes_default
27498 #include <pthread.h>
27504 if test "$ac_cv_type_pthread_t" = yes; then
27505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27507 as_fn_error 77 "cannot compute sizeof (pthread_t)
27508 See \`config.log' for more details" "$LINENO" 5; }
27510 ac_cv_sizeof_pthread_t=0
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
27516 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
27520 cat >>confdefs.h <<_ACEOF
27521 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
27525 LIBISC_PTHREADS_NOTHREADS=pthreads
27527 $as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
27530 # We'd like to use sigwait() too
27532 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
27533 if test "x$ac_cv_func_sigwait" = xyes; then :
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
27537 $as_echo_n "checking for sigwait in -lc... " >&6; }
27538 if ${ac_cv_lib_c_sigwait+:} false; then :
27539 $as_echo_n "(cached) " >&6
27541 ac_check_lib_save_LIBS=$LIBS
27543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27544 /* end confdefs.h. */
27546 /* Override any GCC internal prototype to avoid an error.
27547 Use char because int might match the return type of a GCC
27548 builtin and then its argument prototype would still apply. */
27561 if ac_fn_c_try_link "$LINENO"; then :
27562 ac_cv_lib_c_sigwait=yes
27564 ac_cv_lib_c_sigwait=no
27566 rm -f core conftest.err conftest.$ac_objext \
27567 conftest$ac_exeext conftest.$ac_ext
27568 LIBS=$ac_check_lib_save_LIBS
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
27571 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
27572 if test "x$ac_cv_lib_c_sigwait" = xyes; then :
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
27576 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
27577 if ${ac_cv_lib_pthread_sigwait+:} false; then :
27578 $as_echo_n "(cached) " >&6
27580 ac_check_lib_save_LIBS=$LIBS
27581 LIBS="-lpthread $LIBS"
27582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27583 /* end confdefs.h. */
27585 /* Override any GCC internal prototype to avoid an error.
27586 Use char because int might match the return type of a GCC
27587 builtin and then its argument prototype would still apply. */
27600 if ac_fn_c_try_link "$LINENO"; then :
27601 ac_cv_lib_pthread_sigwait=yes
27603 ac_cv_lib_pthread_sigwait=no
27605 rm -f core conftest.err conftest.$ac_objext \
27606 conftest$ac_exeext conftest.$ac_ext
27607 LIBS=$ac_check_lib_save_LIBS
27609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
27610 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
27611 if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
27615 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
27616 if ${ac_cv_lib_pthread__Psigwait+:} false; then :
27617 $as_echo_n "(cached) " >&6
27619 ac_check_lib_save_LIBS=$LIBS
27620 LIBS="-lpthread $LIBS"
27621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27622 /* end confdefs.h. */
27624 /* Override any GCC internal prototype to avoid an error.
27625 Use char because int might match the return type of a GCC
27626 builtin and then its argument prototype would still apply. */
27634 return _Psigwait ();
27639 if ac_fn_c_try_link "$LINENO"; then :
27640 ac_cv_lib_pthread__Psigwait=yes
27642 ac_cv_lib_pthread__Psigwait=no
27644 rm -f core conftest.err conftest.$ac_objext \
27645 conftest$ac_exeext conftest.$ac_ext
27646 LIBS=$ac_check_lib_save_LIBS
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
27649 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
27650 if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
27666 case "$host:$have_sigwait" in
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
27669 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
27670 if ${ac_cv_lib_c_r_sigwait+:} false; then :
27671 $as_echo_n "(cached) " >&6
27673 ac_check_lib_save_LIBS=$LIBS
27675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27676 /* end confdefs.h. */
27678 /* Override any GCC internal prototype to avoid an error.
27679 Use char because int might match the return type of a GCC
27680 builtin and then its argument prototype would still apply. */
27693 if ac_fn_c_try_link "$LINENO"; then :
27694 ac_cv_lib_c_r_sigwait=yes
27696 ac_cv_lib_c_r_sigwait=no
27698 rm -f core conftest.err conftest.$ac_objext \
27699 conftest$ac_exeext conftest.$ac_ext
27700 LIBS=$ac_check_lib_save_LIBS
27702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
27703 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
27704 if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
27710 case "$have_sigwait" in
27712 ac_cv_func_sigwait=yes
27714 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
27718 for ac_func in pthread_attr_getstacksize
27720 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
27721 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
27722 cat >>confdefs.h <<_ACEOF
27723 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
27729 for ac_func in pthread_attr_setstacksize sysconf
27731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27732 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27733 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27734 cat >>confdefs.h <<_ACEOF
27735 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27743 *-freebsd5.[012]|*-freebsd5.[012].*)
27745 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
27747 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
27750 *-bsdi3.*|*-bsdi4.0*)
27752 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
27757 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
27761 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
27763 for ac_func in pthread_setconcurrency
27765 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
27766 if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
27767 cat >>confdefs.h <<_ACEOF
27768 #define HAVE_PTHREAD_SETCONCURRENCY 1
27774 case "$ac_cv_func_pthread_setconcurrency" in
27777 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
27781 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
27783 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
27787 hack_shutup_pthreadonceinit=no
27790 hack_shutup_pthreadonceinit=yes
27793 hack_shutup_pthreadonceinit=yes
27796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
27797 $as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
27798 if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
27799 $as_echo_n "(cached) " >&6
27801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27802 /* end confdefs.h. */
27804 #include <pthread.h>
27810 static pthread_once_t once_test =
27818 if ac_fn_c_try_compile "$LINENO"; then :
27819 ntp_cv_braces_around_pthread_once_init=no
27821 ntp_cv_braces_around_pthread_once_init=yes
27824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
27828 $as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
27829 case "$ntp_cv_braces_around_pthread_once_init" in
27831 hack_shutup_pthreadonceinit=yes
27835 case "$hack_shutup_pthreadonceinit" in
27838 $as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
27842 { saved_LIBS=; unset saved_LIBS;}
27843 CFLAGS="$saved_CFLAGS"
27844 { saved_CFLAGS=; unset saved_CFLAGS;}
27847 LIBISC_PTHREADS_NOTHREADS=nothreads
27851 if test "$have_pthreads" != "no"; then
27865 case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
27868 $as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
27869 if ${ntp_cv_vsnprintf_percent_m+:} false; then :
27870 $as_echo_n "(cached) " >&6
27872 if test "$cross_compiling" = yes; then :
27873 ntp_cv_vsnprintf_percent_m=no
27876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27877 /* end confdefs.h. */
27879 #include <stdarg.h>
27882 #include <string.h>
27884 int call_vsnprintf(
27891 int call_vsnprintf(
27902 rc = vsnprintf(dst, sz, fmt, ap);
27916 strcpy(sbuf, strerror(ENOENT));
27918 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
27920 return strcmp(sbuf, pbuf);
27927 if ac_fn_c_try_run "$LINENO"; then :
27928 ntp_cv_vsnprintf_percent_m=yes
27930 ntp_cv_vsnprintf_percent_m=no
27932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27933 conftest.$ac_objext conftest.beam conftest.$ac_ext
27938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
27939 $as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
27940 case "$ntp_cv_vsnprintf_percent_m" in
27943 $as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
27948 for ac_header in sys/clockctl.h
27950 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
27951 if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
27952 cat >>confdefs.h <<_ACEOF
27953 #define HAVE_SYS_CLOCKCTL_H 1
27961 # Check whether --enable-clockctl was given.
27962 if test "${enable_clockctl+set}" = set; then :
27963 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
27965 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
27971 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
27973 $as_echo "$ntp_use_dev_clockctl" >&6; }
27976 for ac_header in sys/capability.h sys/prctl.h
27978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27979 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27980 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27981 cat >>confdefs.h <<_ACEOF
27982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
27991 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
27993 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
27997 ntp_have_linuxcaps=no
27999 *) ntp_have_linuxcaps=yes
28004 ntp_have_linuxcaps=no
28008 # Check whether --enable-linuxcaps was given.
28009 if test "${enable_linuxcaps+set}" = set; then :
28010 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
28015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
28016 $as_echo "$ntp_have_linuxcaps" >&6; }
28018 case "$ntp_have_linuxcaps" in
28021 $as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
28028 for ac_header in priv.h
28030 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
28031 if test "x$ac_cv_header_priv_h" = xyes; then :
28032 cat >>confdefs.h <<_ACEOF
28033 #define HAVE_PRIV_H 1
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
28042 $as_echo_n "checking if we have solaris privileges... " >&6; }
28044 case "$ac_cv_header_priv_h" in
28048 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
28049 if test "x$ac_cv_func_setppriv" = xyes; then :
28050 ntp_have_solarisprivs=yes
28052 ntp_have_solarisprivs=no
28060 # Check whether --enable-solarisprivs was given.
28061 if test "${enable_solarisprivs+set}" = set; then :
28062 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
28068 case "$ntp_have_solarisprivs" in
28071 $as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
28075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
28076 $as_echo "$ntp_have_solarisprivs" >&6; }
28078 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
28081 $as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
28088 $as_echo_n "checking for library containing res_9_init... " >&6; }
28089 if ${ac_cv_search_res_9_init+:} false; then :
28090 $as_echo_n "(cached) " >&6
28092 ac_func_search_save_LIBS=$LIBS
28093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28094 /* end confdefs.h. */
28096 /* Override any GCC internal prototype to avoid an error.
28097 Use char because int might match the return type of a GCC
28098 builtin and then its argument prototype would still apply. */
28102 char res_9_init ();
28106 return res_9_init ();
28111 for ac_lib in '' resolv; do
28112 if test -z "$ac_lib"; then
28113 ac_res="none required"
28116 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28118 if ac_fn_c_try_link "$LINENO"; then :
28119 ac_cv_search_res_9_init=$ac_res
28121 rm -f core conftest.err conftest.$ac_objext \
28123 if ${ac_cv_search_res_9_init+:} false; then :
28127 if ${ac_cv_search_res_9_init+:} false; then :
28130 ac_cv_search_res_9_init=no
28132 rm conftest.$ac_ext
28133 LIBS=$ac_func_search_save_LIBS
28135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
28136 $as_echo "$ac_cv_search_res_9_init" >&6; }
28137 ac_res=$ac_cv_search_res_9_init
28138 if test "$ac_res" != no; then :
28139 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28144 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
28145 $as_echo_n "checking for library containing res_init... " >&6; }
28146 if ${ac_cv_search_res_init+:} false; then :
28147 $as_echo_n "(cached) " >&6
28149 ac_func_search_save_LIBS=$LIBS
28150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28151 /* end confdefs.h. */
28153 /* Override any GCC internal prototype to avoid an error.
28154 Use char because int might match the return type of a GCC
28155 builtin and then its argument prototype would still apply. */
28163 return res_init ();
28168 for ac_lib in '' resolv; do
28169 if test -z "$ac_lib"; then
28170 ac_res="none required"
28173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28175 if ac_fn_c_try_link "$LINENO"; then :
28176 ac_cv_search_res_init=$ac_res
28178 rm -f core conftest.err conftest.$ac_objext \
28180 if ${ac_cv_search_res_init+:} false; then :
28184 if ${ac_cv_search_res_init+:} false; then :
28187 ac_cv_search_res_init=no
28189 rm conftest.$ac_ext
28190 LIBS=$ac_func_search_save_LIBS
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
28193 $as_echo "$ac_cv_search_res_init" >&6; }
28194 ac_res=$ac_cv_search_res_init
28195 if test "$ac_res" != no; then :
28196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28202 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
28204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28205 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
28206 # include <sys/types.h>
28208 #ifdef HAVE_NETINET_IN_H
28209 # include <netinet/in.h> /* inet_ functions / structs */
28211 #ifdef HAVE_ARPA_NAMESER_H
28212 # include <arpa/nameser.h> /* DNS HEADER struct */
28214 #ifdef HAVE_NETDB_H
28215 # include <netdb.h>
28218 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28219 cat >>confdefs.h <<_ACEOF
28220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28228 #HMS: Why do we do this check so "early"?
28229 for ac_func in res_init
28231 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
28232 if test "x$ac_cv_func_res_init" = xyes; then :
28233 cat >>confdefs.h <<_ACEOF
28234 #define HAVE_RES_INIT 1
28238 for ac_func in __res_init
28240 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
28241 if test "x$ac_cv_func___res_init" = xyes; then :
28242 cat >>confdefs.h <<_ACEOF
28243 #define HAVE___RES_INIT 1
28253 # We also need -lsocket, but we have tested for that already.
28254 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28255 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28259 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
28263 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28264 if test "x$ac_cv_func_inet_pton" = xyes; then :
28268 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
28273 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
28274 if test "x$ac_cv_type_uintptr_t" = xyes; then :
28276 cat >>confdefs.h <<_ACEOF
28277 #define HAVE_UINTPTR_T 1
28282 ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
28283 if test "x$ac_cv_type_int32" = xyes; then :
28285 cat >>confdefs.h <<_ACEOF
28286 #define HAVE_INT32 1
28291 ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
28292 if test "x$ac_cv_type_u_int32" = xyes; then :
28294 cat >>confdefs.h <<_ACEOF
28295 #define HAVE_U_INT32 1
28304 case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
28306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
28307 $as_echo_n "checking for int32 with DNS headers included... " >&6; }
28308 if ${ntp_cv_type_int32_with_dns+:} false; then :
28309 $as_echo_n "(cached) " >&6
28311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28312 /* end confdefs.h. */
28314 #ifdef HAVE_ARPA_NAMESER_H
28315 # include <arpa/nameser.h>
28317 #include <resolv.h>
28323 size_t cb = sizeof(int32);
28330 if ac_fn_c_try_compile "$LINENO"; then :
28331 ntp_cv_type_int32_with_dns=yes
28333 ntp_cv_type_int32_with_dns=no
28336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
28340 $as_echo "$ntp_cv_type_int32_with_dns" >&6; }
28341 case "$ntp_cv_type_int32_with_dns" in
28344 $as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
28349 case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
28351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
28352 $as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
28353 if ${ntp_cv_type_u_int32_with_dns+:} false; then :
28354 $as_echo_n "(cached) " >&6
28356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28357 /* end confdefs.h. */
28359 #ifdef HAVE_ARPA_NAMESER_H
28360 # include <arpa/nameser.h>
28362 #include <resolv.h>
28368 size_t cb = sizeof(u_int32);
28375 if ac_fn_c_try_compile "$LINENO"; then :
28376 ntp_cv_type_u_int32_with_dns=yes
28378 ntp_cv_type_u_int32_with_dns=no
28381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
28385 $as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
28386 case "$ntp_cv_type_u_int32_with_dns" in
28389 $as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
28394 for ac_header in sys/timepps.h
28396 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
28397 #ifdef HAVE_SYS_TIME_H
28398 # include <sys/time.h>
28400 #ifdef HAVE_ERRNO_H
28401 # include <errno.h>
28406 if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
28407 cat >>confdefs.h <<_ACEOF
28408 #define HAVE_SYS_TIMEPPS_H 1
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
28417 $as_echo_n "checking for struct timespec... " >&6; }
28418 if ${ntp_cv_struct_timespec+:} false; then :
28419 $as_echo_n "(cached) " >&6
28421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28422 /* end confdefs.h. */
28424 #include <sys/time.h>
28425 /* Under SunOS, timespec is in sys/timepps.h,
28426 which needs errno.h and FRAC */
28427 #ifdef HAVE_ERRNO_H
28428 # include <errno.h>
28430 #ifdef HAVE_SYS_TIMEPPS_H
28431 # define FRAC 4294967296
28432 # include <sys/timepps.h>
28446 if ac_fn_c_try_compile "$LINENO"; then :
28447 ntp_cv_struct_timespec=yes
28449 ntp_cv_struct_timespec=no
28452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
28456 $as_echo "$ntp_cv_struct_timespec" >&6; }
28457 case "$ntp_cv_struct_timespec" in
28460 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
28465 $as_echo_n "checking for struct ntptimeval... " >&6; }
28466 if ${ntp_cv_struct_ntptimeval+:} false; then :
28467 $as_echo_n "(cached) " >&6
28469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28470 /* end confdefs.h. */
28472 #include <sys/time.h>
28473 #include <sys/timex.h>
28479 struct ntptimeval n;
28486 if ac_fn_c_try_compile "$LINENO"; then :
28487 ntp_cv_struct_ntptimeval=yes
28489 ntp_cv_struct_ntptimeval=no
28492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
28496 $as_echo "$ntp_cv_struct_ntptimeval" >&6; }
28497 case "$ntp_cv_struct_ntptimeval" in
28500 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
28504 for ac_header in md5.h
28506 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
28507 #ifdef HAVE_SYS_TYPES_H
28508 # include <sys/types.h>
28513 if test "x$ac_cv_header_md5_h" = xyes; then :
28514 cat >>confdefs.h <<_ACEOF
28515 #define HAVE_MD5_H 1
28523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
28524 $as_echo_n "checking for library containing MD5Init... " >&6; }
28525 if ${ac_cv_search_MD5Init+:} false; then :
28526 $as_echo_n "(cached) " >&6
28528 ac_func_search_save_LIBS=$LIBS
28529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28530 /* end confdefs.h. */
28532 /* Override any GCC internal prototype to avoid an error.
28533 Use char because int might match the return type of a GCC
28534 builtin and then its argument prototype would still apply. */
28547 for ac_lib in '' md5 md; do
28548 if test -z "$ac_lib"; then
28549 ac_res="none required"
28552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28554 if ac_fn_c_try_link "$LINENO"; then :
28555 ac_cv_search_MD5Init=$ac_res
28557 rm -f core conftest.err conftest.$ac_objext \
28559 if ${ac_cv_search_MD5Init+:} false; then :
28563 if ${ac_cv_search_MD5Init+:} false; then :
28566 ac_cv_search_MD5Init=no
28568 rm conftest.$ac_ext
28569 LIBS=$ac_func_search_save_LIBS
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
28572 $as_echo "$ac_cv_search_MD5Init" >&6; }
28573 ac_res=$ac_cv_search_MD5Init
28574 if test "$ac_res" != no; then :
28575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28579 for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
28581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28582 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28583 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28584 cat >>confdefs.h <<_ACEOF
28585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
28593 $as_echo_n "checking for SIGIO... " >&6; }
28594 if ${ntp_cv_hdr_def_sigio+:} false; then :
28595 $as_echo_n "(cached) " >&6
28597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28598 /* end confdefs.h. */
28600 #include <signal.h>
28607 if ac_fn_c_try_cpp "$LINENO"; then :
28608 ntp_cv_hdr_def_sigio=yes
28610 ntp_cv_hdr_def_sigio=no
28613 rm -f conftest.err conftest.i conftest.$ac_ext
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
28617 $as_echo "$ntp_cv_hdr_def_sigio" >&6; }
28619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
28620 $as_echo_n "checking if we want to use SIGIO... " >&6; }
28622 case "$ntp_cv_hdr_def_sigio" in
28626 alpha*-dec-osf4*|alpha*-dec-osf5*)
28671 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
28674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28675 $as_echo "$ans" >&6; }
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
28678 $as_echo_n "checking for SIGPOLL... " >&6; }
28679 if ${ntp_cv_hdr_def_sigpoll+:} false; then :
28680 $as_echo_n "(cached) " >&6
28682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28683 /* end confdefs.h. */
28685 #include <signal.h>
28692 if ac_fn_c_try_cpp "$LINENO"; then :
28693 ntp_cv_hdr_def_sigpoll=yes
28695 ntp_cv_hdr_def_sigpoll=no
28698 rm -f conftest.err conftest.i conftest.$ac_ext
28701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
28702 $as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
28704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
28705 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
28707 case "$ntp_cv_hdr_def_sigpoll" in
28726 # XXX Only verified thru AIX6
28764 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
28767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28768 $as_echo "$ans" >&6; }
28770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
28771 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
28773 case "$ntp_cv_hdr_def_sigpoll" in
28792 # XXX Only verified thru AIX6
28827 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
28830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28831 $as_echo "$ans" >&6; }
28833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
28834 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
28835 if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
28836 $as_echo_n "(cached) " >&6
28838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28839 /* end confdefs.h. */
28841 #include <sys/time.h>
28847 gettimeofday(0, 0);
28848 settimeofday(0, 0);
28855 if ac_fn_c_try_compile "$LINENO"; then :
28856 ntp_cv_func_Xettimeofday_nargs=2
28858 ntp_cv_func_Xettimeofday_nargs=1
28861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
28865 $as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
28866 case "$ntp_cv_func_Xettimeofday_nargs" in
28869 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
28873 for ac_func in settimeofday
28875 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
28876 if test "x$ac_cv_func_settimeofday" = xyes; then :
28877 cat >>confdefs.h <<_ACEOF
28878 #define HAVE_SETTIMEOFDAY 1
28884 *-*-mpeix*) ac_cv_func_settimeofday=yes
28891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
28892 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
28893 ntp_warning='GRONK'
28895 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
28898 ans='clock_settime()'
28901 ntp_warning='But clock_settime() would be better (if we had it)'
28902 ans='settimeofday()'
28905 ntp_warning='Which is the worst of the three'
28911 ntp_warning='Which leaves us with nothing to use!'
28914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28915 $as_echo "$ans" >&6; }
28916 case "$ntp_warning" in
28920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
28921 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
28926 LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
28928 { __LIBS=; unset __LIBS;}
28932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
28933 $as_echo_n "checking for deprecated --with-arlib... " >&6; }
28935 # Check whether --with-arlib was given.
28936 if test "${with_arlib+set}" = set; then :
28937 withval=$with_arlib; ans=$withval
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28943 $as_echo "$ans" >&6; }
28947 { $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
28948 $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;}
28952 for ac_prog in gawk mawk nawk awk
28954 # Extract the first word of "$ac_prog", so it can be a program name with args.
28955 set dummy $ac_prog; ac_word=$2
28956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28957 $as_echo_n "checking for $ac_word... " >&6; }
28958 if ${ac_cv_prog_AWK+:} false; then :
28959 $as_echo_n "(cached) " >&6
28961 if test -n "$AWK"; then
28962 ac_cv_prog_AWK="$AWK" # Let the user override the test.
28964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28965 for as_dir in $PATH
28968 test -z "$as_dir" && as_dir=.
28969 for ac_exec_ext in '' $ac_executable_extensions; do
28970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28971 ac_cv_prog_AWK="$ac_prog"
28972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28981 AWK=$ac_cv_prog_AWK
28982 if test -n "$AWK"; then
28983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
28984 $as_echo "$AWK" >&6; }
28986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28987 $as_echo "no" >&6; }
28991 test -n "$AWK" && break
28994 { ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
28995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
28996 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
28998 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
28999 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
29000 $as_echo_n "(cached) " >&6
29002 cat >conftest.make <<\_ACEOF
29005 @echo '@@@%%%=$(MAKE)=@@@%%%'
29007 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29008 case `${MAKE-make} -f conftest.make 2>/dev/null` in
29009 *@@@%%%=?*=@@@%%%*)
29010 eval ac_cv_prog_make_${ac_make}_set=yes;;
29012 eval ac_cv_prog_make_${ac_make}_set=no;;
29014 rm -f conftest.make
29016 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
29017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29018 $as_echo "yes" >&6; }
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29022 $as_echo "no" >&6; }
29023 SET_MAKE="MAKE=${MAKE-make}"
29030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
29031 $as_echo_n "checking whether ln -s works... " >&6; }
29033 if test "$LN_S" = "ln -s"; then
29034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29035 $as_echo "yes" >&6; }
29037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
29038 $as_echo "no, using $LN_S" >&6; }
29041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
29042 $as_echo_n "checking for library containing strerror... " >&6; }
29043 if ${ac_cv_search_strerror+:} false; then :
29044 $as_echo_n "(cached) " >&6
29046 ac_func_search_save_LIBS=$LIBS
29047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29048 /* end confdefs.h. */
29050 /* Override any GCC internal prototype to avoid an error.
29051 Use char because int might match the return type of a GCC
29052 builtin and then its argument prototype would still apply. */
29060 return strerror ();
29065 for ac_lib in '' cposix; do
29066 if test -z "$ac_lib"; then
29067 ac_res="none required"
29070 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29072 if ac_fn_c_try_link "$LINENO"; then :
29073 ac_cv_search_strerror=$ac_res
29075 rm -f core conftest.err conftest.$ac_objext \
29077 if ${ac_cv_search_strerror+:} false; then :
29081 if ${ac_cv_search_strerror+:} false; then :
29084 ac_cv_search_strerror=no
29086 rm conftest.$ac_ext
29087 LIBS=$ac_func_search_save_LIBS
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
29090 $as_echo "$ac_cv_search_strerror" >&6; }
29091 ac_res=$ac_cv_search_strerror
29092 if test "$ac_res" != no; then :
29093 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29099 # Extract the first word of "perl", so it can be a program name with args.
29100 set dummy perl; ac_word=$2
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29102 $as_echo_n "checking for $ac_word... " >&6; }
29103 if ${ac_cv_path_PATH_PERL+:} false; then :
29104 $as_echo_n "(cached) " >&6
29108 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
29111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29112 for as_dir in $PATH
29115 test -z "$as_dir" && as_dir=.
29116 for ac_exec_ext in '' $ac_executable_extensions; do
29117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29118 ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
29119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29129 PATH_PERL=$ac_cv_path_PATH_PERL
29130 if test -n "$PATH_PERL"; then
29131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
29132 $as_echo "$PATH_PERL" >&6; }
29134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29135 $as_echo "no" >&6; }
29139 { ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
29140 # Extract the first word of "test", so it can be a program name with args.
29141 set dummy test; ac_word=$2
29142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29143 $as_echo_n "checking for $ac_word... " >&6; }
29144 if ${ac_cv_path_PATH_TEST+:} false; then :
29145 $as_echo_n "(cached) " >&6
29149 ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
29152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29153 for as_dir in $PATH
29156 test -z "$as_dir" && as_dir=.
29157 for ac_exec_ext in '' $ac_executable_extensions; do
29158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29159 ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
29160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29170 PATH_TEST=$ac_cv_path_PATH_TEST
29171 if test -n "$PATH_TEST"; then
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
29173 $as_echo "$PATH_TEST" >&6; }
29175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29176 $as_echo "no" >&6; }
29180 { ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
29181 test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
29184 # Check whether --with-net-snmp-config was given.
29185 if test "${with_net_snmp_config+set}" = set; then :
29186 withval=$with_net_snmp_config; ans=$withval
29196 ans=net-snmp-config
29201 as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
29206 PROG_NET_SNMP_CONFIG=$ans
29207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
29208 $as_echo_n "checking for net-snmp-config path... " >&6; }
29209 case "$PROG_NET_SNMP_CONFIG" in
29212 PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
29215 # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
29216 set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
29217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29218 $as_echo_n "checking for $ac_word... " >&6; }
29219 if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
29220 $as_echo_n "(cached) " >&6
29222 case $PATH_NET_SNMP_CONFIG in
29224 ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
29227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29228 for as_dir in $PATH
29231 test -z "$as_dir" && as_dir=.
29232 for ac_exec_ext in '' $ac_executable_extensions; do
29233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29234 ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29245 PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
29246 if test -n "$PATH_NET_SNMP_CONFIG"; then
29247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
29248 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
29250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29251 $as_echo "no" >&6; }
29255 { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
29258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
29259 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
29261 case "$PATH_NET_SNMP_CONFIG" in
29262 /*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
29263 $as_echo_n "checking for net-snmp version... " >&6; }
29264 if ${ntp_cv_net_snmp_version+:} false; then :
29265 $as_echo_n "(cached) " >&6
29267 ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version`
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
29271 $as_echo "$ntp_cv_net_snmp_version" >&6; }
29277 ac_link="$ac_link $VX_KERNEL"
29281 # HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
29282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
29283 $as_echo_n "checking for library containing openlog... " >&6; }
29284 if ${ac_cv_search_openlog+:} false; then :
29285 $as_echo_n "(cached) " >&6
29287 ac_func_search_save_LIBS=$LIBS
29288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29289 /* end confdefs.h. */
29291 /* Override any GCC internal prototype to avoid an error.
29292 Use char because int might match the return type of a GCC
29293 builtin and then its argument prototype would still apply. */
29306 for ac_lib in '' gen syslog; do
29307 if test -z "$ac_lib"; then
29308 ac_res="none required"
29311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29313 if ac_fn_c_try_link "$LINENO"; then :
29314 ac_cv_search_openlog=$ac_res
29316 rm -f core conftest.err conftest.$ac_objext \
29318 if ${ac_cv_search_openlog+:} false; then :
29322 if ${ac_cv_search_openlog+:} false; then :
29325 ac_cv_search_openlog=no
29327 rm conftest.$ac_ext
29328 LIBS=$ac_func_search_save_LIBS
29330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
29331 $as_echo "$ac_cv_search_openlog" >&6; }
29332 ac_res=$ac_cv_search_openlog
29333 if test "$ac_res" != no; then :
29334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29338 # XXX library list will be in ac_cv_search_openlog
29340 # LIBSECCOMP is off by default -- needs testing with all the features
29341 # Please send bug reports to loganaden@gmail.com
29342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
29343 $as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
29344 # Check whether --enable-libseccomp was given.
29345 if test "${enable_libseccomp+set}" = set; then :
29346 enableval=$enable_libseccomp; ntp_ok=$enableval
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29353 $as_echo "$ntp_ok" >&6; }
29356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
29357 $as_echo_n "checking for library containing seccomp_init... " >&6; }
29358 if ${ac_cv_search_seccomp_init+:} false; then :
29359 $as_echo_n "(cached) " >&6
29361 ac_func_search_save_LIBS=$LIBS
29362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29363 /* end confdefs.h. */
29365 /* Override any GCC internal prototype to avoid an error.
29366 Use char because int might match the return type of a GCC
29367 builtin and then its argument prototype would still apply. */
29371 char seccomp_init ();
29375 return seccomp_init ();
29380 for ac_lib in '' seccomp; do
29381 if test -z "$ac_lib"; then
29382 ac_res="none required"
29385 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29387 if ac_fn_c_try_link "$LINENO"; then :
29388 ac_cv_search_seccomp_init=$ac_res
29390 rm -f core conftest.err conftest.$ac_objext \
29392 if ${ac_cv_search_seccomp_init+:} false; then :
29396 if ${ac_cv_search_seccomp_init+:} false; then :
29399 ac_cv_search_seccomp_init=no
29401 rm conftest.$ac_ext
29402 LIBS=$ac_func_search_save_LIBS
29404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
29405 $as_echo "$ac_cv_search_seccomp_init" >&6; }
29406 ac_res=$ac_cv_search_seccomp_init
29407 if test "$ac_res" != no; then :
29408 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29410 $as_echo "#define LIBSECCOMP 1" >>confdefs.h
29415 if test "$cross_compiling" = yes; then :
29416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29418 as_fn_error $? "cannot run test program while cross compiling
29419 See \`config.log' for more details" "$LINENO" 5; }
29421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29422 /* end confdefs.h. */
29425 #include <stdlib.h>
29427 #include <sys/prctl.h>
29428 #include <linux/seccomp.h>
29433 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
29445 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
29461 if ac_fn_c_try_run "$LINENO"; then :
29463 $as_echo "#define KERN_SECCOMP 1" >>confdefs.h
29467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29468 conftest.$ac_objext conftest.beam conftest.$ac_ext
29475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
29476 $as_echo_n "checking for facilitynames in syslog.h... " >&6; }
29477 if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
29478 $as_echo_n "(cached) " >&6
29481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29482 /* end confdefs.h. */
29484 #define SYSLOG_NAMES
29485 #include <stdlib.h>
29486 #include <syslog.h>
29491 void *fnames; fnames = facilitynames;
29496 if ac_fn_c_try_compile "$LINENO"; then :
29497 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
29499 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
29501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
29504 $as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
29505 case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
29508 $as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
29512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
29513 $as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
29516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
29517 $as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
29528 # HMS: Make sure we check for -lrt for clock_* before this...
29529 case "$ac_cv_search_clock_gettime" in
29530 '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
29532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
29533 $as_echo_n "checking for library containing sched_setscheduler... " >&6; }
29534 if ${ac_cv_search_sched_setscheduler+:} false; then :
29535 $as_echo_n "(cached) " >&6
29537 ac_func_search_save_LIBS=$LIBS
29538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29539 /* end confdefs.h. */
29541 /* Override any GCC internal prototype to avoid an error.
29542 Use char because int might match the return type of a GCC
29543 builtin and then its argument prototype would still apply. */
29547 char sched_setscheduler ();
29551 return sched_setscheduler ();
29556 for ac_lib in '' rt posix4; do
29557 if test -z "$ac_lib"; then
29558 ac_res="none required"
29561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29563 if ac_fn_c_try_link "$LINENO"; then :
29564 ac_cv_search_sched_setscheduler=$ac_res
29566 rm -f core conftest.err conftest.$ac_objext \
29568 if ${ac_cv_search_sched_setscheduler+:} false; then :
29572 if ${ac_cv_search_sched_setscheduler+:} false; then :
29575 ac_cv_search_sched_setscheduler=no
29577 rm conftest.$ac_ext
29578 LIBS=$ac_func_search_save_LIBS
29580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
29581 $as_echo "$ac_cv_search_sched_setscheduler" >&6; }
29582 ac_res=$ac_cv_search_sched_setscheduler
29583 if test "$ac_res" != no; then :
29584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29591 for ac_header in bstring.h
29593 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
29594 if test "x$ac_cv_header_bstring_h" = xyes; then :
29595 cat >>confdefs.h <<_ACEOF
29596 #define HAVE_BSTRING_H 1
29603 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
29604 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
29605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
29606 $as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
29607 if ${ac_cv_search_DNSServiceRegister+:} false; then :
29608 $as_echo_n "(cached) " >&6
29610 ac_func_search_save_LIBS=$LIBS
29611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29612 /* end confdefs.h. */
29614 /* Override any GCC internal prototype to avoid an error.
29615 Use char because int might match the return type of a GCC
29616 builtin and then its argument prototype would still apply. */
29620 char DNSServiceRegister ();
29624 return DNSServiceRegister ();
29629 for ac_lib in '' dns_sd; do
29630 if test -z "$ac_lib"; then
29631 ac_res="none required"
29634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29636 if ac_fn_c_try_link "$LINENO"; then :
29637 ac_cv_search_DNSServiceRegister=$ac_res
29639 rm -f core conftest.err conftest.$ac_objext \
29641 if ${ac_cv_search_DNSServiceRegister+:} false; then :
29645 if ${ac_cv_search_DNSServiceRegister+:} false; then :
29648 ac_cv_search_DNSServiceRegister=no
29650 rm conftest.$ac_ext
29651 LIBS=$ac_func_search_save_LIBS
29653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
29654 $as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
29655 ac_res=$ac_cv_search_DNSServiceRegister
29656 if test "$ac_res" != no; then :
29657 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29659 $as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
29668 for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
29670 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29671 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29672 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29673 cat >>confdefs.h <<_ACEOF
29674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29682 for ac_header in memory.h netdb.h poll.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
29695 for ac_header in sgtty.h stdatomic.h stdlib.h string.h termio.h
29697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29698 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29699 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29700 cat >>confdefs.h <<_ACEOF
29701 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29708 for ac_header in termios.h timepps.h timex.h unistd.h
29710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29711 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29712 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29713 cat >>confdefs.h <<_ACEOF
29714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29724 for ac_header in utmpx.h
29726 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
29727 if test "x$ac_cv_header_utmpx_h" = xyes; then :
29728 cat >>confdefs.h <<_ACEOF
29729 #define HAVE_UTMPX_H 1
29736 case "$ac_cv_header_utmpx_h" in
29740 for ac_header in utmp.h
29742 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
29743 if test "x$ac_cv_header_utmp_h" = xyes; then :
29744 cat >>confdefs.h <<_ACEOF
29745 #define HAVE_UTMP_H 1
29756 for ac_header in utmp.h utmpx.h
29758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29759 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29760 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29761 cat >>confdefs.h <<_ACEOF
29762 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29773 # On Suns only (so far) getpass() truncates the typed password to 8
29774 # characters, but getpassphrase() allows up to 257. Most systems'
29775 # getpass() does not truncate, at least not so as to affect ntpq and
29776 # ntpdc password prompts.
29778 # So check for getpassphrase(), but only on Sun operating systems.
29781 *-*-sunos*|*-*-solaris*)
29782 for ac_func in getpassphrase
29784 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
29785 if test "x$ac_cv_func_getpassphrase" = xyes; then :
29786 cat >>confdefs.h <<_ACEOF
29787 #define HAVE_GETPASSPHRASE 1
29796 for ac_header in net/if6.h
29798 ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
29799 if test "x$ac_cv_header_net_if6_h" = xyes; then :
29800 cat >>confdefs.h <<_ACEOF
29801 #define HAVE_NET_IF6_H 1
29808 for ac_header in net/route.h
29810 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
29811 #include <sys/types.h>
29812 #include <sys/socket.h>
29813 #include <net/if.h>
29816 if test "x$ac_cv_header_net_route_h" = xyes; then :
29817 cat >>confdefs.h <<_ACEOF
29818 #define HAVE_NET_ROUTE_H 1
29826 for ac_header in netinfo/ni.h
29828 ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
29829 if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
29830 cat >>confdefs.h <<_ACEOF
29831 #define HAVE_NETINFO_NI_H 1
29838 case "$ac_cv_header_netinfo_ni_h" in
29841 $as_echo "#define HAVE_NETINFO 1" >>confdefs.h
29844 for ac_header in sun/audioio.h sys/audioio.h sys/file.h
29846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29847 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29848 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29849 cat >>confdefs.h <<_ACEOF
29850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29861 for ac_header in sys/ioctl.h
29863 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
29864 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
29865 cat >>confdefs.h <<_ACEOF
29866 #define HAVE_SYS_IOCTL_H 1
29875 for ac_header in sys/ipc.h sys/lock.h sys/mman.h
29877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29878 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29879 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29880 cat >>confdefs.h <<_ACEOF
29881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29888 # HMS: Check sys/proc.h and sys/resource.h after some others
29889 for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.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 case "$ac_cv_header_sched_h" in
29906 for ac_header in sys/sched.h
29908 ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
29909 if test "x$ac_cv_header_sys_sched_h" = xyes; then :
29910 cat >>confdefs.h <<_ACEOF
29911 #define HAVE_SYS_SCHED_H 1
29920 # HMS: Check sys/shm.h after some others
29921 for ac_header in sys/select.h sys/signal.h sys/sockio.h
29923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29924 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29925 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29926 cat >>confdefs.h <<_ACEOF
29927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29934 # HMS: Checked sys/socket.h earlier
29939 for ac_header in machine/soundcard.h sys/soundcard.h
29941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29942 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29943 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29944 cat >>confdefs.h <<_ACEOF
29945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29954 for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
29956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29957 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29958 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29959 cat >>confdefs.h <<_ACEOF
29960 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29967 for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
29969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29970 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29971 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29972 cat >>confdefs.h <<_ACEOF
29973 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29982 for ac_header in /sys/sync/queue.h /sys/sync/sema.h
29984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29985 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29986 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29987 cat >>confdefs.h <<_ACEOF
29988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29997 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
29999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30000 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30001 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30002 cat >>confdefs.h <<_ACEOF
30003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30013 case "$ac_cv_header_stdatomic_h" in
30015 for ac_func in atomic_thread_fence
30017 ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
30018 if test "x$ac_cv_func_atomic_thread_fence" = xyes; then :
30019 cat >>confdefs.h <<_ACEOF
30020 #define HAVE_ATOMIC_THREAD_FENCE 1
30026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
30027 $as_echo_n "checking for atomic_thread_fence()... " >&6; }
30028 if ${ntp_cv_func_atomic_thread_fence+:} false; then :
30029 $as_echo_n "(cached) " >&6
30031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30032 /* end confdefs.h. */
30034 #include <stdatomic.h>
30040 atomic_thread_fence(memory_order_seq_cst);
30046 ntp_cv_func_atomic_thread_fence=yes
30048 if ac_fn_c_try_compile "$LINENO"; then :
30049 ntp_cv_func_atomic_thread_fence=no
30052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
30056 $as_echo "$ntp_cv_func_atomic_thread_fence" >&6; }
30065 for ac_func in ntp_adjtime ntp_gettime
30067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30068 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30069 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30070 cat >>confdefs.h <<_ACEOF
30071 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30082 case "$ac_cv_func_ntp_gettime" in
30086 for ac_func in __ntp_gettime
30088 ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
30089 if test "x$ac_cv_func___ntp_gettime" = xyes; then :
30090 cat >>confdefs.h <<_ACEOF
30091 #define HAVE___NTP_GETTIME 1
30097 case "$ac_cv_func___ntp_gettime" in
30100 $as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
30103 $as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h
30108 for ac_func in adjtimex
30110 ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
30111 if test "x$ac_cv_func_adjtimex" = xyes; then :
30112 cat >>confdefs.h <<_ACEOF
30113 #define HAVE_ADJTIMEX 1
30119 case "$ac_cv_func_adjtimex" in
30122 $as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
30125 $as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
30130 for ac_func in __adjtimex
30132 ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
30133 if test "x$ac_cv_func___adjtimex" = xyes; then :
30134 cat >>confdefs.h <<_ACEOF
30135 #define HAVE___ADJTIMEX 1
30141 case "$ac_cv_func___adjtimex" in
30144 $as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
30147 $as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
30150 $as_echo "#define adjtimex __adjtimex" >>confdefs.h
30153 $as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h
30160 case "$have_adjtimex" in
30162 # nlist stuff is only needed for tickadj.
30165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
30166 $as_echo_n "checking for library containing nlist... " >&6; }
30167 if ${ac_cv_search_nlist+:} false; then :
30168 $as_echo_n "(cached) " >&6
30170 ac_func_search_save_LIBS=$LIBS
30171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30172 /* end confdefs.h. */
30174 /* Override any GCC internal prototype to avoid an error.
30175 Use char because int might match the return type of a GCC
30176 builtin and then its argument prototype would still apply. */
30189 for ac_lib in '' elf ld mld; do
30190 if test -z "$ac_lib"; then
30191 ac_res="none required"
30194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30196 if ac_fn_c_try_link "$LINENO"; then :
30197 ac_cv_search_nlist=$ac_res
30199 rm -f core conftest.err conftest.$ac_objext \
30201 if ${ac_cv_search_nlist+:} false; then :
30205 if ${ac_cv_search_nlist+:} false; then :
30208 ac_cv_search_nlist=no
30210 rm conftest.$ac_ext
30211 LIBS=$ac_func_search_save_LIBS
30213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
30214 $as_echo "$ac_cv_search_nlist" >&6; }
30215 ac_res=$ac_cv_search_nlist
30216 if test "$ac_res" != no; then :
30217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30221 # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
30222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
30223 $as_echo_n "checking for library containing kvm_open... " >&6; }
30224 if ${ac_cv_search_kvm_open+:} false; then :
30225 $as_echo_n "(cached) " >&6
30227 ac_func_search_save_LIBS=$LIBS
30228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30229 /* end confdefs.h. */
30231 /* Override any GCC internal prototype to avoid an error.
30232 Use char because int might match the return type of a GCC
30233 builtin and then its argument prototype would still apply. */
30241 return kvm_open ();
30246 for ac_lib in '' kvm; do
30247 if test -z "$ac_lib"; then
30248 ac_res="none required"
30251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30253 if ac_fn_c_try_link "$LINENO"; then :
30254 ac_cv_search_kvm_open=$ac_res
30256 rm -f core conftest.err conftest.$ac_objext \
30258 if ${ac_cv_search_kvm_open+:} false; then :
30262 if ${ac_cv_search_kvm_open+:} false; then :
30265 ac_cv_search_kvm_open=no
30267 rm conftest.$ac_ext
30268 LIBS=$ac_func_search_save_LIBS
30270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
30271 $as_echo "$ac_cv_search_kvm_open" >&6; }
30272 ac_res=$ac_cv_search_kvm_open
30273 if test "$ac_res" != no; then :
30274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30277 # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
30278 for ac_header in nlist.h sys/var.h
30280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30281 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30282 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30283 cat >>confdefs.h <<_ACEOF
30284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30291 case "$ac_cv_header_nlist_h" in
30294 $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
30296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
30297 $as_echo_n "checking for n_un in struct nlist... " >&6; }
30298 if ${ntp_cv_struct_nlist_n_un+:} false; then :
30299 $as_echo_n "(cached) " >&6
30301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30302 /* end confdefs.h. */
30317 ntp_cv_struct_nlist_n_un=yes
30319 if ac_fn_c_try_compile "$LINENO"; then :
30320 ntp_cv_struct_nlist_n_un=no
30323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
30327 $as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
30328 case "$ntp_cv_struct_nlist_n_un" in
30331 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
30336 LDADD_NLIST="$LIBS"
30338 { saved_LIBS=; unset saved_LIBS;}
30341 for ac_header in sys/proc.h
30343 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
30344 #ifdef HAVE_SYS_TYPES_H
30345 # include <sys/types.h>
30347 #ifdef HAVE_SYS_TIME_H
30348 # include <sys/time.h>
30352 if test "x$ac_cv_header_sys_proc_h" = xyes; then :
30353 cat >>confdefs.h <<_ACEOF
30354 #define HAVE_SYS_PROC_H 1
30362 for ac_header in sys/resource.h
30364 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
30365 #ifdef HAVE_SYS_TIME_H
30366 # include <sys/time.h>
30370 if test "x$ac_cv_header_sys_resource_h" = xyes; then :
30371 cat >>confdefs.h <<_ACEOF
30372 #define HAVE_SYS_RESOURCE_H 1
30380 for ac_header in sys/shm.h
30382 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
30383 #ifdef HAVE_SYS_TYPES_H
30384 # include <sys/types.h>
30386 #ifdef HAVE_SYS_IPC_H
30387 # include <sys/ipc.h>
30391 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
30392 cat >>confdefs.h <<_ACEOF
30393 #define HAVE_SYS_SHM_H 1
30401 for ac_header in sys/timex.h
30403 ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
30404 #ifdef HAVE_SYS_TIME_H
30405 # include <sys/time.h>
30409 if test "x$ac_cv_header_sys_timex_h" = xyes; then :
30410 cat >>confdefs.h <<_ACEOF
30411 #define HAVE_SYS_TIMEX_H 1
30419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
30420 $as_echo_n "checking return type of signal handlers... " >&6; }
30421 if ${ac_cv_type_signal+:} false; then :
30422 $as_echo_n "(cached) " >&6
30424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30425 /* end confdefs.h. */
30426 #include <sys/types.h>
30427 #include <signal.h>
30432 return *(signal (0, 0)) (0) == 1;
30437 if ac_fn_c_try_compile "$LINENO"; then :
30438 ac_cv_type_signal=int
30440 ac_cv_type_signal=void
30442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
30445 $as_echo "$ac_cv_type_signal" >&6; }
30447 cat >>confdefs.h <<_ACEOF
30448 #define RETSIGTYPE $ac_cv_type_signal
30452 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
30453 if test "x$ac_cv_type_off_t" = xyes; then :
30457 cat >>confdefs.h <<_ACEOF
30458 #define off_t long int
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
30464 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
30465 if ${ac_cv_struct_tm+:} false; then :
30466 $as_echo_n "(cached) " >&6
30468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30469 /* end confdefs.h. */
30470 #include <sys/types.h>
30477 int *p = &tm.tm_sec;
30483 if ac_fn_c_try_compile "$LINENO"; then :
30484 ac_cv_struct_tm=time.h
30486 ac_cv_struct_tm=sys/time.h
30488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
30491 $as_echo "$ac_cv_struct_tm" >&6; }
30492 if test $ac_cv_struct_tm = sys/time.h; then
30494 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
30498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
30499 $as_echo_n "checking for a fallback value for HZ... " >&6; }
30500 if ${ntp_cv_default_hz+:} false; then :
30501 $as_echo_n "(cached) " >&6
30504 ntp_cv_default_hz=100
30506 alpha*-dec-osf4*|alpha*-dec-osf5*)
30507 ntp_cv_default_hz=1024
30510 ntp_cv_default_hz=256
30516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
30517 $as_echo "$ntp_cv_default_hz" >&6; }
30519 cat >>confdefs.h <<_ACEOF
30520 #define DEFAULT_HZ $ntp_cv_default_hz
30524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
30525 $as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
30526 if ${ntp_cv_override_hz+:} false; then :
30527 $as_echo_n "(cached) " >&6
30530 ntp_cv_override_hz=no
30532 alpha*-dec-osf4*|alpha*-dec-osf5*)
30533 ntp_cv_override_hz=yes
30536 ntp_cv_override_hz=yes
30539 ntp_cv_override_hz=yes
30542 ntp_cv_override_hz=yes
30545 ntp_cv_override_hz=yes
30551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
30552 $as_echo "$ntp_cv_override_hz" >&6; }
30553 case "$ntp_cv_override_hz" in
30556 $as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
30562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
30563 $as_echo_n "checking for struct rt_msghdr... " >&6; }
30564 if ${ntp_cv_struct_rt_msghdr+:} false; then :
30565 $as_echo_n "(cached) " >&6
30567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30568 /* end confdefs.h. */
30570 #include <sys/types.h>
30571 #include <sys/socket.h>
30572 #include <net/if.h>
30573 #include <net/route.h>
30579 struct rt_msghdr p;
30586 if ac_fn_c_try_compile "$LINENO"; then :
30587 ntp_cv_struct_rt_msghdr=yes
30589 ntp_cv_struct_rt_msghdr=no
30592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
30596 $as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
30598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
30599 $as_echo_n "checking for struct rtattr... " >&6; }
30600 if ${ntp_cv_rtattr+:} false; then :
30601 $as_echo_n "(cached) " >&6
30603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30604 /* end confdefs.h. */
30606 #include <stddef.h>
30607 #include <sys/socket.h>
30608 #include <linux/rtnetlink.h>
30621 if ac_fn_c_try_compile "$LINENO"; then :
30627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
30631 $as_echo "$ntp_cv_rtattr" >&6; }
30633 case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
30636 $as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
30638 case "$ntp_cv_rtattr" in
30641 $as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
30646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
30647 $as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
30648 if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
30649 $as_echo_n "(cached) " >&6
30651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30652 /* end confdefs.h. */
30654 #include <signal.h>
30660 struct sigaction act;
30661 act.sa_sigaction = 0;
30668 if ac_fn_c_try_compile "$LINENO"; then :
30669 ntp_cv_struct_sigaction_has_sa_sigaction=yes
30671 ntp_cv_struct_sigaction_has_sa_sigaction=no
30674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
30678 $as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
30679 case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
30682 $as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
30686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
30687 $as_echo_n "checking for struct ppsclockev... " >&6; }
30688 if ${ntp_cv_struct_ppsclockev+:} false; then :
30689 $as_echo_n "(cached) " >&6
30691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30692 /* end confdefs.h. */
30694 #ifdef HAVE_SYS_TYPES_H
30695 # include <sys/types.h>
30697 #ifdef HAVE_SYS_TERMIOS_H
30698 # include <sys/termios.h>
30700 #ifdef HAVE_SYS_TIME_H
30701 # include <sys/time.h>
30703 #ifdef HAVE_SYS_PPSCLOCK_H
30704 # include <sys/ppsclock.h>
30711 extern struct ppsclockev *pce;
30712 return pce->serial;
30719 if ac_fn_c_try_compile "$LINENO"; then :
30720 ntp_cv_struct_ppsclockev=yes
30722 ntp_cv_struct_ppsclockev=no
30725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
30729 $as_echo "$ntp_cv_struct_ppsclockev" >&6; }
30730 case "$ntp_cv_struct_ppsclockev" in
30733 $as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
30737 case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
30739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
30740 $as_echo_n "checking for struct snd_size... " >&6; }
30741 if ${ntp_cv_struct_snd_size+:} false; then :
30742 $as_echo_n "(cached) " >&6
30744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30745 /* end confdefs.h. */
30747 #ifdef HAVE_MACHINE_SOUNDCARD_H
30748 # include <machine/soundcard.h>
30750 #ifdef HAVE_SYS_SOUNDCARD_H
30751 # include <sys/soundcard.h>
30758 extern struct snd_size *ss;
30759 return ss->rec_size;
30766 if ac_fn_c_try_compile "$LINENO"; then :
30767 ntp_cv_struct_snd_size=yes
30769 ntp_cv_struct_snd_size=no
30772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
30776 $as_echo "$ntp_cv_struct_snd_size" >&6; }
30777 case "$ntp_cv_struct_snd_size" in
30780 $as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
30785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
30786 $as_echo_n "checking struct clockinfo for hz... " >&6; }
30787 if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
30788 $as_echo_n "(cached) " >&6
30790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30791 /* end confdefs.h. */
30793 #include <sys/time.h>
30799 extern struct clockinfo *pc;
30807 if ac_fn_c_try_compile "$LINENO"; then :
30808 ntp_cv_struct_clockinfo_has_hz=yes
30810 ntp_cv_struct_clockinfo_has_hz=no
30813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
30817 $as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
30818 case "$ntp_cv_struct_clockinfo_has_hz" in
30821 $as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
30825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
30826 $as_echo_n "checking struct clockinfo for tickadj... " >&6; }
30827 if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
30828 $as_echo_n "(cached) " >&6
30830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30831 /* end confdefs.h. */
30833 #include <sys/time.h>
30839 extern struct clockinfo *pc;
30840 return pc->tickadj;
30847 if ac_fn_c_try_compile "$LINENO"; then :
30848 ntp_cv_struct_clockinfo_has_hz=yes
30850 ntp_cv_struct_clockinfo_has_hz=no
30853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
30857 $as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
30858 case "$ntp_cv_struct_clockinfo_has_hz" in
30861 $as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
30865 case "$ntp_cv_struct_ntptimeval" in
30867 ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
30868 #ifdef HAVE_SYS_TIME_H
30869 # include <sys/time.h>
30871 # ifdef HAVE_TIME_H
30875 #ifdef HAVE_SYS_TIMEX_H
30876 # include <sys/timex.h>
30878 # ifdef HAVE_TIMEX_H
30879 # include <timex.h>
30885 if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :
30887 cat >>confdefs.h <<_ACEOF
30888 #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
30898 for ac_func in arc4random_buf
30900 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
30901 if test "x$ac_cv_func_arc4random_buf" = xyes; then :
30902 cat >>confdefs.h <<_ACEOF
30903 #define HAVE_ARC4RANDOM_BUF 1
30913 LIBS="$LIBS $LDADD_LIBNTP"
30914 for ac_func in daemon
30916 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
30917 if test "x$ac_cv_func_daemon" = xyes; then :
30918 cat >>confdefs.h <<_ACEOF
30919 #define HAVE_DAEMON 1
30925 # XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
30927 { saved_LIBS=; unset saved_LIBS;}
30929 for ac_func in finite
30931 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
30932 if test "x$ac_cv_func_finite" = xyes; then :
30933 cat >>confdefs.h <<_ACEOF
30934 #define HAVE_FINITE 1
30938 for ac_func in isfinite
30940 ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
30941 if test "x$ac_cv_func_isfinite" = xyes; then :
30942 cat >>confdefs.h <<_ACEOF
30943 #define HAVE_ISFINITE 1
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
30949 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
30953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30954 /* end confdefs.h. */
30970 if ac_fn_c_try_link "$LINENO"; then :
30976 rm -f core conftest.err conftest.$ac_objext \
30977 conftest$ac_exeext conftest.$ac_ext
30979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30980 $as_echo "$ans" >&6; }
30983 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
30996 for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
30998 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30999 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31000 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31001 cat >>confdefs.h <<_ACEOF
31002 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31009 # kvm_open() is only used by tickadj. Also see above.
31010 case "$ac_cv_header_kvm_h" in
31012 for ac_func in kvm_open
31014 ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
31015 if test "x$ac_cv_func_kvm_open" = xyes; then :
31016 cat >>confdefs.h <<_ACEOF
31017 #define HAVE_KVM_OPEN 1
31028 # Just stubs. Sigh.
31030 *) for ac_func in mkstemp
31032 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
31033 if test "x$ac_cv_func_mkstemp" = xyes; then :
31034 cat >>confdefs.h <<_ACEOF
31035 #define HAVE_MKSTEMP 1
31043 for ac_func in mktime
31045 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
31046 if test "x$ac_cv_func_mktime" = xyes; then :
31047 cat >>confdefs.h <<_ACEOF
31048 #define HAVE_MKTIME 1
31056 # XXX only verified thru AIX6.
31057 # Just a stub. Sigh.
31060 # Just a stub in "old" Irix. Sigh.
31062 # In the belief that the fix for bug 1223 fixes mlockall() under linux...
31064 # # there, but more trouble than it is worth for now (resolver problems)
31067 # Apparently there but not working in QNX. Sigh?
31070 # Just a stub. Sigh.
31072 alpha*-dec-osf4*|alpha*-dec-osf5*)
31073 # mlockall is there, as a #define calling memlk via <sys/mman.h>
31074 # Not easy to test for - cheat.
31075 for ac_func in memlk
31077 ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
31078 if test "x$ac_cv_func_memlk" = xyes; then :
31079 cat >>confdefs.h <<_ACEOF
31080 #define HAVE_MEMLK 1
31082 ac_cv_func_mlockall=yes
31086 for ac_func in mlockall
31088 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
31089 if test "x$ac_cv_func_mlockall" = xyes; then :
31090 cat >>confdefs.h <<_ACEOF
31091 #define HAVE_MLOCKALL 1
31098 *) for ac_func in mlockall
31100 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
31101 if test "x$ac_cv_func_mlockall" = xyes; then :
31102 cat >>confdefs.h <<_ACEOF
31103 #define HAVE_MLOCKALL 1
31111 for ac_func in nice plock pututline pututxline readlink rtprio
31113 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31114 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31115 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31116 cat >>confdefs.h <<_ACEOF
31117 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31125 # XXX only verified thru AIX6.
31126 # Just a stub in AIX 4. Sigh.
31129 # Just stubs in solaris2.5. Sigh.
31131 *) for ac_func in sched_setscheduler
31133 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
31134 if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
31135 cat >>confdefs.h <<_ACEOF
31136 #define HAVE_SCHED_SETSCHEDULER 1
31144 for ac_func in setlinebuf setpgid setpriority setsid setvbuf
31146 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31147 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31148 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31149 cat >>confdefs.h <<_ACEOF
31150 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31156 for ac_func in strdup strerror setrlimit strchr
31158 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31159 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31160 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31161 cat >>confdefs.h <<_ACEOF
31162 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31170 # XXX only verified thru AIX6.
31171 # Just stubs. Sigh.
31174 # Just stubs. Sigh.
31177 # Just stubs. Sigh.
31180 # Just stubs. Sigh.
31183 for ac_func in timer_create
31185 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
31186 if test "x$ac_cv_func_timer_create" = xyes; then :
31187 cat >>confdefs.h <<_ACEOF
31188 #define HAVE_TIMER_CREATE 1
31199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
31200 $as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
31201 if ${ntp_cv_rlimit_memlock+:} false; then :
31202 $as_echo_n "(cached) " >&6
31204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31205 /* end confdefs.h. */
31207 #ifdef HAVE_SYS_TYPES_H
31208 # include <sys/types.h>
31210 #ifdef HAVE_SYS_TIME_H
31211 # include <sys/time.h>
31213 #ifdef HAVE_SYS_RESOURCE_H
31214 # include <sys/resource.h>
31221 getrlimit(RLIMIT_MEMLOCK, 0);
31228 if ac_fn_c_try_compile "$LINENO"; then :
31229 ntp_cv_rlimit_memlock=yes
31231 ntp_cv_rlimit_memlock=no
31234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
31238 $as_echo "$ntp_cv_rlimit_memlock" >&6; }
31239 case "$ntp_cv_rlimit_memlock" in
31242 HAVE_RLIMIT_MEMLOCK=" memlock 32"
31245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
31246 $as_echo_n "checking for RLIMIT_STACK... " >&6; }
31247 if ${ntp_cv_rlimit_stack+:} false; then :
31248 $as_echo_n "(cached) " >&6
31250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31251 /* end confdefs.h. */
31253 #ifdef HAVE_SYS_TYPES_H
31254 # include <sys/types.h>
31256 #ifdef HAVE_SYS_TIME_H
31257 # include <sys/time.h>
31259 #ifdef HAVE_SYS_RESOURCE_H
31260 # include <sys/resource.h>
31267 getrlimit(RLIMIT_STACK, 0);
31274 if ac_fn_c_try_compile "$LINENO"; then :
31275 ntp_cv_rlimit_stack=yes
31277 ntp_cv_rlimit_stack=no
31280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
31284 $as_echo "$ntp_cv_rlimit_stack" >&6; }
31285 case "$ntp_cv_rlimit_stack" in
31288 HAVE_RLIMIT_STACK=" stacksize 50"
31293 # HMS: Only if we are doing the MLOCKALL stuff...
31294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
31295 $as_echo_n "checking for the default number of 4k stack pages... " >&6; }
31297 # Check whether --with-stack-limit was given.
31298 if test "${with_stack_limit+set}" = set; then :
31299 withval=$with_stack_limit; ans=$withval
31317 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
31320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31321 $as_echo "$ans" >&6; }
31323 cat >>confdefs.h <<_ACEOF
31324 #define DFLT_RLIMIT_STACK $ans
31328 # HMS: only if we have RLIMIT_MEMLOCK
31329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
31330 $as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }
31332 # Check whether --with-memlock was given.
31333 if test "${with_memlock+set}" = set; then :
31334 withval=$with_memlock; ans=$withval
31345 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
31348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31349 $as_echo "$ans" >&6; }
31351 cat >>confdefs.h <<_ACEOF
31352 #define DFLT_RLIMIT_MEMLOCK $ans
31357 # some OSes prefer _exit() in forked children to exit()
31358 for ac_func in _exit
31360 ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
31361 if test "x$ac_cv_func__exit" = xyes; then :
31362 cat >>confdefs.h <<_ACEOF
31363 #define HAVE__EXIT 1
31369 ntp_worker_child_exit=exit
31370 case "$ac_cv_func__exit::$host_os" in
31372 ntp_worker_child_exit=_exit
31375 ntp_worker_child_exit=_exit
31379 cat >>confdefs.h <<_ACEOF
31380 #define WORKER_CHILD_EXIT $ntp_worker_child_exit
31384 for ac_func in umask uname updwtmp updwtmpx
31386 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31387 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31388 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31389 cat >>confdefs.h <<_ACEOF
31390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31399 # http://bugs.ntp.org/737
31400 case "$ac_cv_func_recvmsg" in
31402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
31403 $as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
31404 if ${ntp_cv_struct_iovec_help+:} false; then :
31405 $as_echo_n "(cached) " >&6
31409 for ntp_cv_struct_iovec_help in '0' '1'; do
31410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31411 /* end confdefs.h. */
31413 #ifdef HAVE_SYS_TYPES_H
31414 # include <sys/types.h>
31416 #ifdef HAVE_SYS_SOCKET_H
31417 # include <sys/socket.h>
31419 #if $ntp_cv_struct_iovec_help
31420 # include <sys/uio.h>
31435 x = recvmsg(s, &mh, flags);
31443 if ac_fn_c_try_compile "$LINENO"; then :
31444 compiled=yes ; break 1
31446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31448 case "$compiled" in
31450 ntp_cv_struct_iovec_help=0
31452 { compiled=; unset compiled;}
31456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
31457 $as_echo "$ntp_cv_struct_iovec_help" >&6; }
31458 case "$ntp_cv_struct_iovec_help" in
31461 $as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
31466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
31467 $as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
31468 if ${ntp_cv_func_setpgrp_nargs+:} false; then :
31469 $as_echo_n "(cached) " >&6
31471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31472 /* end confdefs.h. */
31474 #ifdef HAVE_SYS_TYPES_H
31475 # include <sys/types.h>
31477 #ifdef HAVE_UNISTD_H
31478 # include <unistd.h>
31492 if ac_fn_c_try_compile "$LINENO"; then :
31493 ntp_cv_func_setpgrp_nargs=2
31495 ntp_cv_func_setpgrp_nargs=0
31498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
31502 $as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
31503 case "$ntp_cv_func_setpgrp_nargs" in
31506 $as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
31510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
31511 $as_echo_n "checking if we need to declare 'errno'... " >&6; }
31512 if ${ntp_cv_decl_errno+:} false; then :
31513 $as_echo_n "(cached) " >&6
31515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31516 /* end confdefs.h. */
31518 #ifdef HAVE_ERRNO_H
31519 # include <errno.h>
31533 if ac_fn_c_try_compile "$LINENO"; then :
31534 ntp_cv_decl_errno=no
31536 ntp_cv_decl_errno=yes
31539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
31543 $as_echo "$ntp_cv_decl_errno" >&6; }
31544 case "$ntp_cv_decl_errno" in
31547 $as_echo "#define DECL_ERRNO 1" >>confdefs.h
31551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
31552 $as_echo_n "checking if we may declare 'h_errno'... " >&6; }
31553 if ${ntp_cv_decl_h_errno+:} false; then :
31554 $as_echo_n "(cached) " >&6
31556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31557 /* end confdefs.h. */
31559 #include <sys/types.h>
31560 #ifdef HAVE_NETINET_IN_H
31561 # include <netinet/in.h>
31563 #ifdef HAVE_ARPA_NAMESER_H
31564 # include <arpa/nameser.h>
31566 #ifdef HAVE_NETDB_H
31567 # include <netdb.h>
31569 #ifdef HAVE_RESOLV_H
31570 # include <resolv.h>
31577 extern int h_errno;
31584 if ac_fn_c_try_compile "$LINENO"; then :
31585 ntp_cv_decl_h_errno=yes
31587 ntp_cv_decl_h_errno=no
31590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
31594 $as_echo "$ntp_cv_decl_h_errno" >&6; }
31595 case "$ntp_cv_decl_h_errno" in
31598 $as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
31602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
31603 $as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
31604 if ${ntp_cv_decl_syscall+:} false; then :
31605 $as_echo_n "(cached) " >&6
31607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31608 /* end confdefs.h. */
31610 #ifdef HAVE_SYS_TYPES_H
31611 # include <sys/types.h>
31613 #ifdef HAVE_UNISTD_H
31614 # include <unistd.h>
31621 extern int syscall (int, ...);
31627 ntp_cv_decl_syscall=yes
31629 if ac_fn_c_try_compile "$LINENO"; then :
31630 ntp_cv_decl_syscall=no
31633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
31637 $as_echo "$ntp_cv_decl_syscall" >&6; }
31638 case "$ntp_cv_decl_syscall" in
31641 $as_echo "#define DECL_SYSCALL 1" >>confdefs.h
31648 $as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
31649 # Needed for XLC under AIX 4.3.2
31653 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31656 $as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
31659 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31662 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31665 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31668 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31671 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31676 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
31679 $as_echo "#define DECL_STIME_1 1" >>confdefs.h
31684 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31689 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31692 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31695 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31698 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
31701 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
31704 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31707 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
31710 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31713 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31716 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31719 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
31722 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
31725 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31728 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
31731 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31734 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
31739 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
31742 $as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
31747 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31754 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31757 $as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
31760 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31763 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31766 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
31769 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
31772 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31775 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
31778 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
31781 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31784 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31787 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31790 $as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
31792 case "`basename $ac_cv_prog_CC`" in
31795 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
31800 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
31803 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31806 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
31809 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31812 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
31815 $as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
31818 $as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
31823 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31826 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31829 $as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
31832 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31835 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
31838 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31841 $as_echo "#define DECL_NLIST_0 1" >>confdefs.h
31844 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
31847 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31850 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31853 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31856 $as_echo "#define DECL_STIME_0 1" >>confdefs.h
31859 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31862 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31870 $as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
31878 $as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
31882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
31883 $as_echo_n "checking if we will open the broadcast socket... " >&6; }
31884 if ${ntp_cv_var_open_bcast_socket+:} false; then :
31885 $as_echo_n "(cached) " >&6
31893 ntp_cv_var_open_bcast_socket=$ans
31897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
31898 $as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
31899 case "$ntp_cv_var_open_bcast_socket" in
31902 $as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
31909 $as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
31913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
31914 $as_echo_n "checking if process groups are set with -pid... " >&6; }
31915 if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
31916 $as_echo_n "(cached) " >&6
31939 ntp_cv_arg_setpgrp_negpid=$ans
31943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
31944 $as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
31945 case "$ntp_cv_arg_setpgrp_negpid" in
31948 $as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
31952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
31953 $as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
31954 if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
31955 $as_echo_n "(cached) " >&6
31965 # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
31966 # while later versions will fail a ioctl(TIOCSCTTY, 0) call in
31967 # some cases and so should not have USE_FSETOWNCTTY. "netbsd"
31968 # in $host may be followed by "aout", "ecoff", or "elf".
31969 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
31972 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
31988 ntp_cv_func_ctty_for_f_setown=$ans
31992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
31993 $as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
31994 case "$ntp_cv_func_ctty_for_f_setown" in
31997 $as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
32001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
32002 $as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
32003 if ${ntp_cv_os_routeupdates+:} false; then :
32004 $as_echo_n "(cached) " >&6
32015 ntp_cv_os_routeupdates=$ans
32019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
32020 $as_echo "$ntp_cv_os_routeupdates" >&6; }
32021 case "$ntp_cv_os_routeupdates" in
32024 $as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
32028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
32029 $as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
32030 if ${ntp_cv_os_wildcardreuse+:} false; then :
32031 $as_echo_n "(cached) " >&6
32041 ntp_cv_os_wildcardreuse=$ans
32045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
32046 $as_echo "$ntp_cv_os_wildcardreuse" >&6; }
32047 case "$ntp_cv_os_wildcardreuse" in
32050 $as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
32057 $as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
32061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
32062 $as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
32063 if ${ntp_cv_var_min_rec_tickadj+:} false; then :
32064 $as_echo_n "(cached) " >&6
32073 ntp_cv_var_min_rec_tickadj=$ans
32077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
32078 $as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
32079 case "$ntp_cv_var_min_rec_tickadj" in
32084 cat >>confdefs.h <<_ACEOF
32085 #define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
32090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
32091 $as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
32092 if ${ntp_cv_no_parenb_ignpar+:} false; then :
32093 $as_echo_n "(cached) " >&6
32104 i?86-*-freebsd[123].*)
32113 ntp_cv_no_parenb_ignpar=$ans
32117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
32118 $as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
32119 case "$ntp_cv_no_parenb_ignpar" in
32122 $as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
32126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
32127 $as_echo_n "checking if we're including processing time debugging code... " >&6; }
32128 # Check whether --enable-debug-timing was given.
32129 if test "${enable_debug_timing+set}" = set; then :
32130 enableval=$enable_debug_timing; ntp_ok=$enableval
32139 $as_echo "#define DEBUG_TIMING 1" >>confdefs.h
32142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32143 $as_echo "$ntp_ok" >&6; }
32145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
32146 $as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
32147 # Check whether --enable-dst-minutes was given.
32148 if test "${enable_dst_minutes+set}" = set; then :
32149 enableval=$enable_dst_minutes; ans=$enableval
32156 cat >>confdefs.h <<_ACEOF
32157 #define DSTMINUTES $ans
32160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32161 $as_echo "$ans" >&6; }
32163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
32164 $as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
32165 # Check whether --enable-ignore-dns-errors was given.
32166 if test "${enable_ignore_dns_errors+set}" = set; then :
32167 enableval=$enable_ignore_dns_errors; ans=$enableval
32176 $as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
32179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32180 $as_echo "$ans" >&6; }
32182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
32183 $as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
32184 if ${ntp_cv_var_ntp_syscalls+:} false; then :
32185 $as_echo_n "(cached) " >&6
32188 ntp_cv_var_ntp_syscalls=no
32189 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
32191 ntp_cv_var_ntp_syscalls=libc
32194 ntp_cv_var_ntp_syscalls=inline
32197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32198 /* end confdefs.h. */
32200 #include <sys/syscall.h>
32201 #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
32206 if ac_fn_c_try_cpp "$LINENO"; then :
32207 ntp_cv_var_ntp_syscalls=kernel
32210 rm -f conftest.err conftest.i conftest.$ac_ext
32216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
32217 $as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
32218 case "$ntp_cv_var_ntp_syscalls" in
32221 $as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
32226 $as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
32231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
32232 $as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
32233 if ${ntp_cv_var_sta_fll+:} false; then :
32234 $as_echo_n "(cached) " >&6
32236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32237 /* end confdefs.h. */
32239 #include <sys/timex.h>
32245 if ac_fn_c_try_cpp "$LINENO"; then :
32246 ntp_cv_var_sta_fll=yes
32248 ntp_cv_var_sta_fll=no
32251 rm -f conftest.err conftest.i conftest.$ac_ext
32254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
32255 $as_echo "$ntp_cv_var_sta_fll" >&6; }
32257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
32258 $as_echo_n "checking if we have kernel PLL support... " >&6; }
32259 if ${ntp_cv_var_kernel_pll+:} false; then :
32260 $as_echo_n "(cached) " >&6
32262 case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
32264 ntp_cv_var_kernel_pll=no
32266 *) ntp_cv_var_kernel_pll=yes
32272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
32273 $as_echo "$ntp_cv_var_kernel_pll" >&6; }
32274 case "$ntp_cv_var_kernel_pll" in
32277 $as_echo "#define KERNEL_PLL 1" >>confdefs.h
32281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
32282 $as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
32283 if ${ntp_cv_size_returned_in_buffer+:} false; then :
32284 $as_echo_n "(cached) " >&6
32299 ntp_cv_size_returned_in_buffer=$ans
32303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
32304 $as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
32305 case "$ntp_cv_size_returned_in_buffer" in
32308 $as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
32312 # Check for ioctls TIOCGPPSEV
32313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
32314 $as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
32315 case "$ac_cv_header_termios_h" in
32317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32318 /* end confdefs.h. */
32320 #include <termios.h>
32326 if ac_fn_c_try_cpp "$LINENO"; then :
32332 rm -f conftest.err conftest.i conftest.$ac_ext
32341 $as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
32344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32345 $as_echo "$ntp_ok" >&6; }
32347 # Check for ioctls TIOCSPPS
32348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
32349 $as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
32350 case "$ac_cv_header_termios_h" in
32352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32353 /* end confdefs.h. */
32355 #include <termios.h>
32361 if ac_fn_c_try_cpp "$LINENO"; then :
32367 rm -f conftest.err conftest.i conftest.$ac_ext
32376 $as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
32379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32380 $as_echo "$ntp_ok" >&6; }
32382 # Check for ioctls CIOGETEV
32383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
32384 $as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
32385 case "$ac_cv_header_sys_ppsclock_h" in
32387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32388 /* end confdefs.h. */
32390 #include <sys/ppsclock.h>
32396 if ac_fn_c_try_cpp "$LINENO"; then :
32402 rm -f conftest.err conftest.i conftest.$ac_ext
32411 $as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
32414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32415 $as_echo "$ntp_ok" >&6; }
32417 # ATOM/PPSAPI stuff.
32421 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
32423 # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
32424 # The PPSAPI needs struct timespec.
32425 # The PPSAPI also needs a timepps header.
32427 case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
32429 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
32430 *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
32432 $as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
32437 ntp_ripe_ncc_ok=yes
32443 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
32444 ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
32445 if test "x$ac_cv_header_linux_serial_h" = xyes; then :
32450 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
32452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
32453 $as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
32454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32455 /* end confdefs.h. */
32457 #include <sys/time.h>
32459 #include <sys/ppsclock.h>
32460 #include <linux/serial.h>
32462 #ifndef TIOCGSERIAL
32465 #ifndef TIOCSSERIAL
32468 #ifndef ASYNC_PPS_CD_POS
32471 #ifndef ASYNC_PPS_CD_NEG
32479 if ac_fn_c_try_cpp "$LINENO"; then :
32485 rm -f conftest.err conftest.i conftest.$ac_ext
32486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32487 $as_echo "$ntp_ok" >&6; }
32496 $as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
32500 # Check for SHMEM_STATUS support
32501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
32502 $as_echo_n "checking SHMEM_STATUS support... " >&6; }
32503 case "$ac_cv_header_sys_mman_h" in
32514 $as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
32517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32518 $as_echo "$ntp_ok" >&6; }
32522 # HPUX only, and by explicit request
32523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
32524 $as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
32525 # Check whether --enable-BANCOMM was given.
32526 if test "${enable_BANCOMM+set}" = set; then :
32527 enableval=$enable_BANCOMM; ntp_ok=$enableval
32537 $as_echo "#define CLOCK_BANC 1" >>confdefs.h
32541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32542 $as_echo "$ntp_ok" >&6; }
32543 case "$ntp_ok$host" in
32545 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32546 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
32549 #HPUX only, and only by explicit request
32550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
32551 $as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
32552 # Check whether --enable-GPSVME was given.
32553 if test "${enable_GPSVME+set}" = set; then :
32554 enableval=$enable_GPSVME; ntp_ok=$enableval
32564 $as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
32568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32569 $as_echo "$ntp_ok" >&6; }
32570 case "$ntp_ok$host" in
32572 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32573 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
32576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
32577 $as_echo_n "checking for PCL720 clock support... " >&6; }
32578 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
32581 $as_echo "#define CLOCK_PPS720 1" >>confdefs.h
32589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32590 $as_echo "$ans" >&6; }
32592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
32593 $as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
32594 # Check whether --enable-all-clocks was given.
32595 if test "${enable_all_clocks+set}" = set; then :
32596 enableval=$enable_all_clocks; ntp_eac=$enableval
32602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
32603 $as_echo "$ntp_eac" >&6; }
32605 # HMS: Should we also require ntp_parse_ok?
32606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
32607 $as_echo_n "checking if we have support for PARSE clocks... " >&6; }
32608 case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
32615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
32616 $as_echo "$ntp_canparse" >&6; }
32618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
32619 $as_echo_n "checking if we have support for audio clocks... " >&6; }
32620 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
32624 $as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
32627 *) ntp_canaudio=no ;;
32629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
32630 $as_echo "$ntp_canaudio" >&6; }
32632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
32633 $as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
32634 case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
32638 *) ntp_canshm=no ;;
32640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
32641 $as_echo "$ntp_canshm" >&6; }
32643 # Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
32644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
32645 $as_echo_n "checking for termios modem control... " >&6; }
32646 if ${ntp_cv_modem_control+:} false; then :
32647 $as_echo_n "(cached) " >&6
32649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32650 /* end confdefs.h. */
32652 #ifdef HAVE_UNISTD_H
32653 # include <unistd.h>
32655 #ifdef HAVE_TERMIOS_H
32656 # include <termios.h>
32658 #ifdef HAVE_SYS_IOCTL_H
32659 # include <sys/ioctl.h>
32666 int dtr = TIOCM_DTR;
32668 ioctl(1, TIOCMBIS, (char *)&dtr);
32675 if ac_fn_c_try_compile "$LINENO"; then :
32676 ntp_cv_modem_control=yes
32678 ntp_cv_modem_control=no
32681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
32685 $as_echo "$ntp_cv_modem_control" >&6; }
32686 case "$ntp_eac::$ntp_cv_modem_control" in
32688 ntp_enable_all_modem_control_clocks=yes
32691 ntp_enable_all_modem_control_clocks=no
32695 # Requires modem control
32696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
32697 $as_echo_n "checking ACTS modem service... " >&6; }
32698 # Check whether --enable-ACTS was given.
32699 if test "${enable_ACTS+set}" = set; then :
32700 enableval=$enable_ACTS; ntp_ok=$enableval
32702 ntp_ok=$ntp_enable_all_modem_control_clocks
32710 $as_echo "#define CLOCK_ACTS 1" >>confdefs.h
32714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32715 $as_echo "$ntp_ok" >&6; }
32717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
32718 $as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
32719 # Check whether --enable-ARBITER was given.
32720 if test "${enable_ARBITER+set}" = set; then :
32721 enableval=$enable_ARBITER; ntp_ok=$enableval
32731 $as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
32735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32736 $as_echo "$ntp_ok" >&6; }
32738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
32739 $as_echo_n "checking Arcron MSF receiver... " >&6; }
32740 # Check whether --enable-ARCRON_MSF was given.
32741 if test "${enable_ARCRON_MSF+set}" = set; then :
32742 enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
32752 $as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
32756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32757 $as_echo "$ntp_ok" >&6; }
32759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
32760 $as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
32761 # Check whether --enable-AS2201 was given.
32762 if test "${enable_AS2201+set}" = set; then :
32763 enableval=$enable_AS2201; ntp_ok=$enableval
32773 $as_echo "#define CLOCK_AS2201 1" >>confdefs.h
32777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32778 $as_echo "$ntp_ok" >&6; }
32780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
32781 $as_echo_n "checking ATOM PPS interface... " >&6; }
32782 # Check whether --enable-ATOM was given.
32783 if test "${enable_ATOM+set}" = set; then :
32784 enableval=$enable_ATOM; ntp_ok=$enableval
32790 case "$ntp_atom_ok" in
32797 $as_echo "#define CLOCK_ATOM 1" >>confdefs.h
32801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32802 $as_echo "$ntp_ok" >&6; }
32804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
32805 $as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
32806 # Check whether --enable-CHRONOLOG was given.
32807 if test "${enable_CHRONOLOG+set}" = set; then :
32808 enableval=$enable_CHRONOLOG; ntp_ok=$enableval
32818 $as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
32822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32823 $as_echo "$ntp_ok" >&6; }
32825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
32826 $as_echo_n "checking CHU modem/decoder... " >&6; }
32827 # Check whether --enable-CHU was given.
32828 if test "${enable_CHU+set}" = set; then :
32829 enableval=$enable_CHU; ntp_ok=$enableval
32839 $as_echo "#define CLOCK_CHU 1" >>confdefs.h
32843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32844 $as_echo "$ntp_ok" >&6; }
32845 ntp_refclock_chu=$ntp_ok
32847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
32848 $as_echo_n "checking CHU audio/decoder... " >&6; }
32849 # Check whether --enable-AUDIO-CHU was given.
32850 if test "${enable_AUDIO_CHU+set}" = set; then :
32851 enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
32854 case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
32862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32863 $as_echo "$ntp_ok" >&6; }
32864 # We used to check for sunos/solaris target...
32865 case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
32866 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
32867 $as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
32871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
32872 $as_echo_n "checking Datum Programmable Time System... " >&6; }
32873 # Check whether --enable-DATUM was given.
32874 if test "${enable_DATUM+set}" = set; then :
32875 enableval=$enable_DATUM; ntp_ok=$enableval
32878 case "$ac_cv_header_termios_h" in
32893 $as_echo "#define CLOCK_DATUM 1" >>confdefs.h
32897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32898 $as_echo "$ntp_ok" >&6; }
32900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
32901 $as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
32902 # Check whether --enable-DUMBCLOCK was given.
32903 if test "${enable_DUMBCLOCK+set}" = set; then :
32904 enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
32914 $as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
32918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32919 $as_echo "$ntp_ok" >&6; }
32921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
32922 $as_echo_n "checking Forum Graphic GPS... " >&6; }
32923 # Check whether --enable-FG was given.
32924 if test "${enable_FG+set}" = set; then :
32925 enableval=$enable_FG; ntp_ok=$enableval
32935 $as_echo "#define CLOCK_FG 1" >>confdefs.h
32939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32940 $as_echo "$ntp_ok" >&6; }
32942 # Requires modem control
32943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
32944 $as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
32945 # Check whether --enable-HEATH was given.
32946 if test "${enable_HEATH+set}" = set; then :
32947 enableval=$enable_HEATH; ntp_ok=$enableval
32949 ntp_ok=$ntp_enable_all_modem_control_clocks
32957 $as_echo "#define CLOCK_HEATH 1" >>confdefs.h
32961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32962 $as_echo "$ntp_ok" >&6; }
32964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
32965 $as_echo_n "checking for hopf serial clock device... " >&6; }
32966 # Check whether --enable-HOPFSERIAL was given.
32967 if test "${enable_HOPFSERIAL+set}" = set; then :
32968 enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
32978 $as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
32982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32983 $as_echo "$ntp_ok" >&6; }
32985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
32986 $as_echo_n "checking for hopf PCI clock 6039... " >&6; }
32987 # Check whether --enable-HOPFPCI was given.
32988 if test "${enable_HOPFPCI+set}" = set; then :
32989 enableval=$enable_HOPFPCI; ntp_ok=$enableval
32999 $as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
33003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33004 $as_echo "$ntp_ok" >&6; }
33006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
33007 $as_echo_n "checking HP 58503A GPS receiver... " >&6; }
33008 # Check whether --enable-HPGPS was given.
33009 if test "${enable_HPGPS+set}" = set; then :
33010 enableval=$enable_HPGPS; ntp_ok=$enableval
33020 $as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
33024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33025 $as_echo "$ntp_ok" >&6; }
33027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
33028 $as_echo_n "checking IRIG audio decoder... " >&6; }
33029 # Check whether --enable-IRIG was given.
33030 if test "${enable_IRIG+set}" = set; then :
33031 enableval=$enable_IRIG; ntp_ok=$enableval
33034 case "$ntp_eac$ntp_canaudio" in
33046 $as_echo "#define CLOCK_IRIG 1" >>confdefs.h
33050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33051 $as_echo "$ntp_ok" >&6; }
33052 case "$ntp_ok$ntp_canaudio" in
33053 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33054 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
33058 $as_echo_n "checking for JJY receiver... " >&6; }
33059 # Check whether --enable-JJY was given.
33060 if test "${enable_JJY+set}" = set; then :
33061 enableval=$enable_JJY; ntp_ok=$enableval
33071 $as_echo "#define CLOCK_JJY 1" >>confdefs.h
33075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33076 $as_echo "$ntp_ok" >&6; }
33078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
33079 $as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
33080 # Check whether --enable-JUPITER was given.
33081 if test "${enable_JUPITER+set}" = set; then :
33082 enableval=$enable_JUPITER; ntp_ok=$enableval
33087 case "$ntp_jupiter_ok" in
33094 $as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
33098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33099 $as_echo "$ntp_ok" >&6; }
33101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
33102 $as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
33103 # Check whether --enable-LEITCH was given.
33104 if test "${enable_LEITCH+set}" = set; then :
33105 enableval=$enable_LEITCH; ntp_ok=$enableval
33115 $as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
33119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33120 $as_echo "$ntp_ok" >&6; }
33122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
33123 $as_echo_n "checking local clock reference... " >&6; }
33124 # Check whether --enable-LOCAL-CLOCK was given.
33125 if test "${enable_LOCAL_CLOCK+set}" = set; then :
33126 enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
33136 $as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
33140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33141 $as_echo "$ntp_ok" >&6; }
33145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
33146 $as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
33147 # Check whether --enable-MX4200 was given.
33148 if test "${enable_MX4200+set}" = set; then :
33149 enableval=$enable_MX4200; ntp_ok=$enableval
33152 case "$ac_cv_var_ppsclock" in
33168 $as_echo "#define CLOCK_MX4200 1" >>confdefs.h
33172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33173 $as_echo "$ntp_ok" >&6; }
33174 case "$ntp_ok$host" in
33175 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33176 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
33180 $as_echo_n "checking for NeoClock4X receiver... " >&6; }
33181 # Check whether --enable-NEOCLOCK4X was given.
33182 if test "${enable_NEOCLOCK4X+set}" = set; then :
33183 enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
33193 $as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
33197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33198 $as_echo "$ntp_ok" >&6; }
33200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
33201 $as_echo_n "checking NMEA GPS receiver... " >&6; }
33202 # Check whether --enable-NMEA was given.
33203 if test "${enable_NMEA+set}" = set; then :
33204 enableval=$enable_NMEA; ntp_ok=$enableval
33214 $as_echo "#define CLOCK_NMEA 1" >>confdefs.h
33218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33219 $as_echo "$ntp_ok" >&6; }
33221 for ac_func in strtoll
33223 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
33224 if test "x$ac_cv_func_strtoll" = xyes; then :
33225 cat >>confdefs.h <<_ACEOF
33226 #define HAVE_STRTOLL 1
33232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
33233 $as_echo_n "checking for GPSD JSON receiver... " >&6; }
33234 # Check whether --enable-GPSD was given.
33235 if test "${enable_GPSD+set}" = set; then :
33236 enableval=$enable_GPSD; ntp_ok=$enableval
33238 case "$ac_cv_func_strtoll" in
33239 yes) ntp_ok=$ntp_eac ;;
33249 $as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h
33253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33254 $as_echo "$ntp_ok" >&6; }
33256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
33257 $as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
33258 # Check whether --enable-ONCORE was given.
33259 if test "${enable_ONCORE+set}" = set; then :
33260 enableval=$enable_ONCORE; ntp_ok=$enableval
33266 case "$ntp_oncore_ok" in
33273 $as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
33277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33278 $as_echo "$ntp_ok" >&6; }
33280 # Requires modem control
33281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
33282 $as_echo_n "checking for Palisade clock... " >&6; }
33283 # Check whether --enable-PALISADE was given.
33284 if test "${enable_PALISADE+set}" = set; then :
33285 enableval=$enable_PALISADE; ntp_ok=$enableval
33287 ntp_ok=$ntp_enable_all_modem_control_clocks
33295 $as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
33299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33300 $as_echo "$ntp_ok" >&6; }
33302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
33303 $as_echo_n "checking Conrad parallel port radio clock... " >&6; }
33304 # Check whether --enable-PCF was given.
33305 if test "${enable_PCF+set}" = set; then :
33306 enableval=$enable_PCF; ntp_ok=$enableval
33316 $as_echo "#define CLOCK_PCF 1" >>confdefs.h
33320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33321 $as_echo "$ntp_ok" >&6; }
33323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
33324 $as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
33325 # Check whether --enable-PST was given.
33326 if test "${enable_PST+set}" = set; then :
33327 enableval=$enable_PST; ntp_ok=$enableval
33337 $as_echo "#define CLOCK_PST 1" >>confdefs.h
33341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33342 $as_echo "$ntp_ok" >&6; }
33344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
33345 $as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
33346 # Check whether --enable-RIPENCC was given.
33347 if test "${enable_RIPENCC+set}" = set; then :
33348 enableval=$enable_RIPENCC; ntp_ok=$enableval
33354 # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
33355 case "$ntp_ripe_ncc_ok" in
33362 $as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
33366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33367 $as_echo "$ntp_ok" >&6; }
33369 # Danny Meyer says SHM compiles (with a few warnings) under Win32.
33370 # For *IX, we need sys/ipc.h and sys/shm.h.
33371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
33372 $as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
33373 # Check whether --enable-SHM was given.
33374 if test "${enable_SHM+set}" = set; then :
33375 enableval=$enable_SHM; ntp_ok=$enableval
33378 case "$ntp_eac$ntp_canshm" in
33390 $as_echo "#define CLOCK_SHM 1" >>confdefs.h
33394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33395 $as_echo "$ntp_ok" >&6; }
33397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
33398 $as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
33399 # Check whether --enable-SPECTRACOM was given.
33400 if test "${enable_SPECTRACOM+set}" = set; then :
33401 enableval=$enable_SPECTRACOM; ntp_ok=$enableval
33411 $as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
33415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33416 $as_echo "$ntp_ok" >&6; }
33418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
33419 $as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
33420 # Check whether --enable-TPRO was given.
33421 if test "${enable_TPRO+set}" = set; then :
33422 enableval=$enable_TPRO; ntp_ok=$enableval
33425 case "$ac_cv_header_sys_tpro_h" in
33441 $as_echo "#define CLOCK_TPRO 1" >>confdefs.h
33445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33446 $as_echo "$ntp_ok" >&6; }
33447 case "$ntp_ok$ac_cv_header_sys_tpro" in
33448 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33449 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33452 # Not on a vax-dec-bsd
33453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
33454 $as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
33455 # Check whether --enable-TRUETIME was given.
33456 if test "${enable_TRUETIME+set}" = set; then :
33457 enableval=$enable_TRUETIME; ntp_ok=$enableval
33476 $as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
33480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33481 $as_echo "$ntp_ok" >&6; }
33482 case "$ntp_ok$host" in
33483 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33484 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
33488 $as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
33489 # Check whether --enable-TT560 was given.
33490 if test "${enable_TT560+set}" = set; then :
33491 enableval=$enable_TT560; ntp_ok=$enableval
33501 $as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
33505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33506 $as_echo "$ntp_ok" >&6; }
33508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
33509 $as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
33510 # Check whether --enable-ULINK was given.
33511 if test "${enable_ULINK+set}" = set; then :
33512 enableval=$enable_ULINK; ntp_ok=$enableval
33522 $as_echo "#define CLOCK_ULINK 1" >>confdefs.h
33526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33527 $as_echo "$ntp_ok" >&6; }
33529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
33530 $as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
33531 # Check whether --enable-TSYNCPCI was given.
33532 if test "${enable_TSYNCPCI+set}" = set; then :
33533 enableval=$enable_TSYNCPCI; ntp_ok=$enableval
33551 $as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h
33555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33556 $as_echo "$ntp_ok" >&6; }
33558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
33559 $as_echo_n "checking WWV receiver... " >&6; }
33560 # Check whether --enable-WWV was given.
33561 if test "${enable_WWV+set}" = set; then :
33562 enableval=$enable_WWV; ntp_ok=$enableval
33565 case "$ntp_eac$ntp_canaudio" in
33577 $as_echo "#define CLOCK_WWV 1" >>confdefs.h
33581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33582 $as_echo "$ntp_ok" >&6; }
33583 case "$ntp_ok$ntp_canaudio" in
33584 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33585 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
33589 $as_echo_n "checking for Zyfer receiver... " >&6; }
33590 # Check whether --enable-ZYFER was given.
33591 if test "${enable_ZYFER+set}" = set; then :
33592 enableval=$enable_ZYFER; ntp_ok=$enableval
33602 $as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
33606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33607 $as_echo "$ntp_ok" >&6; }
33609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
33610 $as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
33611 # Check whether --enable-parse-clocks was given.
33612 if test "${enable_parse_clocks+set}" = set; then :
33613 enableval=$enable_parse_clocks; ntp_eapc=$enableval
33617 yes) ntp_eapc=$ntp_canparse ;;
33620 # Delete the next line one of these days
33626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
33627 $as_echo "$ntp_eapc" >&6; }
33629 case "$ntp_eac$ntp_eapc$ntp_canparse" in
33631 as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
33634 as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
33642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
33643 $as_echo_n "checking Diem Computime Radio Clock... " >&6; }
33644 # Check whether --enable-COMPUTIME was given.
33645 if test "${enable_COMPUTIME+set}" = set; then :
33646 enableval=$enable_COMPUTIME; ntp_ok=$enableval
33657 $as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
33661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33662 $as_echo "$ntp_ok" >&6; }
33663 case "$ntp_ok$ntp_canparse" in
33665 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
33669 $as_echo_n "checking ELV/DCF7000 clock... " >&6; }
33670 # Check whether --enable-DCF7000 was given.
33671 if test "${enable_DCF7000+set}" = set; then :
33672 enableval=$enable_DCF7000; ntp_ok=$enableval
33683 $as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
33687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33688 $as_echo "$ntp_ok" >&6; }
33689 case "$ntp_ok$ntp_canparse" in
33691 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
33695 $as_echo_n "checking HOPF 6021 clock... " >&6; }
33696 # Check whether --enable-HOPF6021 was given.
33697 if test "${enable_HOPF6021+set}" = set; then :
33698 enableval=$enable_HOPF6021; ntp_ok=$enableval
33709 $as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
33713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33714 $as_echo "$ntp_ok" >&6; }
33715 case "$ntp_ok$ntp_canparse" in
33717 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
33721 $as_echo_n "checking Meinberg clocks... " >&6; }
33722 # Check whether --enable-MEINBERG was given.
33723 if test "${enable_MEINBERG+set}" = set; then :
33724 enableval=$enable_MEINBERG; ntp_ok=$enableval
33735 $as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
33739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33740 $as_echo "$ntp_ok" >&6; }
33741 case "$ntp_ok$ntp_canparse" in
33743 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
33747 $as_echo_n "checking DCF77 raw time code... " >&6; }
33748 # Check whether --enable-RAWDCF was given.
33749 if test "${enable_RAWDCF+set}" = set; then :
33750 enableval=$enable_RAWDCF; ntp_ok=$enableval
33763 $as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
33767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33768 $as_echo "$ntp_ok" >&6; }
33769 case "$ntp_ok$ntp_canparse" in
33771 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33774 case "$ntp_rawdcf" in
33776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
33777 $as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
33778 if ${ntp_cv_rawdcf_parity+:} false; then :
33779 $as_echo_n "(cached) " >&6
33788 ntp_cv_rawdcf_parity=$ans
33792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
33793 $as_echo "$ntp_cv_rawdcf_parity" >&6; }
33794 case "$ntp_cv_rawdcf_parity" in
33797 $as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
33802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
33803 $as_echo_n "checking RCC 8000 clock... " >&6; }
33804 # Check whether --enable-RCC8000 was given.
33805 if test "${enable_RCC8000+set}" = set; then :
33806 enableval=$enable_RCC8000; ntp_ok=$enableval
33817 $as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
33821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33822 $as_echo "$ntp_ok" >&6; }
33823 case "$ntp_ok$ntp_canparse" in
33825 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
33829 $as_echo_n "checking Schmid DCF77 clock... " >&6; }
33830 # Check whether --enable-SCHMID was given.
33831 if test "${enable_SCHMID+set}" = set; then :
33832 enableval=$enable_SCHMID; ntp_ok=$enableval
33843 $as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
33847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33848 $as_echo "$ntp_ok" >&6; }
33849 case "$ntp_ok$ntp_canparse" in
33851 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
33855 $as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
33856 # Check whether --enable-TRIMTAIP was given.
33857 if test "${enable_TRIMTAIP+set}" = set; then :
33858 enableval=$enable_TRIMTAIP; ntp_ok=$enableval
33869 $as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
33873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33874 $as_echo "$ntp_ok" >&6; }
33875 case "$ntp_ok$ntp_canparse" in
33877 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
33881 $as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
33882 # Check whether --enable-TRIMTSIP was given.
33883 if test "${enable_TRIMTSIP+set}" = set; then :
33884 enableval=$enable_TRIMTSIP; ntp_ok=$enableval
33895 $as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
33899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33900 $as_echo "$ntp_ok" >&6; }
33901 case "$ntp_ok$ntp_canparse" in
33903 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
33907 $as_echo_n "checking WHARTON 400A Series clock... " >&6; }
33908 # Check whether --enable-WHARTON was given.
33909 if test "${enable_WHARTON+set}" = set; then :
33910 enableval=$enable_WHARTON; ntp_ok=$enableval
33921 $as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
33925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33926 $as_echo "$ntp_ok" >&6; }
33927 case "$ntp_ok$ntp_canparse" in
33929 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
33933 $as_echo_n "checking VARITEXT clock... " >&6; }
33934 # Check whether --enable-VARITEXT was given.
33935 if test "${enable_VARITEXT+set}" = set; then :
33936 enableval=$enable_VARITEXT; ntp_ok=$enableval
33947 $as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
33951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33952 $as_echo "$ntp_ok" >&6; }
33953 case "$ntp_ok$ntp_canparse" in
33955 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
33959 $as_echo_n "checking SEL240X clock... " >&6; }
33960 # Check whether --enable-SEL240X was given.
33961 if test "${enable_SEL240X+set}" = set; then :
33962 enableval=$enable_SEL240X; ntp_ok=$enableval
33967 if test "$ntp_ok" = "yes"; then
33971 $as_echo "#define CLOCK_SEL240X 1" >>confdefs.h
33974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33975 $as_echo "$ntp_ok" >&6; }
33976 case "$ntp_ok$ntp_canparse" in
33978 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
33988 $as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
33990 case "$ntp_libparse" in
33994 $as_echo "#define CLOCK_PARSE 1" >>confdefs.h
33996 LIBPARSE=../libparse/libparse.a
33997 MAKE_LIBPARSE=libparse.a
33998 # HMS: check_y2k trips the 34 year problem now...
33999 false && MAKE_CHECK_Y2K=check_y2k
34001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34002 $as_echo "$ans" >&6; }
34012 # Check whether --with-crypto was given.
34013 if test "${with_crypto+set}" = set; then :
34014 withval=$with_crypto;
34018 # Check whether --with-openssl-libdir was given.
34019 if test "${with_openssl_libdir+set}" = set; then :
34020 withval=$with_openssl_libdir;
34024 # Check whether --with-openssl-incdir was given.
34025 if test "${with_openssl_incdir+set}" = set; then :
34026 withval=$with_openssl_incdir;
34030 # Check whether --with-rpath was given.
34031 if test "${with_rpath+set}" = set; then :
34032 withval=$with_rpath;
34036 ntp_openssl_from_pkg_config=no
34037 with_crypto=${with_crypto:-openssl,libcrypto}
34038 case "$with_crypto" in
34040 with_crypto=openssl,libcrypto
34042 case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
34044 *:notempty:notgiven:notgiven)
34045 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
34046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
34047 $as_echo_n "checking pkg-config for $pkg... " >&6; }
34048 if $PKG_CONFIG --exists $pkg ; then
34049 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
34050 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
34051 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
34052 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
34053 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
34056 ntp_openssl_from_pkg_config=yes
34057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34058 $as_echo "yes" >&6; }
34062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34063 $as_echo "no" >&6; }
34066 case "$with_crypto:$ntp_openssl" in
34071 case "${with_rpath-notgiven}" in
34073 # Lame - what to do if we need -Wl... but not -R?
34079 # This may really only be true for gcc
34080 need_dash_Wlrpath=1
34092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
34093 $as_echo_n "checking for openssl library directory... " >&6; }
34094 with_openssl_libdir=${with_openssl_libdir-notgiven}
34095 case "$with_openssl_libdir" in
34099 with_openssl_libdir=default
34102 with_openssl_libdir=no
34106 case "$with_openssl_libdir" in
34109 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
34110 with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
34111 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
34113 case "$with_openssl_libdir" in
34116 *) # Look for libcrypto.a and libssl.a:
34117 for i in $with_openssl_libdir no
34121 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
34124 test -f $i/libcrypto.so -a -f $i/libssl.so && break
34125 test -f $i/libcrypto.a -a -f $i/libssl.a && break
34132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
34133 $as_echo "$openssl_libdir" >&6; }
34134 case "$openssl_libdir" in
34137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
34138 $as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
34141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
34142 $as_echo_n "checking for openssl include directory... " >&6; }
34143 with_openssl_incdir=${with_openssl_incdir-notgiven}
34144 case "$with_openssl_incdir" in
34147 with_openssl_incdir="/usr/include /usr/sfw/include"
34148 with_openssl_incdir="$with_openssl_incdir /usr/local/include"
34149 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
34151 case "$with_openssl_incdir" in
34154 *) # look for openssl/evp.h:
34155 for i in $with_openssl_incdir no
34157 test -f $i/openssl/evp.h && break
34163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
34164 $as_echo "$openssl_incdir" >&6; }
34165 case "$openssl_incdir" in
34168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
34169 $as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
34171 if test -z "$openssl_libdir" -o -z "$openssl_incdir"
34178 case "$ntp_openssl" in
34180 # We have OpenSSL inc/lib dirs - use them.
34181 case "$openssl_incdir" in
34185 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
34188 case "$openssl_libdir" in
34192 LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
34193 case "$need_dash_r" in
34195 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
34197 case "$need_dash_Wlrpath" in
34199 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
34203 LDADD_NTP="$LDADD_NTP -lcrypto"
34207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
34208 $as_echo_n "checking if we will use crypto... " >&6; }
34209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
34210 $as_echo "$ntp_openssl" >&6; }
34212 case "$ntp_openssl" in
34215 $as_echo "#define OPENSSL /**/" >>confdefs.h
34217 case "$VER_SUFFIX" in
34219 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
34224 NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
34225 CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
34226 NTPO_SAVED_LIBS="$LIBS"
34229 # check for linking with -lcrypto failure, and try -lcrypto -lz.
34230 # Helps m68k-atari-mint
34232 case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
34234 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
34236 $as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
34237 if ${ntp_cv_bare_lcrypto+:} false; then :
34238 $as_echo_n "(cached) " >&6
34240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34241 /* end confdefs.h. */
34243 #include "openssl/err.h"
34244 #include "openssl/evp.h"
34250 ERR_load_crypto_strings();
34251 OpenSSL_add_all_algorithms();
34258 if ac_fn_c_try_link "$LINENO"; then :
34259 ntp_cv_bare_lcrypto=yes
34261 ntp_cv_bare_lcrypto=no
34264 rm -f core conftest.err conftest.$ac_objext \
34265 conftest$ac_exeext conftest.$ac_ext
34268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
34269 $as_echo "$ntp_cv_bare_lcrypto" >&6; }
34270 case "$ntp_cv_bare_lcrypto" in
34272 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
34273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
34274 $as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
34275 if ${ntp_cv_lcrypto_lz+:} false; then :
34276 $as_echo_n "(cached) " >&6
34278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34279 /* end confdefs.h. */
34281 #include "openssl/err.h"
34282 #include "openssl/evp.h"
34288 ERR_load_crypto_strings();
34289 OpenSSL_add_all_algorithms();
34296 if ac_fn_c_try_link "$LINENO"; then :
34297 ntp_cv_lcrypto_lz=yes
34299 ntp_cv_lcrypto_lz=no
34302 rm -f core conftest.err conftest.$ac_objext \
34303 conftest$ac_exeext conftest.$ac_ext
34306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
34307 $as_echo "$ntp_cv_lcrypto_lz" >&6; }
34308 case "$ntp_cv_lcrypto_lz" in
34310 LDADD_NTP="$LDADD_NTP -lz"
34316 # Older OpenSSL headers have a number of callback prototypes inside
34317 # other function prototypes which trigger copious warnings with gcc's
34318 # -Wstrict-prototypes, which is included in -Wall.
34322 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
34323 # int (*cb)(), int sgckey);
34328 openssl_triggers_warnings=unknown
34329 NTPO_SAVED_CFLAGS="$CFLAGS"
34331 case "$ntp_openssl:$GCC" in
34333 CFLAGS="$CFLAGS -Werror"
34334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34335 /* end confdefs.h. */
34342 /* see if -Werror breaks gcc */
34349 if ac_fn_c_try_compile "$LINENO"; then :
34350 gcc_handles_Werror=yes
34352 gcc_handles_Werror=no
34355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34356 case "$gcc_handles_Werror" in
34358 # if this gcc doesn't do -Werror go ahead and use
34359 # -Wstrict-prototypes.
34360 openssl_triggers_warnings=yes
34363 CFLAGS="$CFLAGS -Wstrict-prototypes"
34364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34365 /* end confdefs.h. */
34367 #include "openssl/asn1_mac.h"
34368 #include "openssl/bn.h"
34369 #include "openssl/err.h"
34370 #include "openssl/evp.h"
34371 #include "openssl/pem.h"
34372 #include "openssl/rand.h"
34373 #include "openssl/x509v3.h"
34386 if ac_fn_c_try_compile "$LINENO"; then :
34387 openssl_triggers_warnings=no
34389 openssl_triggers_warnings=yes
34392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34394 case "$openssl_triggers_warnings" in
34396 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
34399 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
34403 # gcc without OpenSSL
34404 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
34407 # Because we don't want -Werror for the EVP_MD_do_all_sorted check
34408 CFLAGS="$NTPO_SAVED_CFLAGS"
34410 case "$ntp_openssl" in
34412 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34413 for ac_func in EVP_MD_do_all_sorted
34415 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
34416 if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
34417 cat >>confdefs.h <<_ACEOF
34418 #define HAVE_EVP_MD_DO_ALL_SORTED 1
34427 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
34428 LIBS="$NTPO_SAVED_LIBS"
34429 { NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
34430 { NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
34431 { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
34432 { openssl_triggers_warnings=; unset openssl_triggers_warnings;}
34433 { ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
34439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
34440 $as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
34441 # Check whether --enable-openssl-random was given.
34442 if test "${enable_openssl_random+set}" = set; then :
34443 enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
34445 ntp_use_openssl_random=yes
34449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
34450 $as_echo "$ntp_use_openssl_random" >&6; }
34452 # The following might need extra libraries
34453 NTPO_SAVED_LIBS="$LIBS"
34454 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34455 for ac_func in RAND_bytes RAND_poll
34457 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34458 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
34459 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
34460 cat >>confdefs.h <<_ACEOF
34461 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34467 LIBS="$NTPO_SAVED_LIBS"
34468 case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
34471 $as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
34474 *) ntp_use_openssl_random=no ;;
34479 # if we are using OpenSSL (--with-crypto), by default Autokey is enabled
34480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
34481 $as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
34482 # Check whether --enable-autokey was given.
34483 if test "${enable_autokey+set}" = set; then :
34484 enableval=$enable_autokey; ntp_autokey=$enableval
34486 ntp_autokey=$ntp_openssl
34490 case "$ntp_autokey" in
34494 case "$ntp_openssl" in
34496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
34497 $as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
34502 $as_echo "#define AUTOKEY 1" >>confdefs.h
34509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
34510 $as_echo "$ntp_autokey" >&6; }
34513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
34514 $as_echo_n "checking if we want to run check-layout... " >&6; }
34515 case "$cross_compiling$PATH_PERL" in
34517 MAKE_CHECK_LAYOUT=check-layout
34524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34525 $as_echo "$ans" >&6; }
34529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
34530 $as_echo_n "checking if we can make dcf parse utilities... " >&6; }
34532 case "$ntp_parseutil" in
34535 *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
34542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34543 $as_echo "$ans" >&6; }
34546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
34547 $as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
34549 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
34553 case "$ntp_cv_var_kernel_pll" in
34556 $as_echo "#define PPS_SYNC 1" >>confdefs.h
34561 MAKE_PARSEKMODULE=parsestreams.loadable_module.o
34565 MAKE_PARSEKMODULE=parse
34566 for ac_header in strings.h
34568 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
34569 if test "x$ac_cv_header_strings_h" = xyes; then :
34570 cat >>confdefs.h <<_ACEOF
34571 #define HAVE_STRINGS_H 1
34582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34583 $as_echo "$ans" >&6; }
34585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
34586 $as_echo_n "checking if we need basic refclock support... " >&6; }
34587 case "$ntp_refclock" in
34590 $as_echo "#define REFCLOCK 1" >>confdefs.h
34594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
34595 $as_echo "$ntp_refclock" >&6; }
34597 PROPDELAY=propdelay
34601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
34602 $as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
34612 MAKE_ADJTIMED=adjtimed
34614 $as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
34623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34624 $as_echo "$ans" >&6; }
34626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
34627 $as_echo_n "checking if we want QNX adjtime support... " >&6; }
34638 $as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
34642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34643 $as_echo "$ans" >&6; }
34645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
34646 $as_echo_n "checking if we can read kmem... " >&6; }
34648 # the default is to enable it if the system has the capability
34650 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
34659 *-*-domainos) # Won't be found...
34679 # --enable-kmem / --disable-kmem controls if present
34680 # Check whether --enable-kmem was given.
34681 if test "${enable_kmem+set}" = set; then :
34682 enableval=$enable_kmem; ans=$enableval
34687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34688 $as_echo "$ans" >&6; }
34697 $as_echo "#define NOKMEM 1" >>confdefs.h
34702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
34703 $as_echo_n "checking if adjtime is accurate... " >&6; }
34705 # target-dependent defaults
34711 i386-unknown-osf1*)
34714 mips-sgi-irix[456]*)
34721 # XXX only verified thru AIX6.
34740 # --enable-accurate-adjtime / --disable-accurate-adjtime
34741 # override the default
34742 # Check whether --enable-accurate-adjtime was given.
34743 if test "${enable_accurate_adjtime+set}" = set; then :
34744 enableval=$enable_accurate_adjtime; ans=$enableval
34749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34750 $as_echo "$ans" >&6; }
34755 $as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
34757 adjtime_is_accurate=yes
34760 adjtime_is_accurate=no
34764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
34765 $as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
34766 if ${ntp_cv_nlist_tick+:} false; then :
34767 $as_echo_n "(cached) " >&6
34772 m68*-hp-hpux*) # HP9000/300?
34782 # XXX only verified thru AIX6.
34801 ntp_cv_nlist_tick=$ans
34805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
34806 $as_echo "$ntp_cv_nlist_tick" >&6; }
34807 case "$ntp_cv_nlist_tick" in
34809 ;; # HMS: I think we can only get 'no' here...
34812 cat >>confdefs.h <<_ACEOF
34813 #define K_TICK_NAME "$ntp_cv_nlist_tick"
34818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
34819 $as_echo_n "checking for the units of 'tick'... " >&6; }
34820 if ${ntp_cv_tick_nano+:} false; then :
34821 $as_echo_n "(cached) " >&6
34830 ntp_cv_tick_nano=$ans
34834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
34835 $as_echo "$ntp_cv_tick_nano" >&6; }
34836 case "$ntp_cv_tick_nano" in
34839 $as_echo "#define TICK_NANO 1" >>confdefs.h
34843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
34844 $as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
34845 if ${ntp_cv_nlist_tickadj+:} false; then :
34846 $as_echo_n "(cached) " >&6
34851 m68*-hp-hpux*) # HP9000/300?
34882 ans=no # hrestime_adj
34888 ntp_cv_nlist_tickadj=$ans
34892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
34893 $as_echo "$ntp_cv_nlist_tickadj" >&6; }
34894 case "$ntp_cv_nlist_tickadj" in
34896 ;; # HMS: I think we can only get 'no' here...
34899 cat >>confdefs.h <<_ACEOF
34900 #define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
34905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
34906 $as_echo_n "checking for the units of 'tickadj'... " >&6; }
34907 if ${ntp_cv_tickadj_nano+:} false; then :
34908 $as_echo_n "(cached) " >&6
34917 ntp_cv_tickadj_nano=$ans
34921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
34922 $as_echo "$ntp_cv_tickadj_nano" >&6; }
34923 case "$ntp_cv_tickadj_nano" in
34926 $as_echo "#define TICKADJ_NANO 1" >>confdefs.h
34930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
34931 $as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
34932 if ${ntp_cv_nlist_dosynctodr+:} false; then :
34933 $as_echo_n "(cached) " >&6
34977 ntp_cv_nlist_dosynctodr=$ans
34981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
34982 $as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
34983 case "$ntp_cv_nlist_dosynctodr" in
34988 cat >>confdefs.h <<_ACEOF
34989 #define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
34995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
34996 $as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
34997 if ${ntp_cv_nlist_noprintf+:} false; then :
34998 $as_echo_n "(cached) " >&6
35036 ntp_cv_nlist_noprintf=$ans
35040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
35041 $as_echo "$ntp_cv_nlist_noprintf" >&6; }
35042 case "$ntp_cv_nlist_noprintf" in
35047 cat >>confdefs.h <<_ACEOF
35048 #define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
35057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
35058 $as_echo_n "checking for a default value for 'tick'... " >&6; }
35060 # target-dependent default for tick
35064 as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
35089 # Check whether --enable-tick was given.
35090 if test "${enable_tick+set}" = set; then :
35091 enableval=$enable_tick; ans=$enableval
35096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35097 $as_echo "$ans" >&6; }
35101 ;; # HMS: I think we can only get 'no' here...
35104 cat >>confdefs.h <<_ACEOF
35105 #define PRESET_TICK $ans
35110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
35111 $as_echo_n "checking for a default value for 'tickadj'... " >&6; }
35113 # target-specific default
35117 case "$adjtime_is_accurate" in
35126 case "$can_kmem" in
35132 *-*-domainos) # Skippy: won't be found...
35133 case "$can_kmem" in
35140 case "$adjtime_is_accurate" in
35163 # Check whether --enable-tickadj was given.
35164 if test "${enable_tickadj+set}" = set; then :
35165 enableval=$enable_tickadj; ans=$enableval
35170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35171 $as_echo "$ans" >&6; }
35173 default_tickadj=$ans
35175 case "$default_tickadj" in
35177 ;; # HMS: I think we can only get 'no' here...
35180 cat >>confdefs.h <<_ACEOF
35181 #define PRESET_TICKADJ $default_tickadj
35186 # Newer versions of ReliantUNIX round adjtime() values down to
35187 # 1/100s (system tick). Sigh ...
35188 # Unfortunately, there is no easy way to know if particular release
35189 # has this "feature" or any obvious way to test for it.
35193 $as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
35200 $as_echo "#define SCO5_CLOCK 1" >>confdefs.h
35204 ntp_cv_make_tickadj=yes
35205 case "$can_kmem$ac_cv_var_tick$default_tickadj" in
35206 nonono) # Don't read KMEM, no presets. Bogus.
35207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5
35208 $as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;}
35209 ntp_cv_make_tickadj=no
35211 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
35212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5
35213 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;}
35214 ntp_cv_make_tickadj=no
35216 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus.
35217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5
35218 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;}
35219 ntp_cv_make_tickadj=no
35221 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool.
35223 yesnono) # Read KMEM, no presets. Cool.
35225 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
35226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5
35227 $as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;}
35229 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool.
35231 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
35233 *) # Generally bogus.
35234 as_fn_error $? "This shouldn't happen." "$LINENO" 5
35239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
35240 $as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
35241 if ${ac_cv_make_ntptime+:} false; then :
35242 $as_echo_n "(cached) " >&6
35245 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
35255 ac_cv_make_ntptime=$ans
35257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
35258 $as_echo "$ac_cv_make_ntptime" >&6; }
35259 case "$ac_cv_make_ntptime" in
35261 MAKE_NTPTIME=ntptime
35274 # tickadj is pretty useless on newer versions of ReliantUNIX
35276 ntp_cv_make_tickadj=no
35279 ntp_cv_make_tickadj=no
35282 # DLM says tickadj is a no-no starting with solaris2.5
35284 *-*-solaris2.1[0-9]*)
35285 ntp_cv_make_tickadj=no
35287 *-*-solaris2.[0-4]*) ;;
35288 *) ntp_cv_make_tickadj=no ;;
35292 ntp_cv_make_tickadj=no
35297 # Despite all the above, we always make tickadj. Setting
35298 # ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
35299 # report that the configuration variable was cached. It may
35300 # be better to simply remove the hunk above, I did not want
35301 # to remove it if there is hope it will be used again.
35303 { ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}
35305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
35306 $as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
35307 if ${ntp_cv_make_tickadj+:} false; then :
35308 $as_echo_n "(cached) " >&6
35310 ntp_cv_make_tickadj=yes
35313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
35314 $as_echo "$ntp_cv_make_tickadj" >&6; }
35315 case "$ntp_cv_make_tickadj" in
35317 MAKE_TICKADJ=tickadj
35332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
35333 $as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
35334 if ${ntp_cv_make_timetrim+:} false; then :
35335 $as_echo_n "(cached) " >&6
35340 ntp_cv_make_timetrim=yes
35343 ntp_cv_make_timetrim=yes
35346 ntp_cv_make_timetrim=no
35352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
35353 $as_echo "$ntp_cv_make_timetrim" >&6; }
35354 case "$ntp_cv_make_timetrim" in
35356 MAKE_TIMETRIM=timetrim
35368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
35369 $as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
35370 # Check whether --enable-simulator was given.
35371 if test "${enable_simulator+set}" = set; then :
35372 enableval=$enable_simulator; ans=$enableval
35378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35379 $as_echo "$ans" >&6; }
35382 MAKE_NTPDSIM=ntpdsim
35383 MAKE_LIBNTPSIM=libntpsim.a
35398 LDFLAGS="$LDFLAGS -r"
35406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
35407 $as_echo_n "checking if sntp will be built... " >&6; }
35409 # Check whether --with-sntp was given.
35410 if test "${with_sntp+set}" = set; then :
35411 withval=$with_sntp;
35413 with_sntp="${withsntp=yes}"
35417 case "$with_sntp" in
35426 if test -n "$SNTP"; then
35428 BUILD_SNTP_FALSE='#'
35430 BUILD_SNTP_TRUE='#'
35434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
35435 $as_echo "$with_sntp" >&6; }
35439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
35440 $as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
35442 # Check whether --with-ntpsnmpd was given.
35443 if test "${with_ntpsnmpd+set}" = set; then :
35444 withval=$with_ntpsnmpd; ans=$withval
35447 case "$PATH_NET_SNMP_CONFIG" in
35455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35456 $as_echo "$ans" >&6; }
35459 case "$PATH_NET_SNMP_CONFIG" in
35461 SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
35462 # Bug 2815. This is a bit of a hack, but it works...
35463 case "$ntp_cv_net_snmp_version" in
35464 5.3*) SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'`
35468 # HMS: we really want to separate CPPFLAGS and CFLAGS
35469 foo=`$PATH_NET_SNMP_CONFIG --cflags`
35475 SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
35477 *) SNMP_CFLAGS="$SNMP_CFLAGS $i"
35484 save_CFLAGS=$CFLAGS
35485 save_CPPFLAGS=$CPPFLAGS
35487 CFLAGS=$SNMP_CFLAGS
35488 CPPFLAGS=$SNMP_CPPFLAGS
35490 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"
35491 if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
35492 MAKE_NTPSNMPD=ntpsnmpd
35494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
35495 $as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
35501 # Do this last, as we're messing up LIBS.
35502 # check -lnetsnmp for netsnmp_daemonize
35503 LIBS=`$PATH_NET_SNMP_CONFIG --libs`
35504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
35505 $as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
35506 if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
35507 $as_echo_n "(cached) " >&6
35509 ac_check_lib_save_LIBS=$LIBS
35510 LIBS="-lnetsnmp $LIBS"
35511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35512 /* end confdefs.h. */
35514 /* Override any GCC internal prototype to avoid an error.
35515 Use char because int might match the return type of a GCC
35516 builtin and then its argument prototype would still apply. */
35520 char netsnmp_daemonize ();
35524 return netsnmp_daemonize ();
35529 if ac_fn_c_try_link "$LINENO"; then :
35530 ac_cv_lib_netsnmp_netsnmp_daemonize=yes
35532 ac_cv_lib_netsnmp_netsnmp_daemonize=no
35534 rm -f core conftest.err conftest.$ac_objext \
35535 conftest$ac_exeext conftest.$ac_ext
35536 LIBS=$ac_check_lib_save_LIBS
35538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
35539 $as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
35540 if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
35550 $as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
35554 CFLAGS=$save_CFLAGS
35555 { save_CFLAGS=; unset save_CFLAGS;}
35556 CPPFLAGS=$save_CPPFLAGS
35557 { save_CPPFLAGS=; unset save_CPPFLAGS;}
35559 { save_LIBS=; unset save_LIBS;}
35562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
35563 $as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
35570 case "$MAKE_NTPSNMPD" in
35579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
35580 $as_echo_n "checking if we should always slew the time... " >&6; }
35582 # target-specific defaults
35594 *-*-openvms*) # HMS: won't be found
35601 # --enable-slew-always / --disable-slew-always overrides default
35603 # Check whether --enable-slew-always was given.
35604 if test "${enable_slew_always+set}" = set; then :
35605 enableval=$enable_slew_always; ans=$enableval
35610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35611 $as_echo "$ans" >&6; }
35616 $as_echo "#define SLEWALWAYS 1" >>confdefs.h
35620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
35621 $as_echo_n "checking if we should step and slew the time... " >&6; }
35636 *-*-solaris2.1[0-9]*)
35639 *-*-solaris2.[012]*)
35642 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP?
35649 # Check whether --enable-step-slew was given.
35650 if test "${enable_step_slew+set}" = set; then :
35651 enableval=$enable_step_slew; ans=$enableval
35656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35657 $as_echo "$ans" >&6; }
35662 $as_echo "#define STEP_SLEW 1" >>confdefs.h
35666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
35667 $as_echo_n "checking if ntpdate should step the time... " >&6; }
35677 # Check whether --enable-ntpdate-step was given.
35678 if test "${enable_ntpdate_step+set}" = set; then :
35679 enableval=$enable_ntpdate_step; ans=$enableval
35684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35685 $as_echo "$ans" >&6; }
35690 $as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
35695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
35696 $as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
35702 *-*-openvms*) # HMS: won't be found
35710 # Check whether --enable-hourly-todr-sync was given.
35711 if test "${enable_hourly_todr_sync+set}" = set; then :
35712 enableval=$enable_hourly_todr_sync; ans=$enableval
35717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35718 $as_echo "$ans" >&6; }
35720 case "$ac_cv_var_sync_todr" in
35723 $as_echo "#define DOSYNCTODR 1" >>confdefs.h
35728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
35729 $as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
35740 if test "$2" -ge 17
35742 # Generic_105181-17 and higher
35761 if test "$2" -ge 07
35763 # Generic_106541-07 and higher
35779 # Check whether --enable-kernel-fll-bug was given.
35780 if test "${enable_kernel_fll_bug+set}" = set; then :
35781 enableval=$enable_kernel_fll_bug; ans=$enableval
35786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35787 $as_echo "$ans" >&6; }
35792 $as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
35797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
35798 $as_echo_n "checking if we want new session key behavior... " >&6; }
35799 # Check whether --enable-bug1243-fix was given.
35800 if test "${enable_bug1243_fix+set}" = set; then :
35801 enableval=$enable_bug1243_fix; ans=$enableval
35807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35808 $as_echo "$ans" >&6; }
35812 $as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
35817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
35818 $as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
35824 *-*-solaris2.1[0-9]*)
35831 # Check whether --enable-irig-sawtooth was given.
35832 if test "${enable_irig_sawtooth+set}" = set; then :
35833 enableval=$enable_irig_sawtooth; ans=$enableval
35838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35839 $as_echo "$ans" >&6; }
35844 $as_echo "#define IRIG_SUCKS 1" >>confdefs.h
35848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
35849 $as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
35850 # Check whether --enable-nist was given.
35851 if test "${enable_nist+set}" = set; then :
35852 enableval=$enable_nist; ans=$enableval
35859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35860 $as_echo "$ans" >&6; }
35865 $as_echo "#define LOCKCLOCK 1" >>confdefs.h
35869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
35870 $as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
35871 # Check whether --enable-ntp-signd was given.
35872 if test "${enable_ntp_signd+set}" = set; then :
35873 enableval=$enable_ntp_signd; ans=$enableval
35880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35881 $as_echo "$ans" >&6; }
35888 ntp_signd_path=/var/run/ntp_signd
35891 ntp_signd_path="$ans"
35894 case "$ntp_signd_path" in
35899 $as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h
35902 cat >>confdefs.h <<_ACEOF
35903 #define NTP_SIGND_PATH "$ntp_signd_path"
35909 for ac_header in libscf.h
35911 ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
35912 if test "x$ac_cv_header_libscf_h" = xyes; then :
35913 cat >>confdefs.h <<_ACEOF
35914 #define HAVE_LIBSCF_H 1
35922 case "$ac_cv_header_libscf_h" in
35930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
35931 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
35932 if ${ntp_cv_sockaddr_storage+:} false; then :
35933 $as_echo_n "(cached) " >&6
35935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35936 /* end confdefs.h. */
35938 #ifdef HAVE_SYS_TYPES_H
35939 # include <sys/types.h>
35941 #ifdef HAVE_SYS_SOCKET_H
35942 # include <sys/socket.h>
35944 #ifdef HAVE_NETINET_IN_H
35945 # include <netinet/in.h>
35952 struct sockaddr_storage n;
35959 if ac_fn_c_try_compile "$LINENO"; then :
35960 ntp_cv_sockaddr_storage=yes
35962 ntp_cv_sockaddr_storage=no
35965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
35969 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
35970 case "$ntp_cv_sockaddr_storage" in
35973 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
35975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
35976 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
35977 if ${ntp_cv_have___ss_family+:} false; then :
35978 $as_echo_n "(cached) " >&6
35980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35981 /* end confdefs.h. */
35983 #ifdef HAVE_SYS_TYPES_H
35984 # include <sys/types.h>
35986 #ifdef HAVE_SYS_SOCKET_H
35987 # include <sys/socket.h>
35989 #ifdef HAVE_NETINET_IN_H
35990 # include <netinet/in.h>
35997 struct sockaddr_storage s;
36005 if ac_fn_c_try_compile "$LINENO"; then :
36006 ntp_cv_have___ss_family=yes
36008 ntp_cv_have___ss_family=no
36011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
36015 $as_echo "$ntp_cv_have___ss_family" >&6; }
36016 case "$ntp_cv_have___ss_family" in
36019 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
36027 # Look for in_port_t.
36029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
36030 $as_echo_n "checking for in_port_t... " >&6; }
36031 if ${isc_cv_have_in_port_t+:} false; then :
36032 $as_echo_n "(cached) " >&6
36034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36035 /* end confdefs.h. */
36037 #include <sys/types.h>
36038 #include <netinet/in.h>
36044 in_port_t port = 25;
36052 if ac_fn_c_try_compile "$LINENO"; then :
36053 isc_cv_have_in_port_t=yes
36055 isc_cv_have_in_port_t=no
36058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
36062 $as_echo "$isc_cv_have_in_port_t" >&6; }
36063 case "$isc_cv_have_in_port_t" in
36066 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
36070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
36071 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
36072 if ${ntp_cv_getsockname_socklen_type+:} false; then :
36073 $as_echo_n "(cached) " >&6
36076 getsockname_socklen_type_found=no
36077 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
36078 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
36079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36080 /* end confdefs.h. */
36082 #ifdef HAVE_SYS_TYPES_H
36083 # include <sys/types.h>
36085 #ifdef HAVE_SYS_SOCKET_H
36086 # include <sys/socket.h>
36094 getsockname(int, $getsockname_arg2,
36095 $ntp_cv_getsockname_socklen_type *);
36102 if ac_fn_c_try_compile "$LINENO"; then :
36103 getsockname_socklen_type_found=yes ; break 2
36105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36108 case "$getsockname_socklen_type_found" in
36110 ntp_cv_getsockname_socklen_type='socklen_t'
36112 { getsockname_arg2=; unset getsockname_arg2;}
36113 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
36117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
36118 $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
36120 cat >>confdefs.h <<_ACEOF
36121 #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
36125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
36126 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
36127 if ${isc_cv_platform_havesalen+:} false; then :
36128 $as_echo_n "(cached) " >&6
36130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36131 /* end confdefs.h. */
36133 #include <sys/types.h>
36134 #include <sys/socket.h>
36140 extern struct sockaddr *ps;
36148 if ac_fn_c_try_compile "$LINENO"; then :
36149 isc_cv_platform_havesalen=yes
36151 isc_cv_platform_havesalen=no
36154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
36158 $as_echo "$isc_cv_platform_havesalen" >&6; }
36159 case "$isc_cv_platform_havesalen" in
36162 $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
36166 # Check whether --enable-ipv6 was given.
36167 if test "${enable_ipv6+set}" = set; then :
36168 enableval=$enable_ipv6;
36172 case "$enable_ipv6" in
36179 $as_echo "#define WANT_IPV6 1" >>confdefs.h
36192 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
36197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
36198 $as_echo_n "checking for IPv6 structures... " >&6; }
36199 if ${isc_cv_found_ipv6+:} false; then :
36200 $as_echo_n "(cached) " >&6
36202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36203 /* end confdefs.h. */
36205 #include <sys/types.h>
36206 #include <sys/socket.h>
36207 #include <netinet/in.h>
36213 struct sockaddr_in6 sin6;
36220 if ac_fn_c_try_compile "$LINENO"; then :
36221 isc_cv_found_ipv6=yes
36223 isc_cv_found_ipv6=no
36226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
36230 $as_echo "$isc_cv_found_ipv6" >&6; }
36233 # See whether IPv6 support is provided via a Kame add-on.
36234 # This is done before other IPv6 linking tests so LIBS is properly set.
36236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
36237 $as_echo_n "checking for Kame IPv6 support... " >&6; }
36239 # Check whether --with-kame was given.
36240 if test "${with_kame+set}" = set; then :
36241 withval=$with_kame; use_kame="$withval"
36247 case "$use_kame" in
36251 kame_path=/usr/local/v6
36254 kame_path="$use_kame"
36257 case "$use_kame" in
36259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36260 $as_echo "no" >&6; }
36263 if test -f $kame_path/lib/libinet6.a; then
36264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
36265 $as_echo "$kame_path/lib/libinet6.a" >&6; }
36266 LIBS="-L$kame_path/lib -linet6 $LIBS"
36268 as_fn_error $? "$kame_path/lib/libinet6.a not found.
36270 Please choose the proper path with the following command:
36272 configure --with-kame=PATH
36279 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
36280 # Including it on Kame-using platforms is very bad, though, because
36281 # Kame uses #error against direct inclusion. So include it on only
36282 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
36283 # This is done before the in6_pktinfo check because that's what
36284 # netinet6/in6.h is needed for.
36289 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
36291 isc_netinet6in6_hack="#include <netinet6/in6.h>"
36294 isc_netinet6in6_hack=""
36299 # This is similar to the netinet6/in6.h issue.
36302 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
36304 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
36306 isc_netinetin6_hack="#include <netinet/in6.h>"
36309 isc_netinetin6_hack=""
36314 case "$isc_cv_found_ipv6" in
36317 $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
36319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
36320 $as_echo_n "checking for in6_pktinfo... " >&6; }
36321 if ${isc_cv_have_in6_pktinfo+:} false; then :
36322 $as_echo_n "(cached) " >&6
36324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36325 /* end confdefs.h. */
36327 #include <sys/types.h>
36328 #include <sys/socket.h>
36329 #include <netinet/in.h>
36330 $isc_netinetin6_hack
36331 $isc_netinet6in6_hack
36337 struct in6_pktinfo xyzzy;
36344 if ac_fn_c_try_compile "$LINENO"; then :
36345 isc_cv_have_in6_pktinfo=yes
36347 isc_cv_have_in6_pktinfo=no
36350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
36354 $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
36355 case "$isc_cv_have_in6_pktinfo" in
36358 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
36363 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
36364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
36365 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
36366 if ${isc_cv_have_sin6_scope_id+:} false; then :
36367 $as_echo_n "(cached) " >&6
36369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36370 /* end confdefs.h. */
36372 #include <sys/types.h>
36373 #include <sys/socket.h>
36374 #include <netinet/in.h>
36375 $isc_netinetin6_hack
36376 $isc_netinet6in6_hack
36382 struct sockaddr_in6 xyzzy;
36383 xyzzy.sin6_scope_id = 0;
36390 if ac_fn_c_try_compile "$LINENO"; then :
36391 isc_cv_have_sin6_scope_id=yes
36393 isc_cv_have_sin6_scope_id=no
36396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
36400 $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
36402 case "$isc_cv_have_sin6_scope_id" in
36405 $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
36411 # We need this check run even without isc_cv_found_ipv6=yes
36413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
36414 $as_echo_n "checking for in6addr_any... " >&6; }
36415 if ${isc_cv_in6addr_any_links+:} false; then :
36416 $as_echo_n "(cached) " >&6
36420 LIBS="$LDADD_LIBNTP $LIBS"
36421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36422 /* end confdefs.h. */
36423 $ac_includes_default
36424 #include <sys/socket.h>
36425 #include <netinet/in.h>
36426 $isc_netinetin6_hack
36427 $isc_netinet6in6_hack
36433 printf("%x", in6addr_any.s6_addr[15]);
36440 if ac_fn_c_try_link "$LINENO"; then :
36441 isc_cv_in6addr_any_links=yes
36443 isc_cv_in6addr_any_links=no
36446 rm -f core conftest.err conftest.$ac_objext \
36447 conftest$ac_exeext conftest.$ac_ext
36449 { SAVED_LIBS=; unset SAVED_LIBS;}
36453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
36454 $as_echo "$isc_cv_in6addr_any_links" >&6; }
36456 case "$isc_cv_in6addr_any_links" in
36459 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
36464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
36465 $as_echo_n "checking for struct if_laddrconf... " >&6; }
36466 if ${isc_cv_struct_if_laddrconf+:} false; then :
36467 $as_echo_n "(cached) " >&6
36469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36470 /* end confdefs.h. */
36472 #include <sys/types.h>
36473 #include <net/if6.h>
36479 struct if_laddrconf a;
36486 if ac_fn_c_try_compile "$LINENO"; then :
36487 isc_cv_struct_if_laddrconf=yes
36489 isc_cv_struct_if_laddrconf=no
36492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
36496 $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
36498 case "$isc_cv_struct_if_laddrconf" in
36501 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
36505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
36506 $as_echo_n "checking for struct if_laddrreq... " >&6; }
36507 if ${isc_cv_struct_if_laddrreq+:} false; then :
36508 $as_echo_n "(cached) " >&6
36510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36511 /* end confdefs.h. */
36513 #include <sys/types.h>
36514 #include <net/if6.h>
36520 struct if_laddrreq a;
36527 if ac_fn_c_try_compile "$LINENO"; then :
36528 isc_cv_struct_if_laddrreq=yes
36530 isc_cv_struct_if_laddrreq=no
36533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
36537 $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
36539 case "$isc_cv_struct_if_laddrreq" in
36542 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
36546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
36547 $as_echo_n "checking for multicast IP support... " >&6; }
36548 if ${ntp_cv_multicast+:} false; then :
36549 $as_echo_n "(cached) " >&6
36552 ntp_cv_multicast=no
36554 i386-sequent-sysv4)
36557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36558 /* end confdefs.h. */
36560 #ifdef HAVE_NETINET_IN_H
36561 # include <netinet/in.h>
36568 struct ip_mreq ipmr;
36569 ipmr.imr_interface.s_addr = 0;
36576 if ac_fn_c_try_compile "$LINENO"; then :
36577 ntp_cv_multicast=yes
36579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
36586 $as_echo "$ntp_cv_multicast" >&6; }
36587 case "$ntp_cv_multicast" in
36590 $as_echo "#define MCAST 1" >>confdefs.h
36592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
36593 $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
36594 if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
36595 $as_echo_n "(cached) " >&6
36599 *-*-netbsd*|*-*-*linux*)
36600 ntp_cv_typeof_ip_multicast_loop=u_int
36603 ntp_cv_typeof_ip_multicast_loop=u_char
36609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
36610 $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
36612 cat >>confdefs.h <<_ACEOF
36613 #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
36618 # Check whether --enable-getifaddrs was given.
36619 if test "${enable_getifaddrs+set}" = set; then :
36620 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
36622 want_getifaddrs="yes"
36627 case $want_getifaddrs in
36629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
36630 $as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
36632 case $want_getifaddrs in
36637 LIBS="$LDADD_LIBNTP $LIBS"
36638 for ac_func in getifaddrs
36640 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
36641 if test "x$ac_cv_func_getifaddrs" = xyes; then :
36642 cat >>confdefs.h <<_ACEOF
36643 #define HAVE_GETIFADDRS 1
36650 { SAVED_LIBS=; unset SAVED_LIBS;}
36655 # Check for if_nametoindex() for IPv6 scoped addresses support
36659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
36660 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
36661 if ${ac_cv_search_if_nametoindex+:} false; then :
36662 $as_echo_n "(cached) " >&6
36664 ac_func_search_save_LIBS=$LIBS
36665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36666 /* end confdefs.h. */
36668 /* Override any GCC internal prototype to avoid an error.
36669 Use char because int might match the return type of a GCC
36670 builtin and then its argument prototype would still apply. */
36674 char if_nametoindex ();
36678 return if_nametoindex ();
36683 for ac_lib in '' ipv6; do
36684 if test -z "$ac_lib"; then
36685 ac_res="none required"
36688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
36690 if ac_fn_c_try_link "$LINENO"; then :
36691 ac_cv_search_if_nametoindex=$ac_res
36693 rm -f core conftest.err conftest.$ac_objext \
36695 if ${ac_cv_search_if_nametoindex+:} false; then :
36699 if ${ac_cv_search_if_nametoindex+:} false; then :
36702 ac_cv_search_if_nametoindex=no
36704 rm conftest.$ac_ext
36705 LIBS=$ac_func_search_save_LIBS
36707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
36708 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
36709 ac_res=$ac_cv_search_if_nametoindex
36710 if test "$ac_res" != no; then :
36711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36717 LIBS="$LDADD_LIBNTP $LIBS"
36718 for ac_func in if_nametoindex
36720 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
36721 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
36722 cat >>confdefs.h <<_ACEOF
36723 #define HAVE_IF_NAMETOINDEX 1
36730 { SAVED_LIBS=; unset SAVED_LIBS;}
36731 case "$ac_cv_func_if_nametoindex" in
36734 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
36742 # Look for a sysctl call to get the list of network interfaces.
36744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
36745 $as_echo_n "checking for interface list sysctl... " >&6; }
36746 if ${ntp_cv_iflist_sysctl+:} false; then :
36747 $as_echo_n "(cached) " >&6
36749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36750 /* end confdefs.h. */
36752 #include <sys/param.h>
36753 #include <sys/sysctl.h>
36754 #include <sys/socket.h>
36755 #ifndef NET_RT_IFLIST
36760 if ac_fn_c_try_cpp "$LINENO"; then :
36761 ntp_cv_iflist_sysctl=yes
36763 ntp_cv_iflist_sysctl=no
36766 rm -f conftest.err conftest.i conftest.$ac_ext
36769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
36770 $as_echo "$ntp_cv_iflist_sysctl" >&6; }
36771 case "$ntp_cv_iflist_sysctl" in
36774 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
36780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
36781 $as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
36782 # Check whether --enable-saveconfig was given.
36783 if test "${enable_saveconfig+set}" = set; then :
36784 enableval=$enable_saveconfig; ntp_ok=$enableval
36790 ntp_saveconfig_enabled=0
36793 ntp_saveconfig_enabled=1
36795 $as_echo "#define SAVECONFIG 1" >>confdefs.h
36799 if test x$ntp_saveconfig_enabled = x1; then
36800 SAVECONFIG_ENABLED_TRUE=
36801 SAVECONFIG_ENABLED_FALSE='#'
36803 SAVECONFIG_ENABLED_TRUE='#'
36804 SAVECONFIG_ENABLED_FALSE=
36807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
36808 $as_echo "$ntp_ok" >&6; }
36812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
36813 $as_echo_n "checking if we want the experimental leap smear code... " >&6; }
36814 # Check whether --enable-leap-smear was given.
36815 if test "${enable_leap_smear+set}" = set; then :
36816 enableval=$enable_leap_smear; ntp_ok=$enableval
36822 ntp_leap_smear_enabled=0
36825 ntp_leap_smear_enabled=1
36827 $as_echo "#define LEAP_SMEAR 1" >>confdefs.h
36830 HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0"
36833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
36834 $as_echo "$ntp_ok" >&6; }
36837 # We may not need have_unity
36839 # Extract the first word of "ruby", so it can be a program name with args.
36840 set dummy ruby; ac_word=$2
36841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36842 $as_echo_n "checking for $ac_word... " >&6; }
36843 if ${ac_cv_path_PATH_RUBY+:} false; then :
36844 $as_echo_n "(cached) " >&6
36848 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
36851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36852 for as_dir in $PATH
36855 test -z "$as_dir" && as_dir=.
36856 for ac_exec_ext in '' $ac_executable_extensions; do
36857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36858 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
36859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36869 PATH_RUBY=$ac_cv_path_PATH_RUBY
36870 if test -n "$PATH_RUBY"; then
36871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
36872 $as_echo "$PATH_RUBY" >&6; }
36874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36875 $as_echo "no" >&6; }
36879 case "$PATH_RUBY" in
36883 *) PATH_RUBY="false"
36886 # We may not need UNITYBUILD_AVAILABLE
36887 if $have_unity; then
36888 UNITYBUILD_AVAILABLE_TRUE=
36889 UNITYBUILD_AVAILABLE_FALSE='#'
36891 UNITYBUILD_AVAILABLE_TRUE='#'
36892 UNITYBUILD_AVAILABLE_FALSE=
36901 # Check whether --with-gtest was given.
36902 if test "${with_gtest+set}" = set; then :
36903 withval=$with_gtest; try_gtest=$withval
36909 case "$try_gtest" in
36911 # Extract the first word of "gtest-config", so it can be a program name with args.
36912 set dummy gtest-config; ac_word=$2
36913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36914 $as_echo_n "checking for $ac_word... " >&6; }
36915 if ${ac_cv_path_GTEST_CONFIG+:} false; then :
36916 $as_echo_n "(cached) " >&6
36918 case $GTEST_CONFIG in
36920 ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
36923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36924 for as_dir in $PATH
36927 test -z "$as_dir" && as_dir=.
36928 for ac_exec_ext in '' $ac_executable_extensions; do
36929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36930 ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36941 GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
36942 if test -n "$GTEST_CONFIG"; then
36943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
36944 $as_echo "$GTEST_CONFIG" >&6; }
36946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36947 $as_echo "no" >&6; }
36951 { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
36952 case x${GTEST_CONFIG} in
36955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
36956 $as_echo_n "checking gtest version... " >&6; }
36957 gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
36958 case "$gtest_version_test" in
36962 GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
36963 GTEST_LIBS=`$GTEST_CONFIG --libs`
36964 GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
36965 GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`
36973 gtest_version=`$GTEST_CONFIG --version`
36976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
36977 $as_echo "($gtest_version) ok" >&6; }
36979 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
36980 $as_echo "($gtest_version) not ok" >&6; }
36983 { gtest_version_test=; unset gtest_version_test;}
36984 { gtest_version=; unset gtest_version;}
36988 GTEST_AVAILABLE_TRUE=
36989 GTEST_AVAILABLE_FALSE='#'
36991 GTEST_AVAILABLE_TRUE='#'
36992 GTEST_AVAILABLE_FALSE=
37003 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
37004 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
37005 eval ac_define_dir="\"$sysconfdir\""
37006 eval ac_define_dir="\"$ac_define_dir\""
37007 NTP_KEYSDIR="$ac_define_dir"
37010 cat >>confdefs.h <<_ACEOF
37011 #define NTP_KEYSDIR "$ac_define_dir"
37014 test "$prefix_NONE" && prefix=NONE
37015 test "$exec_prefix_NONE" && exec_prefix=NONE
37018 ac_config_files="$ac_config_files Makefile"
37020 ac_config_files="$ac_config_files adjtimed/Makefile"
37022 ac_config_files="$ac_config_files clockstuff/Makefile"
37024 ac_config_files="$ac_config_files include/Makefile"
37026 ac_config_files="$ac_config_files include/isc/Makefile"
37028 ac_config_files="$ac_config_files kernel/Makefile"
37030 ac_config_files="$ac_config_files kernel/sys/Makefile"
37032 ac_config_files="$ac_config_files libntp/Makefile"
37034 ac_config_files="$ac_config_files libparse/Makefile"
37036 ac_config_files="$ac_config_files ntpd/Makefile"
37038 ac_config_files="$ac_config_files ntpd/complete.conf"
37040 ac_config_files="$ac_config_files ntpdate/Makefile"
37042 ac_config_files="$ac_config_files ntpdc/Makefile"
37044 ac_config_files="$ac_config_files ntpdc/nl.pl"
37046 ac_config_files="$ac_config_files ntpq/Makefile"
37048 ac_config_files="$ac_config_files ntpsnmpd/Makefile"
37050 ac_config_files="$ac_config_files parseutil/Makefile"
37052 ac_config_files="$ac_config_files scripts/Makefile"
37054 ac_config_files="$ac_config_files scripts/build/Makefile"
37056 ac_config_files="$ac_config_files scripts/build/mkver"
37058 ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
37060 ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
37062 ac_config_files="$ac_config_files scripts/lib/Makefile"
37064 ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
37066 ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
37068 ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
37070 ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
37072 ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
37074 ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
37076 ac_config_files="$ac_config_files scripts/ntpver"
37078 ac_config_files="$ac_config_files scripts/plot_summary"
37080 ac_config_files="$ac_config_files scripts/summary"
37082 ac_config_files="$ac_config_files scripts/update-leap/Makefile"
37084 ac_config_files="$ac_config_files scripts/update-leap/update-leap"
37086 ac_config_files="$ac_config_files tests/Makefile"
37088 ac_config_files="$ac_config_files tests/bug-2803/Makefile"
37090 ac_config_files="$ac_config_files tests/libntp/Makefile"
37092 ac_config_files="$ac_config_files tests/ntpd/Makefile"
37094 ac_config_files="$ac_config_files tests/sandbox/Makefile"
37096 ac_config_files="$ac_config_files tests/sec-2853/Makefile"
37098 ac_config_files="$ac_config_files util/Makefile"
37101 perllibdir="${datadir}/ntp/lib"
37105 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
37106 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
37107 eval ac_define_dir="\"$perllibdir\""
37108 eval ac_define_dir="\"$ac_define_dir\""
37109 PERLLIBDIR="$ac_define_dir"
37112 cat >>confdefs.h <<_ACEOF
37113 #define PERLLIBDIR "$ac_define_dir"
37116 test "$prefix_NONE" && prefix=NONE
37117 test "$exec_prefix_NONE" && exec_prefix=NONE
37120 calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"
37122 ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"
37124 ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"
37126 ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"
37128 summary_opts="$srcdir/scripts/summary-opts"
37130 plot_summary_opts="$srcdir/scripts/plot_summary-opts"
37135 subdirs="$subdirs sntp"
37138 cat >confcache <<\_ACEOF
37139 # This file is a shell script that caches the results of configure
37140 # tests run on this system so they can be shared between configure
37141 # scripts and configure runs, see configure's option --config-cache.
37142 # It is not useful on other systems. If it contains results you don't
37143 # want to keep, you may remove or edit it.
37145 # config.status only pays attention to the cache file if you give it
37146 # the --recheck option to rerun configure.
37148 # `ac_cv_env_foo' variables (set or unset) will be overridden when
37149 # loading this file, other *unset* `ac_cv_foo' will be assigned the
37150 # following values.
37154 # The following way of writing the cache mishandles newlines in values,
37155 # but we know of no workaround that is simple, portable, and efficient.
37156 # So, we kill variables containing newlines.
37157 # Ultrix sh set writes to stderr and can't be redirected directly,
37158 # and sets the high bit in the cache file unless we assign to the vars.
37160 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37161 eval ac_val=\$$ac_var
37165 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
37166 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
37169 _ | IFS | as_nl) ;; #(
37170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
37171 *) { eval $ac_var=; unset $ac_var;} ;;
37177 case $as_nl`(ac_space=' '; set) 2>&1` in #(
37178 *${as_nl}ac_space=\ *)
37179 # `set' does not quote correctly, so add quotes: double-quote
37180 # substitution turns \\\\ into \\, and sed turns \\ into \.
37183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37186 # `set' quotes correctly as required by POSIX, so do not add quotes.
37187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37196 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37198 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37200 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37201 if test -w "$cache_file"; then
37202 if test "x$cache_file" != "x/dev/null"; then
37203 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
37204 $as_echo "$as_me: updating cache $cache_file" >&6;}
37205 if test ! -f "$cache_file" || test -h "$cache_file"; then
37206 cat confcache >"$cache_file"
37208 case $cache_file in #(
37210 mv -f confcache "$cache_file"$$ &&
37211 mv -f "$cache_file"$$ "$cache_file" ;; #(
37213 mv -f confcache "$cache_file" ;;
37218 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
37219 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37224 test "x$prefix" = xNONE && prefix=$ac_default_prefix
37225 # Let make expand exec_prefix.
37226 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37228 DEFS=-DHAVE_CONFIG_H
37233 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37234 # 1. Remove the extension, and $U if already installed.
37235 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37236 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
37237 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
37238 # will be set to the directory where LIBOBJS objects are built.
37239 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37240 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
37242 LIBOBJS=$ac_libobjs
37244 LTLIBOBJS=$ac_ltlibobjs
37247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
37248 $as_echo_n "checking that generated files are newer than configure... " >&6; }
37249 if test -n "$am_sleep_pid"; then
37250 # Hide warnings about reused PIDs.
37251 wait $am_sleep_pid 2>/dev/null
37253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
37254 $as_echo "done" >&6; }
37255 if test -n "$EXEEXT"; then
37257 am__EXEEXT_FALSE='#'
37259 am__EXEEXT_TRUE='#'
37263 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37264 as_fn_error $? "conditional \"AMDEP\" was never defined.
37265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37267 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37268 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37271 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37272 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37276 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
37277 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
37278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37280 if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
37281 as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
37282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37284 if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
37285 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
37286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37288 if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
37289 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
37290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37292 if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
37293 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
37294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37296 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
37297 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
37298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37300 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
37301 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
37302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37304 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
37305 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
37306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37308 if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
37309 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
37310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37312 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
37313 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
37314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37316 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
37317 as_fn_error $? "conditional \"PTHREADS\" was never defined.
37318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37320 if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
37321 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
37322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37324 if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
37325 as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
37326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37328 if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
37329 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
37330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37332 if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
37333 as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
37334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37337 : "${CONFIG_STATUS=./config.status}"
37339 ac_clean_files_save=$ac_clean_files
37340 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
37342 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
37344 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
37346 # Generated by $as_me.
37347 # Run this file to recreate the current configuration.
37348 # Compiler output produced by configure, useful for debugging
37349 # configure, is in config.log if it exists.
37352 ac_cs_recheck=false
37355 SHELL=\${CONFIG_SHELL-$SHELL}
37358 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
37359 ## -------------------- ##
37360 ## M4sh Initialization. ##
37361 ## -------------------- ##
37363 # Be more Bourne compatible
37364 DUALCASE=1; export DUALCASE # for MKS sh
37365 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
37368 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37369 # is contrary to our usage. Disable this feature.
37370 alias -g '${1+"$@"}'='"$@"'
37371 setopt NO_GLOB_SUBST
37373 case `(set -o) 2>/dev/null` in #(
37385 # Printing a long string crashes Solaris 7 /usr/bin/printf.
37386 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
37387 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37388 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
37389 # Prefer a ksh shell builtin over an external printf program on Solaris,
37390 # but without wasting forks for bash or zsh.
37391 if test -z "$BASH_VERSION$ZSH_VERSION" \
37392 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
37393 as_echo='print -r --'
37394 as_echo_n='print -rn --'
37395 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
37396 as_echo='printf %s\n'
37397 as_echo_n='printf %s'
37399 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
37400 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
37401 as_echo_n='/usr/ucb/echo -n'
37403 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
37404 as_echo_n_body='eval
37408 expr "X$arg" : "X\\(.*\\)$as_nl";
37409 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
37411 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
37413 export as_echo_n_body
37414 as_echo_n='sh -c $as_echo_n_body as_echo'
37416 export as_echo_body
37417 as_echo='sh -c $as_echo_body as_echo'
37420 # The user is always right.
37421 if test "${PATH_SEPARATOR+set}" != set; then
37423 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37424 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37431 # We need space, tab and new line, in precisely that order. Quoting is
37432 # there to prevent editors from complaining about space-tab.
37433 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
37434 # splitting by setting IFS to empty value.)
37437 # Find who we are. Look in the path if we contain no directory separator.
37440 *[\\/]* ) as_myself=$0 ;;
37441 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37442 for as_dir in $PATH
37445 test -z "$as_dir" && as_dir=.
37446 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37452 # We did not find ourselves, most probably we were run as `sh COMMAND'
37453 # in which case we are not to be found in the path.
37454 if test "x$as_myself" = x; then
37457 if test ! -f "$as_myself"; then
37458 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37462 # Unset variables that we do not need and which cause bugs (e.g. in
37463 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
37464 # suppresses any "Segmentation fault" message there. '((' could
37465 # trigger a bug in pdksh 5.2.14.
37466 for as_var in BASH_ENV ENV MAIL MAILPATH
37467 do eval test x\${$as_var+set} = xset \
37468 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
37481 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37484 # as_fn_error STATUS ERROR [LINENO LOG_FD]
37485 # ----------------------------------------
37486 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37487 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37488 # script with STATUS, using 1 if that was 0.
37491 as_status=$1; test $as_status -eq 0 && as_status=1
37493 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37494 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
37496 $as_echo "$as_me: error: $2" >&2
37497 as_fn_exit $as_status
37501 # as_fn_set_status STATUS
37502 # -----------------------
37503 # Set $? to STATUS, without forking.
37504 as_fn_set_status ()
37507 } # as_fn_set_status
37509 # as_fn_exit STATUS
37510 # -----------------
37511 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37515 as_fn_set_status $1
37521 # Portably unset VAR.
37524 { eval $1=; unset $1;}
37526 as_unset=as_fn_unset
37527 # as_fn_append VAR VALUE
37528 # ----------------------
37529 # Append the text in VALUE to the end of the definition contained in VAR. Take
37530 # advantage of any shell optimizations that allow amortized linear growth over
37531 # repeated appends, instead of the typical quadratic growth present in naive
37533 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37534 eval 'as_fn_append ()
37545 # as_fn_arith ARG...
37546 # ------------------
37547 # Perform arithmetic evaluation on the ARGs, and store the result in the
37548 # global $as_val. Take advantage of shells that can avoid forks. The arguments
37549 # must be portable across $(()) and expr.
37550 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37551 eval 'as_fn_arith ()
37558 as_val=`expr "$@" || test $? -eq 1`
37563 if expr a : '\(a\)' >/dev/null 2>&1 &&
37564 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37570 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37571 as_basename=basename
37576 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37582 as_me=`$as_basename -- "$0" ||
37583 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37584 X"$0" : 'X\(//\)$' \| \
37585 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37587 sed '/^.*\/\([^/][^/]*\)\/*$/{
37601 # Avoid depending upon Character Ranges.
37602 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37603 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37604 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37605 as_cr_digits='0123456789'
37606 as_cr_alnum=$as_cr_Letters$as_cr_digits
37608 ECHO_C= ECHO_N= ECHO_T=
37609 case `echo -n x` in #(((((
37611 case `echo 'xy\c'` in
37612 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
37614 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
37621 rm -f conf$$ conf$$.exe conf$$.file
37622 if test -d conf$$.dir; then
37623 rm -f conf$$.dir/conf$$.file
37626 mkdir conf$$.dir 2>/dev/null
37628 if (echo >conf$$.file) 2>/dev/null; then
37629 if ln -s conf$$.file conf$$ 2>/dev/null; then
37631 # ... but there are two gotchas:
37632 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37633 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37634 # In both cases, we have to default to `cp -pR'.
37635 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37637 elif ln conf$$.file conf$$ 2>/dev/null; then
37645 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37646 rmdir conf$$.dir 2>/dev/null
37651 # Create "$as_dir" as a directory, including parents if necessary.
37656 -*) as_dir=./$as_dir;;
37658 test -d "$as_dir" || eval $as_mkdir_p || {
37662 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37663 *) as_qdir=$as_dir;;
37665 as_dirs="'$as_qdir' $as_dirs"
37666 as_dir=`$as_dirname -- "$as_dir" ||
37667 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37668 X"$as_dir" : 'X\(//\)[^/]' \| \
37669 X"$as_dir" : 'X\(//\)$' \| \
37670 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37671 $as_echo X"$as_dir" |
37672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37676 /^X\(\/\/\)[^/].*/{
37689 test -d "$as_dir" && break
37691 test -z "$as_dirs" || eval "mkdir $as_dirs"
37692 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
37696 if mkdir -p . 2>/dev/null; then
37697 as_mkdir_p='mkdir -p "$as_dir"'
37699 test -d ./-p && rmdir ./-p
37704 # as_fn_executable_p FILE
37705 # -----------------------
37706 # Test if FILE is an executable regular file.
37707 as_fn_executable_p ()
37709 test -f "$1" && test -x "$1"
37710 } # as_fn_executable_p
37711 as_test_x='test -x'
37712 as_executable_p=as_fn_executable_p
37714 # Sed expression to map a string onto a valid CPP name.
37715 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37717 # Sed expression to map a string onto a valid variable name.
37718 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37722 ## ----------------------------------- ##
37723 ## Main body of $CONFIG_STATUS script. ##
37724 ## ----------------------------------- ##
37726 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
37728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37729 # Save the log message, to keep $0 and so on meaningful, and to
37730 # report actual input values of CONFIG_FILES etc. instead of their
37731 # values after options handling.
37733 This file was extended by ntp $as_me 4.2.8p3, which was
37734 generated by GNU Autoconf 2.69. Invocation command line was
37736 CONFIG_FILES = $CONFIG_FILES
37737 CONFIG_HEADERS = $CONFIG_HEADERS
37738 CONFIG_LINKS = $CONFIG_LINKS
37739 CONFIG_COMMANDS = $CONFIG_COMMANDS
37742 on `(hostname || uname -n) 2>/dev/null | sed 1q`
37747 case $ac_config_files in *"
37748 "*) set x $ac_config_files; shift; ac_config_files=$*;;
37751 case $ac_config_headers in *"
37752 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37757 # Files that config.status was made for.
37758 config_files="$ac_config_files"
37759 config_headers="$ac_config_headers"
37760 config_commands="$ac_config_commands"
37764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37766 \`$as_me' instantiates files and other configuration actions
37767 from templates according to the current configuration. Unless the files
37768 and actions are specified as TAGs, all are instantiated by default.
37770 Usage: $0 [OPTION]... [TAG]...
37772 -h, --help print this help, then exit
37773 -V, --version print version number and configuration settings, then exit
37774 --config print configuration, then exit
37775 -q, --quiet, --silent
37776 do not print progress messages
37777 -d, --debug don't remove temporary files
37778 --recheck update $as_me by reconfiguring in the same conditions
37779 --file=FILE[:TEMPLATE]
37780 instantiate the configuration file FILE
37781 --header=FILE[:TEMPLATE]
37782 instantiate the configuration header FILE
37784 Configuration files:
37787 Configuration headers:
37790 Configuration commands:
37793 Report bugs to <http://bugs.ntp.org./>.
37794 ntp home page: <http://www.ntp.org./>."
37797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37798 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
37800 ntp config.status 4.2.8p3
37801 configured by $0, generated by GNU Autoconf 2.69,
37802 with options \\"\$ac_cs_config\\"
37804 Copyright (C) 2012 Free Software Foundation, Inc.
37805 This config.status script is free software; the Free Software Foundation
37806 gives unlimited permission to copy, distribute and modify it."
37813 test -n "\$AWK" || AWK=awk
37816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37817 # The default lists apply if the user does not specify any file.
37823 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37824 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37828 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37840 # Handling of the options.
37841 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37843 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37844 $as_echo "$ac_cs_version"; exit ;;
37845 --config | --confi | --conf | --con | --co | --c )
37846 $as_echo "$ac_cs_config"; exit ;;
37847 --debug | --debu | --deb | --de | --d | -d )
37849 --file | --fil | --fi | --f )
37852 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37853 '') as_fn_error $? "missing file argument" ;;
37855 as_fn_append CONFIG_FILES " '$ac_optarg'"
37856 ac_need_defaults=false;;
37857 --header | --heade | --head | --hea )
37860 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37862 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
37863 ac_need_defaults=false;;
37865 # Conflict between --help and --header
37866 as_fn_error $? "ambiguous option: \`$1'
37867 Try \`$0 --help' for more information.";;
37868 --help | --hel | -h )
37869 $as_echo "$ac_cs_usage"; exit ;;
37870 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37871 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37874 # This is an error.
37875 -*) as_fn_error $? "unrecognized option: \`$1'
37876 Try \`$0 --help' for more information." ;;
37878 *) as_fn_append ac_config_targets " $1"
37879 ac_need_defaults=false ;;
37885 ac_configure_extra_args=
37887 if $ac_cs_silent; then
37889 ac_configure_extra_args="$ac_configure_extra_args --silent"
37893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37894 if \$ac_cs_recheck; then
37895 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37897 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37898 CONFIG_SHELL='$SHELL'
37899 export CONFIG_SHELL
37904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37908 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37909 ## Running $as_me. ##
37915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37919 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37922 # The HP-UX ksh and POSIX shell print the target directory to stdout
37923 # if CDPATH is set.
37924 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37926 sed_quote_subst='$sed_quote_subst'
37927 double_quote_subst='$double_quote_subst'
37928 delay_variable_subst='$delay_variable_subst'
37929 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37930 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37931 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37932 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37933 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37934 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
37935 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37936 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37937 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37938 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37939 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37940 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37941 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37942 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37943 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37944 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37945 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37946 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37947 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37948 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37949 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37950 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37951 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37952 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37953 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37954 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37955 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37956 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
37957 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37958 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
37959 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37960 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37961 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37962 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37963 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
37964 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37965 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37966 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37967 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
37968 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37969 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
37970 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
37971 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37972 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37973 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37974 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37975 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37976 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37977 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37978 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37979 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37980 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37981 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37982 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37983 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37984 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"`'
37985 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37986 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
37987 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37988 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37989 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
37990 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
37991 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
37992 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37993 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37994 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
37995 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
37996 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37997 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37998 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37999 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
38000 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
38001 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
38002 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
38003 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38004 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
38005 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
38006 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
38007 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
38008 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
38009 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
38010 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38011 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
38012 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38013 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
38014 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38015 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
38016 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
38017 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
38018 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
38019 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
38020 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
38021 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
38022 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
38023 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
38024 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
38025 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
38026 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
38027 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
38028 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
38029 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
38030 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
38031 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
38032 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
38033 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
38034 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
38035 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
38036 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
38037 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
38038 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
38039 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
38040 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
38041 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
38042 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
38043 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
38044 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
38045 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
38046 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38047 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38048 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
38049 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
38050 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
38051 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
38052 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
38053 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
38054 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
38055 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
38056 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
38057 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
38058 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
38059 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
38060 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
38061 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
38062 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
38063 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
38064 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
38065 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
38066 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
38067 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38068 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38069 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
38070 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
38071 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
38072 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
38073 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
38074 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
38075 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
38076 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
38077 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
38078 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38079 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38080 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
38081 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38082 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38083 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38084 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38085 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38086 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38087 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
38088 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38089 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38090 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38091 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
38092 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
38093 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
38094 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
38095 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
38096 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
38097 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
38098 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
38099 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
38100 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
38101 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38102 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38103 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38104 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38105 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38106 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
38107 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
38108 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
38109 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38110 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38111 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
38112 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
38113 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
38116 LTCFLAGS='$LTCFLAGS'
38117 compiler='$compiler_DEFAULT'
38119 # A function that is used when there is no print builtin or printf.
38120 func_fallback_echo ()
38122 eval 'cat <<_LTECHO_EOF
38127 # Quote evaled strings.
38141 deplibs_check_method \
38146 sharedlib_from_linklib_cmd \
38149 archiver_list_spec \
38155 lt_cv_sys_global_symbol_pipe \
38156 lt_cv_sys_global_symbol_to_cdecl \
38157 lt_cv_sys_global_symbol_to_c_name_address \
38158 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
38159 nm_file_list_spec \
38160 lt_prog_compiler_no_builtin_flag \
38161 lt_prog_compiler_pic \
38162 lt_prog_compiler_wl \
38163 lt_prog_compiler_static \
38164 lt_cv_prog_compiler_c_o \
38173 export_dynamic_flag_spec \
38174 whole_archive_flag_spec \
38175 compiler_needs_object \
38177 allow_undefined_flag \
38178 no_undefined_flag \
38179 hardcode_libdir_flag_spec \
38180 hardcode_libdir_flag_spec_ld \
38181 hardcode_libdir_separator \
38185 variables_saved_for_relink \
38187 library_names_spec \
38189 install_override_mode \
38193 compiler_lib_search_dirs \
38198 compiler_lib_search_path \
38202 lt_prog_compiler_no_builtin_flag_CXX \
38203 lt_prog_compiler_pic_CXX \
38204 lt_prog_compiler_wl_CXX \
38205 lt_prog_compiler_static_CXX \
38206 lt_cv_prog_compiler_c_o_CXX \
38207 export_dynamic_flag_spec_CXX \
38208 whole_archive_flag_spec_CXX \
38209 compiler_needs_object_CXX \
38211 allow_undefined_flag_CXX \
38212 no_undefined_flag_CXX \
38213 hardcode_libdir_flag_spec_CXX \
38214 hardcode_libdir_flag_spec_ld_CXX \
38215 hardcode_libdir_separator_CXX \
38216 exclude_expsyms_CXX \
38217 include_expsyms_CXX \
38218 file_list_spec_CXX \
38219 compiler_lib_search_dirs_CXX \
38220 predep_objects_CXX \
38221 postdep_objects_CXX \
38224 compiler_lib_search_path_CXX; do
38225 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38226 *[\\\\\\\`\\"\\\$]*)
38227 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
38230 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38235 # Double-quote double-evaled strings.
38236 for var in reload_cmds \
38237 old_postinstall_cmds \
38238 old_postuninstall_cmds \
38240 extract_expsyms_cmds \
38241 old_archive_from_new_cmds \
38242 old_archive_from_expsyms_cmds \
38244 archive_expsym_cmds \
38246 module_expsym_cmds \
38247 export_symbols_cmds \
38251 postuninstall_cmds \
38253 sys_lib_search_path_spec \
38254 sys_lib_dlsearch_path_spec \
38256 old_archive_cmds_CXX \
38257 old_archive_from_new_cmds_CXX \
38258 old_archive_from_expsyms_cmds_CXX \
38260 archive_expsym_cmds_CXX \
38262 module_expsym_cmds_CXX \
38263 export_symbols_cmds_CXX \
38265 postlink_cmds_CXX; do
38266 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38267 *[\\\\\\\`\\"\\\$]*)
38268 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
38271 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38276 ac_aux_dir='$ac_aux_dir'
38277 xsi_shell='$xsi_shell'
38278 lt_shell_append='$lt_shell_append'
38280 # See if we are running on zsh, and set the options which allow our
38281 # commands through without removal of \ escapes INIT.
38282 if test -n "\${ZSH_VERSION+set}" ; then
38283 setopt NO_GLOB_SUBST
38289 TIMESTAMP='$TIMESTAMP'
38300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38302 # Handling of arguments.
38303 for ac_config_target in $ac_config_targets
38305 case $ac_config_target in
38306 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
38307 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38308 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
38309 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
38310 "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
38311 "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
38312 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
38313 "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
38314 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
38315 "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
38316 "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
38317 "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
38318 "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
38319 "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
38320 "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
38321 "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
38322 "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
38323 "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
38324 "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
38325 "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
38326 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
38327 "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
38328 "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
38329 "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
38330 "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
38331 "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
38332 "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
38333 "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
38334 "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
38335 "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
38336 "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
38337 "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
38338 "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
38339 "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
38340 "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
38341 "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;;
38342 "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;;
38343 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
38344 "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;;
38345 "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
38346 "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
38347 "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;;
38348 "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;;
38349 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
38351 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
38356 # If the user did not use the arguments to specify the items to instantiate,
38357 # then the envvar interface is used. Set only those that are not.
38358 # We use the long form for the default assignment because of an extremely
38359 # bizarre bug on SunOS 4.1.3.
38360 if $ac_need_defaults; then
38361 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38362 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38363 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38366 # Have a temporary directory for convenience. Make it in the build tree
38367 # simply because there is no reason against having it here, and in addition,
38368 # creating and moving files from /tmp can sometimes cause problems.
38369 # Hook for its removal unless debugging.
38370 # Note that there is a small window in which the directory will not be cleaned:
38371 # after its creation but before its name has been assigned to `$tmp'.
38375 trap 'exit_status=$?
38376 : "${ac_tmp:=$tmp}"
38377 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
38379 trap 'as_fn_exit 1' 1 2 13 15
38381 # Create a (secure) tmp directory for tmp files.
38384 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38388 tmp=./conf$$-$RANDOM
38389 (umask 077 && mkdir "$tmp")
38390 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
38393 # Set up the scripts for CONFIG_FILES section.
38394 # No need to generate them if there are no CONFIG_FILES.
38395 # This happens for instance with `./config.status config.h'.
38396 if test -n "$CONFIG_FILES"; then
38398 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
38399 ac_cs_awk_getline=:
38400 ac_cs_awk_pipe_init=
38401 ac_cs_awk_read_file='
38402 while ((getline aline < (F[key])) > 0)
38405 ac_cs_awk_pipe_fini=
38407 ac_cs_awk_getline=false
38408 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
38409 ac_cs_awk_read_file='
38411 print "cat " F[key] " &&"
38412 '$ac_cs_awk_pipe_init
38413 # The final `:' finishes the AND list.
38414 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
38416 ac_cr=`echo X | tr X '\015'`
38417 # On cygwin, bash can eat \r inside `` if the user requested igncr.
38418 # But we know of no other shell where ac_cr would be empty at this
38419 # point, so we can use a bashism as a fallback.
38420 if test "x$ac_cr" = x; then
38421 eval ac_cr=\$\'\\r\'
38423 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38424 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
38427 ac_cs_awk_cr=$ac_cr
38430 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
38433 # Create commands to substitute file output variables.
38435 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
38436 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
38437 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
38440 } >conf$$files.sh &&
38441 . ./conf$$files.sh ||
38442 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38443 rm -f conf$$files.sh
38446 echo "cat >conf$$subs.awk <<_ACEOF" &&
38447 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38449 } >conf$$subs.sh ||
38450 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38451 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
38453 for ac_last_try in false false false false false :; do
38454 . ./conf$$subs.sh ||
38455 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38457 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38458 if test $ac_delim_n = $ac_delim_num; then
38460 elif $ac_last_try; then
38461 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38463 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38466 rm -f conf$$subs.sh
38468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38469 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
38473 s/^/S["/; s/!.*/"]=/
38483 s/\(.\{148\}\)..*/\1/
38485 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38490 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38497 s/\(.\{148\}\)..*/\1/
38499 s/["\\]/\\&/g; s/^/"/; s/$/"/
38503 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38508 ' <conf$$subs.awk | sed '
38513 ' >>$CONFIG_STATUS || ac_write_fail=1
38514 rm -f conf$$subs.awk
38515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38517 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
38518 for (key in S) S_is_set[key] = 1
38520 \$ac_cs_awk_pipe_init
38524 nfields = split(line, field, "@")
38526 len = length(field[1])
38527 for (i = 2; i < nfields; i++) {
38529 keylen = length(key)
38530 if (S_is_set[key]) {
38532 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38533 len += length(value) + length(field[++i])
38538 if (nfields == 3 && !substed) {
38540 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
38541 \$ac_cs_awk_read_file
38547 \$ac_cs_awk_pipe_fini
38550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38551 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38552 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38555 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
38556 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38559 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38560 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
38561 # trailing colons and then remove the whole line if VPATH becomes empty
38562 # (actually we leave an empty line to preserve line numbers).
38563 if test "x$srcdir" = x.; then
38564 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
38582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38583 fi # test -n "$CONFIG_FILES"
38585 # Set up the scripts for CONFIG_HEADERS section.
38586 # No need to generate them if there are no CONFIG_HEADERS.
38587 # This happens for instance with `./config.status Makefile'.
38588 if test -n "$CONFIG_HEADERS"; then
38589 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
38593 # Transform confdefs.h into an awk script `defines.awk', embedded as
38594 # here-document in config.status, that substitutes the proper values into
38595 # config.h.in to produce config.h.
38597 # Create a delimiter string that does not exist in confdefs.h, to ease
38598 # handling of long lines.
38600 for ac_last_try in false false :; do
38601 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38602 if test -z "$ac_tt"; then
38604 elif $ac_last_try; then
38605 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
38607 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38611 # For the awk script, D is an array of macro values keyed by name,
38612 # likewise P contains macro parameters if any. Preserve backslash
38613 # newline sequences.
38615 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38617 s/.\{148\}/&'"$ac_delim"'/g
38620 s/^[ ]*#[ ]*define[ ][ ]*/ /
38627 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38629 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
38633 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38634 D["\1"]=" \3\\\\\\n"\\/p
38636 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38641 s/.\{148\}/&'"$ac_delim"'/g
38646 s/["\\]/\\&/g; s/^/"/; s/$/"/p
38649 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38651 ' <confdefs.h | sed '
38652 s/'"$ac_delim"'/"\\\
38653 "/g' >>$CONFIG_STATUS || ac_write_fail=1
38655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38656 for (key in D) D_is_set[key] = 1
38659 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38661 split(line, arg, " ")
38662 if (arg[1] == "#") {
38666 defundef = substr(arg[1], 2)
38669 split(mac1, mac2, "(") #)
38671 prefix = substr(line, 1, index(line, defundef) - 1)
38672 if (D_is_set[macro]) {
38673 # Preserve the white space surrounding the "#".
38674 print prefix "define", macro P[macro] D[macro]
38677 # Replace #undef with comments. This is necessary, for example,
38678 # in the case of _POSIX_SOURCE, which is predefined and required
38679 # on some systems where configure will not decide to define it.
38680 if (defundef == "undef") {
38681 print "/*", prefix defundef, macro, "*/"
38689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38690 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
38691 fi # test -n "$CONFIG_HEADERS"
38694 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
38699 :[FHLC]) ac_mode=$ac_tag; continue;;
38701 case $ac_mode$ac_tag in
38703 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
38704 :[FH]-) ac_tag=-:-;;
38705 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38722 -) ac_f="$ac_tmp/stdin";;
38723 *) # Look for the file first in the build tree, then in the source tree
38724 # (if the path is not absolute). The absolute path cannot be DOS-style,
38725 # because $ac_f cannot contain `:'.
38729 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38731 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
38733 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
38734 as_fn_append ac_file_inputs " '$ac_f'"
38737 # Let's still pretend it is `configure' which instantiates (i.e., don't
38738 # use $as_me), people would be surprised to read:
38739 # /* config.h. Generated by config.status. */
38740 configure_input='Generated from '`
38741 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38743 if test x"$ac_file" != x-; then
38744 configure_input="$ac_file. $configure_input"
38745 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
38746 $as_echo "$as_me: creating $ac_file" >&6;}
38748 # Neutralize special characters interpreted by sed in replacement strings.
38749 case $configure_input in #(
38750 *\&* | *\|* | *\\* )
38751 ac_sed_conf_input=`$as_echo "$configure_input" |
38752 sed 's/[\\\\&|]/\\\\&/g'`;; #(
38753 *) ac_sed_conf_input=$configure_input;;
38757 *:-:* | *:-) cat >"$ac_tmp/stdin" \
38758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
38763 ac_dir=`$as_dirname -- "$ac_file" ||
38764 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38765 X"$ac_file" : 'X\(//\)[^/]' \| \
38766 X"$ac_file" : 'X\(//\)$' \| \
38767 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38768 $as_echo X"$ac_file" |
38769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38773 /^X\(\/\/\)[^/].*/{
38786 as_dir="$ac_dir"; as_fn_mkdir_p
38790 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38792 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38793 # A ".." for each directory in $ac_dir_suffix.
38794 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38795 case $ac_top_builddir_sub in
38796 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38797 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38800 ac_abs_top_builddir=$ac_pwd
38801 ac_abs_builddir=$ac_pwd$ac_dir_suffix
38802 # for backward compatibility:
38803 ac_top_builddir=$ac_top_build_prefix
38806 .) # We are building in place.
38808 ac_top_srcdir=$ac_top_builddir_sub
38809 ac_abs_top_srcdir=$ac_pwd ;;
38810 [\\/]* | ?:[\\/]* ) # Absolute name.
38811 ac_srcdir=$srcdir$ac_dir_suffix;
38812 ac_top_srcdir=$srcdir
38813 ac_abs_top_srcdir=$srcdir ;;
38814 *) # Relative name.
38815 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38816 ac_top_srcdir=$ac_top_build_prefix$srcdir
38817 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38819 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38829 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38830 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38832 ac_MKDIR_P=$MKDIR_P
38834 [\\/$]* | ?:[\\/]* ) ;;
38835 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38840 # If the template does not know about datarootdir, expand it.
38841 # FIXME: This hack should be removed a few years after 2.60.
38842 ac_datarootdir_hack=; ac_datarootdir_seen=
38853 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38854 *datarootdir*) ac_datarootdir_seen=yes;;
38855 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38857 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38860 ac_datarootdir_hack='
38861 s&@datadir@&$datadir&g
38862 s&@docdir@&$docdir&g
38863 s&@infodir@&$infodir&g
38864 s&@localedir@&$localedir&g
38865 s&@mandir@&$mandir&g
38866 s&\\\${datarootdir}&$datarootdir&g' ;;
38870 # Neutralize VPATH when `$srcdir' = `.'.
38871 # Shell code in configure.ac might set extrasub.
38872 # FIXME: do we really want to maintain this feature?
38873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38874 ac_sed_extra="$ac_vpsub
38877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38880 s|@configure_input@|$ac_sed_conf_input|;t t
38881 s&@top_builddir@&$ac_top_builddir_sub&;t t
38882 s&@top_build_prefix@&$ac_top_build_prefix&;t t
38883 s&@srcdir@&$ac_srcdir&;t t
38884 s&@abs_srcdir@&$ac_abs_srcdir&;t t
38885 s&@top_srcdir@&$ac_top_srcdir&;t t
38886 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38887 s&@builddir@&$ac_builddir&;t t
38888 s&@abs_builddir@&$ac_abs_builddir&;t t
38889 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38890 s&@INSTALL@&$ac_INSTALL&;t t
38891 s&@MKDIR_P@&$ac_MKDIR_P&;t t
38892 $ac_datarootdir_hack
38894 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
38895 if $ac_cs_awk_getline; then
38896 $AWK -f "$ac_tmp/subs.awk"
38898 $AWK -f "$ac_tmp/subs.awk" | $SHELL
38900 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38902 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38903 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38904 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38905 "$ac_tmp/out"`; test -z "$ac_out"; } &&
38906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38907 which seems to be undefined. Please make sure it is defined" >&5
38908 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38909 which seems to be undefined. Please make sure it is defined" >&2;}
38911 rm -f "$ac_tmp/stdin"
38913 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38914 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
38916 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38922 if test x"$ac_file" != x-; then
38924 $as_echo "/* $configure_input */" \
38925 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38926 } >"$ac_tmp/config.h" \
38927 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38928 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
38929 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
38930 $as_echo "$as_me: $ac_file is unchanged" >&6;}
38933 mv "$ac_tmp/config.h" "$ac_file" \
38934 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38937 $as_echo "/* $configure_input */" \
38938 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
38939 || as_fn_error $? "could not create -" "$LINENO" 5
38941 # Compute "$ac_file"'s index in $config_headers.
38944 for _am_header in $config_headers :; do
38945 case $_am_header in
38946 $_am_arg | $_am_arg:* )
38949 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38952 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38953 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38954 X"$_am_arg" : 'X\(//\)[^/]' \| \
38955 X"$_am_arg" : 'X\(//\)$' \| \
38956 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38957 $as_echo X"$_am_arg" |
38958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38962 /^X\(\/\/\)[^/].*/{
38974 s/.*/./; q'`/stamp-h$_am_stamp_count
38977 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
38978 $as_echo "$as_me: executing $ac_file commands" >&6;}
38983 case $ac_file$ac_mode in
38984 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
38985 # Older Autoconf quotes --file arguments for eval, but not when files
38986 # are listed without --file. Let's play safe and only enable the eval
38987 # if we detect the quoting.
38988 case $CONFIG_FILES in
38989 *\'*) eval set x "$CONFIG_FILES" ;;
38990 *) set x $CONFIG_FILES ;;
38995 # Strip MF so we end up with the name of the file.
38996 mf=`echo "$mf" | sed -e 's/:.*$//'`
38997 # Check whether this is an Automake generated Makefile or not.
38998 # We used to match only the files named 'Makefile.in', but
38999 # some people rename them; so instead we look at the file content.
39000 # Grep'ing the first line is not enough: some people post-process
39001 # each Makefile.in and add a new line on top of each file to say so.
39002 # Grep'ing the whole file is not good either: AIX grep has a line
39003 # limit of 2048, but all sed's we know have understand at least 4000.
39004 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
39005 dirpart=`$as_dirname -- "$mf" ||
39006 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39007 X"$mf" : 'X\(//\)[^/]' \| \
39008 X"$mf" : 'X\(//\)$' \| \
39009 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39015 /^X\(\/\/\)[^/].*/{
39031 # Extract the definition of DEPDIR, am__include, and am__quote
39032 # from the Makefile without running 'make'.
39033 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39034 test -z "$DEPDIR" && continue
39035 am__include=`sed -n 's/^am__include = //p' < "$mf"`
39036 test -z "$am__include" && continue
39037 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39038 # Find all dependency output files, they are included files with
39039 # $(DEPDIR) in their names. We invoke sed twice because it is the
39040 # simplest approach to changing $(DEPDIR) to its actual value in the
39042 for file in `sed -n "
39043 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39044 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
39045 # Make sure the directory exists.
39046 test -f "$dirpart/$file" && continue
39047 fdir=`$as_dirname -- "$file" ||
39048 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39049 X"$file" : 'X\(//\)[^/]' \| \
39050 X"$file" : 'X\(//\)$' \| \
39051 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39052 $as_echo X"$file" |
39053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39057 /^X\(\/\/\)[^/].*/{
39070 as_dir=$dirpart/$fdir; as_fn_mkdir_p
39071 # echo "creating $dirpart/$file"
39072 echo '# dummy' > "$dirpart/$file"
39079 # See if we are running on zsh, and set the options which allow our
39080 # commands through without removal of \ escapes.
39081 if test -n "${ZSH_VERSION+set}" ; then
39082 setopt NO_GLOB_SUBST
39085 cfgfile="${ofile}T"
39086 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
39089 cat <<_LT_EOF >> "$cfgfile"
39092 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
39093 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
39094 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
39095 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
39097 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
39098 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
39100 # Written by Gordon Matzigkeit, 1996
39102 # This file is part of GNU Libtool.
39104 # GNU Libtool is free software; you can redistribute it and/or
39105 # modify it under the terms of the GNU General Public License as
39106 # published by the Free Software Foundation; either version 2 of
39107 # the License, or (at your option) any later version.
39109 # As a special exception to the GNU General Public License,
39110 # if you distribute this file as part of a program or library that
39111 # is built using GNU Libtool, you may include this file under the
39112 # same distribution terms that you use for the rest of that program.
39114 # GNU Libtool is distributed in the hope that it will be useful,
39115 # but WITHOUT ANY WARRANTY; without even the implied warranty of
39116 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39117 # GNU General Public License for more details.
39119 # You should have received a copy of the GNU General Public License
39120 # along with GNU Libtool; see the file COPYING. If not, a copy
39121 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
39122 # obtained by writing to the Free Software Foundation, Inc.,
39123 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
39126 # The names of the tagged configurations supported by this script.
39127 available_tags="CXX "
39129 # ### BEGIN LIBTOOL CONFIG
39131 # Whether or not to build shared libraries.
39132 build_libtool_libs=$enable_shared
39134 # Which release of libtool.m4 was used?
39135 macro_version=$macro_version
39136 macro_revision=$macro_revision
39138 # Whether or not to build static libraries.
39139 build_old_libs=$enable_static
39141 # What type of objects to build.
39144 # Whether or not to optimize for fast installation.
39145 fast_install=$enable_fast_install
39147 # Shell to use when invoking shell scripts.
39150 # An echo program that protects backslashes.
39154 host_alias=$host_alias
39158 # The build system.
39159 build_alias=$build_alias
39163 # A sed program that does not truncate output.
39166 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
39167 Xsed="\$SED -e 1s/^X//"
39169 # A grep program that handles long lines.
39175 # A literal string matcher.
39178 # A BSD- or MS-compatible name lister.
39181 # Whether we need soft or hard links.
39184 # What is the maximum length of a command?
39185 max_cmd_len=$max_cmd_len
39187 # Object file suffix (normally "o").
39190 # Executable file suffix (normally "").
39193 # whether the shell understands "unset".
39196 # turn spaces into newlines.
39199 # turn newlines into spaces.
39202 # convert \$build file names to \$host format.
39203 to_host_file_cmd=$lt_cv_to_host_file_cmd
39205 # convert \$build files to toolchain format.
39206 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
39208 # An object symbol dumper.
39209 OBJDUMP=$lt_OBJDUMP
39211 # Method to check whether dependent libraries are shared objects.
39212 deplibs_check_method=$lt_deplibs_check_method
39214 # Command to use when deplibs_check_method = "file_magic".
39215 file_magic_cmd=$lt_file_magic_cmd
39217 # How to find potential files when deplibs_check_method = "file_magic".
39218 file_magic_glob=$lt_file_magic_glob
39220 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
39221 want_nocaseglob=$lt_want_nocaseglob
39223 # DLL creation program.
39224 DLLTOOL=$lt_DLLTOOL
39226 # Command to associate shared and link libraries.
39227 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
39232 # Flags to create an archive.
39233 AR_FLAGS=$lt_AR_FLAGS
39235 # How to feed a file listing to the archiver.
39236 archiver_list_spec=$lt_archiver_list_spec
39238 # A symbol stripping program.
39241 # Commands used to install an old-style archive.
39243 old_postinstall_cmds=$lt_old_postinstall_cmds
39244 old_postuninstall_cmds=$lt_old_postuninstall_cmds
39246 # Whether to use a lock for old archive extraction.
39247 lock_old_archive_extraction=$lock_old_archive_extraction
39252 # LTCC compiler flags.
39253 LTCFLAGS=$lt_CFLAGS
39255 # Take the output of nm and produce a listing of raw symbols and C names.
39256 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39258 # Transform the output of nm in a proper C declaration.
39259 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39261 # Transform the output of nm in a C name address pair.
39262 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39264 # Transform the output of nm in a C name address pair when lib prefix is needed.
39265 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
39267 # Specify filename containing input files for \$NM.
39268 nm_file_list_spec=$lt_nm_file_list_spec
39270 # The root where to search for dependent libraries,and in which our libraries should be installed.
39271 lt_sysroot=$lt_sysroot
39273 # The name of the directory that contains temporary libtool files.
39276 # Used to examine libraries when file_magic_cmd begins with "file".
39277 MAGIC_CMD=$MAGIC_CMD
39279 # Must we lock files when doing compilation?
39280 need_locks=$lt_need_locks
39283 MANIFEST_TOOL=$lt_MANIFEST_TOOL
39285 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
39286 DSYMUTIL=$lt_DSYMUTIL
39288 # Tool to change global to local symbols on Mac OS X.
39291 # Tool to manipulate fat objects and archives on Mac OS X.
39294 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
39297 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
39298 OTOOL64=$lt_OTOOL64
39300 # Old archive suffix (normally "a").
39303 # Shared library suffix (normally ".so").
39304 shrext_cmds=$lt_shrext_cmds
39306 # The commands to extract the exported symbol list from a shared archive.
39307 extract_expsyms_cmds=$lt_extract_expsyms_cmds
39309 # Variables whose values should be saved in libtool wrapper scripts and
39310 # restored at link time.
39311 variables_saved_for_relink=$lt_variables_saved_for_relink
39313 # Do we need the "lib" prefix for modules?
39314 need_lib_prefix=$need_lib_prefix
39316 # Do we need a version for libraries?
39317 need_version=$need_version
39319 # Library versioning type.
39320 version_type=$version_type
39322 # Shared library runtime path variable.
39323 runpath_var=$runpath_var
39325 # Shared library path variable.
39326 shlibpath_var=$shlibpath_var
39328 # Is shlibpath searched before the hard-coded library search path?
39329 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39331 # Format of library name prefix.
39332 libname_spec=$lt_libname_spec
39334 # List of archive names. First name is the real one, the rest are links.
39335 # The last name is the one that the linker finds with -lNAME
39336 library_names_spec=$lt_library_names_spec
39338 # The coded name of the library, if different from the real name.
39339 soname_spec=$lt_soname_spec
39341 # Permission mode override for installation of shared libraries.
39342 install_override_mode=$lt_install_override_mode
39344 # Command to use after installation of a shared archive.
39345 postinstall_cmds=$lt_postinstall_cmds
39347 # Command to use after uninstallation of a shared archive.
39348 postuninstall_cmds=$lt_postuninstall_cmds
39350 # Commands used to finish a libtool library installation in a directory.
39351 finish_cmds=$lt_finish_cmds
39353 # As "finish_cmds", except a single script fragment to be evaled but
39355 finish_eval=$lt_finish_eval
39357 # Whether we should hardcode library paths into libraries.
39358 hardcode_into_libs=$hardcode_into_libs
39360 # Compile-time system search path for libraries.
39361 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39363 # Run-time system search path for libraries.
39364 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
39366 # Whether dlopen is supported.
39367 dlopen_support=$enable_dlopen
39369 # Whether dlopen of programs is supported.
39370 dlopen_self=$enable_dlopen_self
39372 # Whether dlopen of statically linked programs is supported.
39373 dlopen_self_static=$enable_dlopen_self_static
39375 # Commands to strip libraries.
39376 old_striplib=$lt_old_striplib
39377 striplib=$lt_striplib
39380 # The linker used to build libraries.
39383 # How to create reloadable object files.
39384 reload_flag=$lt_reload_flag
39385 reload_cmds=$lt_reload_cmds
39387 # Commands used to build an old-style archive.
39388 old_archive_cmds=$lt_old_archive_cmds
39390 # A language specific compiler.
39393 # Is the compiler the GNU compiler?
39396 # Compiler flag to turn off builtin functions.
39397 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39399 # Additional compiler flags for building library objects.
39400 pic_flag=$lt_lt_prog_compiler_pic
39402 # How to pass a linker flag through the compiler.
39403 wl=$lt_lt_prog_compiler_wl
39405 # Compiler flag to prevent dynamic linking.
39406 link_static_flag=$lt_lt_prog_compiler_static
39408 # Does compiler simultaneously support -c and -o options?
39409 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39411 # Whether or not to add -lc for building shared libraries.
39412 build_libtool_need_lc=$archive_cmds_need_lc
39414 # Whether or not to disallow shared libs when runtime libs are static.
39415 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39417 # Compiler flag to allow reflexive dlopens.
39418 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39420 # Compiler flag to generate shared objects directly from archives.
39421 whole_archive_flag_spec=$lt_whole_archive_flag_spec
39423 # Whether the compiler copes with passing no objects directly.
39424 compiler_needs_object=$lt_compiler_needs_object
39426 # Create an old-style archive from a shared archive.
39427 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39429 # Create a temporary old-style archive to link instead of a shared archive.
39430 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39432 # Commands used to build a shared archive.
39433 archive_cmds=$lt_archive_cmds
39434 archive_expsym_cmds=$lt_archive_expsym_cmds
39436 # Commands used to build a loadable module if different from building
39437 # a shared archive.
39438 module_cmds=$lt_module_cmds
39439 module_expsym_cmds=$lt_module_expsym_cmds
39441 # Whether we are building with GNU ld or not.
39442 with_gnu_ld=$lt_with_gnu_ld
39444 # Flag that allows shared libraries with undefined symbols to be built.
39445 allow_undefined_flag=$lt_allow_undefined_flag
39447 # Flag that enforces no undefined symbols.
39448 no_undefined_flag=$lt_no_undefined_flag
39450 # Flag to hardcode \$libdir into a binary during linking.
39451 # This must work even if \$libdir does not exist
39452 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39454 # If ld is used when linking, flag to hardcode \$libdir into a binary
39455 # during linking. This must work even if \$libdir does not exist.
39456 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
39458 # Whether we need a single "-rpath" flag with a separated argument.
39459 hardcode_libdir_separator=$lt_hardcode_libdir_separator
39461 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39462 # DIR into the resulting binary.
39463 hardcode_direct=$hardcode_direct
39465 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39466 # DIR into the resulting binary and the resulting library dependency is
39467 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39468 # library is relocated.
39469 hardcode_direct_absolute=$hardcode_direct_absolute
39471 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39472 # into the resulting binary.
39473 hardcode_minus_L=$hardcode_minus_L
39475 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39476 # into the resulting binary.
39477 hardcode_shlibpath_var=$hardcode_shlibpath_var
39479 # Set to "yes" if building a shared library automatically hardcodes DIR
39480 # into the library and all subsequent libraries and executables linked
39482 hardcode_automatic=$hardcode_automatic
39484 # Set to yes if linker adds runtime paths of dependent libraries
39485 # to runtime path list.
39486 inherit_rpath=$inherit_rpath
39488 # Whether libtool must link a program against all its dependency libraries.
39489 link_all_deplibs=$link_all_deplibs
39491 # Set to "yes" if exported symbols are required.
39492 always_export_symbols=$always_export_symbols
39494 # The commands to list exported symbols.
39495 export_symbols_cmds=$lt_export_symbols_cmds
39497 # Symbols that should not be listed in the preloaded symbols.
39498 exclude_expsyms=$lt_exclude_expsyms
39500 # Symbols that must always be exported.
39501 include_expsyms=$lt_include_expsyms
39503 # Commands necessary for linking programs (against libraries) with templates.
39504 prelink_cmds=$lt_prelink_cmds
39506 # Commands necessary for finishing linking programs.
39507 postlink_cmds=$lt_postlink_cmds
39509 # Specify filename containing input files.
39510 file_list_spec=$lt_file_list_spec
39512 # How to hardcode a shared library path into an executable.
39513 hardcode_action=$hardcode_action
39515 # The directories searched by this compiler when creating a shared library.
39516 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39518 # Dependencies to place before and after the objects being linked to
39519 # create a shared library.
39520 predep_objects=$lt_predep_objects
39521 postdep_objects=$lt_postdep_objects
39522 predeps=$lt_predeps
39523 postdeps=$lt_postdeps
39525 # The library search path used internally by the compiler when linking
39526 # a shared library.
39527 compiler_lib_search_path=$lt_compiler_lib_search_path
39529 # ### END LIBTOOL CONFIG
39535 cat <<\_LT_EOF >> "$cfgfile"
39536 # AIX sometimes has problems with the GCC collect2 program. For some
39537 # reason, if we set the COLLECT_NAMES environment variable, the problems
39538 # vanish in a puff of smoke.
39539 if test "X${COLLECT_NAMES+set}" != Xset; then
39541 export COLLECT_NAMES
39548 ltmain="$ac_aux_dir/ltmain.sh"
39551 # We use sed instead of cat because bash on DJGPP gets confused if
39552 # if finds mixed CR/LF and LF-only lines. Since sed operates in
39553 # text mode, it properly converts lines to CR/LF. This bash problem
39554 # is reportedly fixed, but why not run on old versions too?
39555 sed '$q' "$ltmain" >> "$cfgfile" \
39556 || (rm -f "$cfgfile"; exit 1)
39558 if test x"$xsi_shell" = xyes; then
39559 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
39563 \ */*) func_dirname_result="${1%/*}${2}" ;;\
39564 \ * ) func_dirname_result="${3}" ;;\
39566 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
39567 && mv -f "$cfgfile.tmp" "$cfgfile" \
39568 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39569 test 0 -eq $? || _lt_function_replace_fail=:
39572 sed -e '/^func_basename ()$/,/^} # func_basename /c\
39575 \ func_basename_result="${1##*/}"\
39576 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
39577 && mv -f "$cfgfile.tmp" "$cfgfile" \
39578 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39579 test 0 -eq $? || _lt_function_replace_fail=:
39582 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
39583 func_dirname_and_basename ()\
39586 \ */*) func_dirname_result="${1%/*}${2}" ;;\
39587 \ * ) func_dirname_result="${3}" ;;\
39589 \ func_basename_result="${1##*/}"\
39590 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
39591 && mv -f "$cfgfile.tmp" "$cfgfile" \
39592 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39593 test 0 -eq $? || _lt_function_replace_fail=:
39596 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
39599 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39600 \ # positional parameters, so assign one to ordinary parameter first.\
39601 \ func_stripname_result=${3}\
39602 \ func_stripname_result=${func_stripname_result#"${1}"}\
39603 \ func_stripname_result=${func_stripname_result%"${2}"}\
39604 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39605 && mv -f "$cfgfile.tmp" "$cfgfile" \
39606 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39607 test 0 -eq $? || _lt_function_replace_fail=:
39610 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39611 func_split_long_opt ()\
39613 \ func_split_long_opt_name=${1%%=*}\
39614 \ func_split_long_opt_arg=${1#*=}\
39615 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39616 && mv -f "$cfgfile.tmp" "$cfgfile" \
39617 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39618 test 0 -eq $? || _lt_function_replace_fail=:
39621 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39622 func_split_short_opt ()\
39624 \ func_split_short_opt_arg=${1#??}\
39625 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39626 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39627 && mv -f "$cfgfile.tmp" "$cfgfile" \
39628 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39629 test 0 -eq $? || _lt_function_replace_fail=:
39632 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39636 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39637 \ *) func_lo2o_result=${1} ;;\
39639 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39640 && mv -f "$cfgfile.tmp" "$cfgfile" \
39641 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39642 test 0 -eq $? || _lt_function_replace_fail=:
39645 sed -e '/^func_xform ()$/,/^} # func_xform /c\
39648 func_xform_result=${1%.*}.lo\
39649 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39650 && mv -f "$cfgfile.tmp" "$cfgfile" \
39651 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39652 test 0 -eq $? || _lt_function_replace_fail=:
39655 sed -e '/^func_arith ()$/,/^} # func_arith /c\
39658 func_arith_result=$(( $* ))\
39659 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39660 && mv -f "$cfgfile.tmp" "$cfgfile" \
39661 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39662 test 0 -eq $? || _lt_function_replace_fail=:
39665 sed -e '/^func_len ()$/,/^} # func_len /c\
39668 func_len_result=${#1}\
39669 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39670 && mv -f "$cfgfile.tmp" "$cfgfile" \
39671 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39672 test 0 -eq $? || _lt_function_replace_fail=:
39676 if test x"$lt_shell_append" = xyes; then
39677 sed -e '/^func_append ()$/,/^} # func_append /c\
39680 eval "${1}+=\\${2}"\
39681 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39682 && mv -f "$cfgfile.tmp" "$cfgfile" \
39683 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39684 test 0 -eq $? || _lt_function_replace_fail=:
39687 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39688 func_append_quoted ()\
39690 \ func_quote_for_eval "${2}"\
39691 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39692 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39693 && mv -f "$cfgfile.tmp" "$cfgfile" \
39694 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39695 test 0 -eq $? || _lt_function_replace_fail=:
39698 # Save a `func_append' function call where possible by direct use of '+='
39699 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39700 && mv -f "$cfgfile.tmp" "$cfgfile" \
39701 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39702 test 0 -eq $? || _lt_function_replace_fail=:
39704 # Save a `func_append' function call even when '+=' is not available
39705 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39706 && mv -f "$cfgfile.tmp" "$cfgfile" \
39707 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39708 test 0 -eq $? || _lt_function_replace_fail=:
39711 if test x"$_lt_function_replace_fail" = x":"; then
39712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39713 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39717 mv -f "$cfgfile" "$ofile" ||
39718 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39722 cat <<_LT_EOF >> "$ofile"
39724 # ### BEGIN LIBTOOL TAG CONFIG: CXX
39726 # The linker used to build libraries.
39729 # How to create reloadable object files.
39730 reload_flag=$lt_reload_flag_CXX
39731 reload_cmds=$lt_reload_cmds_CXX
39733 # Commands used to build an old-style archive.
39734 old_archive_cmds=$lt_old_archive_cmds_CXX
39736 # A language specific compiler.
39737 CC=$lt_compiler_CXX
39739 # Is the compiler the GNU compiler?
39742 # Compiler flag to turn off builtin functions.
39743 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39745 # Additional compiler flags for building library objects.
39746 pic_flag=$lt_lt_prog_compiler_pic_CXX
39748 # How to pass a linker flag through the compiler.
39749 wl=$lt_lt_prog_compiler_wl_CXX
39751 # Compiler flag to prevent dynamic linking.
39752 link_static_flag=$lt_lt_prog_compiler_static_CXX
39754 # Does compiler simultaneously support -c and -o options?
39755 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39757 # Whether or not to add -lc for building shared libraries.
39758 build_libtool_need_lc=$archive_cmds_need_lc_CXX
39760 # Whether or not to disallow shared libs when runtime libs are static.
39761 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39763 # Compiler flag to allow reflexive dlopens.
39764 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39766 # Compiler flag to generate shared objects directly from archives.
39767 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39769 # Whether the compiler copes with passing no objects directly.
39770 compiler_needs_object=$lt_compiler_needs_object_CXX
39772 # Create an old-style archive from a shared archive.
39773 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39775 # Create a temporary old-style archive to link instead of a shared archive.
39776 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39778 # Commands used to build a shared archive.
39779 archive_cmds=$lt_archive_cmds_CXX
39780 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39782 # Commands used to build a loadable module if different from building
39783 # a shared archive.
39784 module_cmds=$lt_module_cmds_CXX
39785 module_expsym_cmds=$lt_module_expsym_cmds_CXX
39787 # Whether we are building with GNU ld or not.
39788 with_gnu_ld=$lt_with_gnu_ld_CXX
39790 # Flag that allows shared libraries with undefined symbols to be built.
39791 allow_undefined_flag=$lt_allow_undefined_flag_CXX
39793 # Flag that enforces no undefined symbols.
39794 no_undefined_flag=$lt_no_undefined_flag_CXX
39796 # Flag to hardcode \$libdir into a binary during linking.
39797 # This must work even if \$libdir does not exist
39798 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39800 # If ld is used when linking, flag to hardcode \$libdir into a binary
39801 # during linking. This must work even if \$libdir does not exist.
39802 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
39804 # Whether we need a single "-rpath" flag with a separated argument.
39805 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39807 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39808 # DIR into the resulting binary.
39809 hardcode_direct=$hardcode_direct_CXX
39811 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39812 # DIR into the resulting binary and the resulting library dependency is
39813 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39814 # library is relocated.
39815 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39817 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39818 # into the resulting binary.
39819 hardcode_minus_L=$hardcode_minus_L_CXX
39821 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39822 # into the resulting binary.
39823 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39825 # Set to "yes" if building a shared library automatically hardcodes DIR
39826 # into the library and all subsequent libraries and executables linked
39828 hardcode_automatic=$hardcode_automatic_CXX
39830 # Set to yes if linker adds runtime paths of dependent libraries
39831 # to runtime path list.
39832 inherit_rpath=$inherit_rpath_CXX
39834 # Whether libtool must link a program against all its dependency libraries.
39835 link_all_deplibs=$link_all_deplibs_CXX
39837 # Set to "yes" if exported symbols are required.
39838 always_export_symbols=$always_export_symbols_CXX
39840 # The commands to list exported symbols.
39841 export_symbols_cmds=$lt_export_symbols_cmds_CXX
39843 # Symbols that should not be listed in the preloaded symbols.
39844 exclude_expsyms=$lt_exclude_expsyms_CXX
39846 # Symbols that must always be exported.
39847 include_expsyms=$lt_include_expsyms_CXX
39849 # Commands necessary for linking programs (against libraries) with templates.
39850 prelink_cmds=$lt_prelink_cmds_CXX
39852 # Commands necessary for finishing linking programs.
39853 postlink_cmds=$lt_postlink_cmds_CXX
39855 # Specify filename containing input files.
39856 file_list_spec=$lt_file_list_spec_CXX
39858 # How to hardcode a shared library path into an executable.
39859 hardcode_action=$hardcode_action_CXX
39861 # The directories searched by this compiler when creating a shared library.
39862 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39864 # Dependencies to place before and after the objects being linked to
39865 # create a shared library.
39866 predep_objects=$lt_predep_objects_CXX
39867 postdep_objects=$lt_postdep_objects_CXX
39868 predeps=$lt_predeps_CXX
39869 postdeps=$lt_postdeps_CXX
39871 # The library search path used internally by the compiler when linking
39872 # a shared library.
39873 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39875 # ### END LIBTOOL TAG CONFIG: CXX
39879 "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 ;;
39880 "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
39881 "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
39882 "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
39883 "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
39884 "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
39885 "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
39886 "scripts/ntpver":F) chmod +x scripts/ntpver ;;
39887 "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
39888 "scripts/summary":F) chmod +x scripts/summary ;;
39889 "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;;
39897 ac_clean_files=$ac_clean_files_save
39899 test $ac_write_fail = 0 ||
39900 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39903 # configure is writing to config.log, and then calls config.status.
39904 # config.status does its own redirection, appending to config.log.
39905 # Unfortunately, on DOS this fails, as config.log is still kept open
39906 # by configure, so config.status won't be able to write to it; its
39907 # output is simply discarded. So we exec the FD to /dev/null,
39908 # effectively closing config.log, so it can be properly (re)opened and
39909 # appended to by config.status. When coming back to configure, we
39910 # need to make the FD available again.
39911 if test "$no_create" != yes; then
39913 ac_config_status_args=
39914 test "$silent" = yes &&
39915 ac_config_status_args="$ac_config_status_args --quiet"
39917 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39919 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39920 # would make configure fail if this is the last instruction.
39921 $ac_cs_success || as_fn_exit 1
39925 # CONFIG_SUBDIRS section.
39927 if test "$no_recursion" != yes; then
39929 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
39930 # so they do not pile up.
39931 ac_sub_configure_args=
39933 eval "set x $ac_configure_args"
39937 if test -n "$ac_prev"; then
39942 -cache-file | --cache-file | --cache-fil | --cache-fi \
39943 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
39944 ac_prev=cache_file ;;
39945 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
39946 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
39949 --config-cache | -C)
39951 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
39953 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
39955 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
39957 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
39959 --disable-option-checking)
39963 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
39965 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
39969 # Always prepend --prefix to ensure using the same prefix
39970 # in subdir configurations.
39971 ac_arg="--prefix=$prefix"
39973 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
39975 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
39978 if test "$silent" = yes; then
39979 ac_sub_configure_args="--silent $ac_sub_configure_args"
39982 # Always prepend --disable-option-checking to silence warnings, since
39983 # different subdirs can have different --enable and --with options.
39984 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
39987 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
39989 # Do not complain, so a configure script can configure whichever
39990 # parts of a large source tree are present.
39991 test -d "$srcdir/$ac_dir" || continue
39993 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
39994 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
39995 $as_echo "$ac_msg" >&6
39996 as_dir="$ac_dir"; as_fn_mkdir_p
40000 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40002 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
40003 # A ".." for each directory in $ac_dir_suffix.
40004 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
40005 case $ac_top_builddir_sub in
40006 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40007 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40010 ac_abs_top_builddir=$ac_pwd
40011 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40012 # for backward compatibility:
40013 ac_top_builddir=$ac_top_build_prefix
40016 .) # We are building in place.
40018 ac_top_srcdir=$ac_top_builddir_sub
40019 ac_abs_top_srcdir=$ac_pwd ;;
40020 [\\/]* | ?:[\\/]* ) # Absolute name.
40021 ac_srcdir=$srcdir$ac_dir_suffix;
40022 ac_top_srcdir=$srcdir
40023 ac_abs_top_srcdir=$srcdir ;;
40024 *) # Relative name.
40025 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40026 ac_top_srcdir=$ac_top_build_prefix$srcdir
40027 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40029 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40034 # Check for guested configure; otherwise get Cygnus style configure.
40035 if test -f "$ac_srcdir/configure.gnu"; then
40036 ac_sub_configure=$ac_srcdir/configure.gnu
40037 elif test -f "$ac_srcdir/configure"; then
40038 ac_sub_configure=$ac_srcdir/configure
40039 elif test -f "$ac_srcdir/configure.in"; then
40040 # This should be Cygnus configure.
40041 ac_sub_configure=$ac_aux_dir/configure
40043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
40044 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
40048 # The recursion is here.
40049 if test -n "$ac_sub_configure"; then
40050 # Make the cache file name correct relative to the subdirectory.
40051 case $cache_file in
40052 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
40053 *) # Relative name.
40054 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
40057 { $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
40058 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
40059 # The eval makes quoting arguments work.
40060 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
40061 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
40062 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
40068 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
40069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
40070 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}