2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ntp 4.2.8p8.
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.8p8'
594 PACKAGE_STRING='ntp 4.2.8p8'
595 PACKAGE_BUGREPORT='http://bugs.ntp.org./'
596 PACKAGE_URL='http://www.ntp.org./'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
635 enable_option_checking=no
636 ac_subst_vars='am__EXEEXT_FALSE
642 BUILD_TEST_NTP_SIGND_FALSE
643 BUILD_TEST_NTP_SIGND_TRUE
644 BUILD_TEST_NTP_SCANNER_FALSE
645 BUILD_TEST_NTP_SCANNER_TRUE
646 BUILD_TEST_NTP_RESTRICT_FALSE
647 BUILD_TEST_NTP_RESTRICT_TRUE
648 GTEST_AVAILABLE_FALSE
655 UNITYBUILD_AVAILABLE_FALSE
656 UNITYBUILD_AVAILABLE_TRUE
658 HAVE_LEAPSMEARINTERVAL
659 SAVECONFIG_ENABLED_FALSE
660 SAVECONFIG_ENABLED_TRUE
696 LIBISC_PTHREADS_NOTHREADS
706 NTP_CROSSCOMPILE_FALSE
707 NTP_CROSSCOMPILE_TRUE
719 INSTALL_LIBOPTS_FALSE
722 GL_GENERATE_STDNORETURN_H_FALSE
723 GL_GENERATE_STDNORETURN_H_TRUE
746 INSTALL_UPDATE_LEAP_FALSE
747 INSTALL_UPDATE_LEAP_TRUE
788 INSTALL_NTPSWEEP_FALSE
789 INSTALL_NTPSWEEP_TRUE
831 WANT_CALC_TICKADJ_MS_FALSE
832 WANT_CALC_TICKADJ_MS_TRUE
887 INSTALL_STRIP_PROGRAM
929 program_transform_name
940 ac_subst_files='calc_tickadj_opts
947 enable_option_checking
949 enable_dependency_tracking
960 enable_libopts_install
962 enable_local_libevent
965 enable_thread_support
979 enable_ignore_dns_errors
1038 enable_openssl_random
1041 enable_accurate_adjtime
1050 enable_hourly_todr_sync
1051 enable_kernel_fll_bug
1054 enable_irig_sawtooth
1062 enable_dynamic_interleave
1064 enable_problem_tests
1066 ac_precious_vars='build_alias
1081 ac_subdirs_all='sntp'
1083 # Initialize some variables set by options.
1085 ac_init_version=false
1086 ac_unrecognized_opts=
1087 ac_unrecognized_sep=
1088 # The variables have the same names as the options, with
1089 # dashes changed to underlines.
1090 cache_file=/dev/null
1097 program_transform_name=s,x,x,
1105 # Installation directory options.
1106 # These are left unexpanded so users can "make install exec_prefix=/foo"
1107 # and all the variables that are supposed to be based on exec_prefix
1108 # by default will actually change.
1109 # Use braces instead of parens because sh, perl, etc. also accept them.
1110 # (The list follows the same order as the GNU Coding Standards.)
1111 bindir='${exec_prefix}/bin'
1112 sbindir='${exec_prefix}/sbin'
1113 libexecdir='${exec_prefix}/libexec'
1114 datarootdir='${prefix}/share'
1115 datadir='${datarootdir}'
1116 sysconfdir='${prefix}/etc'
1117 sharedstatedir='${prefix}/com'
1118 localstatedir='${prefix}/var'
1119 includedir='${prefix}/include'
1120 oldincludedir='/usr/include'
1121 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1122 infodir='${datarootdir}/info'
1127 libdir='${exec_prefix}/lib'
1128 localedir='${datarootdir}/locale'
1129 mandir='${datarootdir}/man'
1135 # If the previous option needs an argument, assign it.
1136 if test -n "$ac_prev"; then
1137 eval $ac_prev=\$ac_option
1143 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1148 # Accept the important Cygnus configure options, so we can diagnose typos.
1150 case $ac_dashdash$ac_option in
1154 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1156 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1157 bindir=$ac_optarg ;;
1159 -build | --build | --buil | --bui | --bu)
1160 ac_prev=build_alias ;;
1161 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1162 build_alias=$ac_optarg ;;
1164 -cache-file | --cache-file | --cache-fil | --cache-fi \
1165 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1166 ac_prev=cache_file ;;
1167 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1168 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1169 cache_file=$ac_optarg ;;
1171 --config-cache | -C)
1172 cache_file=config.cache ;;
1174 -datadir | --datadir | --datadi | --datad)
1176 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1177 datadir=$ac_optarg ;;
1179 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1180 | --dataroo | --dataro | --datar)
1181 ac_prev=datarootdir ;;
1182 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1183 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1184 datarootdir=$ac_optarg ;;
1186 -disable-* | --disable-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid feature name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1195 "enable_$ac_useropt"
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1200 eval enable_$ac_useropt=no ;;
1202 -docdir | --docdir | --docdi | --doc | --do)
1204 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1205 docdir=$ac_optarg ;;
1207 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1209 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1210 dvidir=$ac_optarg ;;
1212 -enable-* | --enable-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid feature name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1221 "enable_$ac_useropt"
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1226 eval enable_$ac_useropt=\$ac_optarg ;;
1228 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1229 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1230 | --exec | --exe | --ex)
1231 ac_prev=exec_prefix ;;
1232 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1233 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1234 | --exec=* | --exe=* | --ex=*)
1235 exec_prefix=$ac_optarg ;;
1237 -gas | --gas | --ga | --g)
1238 # Obsolete; use --with-gas.
1241 -help | --help | --hel | --he | -h)
1242 ac_init_help=long ;;
1243 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1244 ac_init_help=recursive ;;
1245 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1246 ac_init_help=short ;;
1248 -host | --host | --hos | --ho)
1249 ac_prev=host_alias ;;
1250 -host=* | --host=* | --hos=* | --ho=*)
1251 host_alias=$ac_optarg ;;
1253 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1255 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1257 htmldir=$ac_optarg ;;
1259 -includedir | --includedir | --includedi | --included | --include \
1260 | --includ | --inclu | --incl | --inc)
1261 ac_prev=includedir ;;
1262 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1263 | --includ=* | --inclu=* | --incl=* | --inc=*)
1264 includedir=$ac_optarg ;;
1266 -infodir | --infodir | --infodi | --infod | --info | --inf)
1268 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1269 infodir=$ac_optarg ;;
1271 -libdir | --libdir | --libdi | --libd)
1273 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1274 libdir=$ac_optarg ;;
1276 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1277 | --libexe | --libex | --libe)
1278 ac_prev=libexecdir ;;
1279 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1280 | --libexe=* | --libex=* | --libe=*)
1281 libexecdir=$ac_optarg ;;
1283 -localedir | --localedir | --localedi | --localed | --locale)
1284 ac_prev=localedir ;;
1285 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1286 localedir=$ac_optarg ;;
1288 -localstatedir | --localstatedir | --localstatedi | --localstated \
1289 | --localstate | --localstat | --localsta | --localst | --locals)
1290 ac_prev=localstatedir ;;
1291 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1292 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1293 localstatedir=$ac_optarg ;;
1295 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1297 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1298 mandir=$ac_optarg ;;
1300 -nfp | --nfp | --nf)
1301 # Obsolete; use --without-fp.
1304 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1305 | --no-cr | --no-c | -n)
1308 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1309 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1312 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1313 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1314 | --oldin | --oldi | --old | --ol | --o)
1315 ac_prev=oldincludedir ;;
1316 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1317 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1318 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1319 oldincludedir=$ac_optarg ;;
1321 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1323 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1324 prefix=$ac_optarg ;;
1326 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1327 | --program-pre | --program-pr | --program-p)
1328 ac_prev=program_prefix ;;
1329 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1330 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1331 program_prefix=$ac_optarg ;;
1333 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1334 | --program-suf | --program-su | --program-s)
1335 ac_prev=program_suffix ;;
1336 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1337 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1338 program_suffix=$ac_optarg ;;
1340 -program-transform-name | --program-transform-name \
1341 | --program-transform-nam | --program-transform-na \
1342 | --program-transform-n | --program-transform- \
1343 | --program-transform | --program-transfor \
1344 | --program-transfo | --program-transf \
1345 | --program-trans | --program-tran \
1346 | --progr-tra | --program-tr | --program-t)
1347 ac_prev=program_transform_name ;;
1348 -program-transform-name=* | --program-transform-name=* \
1349 | --program-transform-nam=* | --program-transform-na=* \
1350 | --program-transform-n=* | --program-transform-=* \
1351 | --program-transform=* | --program-transfor=* \
1352 | --program-transfo=* | --program-transf=* \
1353 | --program-trans=* | --program-tran=* \
1354 | --progr-tra=* | --program-tr=* | --program-t=*)
1355 program_transform_name=$ac_optarg ;;
1357 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1359 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1360 pdfdir=$ac_optarg ;;
1362 -psdir | --psdir | --psdi | --psd | --ps)
1364 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1368 | -silent | --silent | --silen | --sile | --sil)
1371 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1373 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1375 sbindir=$ac_optarg ;;
1377 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1378 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1379 | --sharedst | --shareds | --shared | --share | --shar \
1381 ac_prev=sharedstatedir ;;
1382 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1383 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1384 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1386 sharedstatedir=$ac_optarg ;;
1388 -site | --site | --sit)
1390 -site=* | --site=* | --sit=*)
1393 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1395 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1396 srcdir=$ac_optarg ;;
1398 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1399 | --syscon | --sysco | --sysc | --sys | --sy)
1400 ac_prev=sysconfdir ;;
1401 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1402 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1403 sysconfdir=$ac_optarg ;;
1405 -target | --target | --targe | --targ | --tar | --ta | --t)
1406 ac_prev=target_alias ;;
1407 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1408 target_alias=$ac_optarg ;;
1410 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1413 -version | --version | --versio | --versi | --vers | -V)
1414 ac_init_version=: ;;
1417 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1418 # Reject names that are not valid shell variable names.
1419 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1420 as_fn_error $? "invalid package name: $ac_useropt"
1421 ac_useropt_orig=$ac_useropt
1422 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1423 case $ac_user_opts in
1427 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1428 ac_unrecognized_sep=', ';;
1430 eval with_$ac_useropt=\$ac_optarg ;;
1432 -without-* | --without-*)
1433 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1434 # Reject names that are not valid shell variable names.
1435 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1436 as_fn_error $? "invalid package name: $ac_useropt"
1437 ac_useropt_orig=$ac_useropt
1438 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1439 case $ac_user_opts in
1443 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1444 ac_unrecognized_sep=', ';;
1446 eval with_$ac_useropt=no ;;
1449 # Obsolete; use --with-x.
1452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1453 | --x-incl | --x-inc | --x-in | --x-i)
1454 ac_prev=x_includes ;;
1455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1457 x_includes=$ac_optarg ;;
1459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1461 ac_prev=x_libraries ;;
1462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1464 x_libraries=$ac_optarg ;;
1466 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1467 Try \`$0 --help' for more information"
1471 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1472 # Reject names that are not valid shell variable names.
1473 case $ac_envvar in #(
1474 '' | [0-9]* | *[!_$as_cr_alnum]* )
1475 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1477 eval $ac_envvar=\$ac_optarg
1478 export $ac_envvar ;;
1481 # FIXME: should be removed in autoconf 3.0.
1482 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1483 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1484 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1485 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1491 if test -n "$ac_prev"; then
1492 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1493 as_fn_error $? "missing argument to $ac_option"
1496 if test -n "$ac_unrecognized_opts"; then
1497 case $enable_option_checking in
1499 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1500 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1504 # Check all directory arguments for consistency.
1505 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1506 datadir sysconfdir sharedstatedir localstatedir includedir \
1507 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1508 libdir localedir mandir
1510 eval ac_val=\$$ac_var
1511 # Remove trailing slashes.
1514 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1515 eval $ac_var=\$ac_val;;
1517 # Be sure to have absolute directory names.
1519 [\\/$]* | ?:[\\/]* ) continue;;
1520 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1522 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1525 # There might be people who depend on the old broken behavior: `$host'
1526 # used to hold the argument of --host etc.
1527 # FIXME: To remove some day.
1530 target=$target_alias
1532 # FIXME: To remove some day.
1533 if test "x$host_alias" != x; then
1534 if test "x$build_alias" = x; then
1535 cross_compiling=maybe
1536 elif test "x$build_alias" != "x$host_alias"; then
1542 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1544 test "$silent" = yes && exec 6>/dev/null
1547 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1548 ac_ls_di=`ls -di .` &&
1549 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1550 as_fn_error $? "working directory cannot be determined"
1551 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1552 as_fn_error $? "pwd does not report name of working directory"
1555 # Find the source files, if location was not specified.
1556 if test -z "$srcdir"; then
1557 ac_srcdir_defaulted=yes
1558 # Try the directory containing this script, then the parent directory.
1559 ac_confdir=`$as_dirname -- "$as_myself" ||
1560 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1561 X"$as_myself" : 'X\(//\)[^/]' \| \
1562 X"$as_myself" : 'X\(//\)$' \| \
1563 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1564 $as_echo X"$as_myself" |
1565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1583 if test ! -r "$srcdir/$ac_unique_file"; then
1587 ac_srcdir_defaulted=no
1589 if test ! -r "$srcdir/$ac_unique_file"; then
1590 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1591 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1593 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1595 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1597 # When building in place, set srcdir=.
1598 if test "$ac_abs_confdir" = "$ac_pwd"; then
1601 # Remove unnecessary trailing slashes from srcdir.
1602 # Double slashes in file names in object file debugging info
1603 # mess up M-x gdb in Emacs.
1605 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1607 for ac_var in $ac_precious_vars; do
1608 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1609 eval ac_env_${ac_var}_value=\$${ac_var}
1610 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1611 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1615 # Report the --help message.
1617 if test "$ac_init_help" = "long"; then
1618 # Omit some internal or obsolete options to make the list less imposing.
1619 # This message is too long to be a string in the A/UX 3.1 sh.
1621 \`configure' configures ntp 4.2.8p8 to adapt to many kinds of systems.
1623 Usage: $0 [OPTION]... [VAR=VALUE]...
1625 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1626 VAR=VALUE. See below for descriptions of some of the useful variables.
1628 Defaults for the options are specified in brackets.
1631 -h, --help display this help and exit
1632 --help=short display options specific to this package
1633 --help=recursive display the short help of all the included packages
1634 -V, --version display version information and exit
1635 -q, --quiet, --silent do not print \`checking ...' messages
1636 --cache-file=FILE cache test results in FILE [disabled]
1637 -C, --config-cache alias for \`--cache-file=config.cache'
1638 -n, --no-create do not create output files
1639 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1641 Installation directories:
1642 --prefix=PREFIX install architecture-independent files in PREFIX
1643 [$ac_default_prefix]
1644 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1647 By default, \`make install' will install all the files in
1648 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1649 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1650 for instance \`--prefix=\$HOME'.
1652 For better control, use the options below.
1654 Fine tuning of the installation directories:
1655 --bindir=DIR user executables [EPREFIX/bin]
1656 --sbindir=DIR system admin executables [EPREFIX/sbin]
1657 --libexecdir=DIR program executables [EPREFIX/libexec]
1658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1661 --libdir=DIR object code libraries [EPREFIX/lib]
1662 --includedir=DIR C header files [PREFIX/include]
1663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1664 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1665 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1666 --infodir=DIR info documentation [DATAROOTDIR/info]
1667 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1668 --mandir=DIR man documentation [DATAROOTDIR/man]
1669 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp]
1670 --htmldir=DIR html documentation [DOCDIR]
1671 --dvidir=DIR dvi documentation [DOCDIR]
1672 --pdfdir=DIR pdf documentation [DOCDIR]
1673 --psdir=DIR ps documentation [DOCDIR]
1679 --program-prefix=PREFIX prepend PREFIX to installed program names
1680 --program-suffix=SUFFIX append SUFFIX to installed program names
1681 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1684 --build=BUILD configure for building on BUILD [guessed]
1685 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1689 if test -n "$ac_init_help"; then
1690 case $ac_init_help in
1691 short | recursive ) echo "Configuration of ntp 4.2.8p8:";;
1695 Optional Features and Packages:
1696 --disable-option-checking ignore unrecognized --enable/--with options
1697 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1698 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1699 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1700 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1701 --enable-silent-rules less verbose build output (undo: "make V=1")
1702 --disable-silent-rules verbose build output (undo: "make V=0")
1703 --enable-dependency-tracking
1704 do not reject slow dependency extractors
1705 --disable-dependency-tracking
1706 speeds up one-time build
1707 --with-locfile=XXX os-specific or "legacy"
1708 --enable-shared[=PKGS] build shared libraries [default=no]
1709 --enable-static[=PKGS] build static libraries [default=yes]
1710 --with-pic try to use only PIC/non-PIC objects [default=use
1712 --enable-fast-install[=PKGS]
1713 optimize for fast installation [default=yes]
1714 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1715 --with-sysroot=DIR Search for dependent libraries within DIR
1716 (or the compiler's sysroot if not specified).
1717 --disable-libtool-lock avoid locking (might break parallel builds)
1718 --disable-nls disable nls support in libopts
1719 --enable-local-libopts Use the supplied libopts tearoff code
1720 --enable-libopts-install
1721 Install libopts with client installation
1722 --with-autoopts-config specify the config-info script
1723 --enable-local-libevent Force using the supplied libevent tearoff code
1724 --with-lineeditlibs edit,editline (readline may be specified if desired)
1725 defaults: + yes, - no, s system-specific
1726 --enable-debugging + include ntpd debugging code
1727 --enable-thread-support s use threads (+ if available)
1728 --with-threads with threads [auto]
1729 --with-yielding-select with yielding select [auto]
1730 --enable-c99-snprintf s force replacement
1731 --enable-clockctl s Use /dev/clockctl for non-root clock control
1732 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1733 --enable-solarisprivs + Use Solaris privileges for non-root clock control
1734 --with-arlib - deprecated, arlib not distributed
1735 --with-net-snmp-config + =net-snmp-config
1736 --enable-libseccomp EXPERIMENTAL: enable support for libseccomp
1737 sandboxing (default is no)
1738 --with-stack-limit ? =50 (200 for openbsd) 4k pages
1739 --with-memlock ? =32 (-1 on linux) megabytes
1740 --enable-debug-timing - include processing time debugging code (costs
1742 --enable-dst-minutes =60 minutes per DST adjustment
1743 --enable-ignore-dns-errors
1744 - retry DNS queries on any error
1745 --enable-BANCOMM - Datum/Bancomm bc635/VME interface
1746 --enable-GPSVME - TrueTime GPS receiver/VME interface
1747 --enable-all-clocks + include all suitable non-PARSE clocks:
1748 --enable-ACTS s ACTS modem service
1749 --enable-ARBITER + Arbiter 1088A/B GPS receiver
1750 --enable-ARCRON-MSF + Arcron MSF receiver
1751 --enable-AS2201 + Austron 2200A/2201A GPS receiver
1752 --enable-ATOM s ATOM PPS interface
1753 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver
1754 --enable-CHU + CHU modem/decoder
1755 --enable-AUDIO-CHU s CHU audio/decoder
1756 --enable-DATUM s Datum Programmable Time System
1757 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock
1758 --enable-FG + Forum Graphic GPS
1759 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver
1760 --enable-HOPFSERIAL + hopf serial clock device
1761 --enable-HOPFPCI + hopf 6039 PCI board
1762 --enable-HPGPS + HP 58503A GPS receiver
1763 --enable-IRIG s IRIG audio decoder
1764 --enable-JJY + JJY receiver
1765 --enable-JUPITER s Rockwell Jupiter GPS receiver
1766 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver
1767 --enable-LOCAL-CLOCK + local clock reference
1768 --enable-MX4200 s Magnavox MX4200 GPS receiver
1769 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver
1770 --enable-NMEA + NMEA GPS receiver
1771 --enable-GPSD + GPSD JSON receiver
1772 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver
1773 --enable-PALISADE s Palisade clock
1774 --enable-PCF + Conrad parallel port radio clock
1775 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver
1776 --enable-RIPENCC - RIPENCC specific Trimble driver
1777 --enable-SHM s SHM clock attached thru shared memory
1778 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver
1779 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1780 --enable-TRUETIME s Kinemetrics/TrueTime receivers
1781 --enable-TT560 - TrueTime 560 IRIG-B decoder
1782 --enable-ULINK + Ultralink WWVB receiver
1783 --enable-TSYNCPCI s Spectracom TSYNC timing board
1784 --enable-WWV s WWV Audio receiver
1785 --enable-ZYFER + Zyfer GPStarplus receiver
1786 --enable-parse-clocks - include all suitable PARSE clocks:
1787 --enable-COMPUTIME s Diem Computime Radio Clock
1788 --enable-DCF7000 s ELV/DCF7000 clock
1789 --enable-HOPF6021 s HOPF 6021 clock
1790 --enable-MEINBERG s Meinberg clocks
1791 --enable-RAWDCF s DCF77 raw time code
1792 --enable-RCC8000 s RCC 8000 clock
1793 --enable-SCHMID s Schmid DCF77 clock
1794 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol
1795 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol
1796 --enable-WHARTON s WHARTON 400A Series clock
1797 --enable-VARITEXT s VARITEXT clock
1798 --enable-SEL240X s SEL240X clock
1799 --with-crypto + =openssl,libcrypto
1801 --with-openssl-libdir + =/something/reasonable
1803 --with-openssl-incdir + =/something/reasonable
1805 --without-rpath s Disable auto-added -R linker paths
1807 --enable-openssl-random Use OpenSSL's crypto random number functions, if
1808 available (default is yes)
1809 --enable-autokey + support NTP Autokey protocol
1810 --enable-kmem s read /dev/kmem for tick and/or tickadj
1811 --enable-accurate-adjtime
1812 s the adjtime() call is accurate
1813 --enable-tick=VALUE s force a value for 'tick'
1814 --enable-tickadj=VALUE s force a value for 'tickadj'
1815 --enable-simulator - build/install the NTPD simulator?
1816 --without-sntp - disable building sntp and sntp/tests
1817 --with-ntpsnmpd s Build ntpsnmpd MIB agent?
1818 --enable-slew-always s always slew the time
1819 --enable-step-slew s step and slew the time
1820 --enable-ntpdate-step s if ntpdate should step the time
1821 --enable-hourly-todr-sync
1822 s if we should sync TODR hourly
1823 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1824 --enable-bug1243-fix + use unmodified autokey session keys
1825 --enable-bug3020-fix + Provide the explicit 127.0.0.0/8 martian filter
1826 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter
1827 --enable-nist - if we should enable the NIST lockclock scheme
1828 --enable-ntp-signd - Provide support for Samba's signing daemon,
1830 --enable-ipv6 s use IPv6?
1832 --with-kame - =/usr/local/v6
1833 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]].
1834 --enable-saveconfig + saveconfig mechanism
1835 --enable-leap-smear - experimental leap smear code
1836 --enable-dynamic-interleave
1837 - dynamic interleave support
1838 --with-gtest Use the gtest framework (Default: if it's available)
1839 --enable-problem-tests + enable tests with undiagnosed problems
1841 Some influential environment variables:
1842 CC C compiler command
1843 CFLAGS C compiler flags
1844 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1845 nonstandard directory <lib dir>
1846 LIBS libraries to pass to the linker, e.g. -l<library>
1847 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1848 you have headers in a nonstandard directory <include dir>
1850 CXX C++ compiler command
1851 CXXFLAGS C++ compiler flags
1852 YACC The `Yet Another Compiler Compiler' implementation to use.
1853 Defaults to the first program found out of: `bison -y', `byacc',
1855 YFLAGS The list of arguments that will be passed by default to $YACC.
1856 This script will default YFLAGS to the empty string to avoid a
1857 default value of `-d' given by some make applications.
1858 CXXCPP C++ preprocessor
1860 Use these variables to override the choices made by `configure' or to help
1861 it to find libraries and programs with nonstandard names/locations.
1863 Report bugs to <http://bugs.ntp.org./>.
1864 ntp home page: <http://www.ntp.org./>.
1869 if test "$ac_init_help" = "recursive"; then
1870 # If there are subdirs, report their specific --help.
1871 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1872 test -d "$ac_dir" ||
1873 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1878 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1880 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1881 # A ".." for each directory in $ac_dir_suffix.
1882 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1883 case $ac_top_builddir_sub in
1884 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1885 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1888 ac_abs_top_builddir=$ac_pwd
1889 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1890 # for backward compatibility:
1891 ac_top_builddir=$ac_top_build_prefix
1894 .) # We are building in place.
1896 ac_top_srcdir=$ac_top_builddir_sub
1897 ac_abs_top_srcdir=$ac_pwd ;;
1898 [\\/]* | ?:[\\/]* ) # Absolute name.
1899 ac_srcdir=$srcdir$ac_dir_suffix;
1900 ac_top_srcdir=$srcdir
1901 ac_abs_top_srcdir=$srcdir ;;
1903 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1904 ac_top_srcdir=$ac_top_build_prefix$srcdir
1905 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1907 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1909 cd "$ac_dir" || { ac_status=$?; continue; }
1910 # Check for guested configure.
1911 if test -f "$ac_srcdir/configure.gnu"; then
1913 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1914 elif test -f "$ac_srcdir/configure"; then
1916 $SHELL "$ac_srcdir/configure" --help=recursive
1918 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1920 cd "$ac_pwd" || { ac_status=$?; break; }
1924 test -n "$ac_init_help" && exit $ac_status
1925 if $ac_init_version; then
1927 ntp configure 4.2.8p8
1928 generated by GNU Autoconf 2.69
1930 Copyright (C) 2012 Free Software Foundation, Inc.
1931 This configure script is free software; the Free Software Foundation
1932 gives unlimited permission to copy, distribute and modify it.
1937 ## ------------------------ ##
1938 ## Autoconf initialization. ##
1939 ## ------------------------ ##
1941 # ac_fn_c_try_compile LINENO
1942 # --------------------------
1943 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1944 ac_fn_c_try_compile ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 rm -f conftest.$ac_objext
1948 if { { ac_try="$ac_compile"
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_compile") 2>conftest.err
1957 if test -s conftest.err; then
1958 grep -v '^ *+' conftest.err >conftest.er1
1959 cat conftest.er1 >&5
1960 mv -f conftest.er1 conftest.err
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } && {
1964 test -z "$ac_c_werror_flag" ||
1965 test ! -s conftest.err
1966 } && test -s conftest.$ac_objext; then :
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 as_fn_set_status $ac_retval
1977 } # ac_fn_c_try_compile
1979 # ac_fn_c_try_cpp LINENO
1980 # ----------------------
1981 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 if { { ac_try="$ac_cpp conftest.$ac_ext"
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1994 if test -s conftest.err; then
1995 grep -v '^ *+' conftest.err >conftest.er1
1996 cat conftest.er1 >&5
1997 mv -f conftest.er1 conftest.err
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } > conftest.i && {
2001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2002 test ! -s conftest.err
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2016 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2019 # the include files in INCLUDES and setting the cache variable VAR
2021 ac_fn_c_check_header_mongrel ()
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 if eval \${$3+:} false; then :
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if eval \${$3+:} false; then :
2028 $as_echo_n "(cached) " >&6
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2034 # Is the header compilable?
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2036 $as_echo_n "checking $2 usability... " >&6; }
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043 ac_header_compiler=yes
2045 ac_header_compiler=no
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2049 $as_echo "$ac_header_compiler" >&6; }
2051 # Is the header present?
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2053 $as_echo_n "checking $2 presence... " >&6; }
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2058 if ac_fn_c_try_cpp "$LINENO"; then :
2059 ac_header_preproc=yes
2061 ac_header_preproc=no
2063 rm -f conftest.err conftest.i conftest.$ac_ext
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2065 $as_echo "$ac_header_preproc" >&6; }
2067 # So? What about this header?
2068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2071 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2073 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2077 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2079 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2081 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2083 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2085 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2086 ( $as_echo "## ------------------------------------ ##
2087 ## Report this to http://bugs.ntp.org./ ##
2088 ## ------------------------------------ ##"
2089 ) | sed "s/^/$as_me: WARNING: /" >&2
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093 $as_echo_n "checking for $2... " >&6; }
2094 if eval \${$3+:} false; then :
2095 $as_echo_n "(cached) " >&6
2097 eval "$3=\$ac_header_compiler"
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105 } # ac_fn_c_check_header_mongrel
2107 # ac_fn_c_try_run LINENO
2108 # ----------------------
2109 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2110 # that executables *can* be run.
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 if { { ac_try="$ac_link"
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120 $as_echo "$ac_try_echo"; } >&5
2121 (eval "$ac_link") 2>&5
2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2125 { { case "(($ac_try" in
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130 $as_echo "$ac_try_echo"; } >&5
2131 (eval "$ac_try") 2>&5
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; }; }; then :
2137 $as_echo "$as_me: program exited with status $ac_status" >&5
2138 $as_echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2141 ac_retval=$ac_status
2143 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145 as_fn_set_status $ac_retval
2149 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2150 # -------------------------------------------------------
2151 # Tests whether HEADER exists and can be compiled using the include files in
2152 # INCLUDES, setting the cache variable VAR accordingly.
2153 ac_fn_c_check_header_compile ()
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157 $as_echo_n "checking for $2... " >&6; }
2158 if eval \${$3+:} false; then :
2159 $as_echo_n "(cached) " >&6
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2166 if ac_fn_c_try_compile "$LINENO"; then :
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178 } # ac_fn_c_check_header_compile
2180 # ac_fn_c_try_link LINENO
2181 # -----------------------
2182 # Try to link conftest.$ac_ext, and return whether this succeeded.
2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186 rm -f conftest.$ac_objext conftest$ac_exeext
2187 if { { ac_try="$ac_link"
2189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190 *) ac_try_echo=$ac_try;;
2192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2193 $as_echo "$ac_try_echo"; } >&5
2194 (eval "$ac_link") 2>conftest.err
2196 if test -s conftest.err; then
2197 grep -v '^ *+' conftest.err >conftest.er1
2198 cat conftest.er1 >&5
2199 mv -f conftest.er1 conftest.err
2201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2202 test $ac_status = 0; } && {
2203 test -z "$ac_c_werror_flag" ||
2204 test ! -s conftest.err
2205 } && test -s conftest$ac_exeext && {
2206 test "$cross_compiling" = yes ||
2207 test -x conftest$ac_exeext
2211 $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2216 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2217 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2218 # interfere with the next link command; also delete a directory that is
2219 # left behind by Apple's compiler. We do this before executing the actions.
2220 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2221 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2222 as_fn_set_status $ac_retval
2224 } # ac_fn_c_try_link
2226 # ac_fn_cxx_try_compile LINENO
2227 # ----------------------------
2228 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2229 ac_fn_cxx_try_compile ()
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 rm -f conftest.$ac_objext
2233 if { { ac_try="$ac_compile"
2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236 *) ac_try_echo=$ac_try;;
2238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2239 $as_echo "$ac_try_echo"; } >&5
2240 (eval "$ac_compile") 2>conftest.err
2242 if test -s conftest.err; then
2243 grep -v '^ *+' conftest.err >conftest.er1
2244 cat conftest.er1 >&5
2245 mv -f conftest.er1 conftest.err
2247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248 test $ac_status = 0; } && {
2249 test -z "$ac_cxx_werror_flag" ||
2250 test ! -s conftest.err
2251 } && test -s conftest.$ac_objext; then :
2254 $as_echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260 as_fn_set_status $ac_retval
2262 } # ac_fn_cxx_try_compile
2264 # ac_fn_c_check_func LINENO FUNC VAR
2265 # ----------------------------------
2266 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2267 ac_fn_c_check_func ()
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2271 $as_echo_n "checking for $2... " >&6; }
2272 if eval \${$3+:} false; then :
2273 $as_echo_n "(cached) " >&6
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2277 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2279 #define $2 innocuous_$2
2281 /* System header to define __stub macros and hopefully few prototypes,
2282 which can conflict with char $2 (); below.
2283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2284 <limits.h> exists even on freestanding compilers. */
2287 # include <limits.h>
2289 # include <assert.h>
2294 /* Override any GCC internal prototype to avoid an error.
2295 Use char because int might match the return type of a GCC
2296 builtin and then its argument prototype would still apply. */
2301 /* The GNU C library defines this for functions which it implements
2302 to always fail with ENOSYS. Some functions are actually named
2303 something starting with __ and the normal name is an alias. */
2304 #if defined __stub_$2 || defined __stub___$2
2316 if ac_fn_c_try_link "$LINENO"; then :
2321 rm -f core conftest.err conftest.$ac_objext \
2322 conftest$ac_exeext conftest.$ac_ext
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2326 $as_echo "$ac_res" >&6; }
2327 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2329 } # ac_fn_c_check_func
2331 # ac_fn_cxx_try_cpp LINENO
2332 # ------------------------
2333 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2334 ac_fn_cxx_try_cpp ()
2336 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337 if { { ac_try="$ac_cpp conftest.$ac_ext"
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2343 $as_echo "$ac_try_echo"; } >&5
2344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2346 if test -s conftest.err; then
2347 grep -v '^ *+' conftest.err >conftest.er1
2348 cat conftest.er1 >&5
2349 mv -f conftest.er1 conftest.err
2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352 test $ac_status = 0; } > conftest.i && {
2353 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2354 test ! -s conftest.err
2358 $as_echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364 as_fn_set_status $ac_retval
2366 } # ac_fn_cxx_try_cpp
2368 # ac_fn_cxx_try_link LINENO
2369 # -------------------------
2370 # Try to link conftest.$ac_ext, and return whether this succeeded.
2371 ac_fn_cxx_try_link ()
2373 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374 rm -f conftest.$ac_objext conftest$ac_exeext
2375 if { { ac_try="$ac_link"
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2381 $as_echo "$ac_try_echo"; } >&5
2382 (eval "$ac_link") 2>conftest.err
2384 if test -s conftest.err; then
2385 grep -v '^ *+' conftest.err >conftest.er1
2386 cat conftest.er1 >&5
2387 mv -f conftest.er1 conftest.err
2389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390 test $ac_status = 0; } && {
2391 test -z "$ac_cxx_werror_flag" ||
2392 test ! -s conftest.err
2393 } && test -s conftest$ac_exeext && {
2394 test "$cross_compiling" = yes ||
2395 test -x conftest$ac_exeext
2399 $as_echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2404 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2405 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2406 # interfere with the next link command; also delete a directory that is
2407 # left behind by Apple's compiler. We do this before executing the actions.
2408 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2409 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410 as_fn_set_status $ac_retval
2412 } # ac_fn_cxx_try_link
2414 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2415 # -------------------------------------------
2416 # Tests whether TYPE exists after having included INCLUDES, setting cache
2417 # variable VAR accordingly.
2418 ac_fn_c_check_type ()
2420 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2422 $as_echo_n "checking for $2... " >&6; }
2423 if eval \${$3+:} false; then :
2424 $as_echo_n "(cached) " >&6
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2439 if ac_fn_c_try_compile "$LINENO"; then :
2440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2441 /* end confdefs.h. */
2452 if ac_fn_c_try_compile "$LINENO"; then :
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2463 $as_echo "$ac_res" >&6; }
2464 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2466 } # ac_fn_c_check_type
2468 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2469 # --------------------------------------------
2470 # Tries to find the compile-time value of EXPR in a program that includes
2471 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2473 ac_fn_c_compute_int ()
2475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2476 if test "$cross_compiling" = yes; then
2477 # Depending upon the size, compute the lo and hi bounds.
2478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h. */
2484 static int test_array [1 - 2 * !(($2) >= 0)];
2486 return test_array [0];
2492 if ac_fn_c_try_compile "$LINENO"; then :
2495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496 /* end confdefs.h. */
2501 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2503 return test_array [0];
2509 if ac_fn_c_try_compile "$LINENO"; then :
2510 ac_hi=$ac_mid; break
2512 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2513 if test $ac_lo -le $ac_mid; then
2517 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523 /* end confdefs.h. */
2528 static int test_array [1 - 2 * !(($2) < 0)];
2530 return test_array [0];
2536 if ac_fn_c_try_compile "$LINENO"; then :
2539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2540 /* end confdefs.h. */
2545 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2547 return test_array [0];
2553 if ac_fn_c_try_compile "$LINENO"; then :
2554 ac_lo=$ac_mid; break
2556 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2557 if test $ac_mid -le $ac_hi; then
2561 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2571 # Binary search between lo and hi bounds.
2572 while test "x$ac_lo" != "x$ac_hi"; do
2573 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575 /* end confdefs.h. */
2580 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2582 return test_array [0];
2588 if ac_fn_c_try_compile "$LINENO"; then :
2591 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2601 /* end confdefs.h. */
2603 static long int longval () { return $2; }
2604 static unsigned long int ulongval () { return $2; }
2611 FILE *f = fopen ("conftest.val", "w");
2616 long int i = longval ();
2619 fprintf (f, "%ld", i);
2623 unsigned long int i = ulongval ();
2626 fprintf (f, "%lu", i);
2628 /* Do not output a trailing newline, as this causes \r\n confusion
2629 on some platforms. */
2630 return ferror (f) || fclose (f) != 0;
2636 if ac_fn_c_try_run "$LINENO"; then :
2637 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2642 conftest.$ac_objext conftest.beam conftest.$ac_ext
2646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2647 as_fn_set_status $ac_retval
2649 } # ac_fn_c_compute_int
2651 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2652 # ---------------------------------------------
2653 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2655 ac_fn_c_check_decl ()
2657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2658 as_decl_name=`echo $2|sed 's/ *(.*//'`
2659 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2661 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2662 if eval \${$3+:} false; then :
2663 $as_echo_n "(cached) " >&6
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666 /* end confdefs.h. */
2671 #ifndef $as_decl_name
2673 (void) $as_decl_use;
2675 (void) $as_decl_name;
2683 if ac_fn_c_try_compile "$LINENO"; then :
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2695 } # ac_fn_c_check_decl
2697 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2698 # ----------------------------------------------------
2699 # Tries to find if the field MEMBER exists in type AGGR, after including
2700 # INCLUDES, setting cache variable VAR accordingly.
2701 ac_fn_c_check_member ()
2703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2705 $as_echo_n "checking for $2.$3... " >&6; }
2706 if eval \${$4+:} false; then :
2707 $as_echo_n "(cached) " >&6
2709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2710 /* end confdefs.h. */
2722 if ac_fn_c_try_compile "$LINENO"; then :
2725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2726 /* end confdefs.h. */
2732 if (sizeof ac_aggr.$3)
2738 if ac_fn_c_try_compile "$LINENO"; then :
2743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2749 $as_echo "$ac_res" >&6; }
2750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2752 } # ac_fn_c_check_member
2753 cat >config.log <<_ACEOF
2754 This file contains any messages produced by compilers while
2755 running configure, to aid debugging if configure makes a mistake.
2757 It was created by ntp $as_me 4.2.8p8, which was
2758 generated by GNU Autoconf 2.69. Invocation command line was
2770 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2771 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2772 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2773 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2774 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2776 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2777 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2779 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2780 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2781 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2782 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2783 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2784 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2785 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 test -z "$as_dir" && as_dir=.
2794 $as_echo "PATH: $as_dir"
2810 # Keep a trace of the command line.
2811 # Strip out --no-create and --no-recursion so they do not pile up.
2812 # Strip out --silent because we don't want to record it for future runs.
2813 # Also quote any args containing shell meta-characters.
2814 # Make two passes to allow for proper duplicate-argument suppression.
2818 ac_must_keep_next=false
2824 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2826 | -silent | --silent | --silen | --sile | --sil)
2829 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2832 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2834 as_fn_append ac_configure_args1 " '$ac_arg'"
2835 if test $ac_must_keep_next = true; then
2836 ac_must_keep_next=false # Got value, back to normal.
2839 *=* | --config-cache | -C | -disable-* | --disable-* \
2840 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2841 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2842 | -with-* | --with-* | -without-* | --without-* | --x)
2843 case "$ac_configure_args0 " in
2844 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2847 -* ) ac_must_keep_next=true ;;
2850 as_fn_append ac_configure_args " '$ac_arg'"
2855 { ac_configure_args0=; unset ac_configure_args0;}
2856 { ac_configure_args1=; unset ac_configure_args1;}
2858 # When interrupted or exit'd, cleanup temporary files, and complete
2859 # config.log. We remove comments because anyway the quotes in there
2860 # would cause problems or look ugly.
2861 # WARNING: Use '\'' to represent an apostrophe within the trap.
2862 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2863 trap 'exit_status=$?
2864 # Save into config.log some information that might help in debugging.
2868 $as_echo "## ---------------- ##
2869 ## Cache variables. ##
2870 ## ---------------- ##"
2872 # The following way of writing the cache mishandles newlines in values,
2874 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2875 eval ac_val=\$$ac_var
2879 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2880 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2883 _ | IFS | as_nl) ;; #(
2884 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2885 *) { eval $ac_var=; unset $ac_var;} ;;
2890 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2891 *${as_nl}ac_space=\ *)
2893 "s/'\''/'\''\\\\'\'''\''/g;
2894 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2897 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2904 $as_echo "## ----------------- ##
2905 ## Output variables. ##
2906 ## ----------------- ##"
2908 for ac_var in $ac_subst_vars
2910 eval ac_val=\$$ac_var
2912 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2914 $as_echo "$ac_var='\''$ac_val'\''"
2918 if test -n "$ac_subst_files"; then
2919 $as_echo "## ------------------- ##
2920 ## File substitutions. ##
2921 ## ------------------- ##"
2923 for ac_var in $ac_subst_files
2925 eval ac_val=\$$ac_var
2927 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2929 $as_echo "$ac_var='\''$ac_val'\''"
2934 if test -s confdefs.h; then
2935 $as_echo "## ----------- ##
2942 test "$ac_signal" != 0 &&
2943 $as_echo "$as_me: caught signal $ac_signal"
2944 $as_echo "$as_me: exit $exit_status"
2946 rm -f core *.core core.conftest.* &&
2947 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2950 for ac_signal in 1 2 13 15; do
2951 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2955 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2956 rm -f -r conftest* confdefs.h
2958 $as_echo "/* confdefs.h */" > confdefs.h
2960 # Predefined preprocessor variables.
2962 cat >>confdefs.h <<_ACEOF
2963 #define PACKAGE_NAME "$PACKAGE_NAME"
2966 cat >>confdefs.h <<_ACEOF
2967 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2970 cat >>confdefs.h <<_ACEOF
2971 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2974 cat >>confdefs.h <<_ACEOF
2975 #define PACKAGE_STRING "$PACKAGE_STRING"
2978 cat >>confdefs.h <<_ACEOF
2979 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2982 cat >>confdefs.h <<_ACEOF
2983 #define PACKAGE_URL "$PACKAGE_URL"
2987 # Let the site file select an alternate cache file if it wants to.
2988 # Prefer an explicitly selected file to automatically selected ones.
2991 if test -n "$CONFIG_SITE"; then
2992 # We do not want a PATH search for config.site.
2993 case $CONFIG_SITE in #((
2994 -*) ac_site_file1=./$CONFIG_SITE;;
2995 */*) ac_site_file1=$CONFIG_SITE;;
2996 *) ac_site_file1=./$CONFIG_SITE;;
2998 elif test "x$prefix" != xNONE; then
2999 ac_site_file1=$prefix/share/config.site
3000 ac_site_file2=$prefix/etc/config.site
3002 ac_site_file1=$ac_default_prefix/share/config.site
3003 ac_site_file2=$ac_default_prefix/etc/config.site
3005 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3007 test "x$ac_site_file" = xNONE && continue
3008 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3010 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3011 sed 's/^/| /' "$ac_site_file" >&5
3013 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 as_fn_error $? "failed to load site script $ac_site_file
3016 See \`config.log' for more details" "$LINENO" 5; }
3020 if test -r "$cache_file"; then
3021 # Some versions of bash will fail to source /dev/null (special files
3022 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3023 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3025 $as_echo "$as_me: loading cache $cache_file" >&6;}
3027 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3028 *) . "./$cache_file";;
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3033 $as_echo "$as_me: creating cache $cache_file" >&6;}
3037 as_fn_append ac_header_list " stdarg.h"
3038 # Check that the precious variables saved in the cache have kept the same
3040 ac_cache_corrupted=false
3041 for ac_var in $ac_precious_vars; do
3042 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3043 eval ac_new_set=\$ac_env_${ac_var}_set
3044 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3045 eval ac_new_val=\$ac_env_${ac_var}_value
3046 case $ac_old_set,$ac_new_set in
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3049 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3050 ac_cache_corrupted=: ;;
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3053 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3054 ac_cache_corrupted=: ;;
3057 if test "x$ac_old_val" != "x$ac_new_val"; then
3058 # differences in whitespace do not lead to failure.
3059 ac_old_val_w=`echo x $ac_old_val`
3060 ac_new_val_w=`echo x $ac_new_val`
3061 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3063 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3064 ac_cache_corrupted=:
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3067 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3068 eval $ac_var=\$ac_old_val
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3071 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3073 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3076 # Pass precious variables to config.status.
3077 if test "$ac_new_set" = set; then
3079 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3080 *) ac_arg=$ac_var=$ac_new_val ;;
3082 case " $ac_configure_args " in
3083 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3084 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3088 if $ac_cache_corrupted; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3092 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3093 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3095 ## -------------------- ##
3096 ## Main body of script. ##
3097 ## -------------------- ##
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3108 for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
3109 if test -f "$ac_dir/install-sh"; then
3111 ac_install_sh="$ac_aux_dir/install-sh -c"
3113 elif test -f "$ac_dir/install.sh"; then
3115 ac_install_sh="$ac_aux_dir/install.sh -c"
3117 elif test -f "$ac_dir/shtool"; then
3119 ac_install_sh="$ac_aux_dir/shtool install -c"
3123 if test -z "$ac_aux_dir"; then
3124 as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
3127 # These three variables are undocumented and unsupported,
3128 # and are intended to be withdrawn in a future Autoconf release.
3129 # They can cause serious problems if a builder's source tree is in a directory
3130 # whose full name contains unusual characters.
3131 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3132 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3133 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3137 ac_cpp='$CPP $CPPFLAGS'
3138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147 # Bump ntp_configure_cache_version for each change to configure.ac or
3148 # .m4 files which invalidates cached values from previous configure
3151 # If the change affects cache variables used only by the main NTP
3152 # configure.ac, then only its version number should be bumped, while
3153 # the subdir configure.ac version numbers should be unchanged. The
3154 # same is true for a test/variable that is used only by one subdir
3155 # being changed incompatibly; only that subdir's cache version needs
3158 # If a change affects variables shared by all NTP configure scripts,
3159 # please bump the version numbers of each. If you are not sure, the
3160 # safe choice is to bump all on any cache-invalidating change.
3162 # In order to avoid the risk of version stamp collision between -stable
3163 # and -dev branches, do not simply increment the version, instead use
3164 # the date YYYYMMDD optionally with -HHMM if there is more than one
3167 ntp_configure_cache_version=20120806
3169 # When the cache version of config.cache and configure do not
3170 # match, NTP_CACHEVERSION will flush the cache.
3176 case "$ntp_cv_main_cache_version" in
3177 $ntp_configure_cache_version)
3178 # same version, good
3182 # No cache, predates ntp_cv_main_cache_version, or is empty.
3183 case "$cache_file" in
3188 case "$NTP_CACHEVERSION_PARENT" in
3190 # Do not clear the cache immediately after it is created
3191 # empty as it is noisy. Differentiate a newly-created
3192 # config.cache from one predating the cache version
3193 # mechanism by looking for the first cached variable set
3195 case "$ac_cv_path_install" in
3197 # empty config.cache file
3202 # Parent configure just created cache from empty,
3203 # flushing would be counterproductive.
3210 # configure cache version mismatches config.cache version
3214 case "$ntp_cache_flush" in
3216 c_version="${ntp_cv_main_cache_version:-(no version found)}"
3218 # Do we flush all variables or exclude others' version stamps?
3220 case "$NTP_CACHEVERSION_PARENT" in
3222 # Clear all *_cv_* variables including our child subdirs'
3223 # ntp_cv_*_cache_version variables. This prevents subdir
3224 # configure scripts from noticing a version mismatch just
3225 # after the top configure in the invocation cleared and
3226 # recreated the cache.
3228 c_varname_list=`set |
3229 sed -n -e 's/=.*$//' \
3234 # This is not the top configure this particular invocation.
3235 # Clear all *_cv_* variables sparing the version stamps
3236 # of other configure scripts, so we don't trigger
3237 # useless repeated clearings.
3239 c_varname_list=`set |
3240 sed -n -e 's/=.*$//' \
3241 -e '/ntp_cv_.*_cache_version/d' \
3246 for c_varname in $c_varname_list
3248 { eval $c_varname=; unset $c_varname; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3252 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
3254 $as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3256 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
3257 { c_varname=; unset c_varname;}
3258 { c_varname_list=; unset c_varname_list;}
3259 { c_version=; unset c_version;}
3262 { ntp_cache_flush=; unset ntp_cache_flush;}
3264 # save configure version in config.cache for next time
3265 ntp_cv_main_cache_version="$ntp_configure_cache_version"
3267 # let any subdir configure.ac NTP_CACHEVERSION invocations
3268 # know they are not the top level.
3269 NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT
3272 am__api_version='1.15'
3274 # Find a good install program. We prefer a C program (faster),
3275 # so one script is as good as another. But avoid the broken or
3276 # incompatible versions:
3277 # SysV /etc/install, /usr/sbin/install
3278 # SunOS /usr/etc/install
3279 # IRIX /sbin/install
3281 # AmigaOS /C/install, which installs bootblocks on floppy discs
3282 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3283 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3284 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3285 # OS/2's system install, which has a completely different semantic
3286 # ./install, which can be erroneously created by make from ./install.sh.
3287 # Reject install programs that cannot install multiple files.
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3289 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3290 if test -z "$INSTALL"; then
3291 if ${ac_cv_path_install+:} false; then :
3292 $as_echo_n "(cached) " >&6
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir=.
3299 # Account for people who put trailing slashes in PATH elements.
3300 case $as_dir/ in #((
3301 ./ | .// | /[cC]/* | \
3302 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3303 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3306 # OSF1 and SCO ODT 3.0 have their own names for install.
3307 # Don't use installbsd from OSF since it installs stuff as root
3309 for ac_prog in ginstall scoinst install; do
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3312 if test $ac_prog = install &&
3313 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3314 # AIX install. It has an incompatible calling convention.
3316 elif test $ac_prog = install &&
3317 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3318 # program-specific install script used by HP pwplus--don't use.
3321 rm -rf conftest.one conftest.two conftest.dir
3322 echo one > conftest.one
3323 echo two > conftest.two
3325 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3326 test -s conftest.one && test -s conftest.two &&
3327 test -s conftest.dir/conftest.one &&
3328 test -s conftest.dir/conftest.two
3330 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3343 rm -rf conftest.one conftest.two conftest.dir
3346 if test "${ac_cv_path_install+set}" = set; then
3347 INSTALL=$ac_cv_path_install
3349 # As a last resort, use the slow shell script. Don't cache a
3350 # value for INSTALL within a source directory, because that will
3351 # break other packages using the cache if that directory is
3352 # removed, or if the value is a relative name.
3353 INSTALL=$ac_install_sh
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3357 $as_echo "$INSTALL" >&6; }
3359 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3360 # It thinks the first close brace ends the variable substitution.
3361 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3363 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3365 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3368 $as_echo_n "checking whether build environment is sane... " >&6; }
3369 # Reject unsafe characters in $srcdir or the absolute working directory
3370 # name. Accept space and tab only in the latter.
3374 *[\\\"\#\$\&\'\`$am_lf]*)
3375 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3378 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3379 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3382 # Do 'set' in a subshell so we don't clobber the current shell's
3383 # arguments. Must try -L first in case configure is actually a
3384 # symlink; some systems play weird games with the mod time of symlinks
3385 # (eg FreeBSD returns the mod time of the symlink's containing
3389 for am_try in 1 2; do
3390 echo "timestamp, slept: $am_has_slept" > conftest.file
3391 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3392 if test "$*" = "X"; then
3394 set X `ls -t "$srcdir/configure" conftest.file`
3396 if test "$*" != "X $srcdir/configure conftest.file" \
3397 && test "$*" != "X conftest.file $srcdir/configure"; then
3399 # If neither matched, then we have a broken ls. This can happen
3400 # if, for instance, CONFIG_SHELL is bash and it inherits a
3401 # broken ls alias from the environment. This has actually
3402 # happened. Such a system could not be considered "sane".
3403 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3404 alias in your environment" "$LINENO" 5
3406 if test "$2" = conftest.file || test $am_try -eq 2; then
3413 test "$2" = conftest.file
3419 as_fn_error $? "newly created file is older than distributed files!
3420 Check your system clock" "$LINENO" 5
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3423 $as_echo "yes" >&6; }
3424 # If we didn't sleep, we still need to ensure time stamps of config.status and
3425 # generated files are strictly newer.
3427 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3434 test "$program_prefix" != NONE &&
3435 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3436 # Use a double $ so make ignores it.
3437 test "$program_suffix" != NONE &&
3438 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3439 # Double any \ or $.
3440 # By default was `s,x,x', remove it if useless.
3441 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3442 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3444 # Expand $ac_aux_dir to an absolute path.
3445 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3447 if test x"${MISSING+set}" != xset; then
3450 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3452 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3455 # Use eval to expand $SHELL
3456 if eval "$MISSING --is-lightweight"; then
3457 am_missing_run="$MISSING "
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3461 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3464 if test x"${install_sh+set}" != xset; then
3467 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3469 install_sh="\${SHELL} $am_aux_dir/install-sh"
3473 # Installed binaries are usually stripped using 'strip' when the user
3474 # run "make install-strip". However 'strip' might not be the right
3475 # tool to use in cross-compilation environments, therefore Automake
3476 # will honor the 'STRIP' environment variable to overrule this program.
3477 if test "$cross_compiling" != no; then
3478 if test -n "$ac_tool_prefix"; then
3479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3480 set dummy ${ac_tool_prefix}strip; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if ${ac_cv_prog_STRIP+:} false; then :
3484 $as_echo_n "(cached) " >&6
3486 if test -n "$STRIP"; then
3487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3496 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 STRIP=$ac_cv_prog_STRIP
3507 if test -n "$STRIP"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3509 $as_echo "$STRIP" >&6; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3517 if test -z "$ac_cv_prog_STRIP"; then
3519 # Extract the first word of "strip", so it can be a program name with args.
3520 set dummy strip; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3524 $as_echo_n "(cached) " >&6
3526 if test -n "$ac_ct_STRIP"; then
3527 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_ac_ct_STRIP="strip"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3547 if test -n "$ac_ct_STRIP"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3549 $as_echo "$ac_ct_STRIP" >&6; }
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3555 if test "x$ac_ct_STRIP" = x; then
3558 case $cross_compiling:$ac_tool_warned in
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3562 ac_tool_warned=yes ;;
3567 STRIP="$ac_cv_prog_STRIP"
3571 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3574 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3575 if test -z "$MKDIR_P"; then
3576 if ${ac_cv_path_mkdir+:} false; then :
3577 $as_echo_n "(cached) " >&6
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3583 test -z "$as_dir" && as_dir=.
3584 for ac_prog in mkdir gmkdir; do
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3587 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3588 'mkdir (GNU coreutils) '* | \
3589 'mkdir (coreutils) '* | \
3590 'mkdir (fileutils) '4.1*)
3591 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3601 test -d ./--version && rmdir ./--version
3602 if test "${ac_cv_path_mkdir+set}" = set; then
3603 MKDIR_P="$ac_cv_path_mkdir -p"
3605 # As a last resort, use the slow shell script. Don't cache a
3606 # value for MKDIR_P within a source directory, because that will
3607 # break other packages using the cache if that directory is
3608 # removed, or if the value is a relative name.
3609 MKDIR_P="$ac_install_sh -d"
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3613 $as_echo "$MKDIR_P" >&6; }
3615 for ac_prog in gawk mawk nawk awk
3617 # Extract the first word of "$ac_prog", so it can be a program name with args.
3618 set dummy $ac_prog; ac_word=$2
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620 $as_echo_n "checking for $ac_word... " >&6; }
3621 if ${ac_cv_prog_AWK+:} false; then :
3622 $as_echo_n "(cached) " >&6
3624 if test -n "$AWK"; then
3625 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634 ac_cv_prog_AWK="$ac_prog"
3635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 if test -n "$AWK"; then
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3647 $as_echo "$AWK" >&6; }
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650 $as_echo "no" >&6; }
3654 test -n "$AWK" && break
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3658 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3660 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3661 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3662 $as_echo_n "(cached) " >&6
3664 cat >conftest.make <<\_ACEOF
3667 @echo '@@@%%%=$(MAKE)=@@@%%%'
3669 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3670 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3672 eval ac_cv_prog_make_${ac_make}_set=yes;;
3674 eval ac_cv_prog_make_${ac_make}_set=no;;
3678 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3680 $as_echo "yes" >&6; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3685 SET_MAKE="MAKE=${MAKE-make}"
3688 rm -rf .tst 2>/dev/null
3689 mkdir .tst 2>/dev/null
3690 if test -d .tst; then
3695 rmdir .tst 2>/dev/null
3697 # Check whether --enable-silent-rules was given.
3698 if test "${enable_silent_rules+set}" = set; then :
3699 enableval=$enable_silent_rules;
3702 case $enable_silent_rules in # (((
3703 yes) AM_DEFAULT_VERBOSITY=0;;
3704 no) AM_DEFAULT_VERBOSITY=1;;
3705 *) AM_DEFAULT_VERBOSITY=1;;
3707 am_make=${MAKE-make}
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3709 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3710 if ${am_cv_make_support_nested_variables+:} false; then :
3711 $as_echo_n "(cached) " >&6
3713 if $as_echo 'TRUE=$(BAR$(V))
3719 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3720 am_cv_make_support_nested_variables=yes
3722 am_cv_make_support_nested_variables=no
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3726 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3727 if test $am_cv_make_support_nested_variables = yes; then
3729 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3731 AM_V=$AM_DEFAULT_VERBOSITY
3732 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3736 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3737 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3738 # is not polluted with repeated "-I."
3739 am__isrc=' -I$(srcdir)'
3740 # test to see if srcdir already configured
3741 if test -f $srcdir/config.status; then
3742 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3746 # test whether we have cygpath
3747 if test -z "$CYGPATH_W"; then
3748 if (cygpath --version) >/dev/null 2>/dev/null; then
3749 CYGPATH_W='cygpath -w'
3756 # Define the identity of the package.
3761 cat >>confdefs.h <<_ACEOF
3762 #define PACKAGE "$PACKAGE"
3766 cat >>confdefs.h <<_ACEOF
3767 #define VERSION "$VERSION"
3770 # Some tools Automake needs.
3772 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3775 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3778 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3781 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3784 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3786 # For better backward compatibility. To be removed once Automake 1.9.x
3787 # dies out for good. For more background, see:
3788 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3789 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3790 mkdir_p='$(MKDIR_P)'
3792 # We need awk for the "check" target (and possibly the TAP driver). The
3793 # system "awk" is bad on some platforms.
3794 # Always define AMTAR for backward compatibility. Yes, it's still used
3795 # in the wild :-( We should find a proper way to deprecate it ...
3799 # We'll loop over all known methods to create a tar archive until one works.
3800 _am_tools='gnutar pax cpio none'
3802 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3809 # POSIX will say in a future version that running "rm -f" with no argument
3810 # is OK; and we want to be able to make that assumption in our Makefile
3811 # recipes. So use an aggressive probe to check that the usage we want is
3812 # actually supported "in the wild" to an acceptable degree.
3813 # See automake bug#10828.
3814 # To make any issue more visible, cause the running configure to be aborted
3815 # by default if the 'rm' program in use doesn't match our expectations; the
3816 # user can still override this though.
3817 if rm -f && rm -fr && rm -rf; then : OK; else
3821 Your 'rm' program seems unable to run without file operands specified
3822 on the command line, even when the '-f' option is present. This is contrary
3823 to the behaviour of most rm programs out there, and not conforming with
3824 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3826 Please tell bug-automake@gnu.org about your system, including the value
3827 of your $PATH and any error possibly output before this message. This
3828 can help us improve future automake versions.
3831 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3832 echo 'Configuration will proceed anyway, since you have set the' >&2
3833 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3837 Aborting the configuration process, to ensure you take notice of the issue.
3839 You can download and install GNU coreutils to get an 'rm' implementation
3840 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3842 If you want to complete the configuration process using your problematic
3843 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3844 to "yes", and re-run configure.
3847 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3852 # Check whether --enable-silent-rules was given.
3853 if test "${enable_silent_rules+set}" = set; then :
3854 enableval=$enable_silent_rules;
3857 case $enable_silent_rules in # (((
3858 yes) AM_DEFAULT_VERBOSITY=0;;
3859 no) AM_DEFAULT_VERBOSITY=1;;
3860 *) AM_DEFAULT_VERBOSITY=0;;
3862 am_make=${MAKE-make}
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3864 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3865 if ${am_cv_make_support_nested_variables+:} false; then :
3866 $as_echo_n "(cached) " >&6
3868 if $as_echo 'TRUE=$(BAR$(V))
3874 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3875 am_cv_make_support_nested_variables=yes
3877 am_cv_make_support_nested_variables=no
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3881 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3882 if test $am_cv_make_support_nested_variables = yes; then
3884 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3886 AM_V=$AM_DEFAULT_VERBOSITY
3887 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3892 # Make sure we can run config.sub.
3893 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3894 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3897 $as_echo_n "checking build system type... " >&6; }
3898 if ${ac_cv_build+:} false; then :
3899 $as_echo_n "(cached) " >&6
3901 ac_build_alias=$build_alias
3902 test "x$ac_build_alias" = x &&
3903 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3904 test "x$ac_build_alias" = x &&
3905 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3906 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3907 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3911 $as_echo "$ac_cv_build" >&6; }
3912 case $ac_cv_build in
3914 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3917 ac_save_IFS=$IFS; IFS='-'
3923 # Remember, the first character of IFS is used to create $*,
3924 # except with old shells:
3927 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3931 $as_echo_n "checking host system type... " >&6; }
3932 if ${ac_cv_host+:} false; then :
3933 $as_echo_n "(cached) " >&6
3935 if test "x$host_alias" = x; then
3936 ac_cv_host=$ac_cv_build
3938 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3939 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3944 $as_echo "$ac_cv_host" >&6; }
3947 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3950 ac_save_IFS=$IFS; IFS='-'
3956 # Remember, the first character of IFS is used to create $*,
3957 # except with old shells:
3960 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3964 cat >>confdefs.h <<_ACEOF
3965 #define STR_SYSTEM "$host"
3968 ac_config_headers="$ac_config_headers config.h"
3971 ntp_atom_ok=${ntp_atom_ok=no}
3972 ntp_oncore_ok=${ntp_oncore_ok=no}
3973 ntp_parse_ok=${ntp_parse_ok=no}
3974 ntp_ripe_ncc_ok=${ntp_parse_ok=no}
3975 ntp_jupiter_ok=${ntp_jupiter_ok=no}
3977 DEPDIR="${am__leading_dot}deps"
3979 ac_config_commands="$ac_config_commands depfiles"
3982 am_make=${MAKE-make}
3983 cat > confinc << 'END'
3985 @echo this is the am__doit target
3988 # If we don't find an include directive, just comment out the code.
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3990 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3994 # First try GNU make style include.
3995 echo "include confinc" > confmf
3996 # Ignore all kinds of additional output from 'make'.
3997 case `$am_make -s -f confmf 2> /dev/null` in #(
3998 *the\ am__doit\ target*)
4004 # Now try BSD make style include.
4005 if test "$am__include" = "#"; then
4006 echo '.include "confinc"' > confmf
4007 case `$am_make -s -f confmf 2> /dev/null` in #(
4008 *the\ am__doit\ target*)
4009 am__include=.include
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4018 $as_echo "$_am_result" >&6; }
4019 rm -f confinc confmf
4021 # Check whether --enable-dependency-tracking was given.
4022 if test "${enable_dependency_tracking+set}" = set; then :
4023 enableval=$enable_dependency_tracking;
4026 if test "x$enable_dependency_tracking" != xno; then
4027 am_depcomp="$ac_aux_dir/depcomp"
4031 if test "x$enable_dependency_tracking" != xno; then
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045 if test -n "$ac_tool_prefix"; then
4046 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4047 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if ${ac_cv_prog_CC+:} false; then :
4051 $as_echo_n "(cached) " >&6
4053 if test -n "$CC"; then
4054 ac_cv_prog_CC="$CC" # Let the user override the test.
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 if test -n "$CC"; then
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4076 $as_echo "$CC" >&6; }
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4084 if test -z "$ac_cv_prog_CC"; then
4086 # Extract the first word of "gcc", so it can be a program name with args.
4087 set dummy gcc; ac_word=$2
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4089 $as_echo_n "checking for $ac_word... " >&6; }
4090 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4091 $as_echo_n "(cached) " >&6
4093 if test -n "$ac_ct_CC"; then
4094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 test -z "$as_dir" && as_dir=.
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103 ac_cv_prog_ac_ct_CC="gcc"
4104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4114 if test -n "$ac_ct_CC"; then
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4116 $as_echo "$ac_ct_CC" >&6; }
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 $as_echo "no" >&6; }
4122 if test "x$ac_ct_CC" = x; then
4125 case $cross_compiling:$ac_tool_warned in
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4129 ac_tool_warned=yes ;;
4137 if test -z "$CC"; then
4138 if test -n "$ac_tool_prefix"; then
4139 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4140 set dummy ${ac_tool_prefix}cc; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_CC+:} false; then :
4144 $as_echo_n "(cached) " >&6
4146 if test -n "$CC"; then
4147 ac_cv_prog_CC="$CC" # Let the user override the test.
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156 ac_cv_prog_CC="${ac_tool_prefix}cc"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 if test -n "$CC"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4169 $as_echo "$CC" >&6; }
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4178 if test -z "$CC"; then
4179 # Extract the first word of "cc", so it can be a program name with args.
4180 set dummy cc; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if ${ac_cv_prog_CC+:} false; then :
4184 $as_echo_n "(cached) " >&6
4186 if test -n "$CC"; then
4187 ac_cv_prog_CC="$CC" # Let the user override the test.
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4198 ac_prog_rejected=yes
4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 if test $ac_prog_rejected = yes; then
4210 # We found a bogon in the path, so make sure we never use it.
4211 set dummy $ac_cv_prog_CC
4213 if test $# != 0; then
4214 # We chose a different compiler from the bogus one.
4215 # However, it has the same basename, so the bogon will be chosen
4216 # first if we set CC to just the basename; use the full file name.
4218 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4224 if test -n "$CC"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4226 $as_echo "$CC" >&6; }
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4234 if test -z "$CC"; then
4235 if test -n "$ac_tool_prefix"; then
4236 for ac_prog in cl.exe
4238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_CC+:} false; then :
4243 $as_echo_n "(cached) " >&6
4245 if test -n "$CC"; then
4246 ac_cv_prog_CC="$CC" # Let the user override the test.
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 if test -n "$CC"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4268 $as_echo "$CC" >&6; }
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4275 test -n "$CC" && break
4278 if test -z "$CC"; then
4280 for ac_prog in cl.exe
4282 # Extract the first word of "$ac_prog", so it can be a program name with args.
4283 set dummy $ac_prog; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4287 $as_echo_n "(cached) " >&6
4289 if test -n "$ac_ct_CC"; then
4290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299 ac_cv_prog_ac_ct_CC="$ac_prog"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4310 if test -n "$ac_ct_CC"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4312 $as_echo "$ac_ct_CC" >&6; }
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4319 test -n "$ac_ct_CC" && break
4322 if test "x$ac_ct_CC" = x; then
4325 case $cross_compiling:$ac_tool_warned in
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4329 ac_tool_warned=yes ;;
4338 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4340 as_fn_error $? "no acceptable C compiler found in \$PATH
4341 See \`config.log' for more details" "$LINENO" 5; }
4343 # Provide some information about the compiler.
4344 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4347 for ac_option in --version -v -V -qversion; do
4348 { { ac_try="$ac_compiler $ac_option >&5"
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4354 $as_echo "$ac_try_echo"; } >&5
4355 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4357 if test -s conftest.err; then
4359 ... rest of stderr output deleted ...
4360 10q' conftest.err >conftest.er1
4361 cat conftest.er1 >&5
4363 rm -f conftest.er1 conftest.err
4364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365 test $ac_status = 0; }
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4379 ac_clean_files_save=$ac_clean_files
4380 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4381 # Try to create an executable without -o first, disregard a.out.
4382 # It will help us diagnose broken compilers, and finding out an intuition
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4385 $as_echo_n "checking whether the C compiler works... " >&6; }
4386 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4388 # The possible output files:
4389 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4392 for ac_file in $ac_files
4395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4396 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4401 if { { ac_try="$ac_link_default"
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 $as_echo "$ac_try_echo"; } >&5
4408 (eval "$ac_link_default") 2>&5
4410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411 test $ac_status = 0; }; then :
4412 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4413 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4414 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4415 # so that the user can short-circuit this test for compilers unknown to
4417 for ac_file in $ac_files ''
4419 test -f "$ac_file" || continue
4421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4424 # We found the default executable, but exeext='' is most
4428 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4430 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4432 # We set ac_cv_exeext here because the later test for it is not
4433 # safe: cross compilers may not add the suffix if given an `-o'
4434 # argument, so we may need to know it at that point already.
4435 # Even if this section looks crufty: it has the advantage of
4442 test "$ac_cv_exeext" = no && ac_cv_exeext=
4447 if test -z "$ac_file"; then :
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4450 $as_echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4455 as_fn_error 77 "C compiler cannot create executables
4456 See \`config.log' for more details" "$LINENO" 5; }
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4459 $as_echo "yes" >&6; }
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4462 $as_echo_n "checking for C compiler default output file name... " >&6; }
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4464 $as_echo "$ac_file" >&6; }
4465 ac_exeext=$ac_cv_exeext
4467 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4468 ac_clean_files=$ac_clean_files_save
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4470 $as_echo_n "checking for suffix of executables... " >&6; }
4471 if { { ac_try="$ac_link"
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4477 $as_echo "$ac_try_echo"; } >&5
4478 (eval "$ac_link") 2>&5
4480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4481 test $ac_status = 0; }; then :
4482 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4483 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4484 # work properly (i.e., refer to `conftest.exe'), while it won't with
4486 for ac_file in conftest.exe conftest conftest.*; do
4487 test -f "$ac_file" || continue
4489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4490 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4498 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4499 See \`config.log' for more details" "$LINENO" 5; }
4501 rm -f conftest conftest$ac_cv_exeext
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4503 $as_echo "$ac_cv_exeext" >&6; }
4505 rm -f conftest.$ac_ext
4506 EXEEXT=$ac_cv_exeext
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4514 FILE *f = fopen ("conftest.out", "w");
4515 return ferror (f) || fclose (f) != 0;
4521 ac_clean_files="$ac_clean_files conftest.out"
4522 # Check that the compiler produces executables we can run. If not, either
4523 # the compiler is broken, or we cross compile.
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4525 $as_echo_n "checking whether we are cross compiling... " >&6; }
4526 if test "$cross_compiling" != yes; then
4527 { { ac_try="$ac_link"
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4533 $as_echo "$ac_try_echo"; } >&5
4534 (eval "$ac_link") 2>&5
4536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4537 test $ac_status = 0; }
4538 if { ac_try='./conftest$ac_cv_exeext'
4539 { { case "(($ac_try" in
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4544 $as_echo "$ac_try_echo"; } >&5
4545 (eval "$ac_try") 2>&5
4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548 test $ac_status = 0; }; }; then
4551 if test "$cross_compiling" = maybe; then
4554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4556 as_fn_error $? "cannot run C compiled programs.
4557 If you meant to cross compile, use \`--host'.
4558 See \`config.log' for more details" "$LINENO" 5; }
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4563 $as_echo "$cross_compiling" >&6; }
4565 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4566 ac_clean_files=$ac_clean_files_save
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4568 $as_echo_n "checking for suffix of object files... " >&6; }
4569 if ${ac_cv_objext+:} false; then :
4570 $as_echo_n "(cached) " >&6
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4583 rm -f conftest.o conftest.obj
4584 if { { ac_try="$ac_compile"
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4590 $as_echo "$ac_try_echo"; } >&5
4591 (eval "$ac_compile") 2>&5
4593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4594 test $ac_status = 0; }; then :
4595 for ac_file in conftest.o conftest.obj conftest.*; do
4596 test -f "$ac_file" || continue;
4598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4604 $as_echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error $? "cannot compute suffix of object files: cannot compile
4610 See \`config.log' for more details" "$LINENO" 5; }
4612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4615 $as_echo "$ac_cv_objext" >&6; }
4616 OBJEXT=$ac_cv_objext
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4619 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4620 if ${ac_cv_c_compiler_gnu+:} false; then :
4621 $as_echo_n "(cached) " >&6
4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4637 if ac_fn_c_try_compile "$LINENO"; then :
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4647 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4648 if test $ac_compiler_gnu = yes; then
4653 ac_test_CFLAGS=${CFLAGS+set}
4654 ac_save_CFLAGS=$CFLAGS
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4656 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4657 if ${ac_cv_prog_cc_g+:} false; then :
4658 $as_echo_n "(cached) " >&6
4660 ac_save_c_werror_flag=$ac_c_werror_flag
4661 ac_c_werror_flag=yes
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4675 if ac_fn_c_try_compile "$LINENO"; then :
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4690 if ac_fn_c_try_compile "$LINENO"; then :
4693 ac_c_werror_flag=$ac_save_c_werror_flag
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4706 if ac_fn_c_try_compile "$LINENO"; then :
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 ac_c_werror_flag=$ac_save_c_werror_flag
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4717 $as_echo "$ac_cv_prog_cc_g" >&6; }
4718 if test "$ac_test_CFLAGS" = set; then
4719 CFLAGS=$ac_save_CFLAGS
4720 elif test $ac_cv_prog_cc_g = yes; then
4721 if test "$GCC" = yes; then
4727 if test "$GCC" = yes; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4735 if ${ac_cv_prog_cc_c89+:} false; then :
4736 $as_echo_n "(cached) " >&6
4738 ac_cv_prog_cc_c89=no
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4746 struct buf { int x; };
4747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4748 static char *e (p, i)
4754 static char *f (char * (*g) (char **, int), char **p, ...)
4759 s = g (p, va_arg (v,int));
4764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4765 function prototypes and stuff, but not '\xHH' hex character constants.
4766 These don't provoke an error unfortunately, instead are silently treated
4767 as 'x'. The following induces an error, until -std is added to get
4768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4769 array size at least. It's necessary to write '\x00'==0 to get something
4770 that's true only with -std. */
4771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4774 inside strings and character constants. */
4776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4778 int test (int i, double x);
4779 struct s1 {int (*f) (int a);};
4780 struct s2 {int (*f) (double a);};
4781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4792 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4795 CC="$ac_save_CC $ac_arg"
4796 if ac_fn_c_try_compile "$LINENO"; then :
4797 ac_cv_prog_cc_c89=$ac_arg
4799 rm -f core conftest.err conftest.$ac_objext
4800 test "x$ac_cv_prog_cc_c89" != "xno" && break
4802 rm -f conftest.$ac_ext
4807 case "x$ac_cv_prog_cc_c89" in
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4810 $as_echo "none needed" >&6; } ;;
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4813 $as_echo "unsupported" >&6; } ;;
4815 CC="$CC $ac_cv_prog_cc_c89"
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4817 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4819 if test "x$ac_cv_prog_cc_c89" != xno; then :
4824 ac_cpp='$CPP $CPPFLAGS'
4825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830 ac_cpp='$CPP $CPPFLAGS'
4831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4835 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4836 if ${am_cv_prog_cc_c_o+:} false; then :
4837 $as_echo_n "(cached) " >&6
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4850 # Make sure it works both with $CC and with simple cc.
4851 # Following AC_PROG_CC_C_O, we do the test twice because some
4852 # compilers refuse to overwrite an existing .o file with -o,
4853 # though they will create one.
4854 am_cv_prog_cc_c_o=yes
4856 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4857 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } \
4861 && test -f conftest2.$ac_objext; then
4864 am_cv_prog_cc_c_o=no
4868 rm -f core conftest*
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4872 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4873 if test "$am_cv_prog_cc_c_o" != yes; then
4874 # Losing compiler, so override with the script.
4875 # FIXME: It is wrong to rewrite CC.
4876 # But if we don't then we get into trouble of one sort or another.
4877 # A longer-term fix would be to have automake use am__CC in this case,
4878 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4879 CC="$am_aux_dir/compile $CC"
4882 ac_cpp='$CPP $CPPFLAGS'
4883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4888 depcc="$CC" am_compiler_list=
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4891 $as_echo_n "checking dependency style of $depcc... " >&6; }
4892 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4893 $as_echo_n "(cached) " >&6
4895 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4896 # We make a subdir and do the tests there. Otherwise we can end up
4897 # making bogus files that we don't know about and never remove. For
4898 # instance it was reported that on HP-UX the gcc test will end up
4899 # making a dummy file named 'D' -- because '-MD' means "put the output
4903 # Copy depcomp to subdir because otherwise we won't find it if we're
4904 # using a relative directory.
4905 cp "$am_depcomp" conftest.dir
4907 # We will build objects and dependencies in a subdirectory because
4908 # it helps to detect inapplicable dependency modes. For instance
4909 # both Tru64's cc and ICC support -MD to output dependencies as a
4910 # side effect of compilation, but ICC will put the dependencies in
4911 # the current directory while Tru64 will put them in the object
4915 am_cv_CC_dependencies_compiler_type=none
4916 if test "$am_compiler_list" = ""; then
4917 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4920 case " $depcc " in #(
4921 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4924 for depmode in $am_compiler_list; do
4925 # Setup a source with many dependencies, because some compilers
4926 # like to wrap large dependency lists on column 80 (with \), and
4927 # we should not choose a depcomp mode which is confused by this.
4929 # We need to recreate these files for each test, as the compiler may
4930 # overwrite some of them when testing with obscure command lines.
4931 # This happens at least with the AIX C compiler.
4933 for i in 1 2 3 4 5 6; do
4934 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4935 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4936 # Solaris 10 /bin/sh.
4937 echo '/* dummy */' > sub/conftst$i.h
4939 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4941 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4942 # mode. It turns out that the SunPro C++ compiler does not properly
4943 # handle '-M -o', and we need to detect this. Also, some Intel
4944 # versions had trouble with output in subdirs.
4945 am__obj=sub/conftest.${OBJEXT-o}
4946 am__minus_obj="-o $am__obj"
4949 # This depmode causes a compiler race in universal mode.
4950 test "$am__universal" = false || continue
4953 # After this tag, mechanisms are not by side-effect, so they'll
4954 # only be used when explicitly requested.
4955 if test "x$enable_dependency_tracking" = xyes; then
4961 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4962 # This compiler won't grok '-c -o', but also, the minuso test has
4963 # not run yet. These depmodes are late enough in the game, and
4964 # so weak that their functioning should not be impacted.
4965 am__obj=conftest.${OBJEXT-o}
4970 if depmode=$depmode \
4971 source=sub/conftest.c object=$am__obj \
4972 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4973 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4974 >/dev/null 2>conftest.err &&
4975 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4976 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4977 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4978 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4979 # icc doesn't choke on unknown options, it will just issue warnings
4980 # or remarks (even with -Werror). So we grep stderr for any message
4981 # that says an option was ignored or not supported.
4982 # When given -MP, icc 7.0 and 7.1 complain thusly:
4983 # icc: Command line warning: ignoring option '-M'; no argument required
4984 # The diagnosis changed in icc 8.0:
4985 # icc: Command line remark: option '-MP' not supported
4986 if (grep 'ignoring option' conftest.err ||
4987 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4988 am_cv_CC_dependencies_compiler_type=$depmode
4997 am_cv_CC_dependencies_compiler_type=none
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5002 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5003 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5006 test "x$enable_dependency_tracking" != xno \
5007 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5009 am__fastdepCC_FALSE='#'
5011 am__fastdepCC_TRUE='#'
5012 am__fastdepCC_FALSE=
5018 ac_cpp='$CPP $CPPFLAGS'
5019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5023 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5024 # On Suns, sometimes $CPP names a directory.
5025 if test -n "$CPP" && test -d "$CPP"; then
5028 if test -z "$CPP"; then
5029 if ${ac_cv_prog_CPP+:} false; then :
5030 $as_echo_n "(cached) " >&6
5032 # Double quotes because CPP needs to be expanded
5033 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5036 for ac_c_preproc_warn_flag in '' yes
5038 # Use a header file that comes with gcc, so configuring glibc
5039 # with a fresh cross-compiler works.
5040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5041 # <limits.h> exists even on freestanding compilers.
5042 # On the NeXT, cc -E runs the code through the compiler's parser,
5043 # not just through cpp. "Syntax error" is here to catch this case.
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5047 # include <limits.h>
5049 # include <assert.h>
5053 if ac_fn_c_try_cpp "$LINENO"; then :
5056 # Broken: fails on valid input.
5059 rm -f conftest.err conftest.i conftest.$ac_ext
5061 # OK, works on sane cases. Now check whether nonexistent headers
5062 # can be detected and how.
5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h. */
5065 #include <ac_nonexistent.h>
5067 if ac_fn_c_try_cpp "$LINENO"; then :
5068 # Broken: success on invalid input.
5071 # Passes both tests.
5075 rm -f conftest.err conftest.i conftest.$ac_ext
5078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5079 rm -f conftest.i conftest.err conftest.$ac_ext
5080 if $ac_preproc_ok; then :
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5093 $as_echo "$CPP" >&6; }
5095 for ac_c_preproc_warn_flag in '' yes
5097 # Use a header file that comes with gcc, so configuring glibc
5098 # with a fresh cross-compiler works.
5099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5100 # <limits.h> exists even on freestanding compilers.
5101 # On the NeXT, cc -E runs the code through the compiler's parser,
5102 # not just through cpp. "Syntax error" is here to catch this case.
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5106 # include <limits.h>
5108 # include <assert.h>
5112 if ac_fn_c_try_cpp "$LINENO"; then :
5115 # Broken: fails on valid input.
5118 rm -f conftest.err conftest.i conftest.$ac_ext
5120 # OK, works on sane cases. Now check whether nonexistent headers
5121 # can be detected and how.
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124 #include <ac_nonexistent.h>
5126 if ac_fn_c_try_cpp "$LINENO"; then :
5127 # Broken: success on invalid input.
5130 # Passes both tests.
5134 rm -f conftest.err conftest.i conftest.$ac_ext
5137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5138 rm -f conftest.i conftest.err conftest.$ac_ext
5139 if $ac_preproc_ok; then :
5142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5144 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5145 See \`config.log' for more details" "$LINENO" 5; }
5149 ac_cpp='$CPP $CPPFLAGS'
5150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5156 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5157 if ${ac_cv_path_GREP+:} false; then :
5158 $as_echo_n "(cached) " >&6
5160 if test -z "$GREP"; then
5161 ac_path_GREP_found=false
5162 # Loop through the user's path and test for each of PROGNAME-LIST
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5167 test -z "$as_dir" && as_dir=.
5168 for ac_prog in grep ggrep; do
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5171 as_fn_executable_p "$ac_path_GREP" || continue
5172 # Check for GNU ac_path_GREP and select it if it is found.
5173 # Check for GNU $ac_path_GREP
5174 case `"$ac_path_GREP" --version 2>&1` in
5176 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5179 $as_echo_n 0123456789 >"conftest.in"
5182 cat "conftest.in" "conftest.in" >"conftest.tmp"
5183 mv "conftest.tmp" "conftest.in"
5184 cp "conftest.in" "conftest.nl"
5185 $as_echo 'GREP' >> "conftest.nl"
5186 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5188 as_fn_arith $ac_count + 1 && ac_count=$as_val
5189 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5190 # Best one so far, save it but keep looking for a better one
5191 ac_cv_path_GREP="$ac_path_GREP"
5192 ac_path_GREP_max=$ac_count
5194 # 10*(2^10) chars as input seems more than enough
5195 test $ac_count -gt 10 && break
5197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5200 $ac_path_GREP_found && break 3
5205 if test -z "$ac_cv_path_GREP"; then
5206 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5209 ac_cv_path_GREP=$GREP
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5214 $as_echo "$ac_cv_path_GREP" >&6; }
5215 GREP="$ac_cv_path_GREP"
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5219 $as_echo_n "checking for egrep... " >&6; }
5220 if ${ac_cv_path_EGREP+:} false; then :
5221 $as_echo_n "(cached) " >&6
5223 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5224 then ac_cv_path_EGREP="$GREP -E"
5226 if test -z "$EGREP"; then
5227 ac_path_EGREP_found=false
5228 # Loop through the user's path and test for each of PROGNAME-LIST
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5233 test -z "$as_dir" && as_dir=.
5234 for ac_prog in egrep; do
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5237 as_fn_executable_p "$ac_path_EGREP" || continue
5238 # Check for GNU ac_path_EGREP and select it if it is found.
5239 # Check for GNU $ac_path_EGREP
5240 case `"$ac_path_EGREP" --version 2>&1` in
5242 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5245 $as_echo_n 0123456789 >"conftest.in"
5248 cat "conftest.in" "conftest.in" >"conftest.tmp"
5249 mv "conftest.tmp" "conftest.in"
5250 cp "conftest.in" "conftest.nl"
5251 $as_echo 'EGREP' >> "conftest.nl"
5252 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5254 as_fn_arith $ac_count + 1 && ac_count=$as_val
5255 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5256 # Best one so far, save it but keep looking for a better one
5257 ac_cv_path_EGREP="$ac_path_EGREP"
5258 ac_path_EGREP_max=$ac_count
5260 # 10*(2^10) chars as input seems more than enough
5261 test $ac_count -gt 10 && break
5263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5266 $ac_path_EGREP_found && break 3
5271 if test -z "$ac_cv_path_EGREP"; then
5272 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5275 ac_cv_path_EGREP=$EGREP
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5281 $as_echo "$ac_cv_path_EGREP" >&6; }
5282 EGREP="$ac_cv_path_EGREP"
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5286 $as_echo_n "checking for ANSI C header files... " >&6; }
5287 if ${ac_cv_header_stdc+:} false; then :
5288 $as_echo_n "(cached) " >&6
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5305 if ac_fn_c_try_compile "$LINENO"; then :
5306 ac_cv_header_stdc=yes
5308 ac_cv_header_stdc=no
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312 if test $ac_cv_header_stdc = yes; then
5313 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320 $EGREP "memchr" >/dev/null 2>&1; then :
5323 ac_cv_header_stdc=no
5329 if test $ac_cv_header_stdc = yes; then
5330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5337 $EGREP "free" >/dev/null 2>&1; then :
5340 ac_cv_header_stdc=no
5346 if test $ac_cv_header_stdc = yes; then
5347 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5348 if test "$cross_compiling" = yes; then :
5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5355 #if ((' ' & 0x0FF) == 0x020)
5356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5359 # define ISLOWER(c) \
5360 (('a' <= (c) && (c) <= 'i') \
5361 || ('j' <= (c) && (c) <= 'r') \
5362 || ('s' <= (c) && (c) <= 'z'))
5363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5371 for (i = 0; i < 256; i++)
5372 if (XOR (islower (i), ISLOWER (i))
5373 || toupper (i) != TOUPPER (i))
5378 if ac_fn_c_try_run "$LINENO"; then :
5381 ac_cv_header_stdc=no
5383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5384 conftest.$ac_objext conftest.beam conftest.$ac_ext
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5390 $as_echo "$ac_cv_header_stdc" >&6; }
5391 if test $ac_cv_header_stdc = yes; then
5393 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5397 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5398 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5399 inttypes.h stdint.h unistd.h
5401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5402 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5404 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5405 cat >>confdefs.h <<_ACEOF
5406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5417 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5418 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5425 if test "$MINIX" = yes; then
5427 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5430 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5433 $as_echo "#define _MINIX 1" >>confdefs.h
5440 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5447 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5448 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5449 $as_echo_n "(cached) " >&6
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5454 # define __EXTENSIONS__ 1
5455 $ac_includes_default
5464 if ac_fn_c_try_compile "$LINENO"; then :
5465 ac_cv_safe_to_define___extensions__=yes
5467 ac_cv_safe_to_define___extensions__=no
5469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5472 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5473 test $ac_cv_safe_to_define___extensions__ = yes &&
5474 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5476 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5478 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5480 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5482 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5487 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5488 if ${ac_cv_prog_cc_c89+:} false; then :
5489 $as_echo_n "(cached) " >&6
5491 ac_cv_prog_cc_c89=no
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5498 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5499 struct buf { int x; };
5500 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5501 static char *e (p, i)
5507 static char *f (char * (*g) (char **, int), char **p, ...)
5512 s = g (p, va_arg (v,int));
5517 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5518 function prototypes and stuff, but not '\xHH' hex character constants.
5519 These don't provoke an error unfortunately, instead are silently treated
5520 as 'x'. The following induces an error, until -std is added to get
5521 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5522 array size at least. It's necessary to write '\x00'==0 to get something
5523 that's true only with -std. */
5524 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5526 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5527 inside strings and character constants. */
5529 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5531 int test (int i, double x);
5532 struct s1 {int (*f) (int a);};
5533 struct s2 {int (*f) (double a);};
5534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5540 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5545 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5546 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5548 CC="$ac_save_CC $ac_arg"
5549 if ac_fn_c_try_compile "$LINENO"; then :
5550 ac_cv_prog_cc_c89=$ac_arg
5552 rm -f core conftest.err conftest.$ac_objext
5553 test "x$ac_cv_prog_cc_c89" != "xno" && break
5555 rm -f conftest.$ac_ext
5560 case "x$ac_cv_prog_cc_c89" in
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5563 $as_echo "none needed" >&6; } ;;
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5566 $as_echo "unsupported" >&6; } ;;
5568 CC="$CC $ac_cv_prog_cc_c89"
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5570 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5572 if test "x$ac_cv_prog_cc_c89" != xno; then :
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5578 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5579 if ${ac_cv_prog_cc_c99+:} false; then :
5580 $as_echo_n "(cached) " >&6
5582 ac_cv_prog_cc_c99=no
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5587 #include <stdbool.h>
5592 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5593 #define debug(...) fprintf (stderr, __VA_ARGS__)
5594 #define showlist(...) puts (#__VA_ARGS__)
5595 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5597 test_varargs_macros (void)
5602 debug ("X = %d\n", x);
5603 showlist (The first, second, and third items.);
5604 report (x>y, "x is %d but y is %d", x, y);
5607 // Check long long types.
5608 #define BIG64 18446744073709551615ull
5609 #define BIG32 4294967295ul
5610 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5612 your preprocessor is broken;
5616 your preprocessor is broken;
5618 static long long int bignum = -9223372036854775807LL;
5619 static unsigned long long int ubignum = BIG64;
5621 struct incomplete_array
5629 const wchar_t *name;
5633 typedef const char *ccp;
5636 test_restrict (ccp restrict text)
5638 // See if C++-style comments work.
5639 // Iterate through items via the restricted pointer.
5640 // Also check for declarations in for loops.
5641 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5646 // Check varargs and va_copy.
5648 test_varargs (const char *format, ...)
5651 va_start (args, format);
5653 va_copy (args_copy, args);
5664 str = va_arg (args_copy, const char *);
5667 number = va_arg (args_copy, int);
5670 fnumber = va_arg (args_copy, double);
5685 _Bool success = false;
5688 if (test_restrict ("String literal") == 0)
5690 char *restrict newvar = "Another string";
5693 test_varargs ("s, d' f .", "string", 65, 34.234);
5694 test_varargs_macros ();
5696 // Check flexible array members.
5697 struct incomplete_array *ia =
5698 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5700 for (int i = 0; i < ia->datasize; ++i)
5701 ia->data[i] = i * 1.234;
5703 // Check named initializers.
5704 struct named_init ni = {
5706 .name = L"Test wide string",
5707 .average = 543.34343,
5712 int dynamic_array[ni.number];
5713 dynamic_array[ni.number - 1] = 543;
5715 // work around unused variable warnings
5716 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5717 || dynamic_array[ni.number - 1] != 543);
5723 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5725 CC="$ac_save_CC $ac_arg"
5726 if ac_fn_c_try_compile "$LINENO"; then :
5727 ac_cv_prog_cc_c99=$ac_arg
5729 rm -f core conftest.err conftest.$ac_objext
5730 test "x$ac_cv_prog_cc_c99" != "xno" && break
5732 rm -f conftest.$ac_ext
5737 case "x$ac_cv_prog_cc_c99" in
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5740 $as_echo "none needed" >&6; } ;;
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5743 $as_echo "unsupported" >&6; } ;;
5745 CC="$CC $ac_cv_prog_cc_c99"
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5747 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5749 if test "x$ac_cv_prog_cc_c99" != xno; then :
5759 ac_cpp='$CPP $CPPFLAGS'
5760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5763 if test -n "$ac_tool_prefix"; then
5764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5765 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if ${ac_cv_prog_CC+:} false; then :
5769 $as_echo_n "(cached) " >&6
5771 if test -n "$CC"; then
5772 ac_cv_prog_CC="$CC" # Let the user override the test.
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 if test -n "$CC"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5794 $as_echo "$CC" >&6; }
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5802 if test -z "$ac_cv_prog_CC"; then
5804 # Extract the first word of "gcc", so it can be a program name with args.
5805 set dummy gcc; ac_word=$2
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5809 $as_echo_n "(cached) " >&6
5811 if test -n "$ac_ct_CC"; then
5812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821 ac_cv_prog_ac_ct_CC="gcc"
5822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5832 if test -n "$ac_ct_CC"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5834 $as_echo "$ac_ct_CC" >&6; }
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5840 if test "x$ac_ct_CC" = x; then
5843 case $cross_compiling:$ac_tool_warned in
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5847 ac_tool_warned=yes ;;
5855 if test -z "$CC"; then
5856 if test -n "$ac_tool_prefix"; then
5857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5858 set dummy ${ac_tool_prefix}cc; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if ${ac_cv_prog_CC+:} false; then :
5862 $as_echo_n "(cached) " >&6
5864 if test -n "$CC"; then
5865 ac_cv_prog_CC="$CC" # Let the user override the test.
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874 ac_cv_prog_CC="${ac_tool_prefix}cc"
5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 if test -n "$CC"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5887 $as_echo "$CC" >&6; }
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5896 if test -z "$CC"; then
5897 # Extract the first word of "cc", so it can be a program name with args.
5898 set dummy cc; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_prog_CC+:} false; then :
5902 $as_echo_n "(cached) " >&6
5904 if test -n "$CC"; then
5905 ac_cv_prog_CC="$CC" # Let the user override the test.
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5916 ac_prog_rejected=yes
5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 if test $ac_prog_rejected = yes; then
5928 # We found a bogon in the path, so make sure we never use it.
5929 set dummy $ac_cv_prog_CC
5931 if test $# != 0; then
5932 # We chose a different compiler from the bogus one.
5933 # However, it has the same basename, so the bogon will be chosen
5934 # first if we set CC to just the basename; use the full file name.
5936 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5942 if test -n "$CC"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5944 $as_echo "$CC" >&6; }
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5952 if test -z "$CC"; then
5953 if test -n "$ac_tool_prefix"; then
5954 for ac_prog in cl.exe
5956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if ${ac_cv_prog_CC+:} false; then :
5961 $as_echo_n "(cached) " >&6
5963 if test -n "$CC"; then
5964 ac_cv_prog_CC="$CC" # Let the user override the test.
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 if test -n "$CC"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5986 $as_echo "$CC" >&6; }
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5993 test -n "$CC" && break
5996 if test -z "$CC"; then
5998 for ac_prog in cl.exe
6000 # Extract the first word of "$ac_prog", so it can be a program name with args.
6001 set dummy $ac_prog; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6005 $as_echo_n "(cached) " >&6
6007 if test -n "$ac_ct_CC"; then
6008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017 ac_cv_prog_ac_ct_CC="$ac_prog"
6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6028 if test -n "$ac_ct_CC"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6030 $as_echo "$ac_ct_CC" >&6; }
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6037 test -n "$ac_ct_CC" && break
6040 if test "x$ac_ct_CC" = x; then
6043 case $cross_compiling:$ac_tool_warned in
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6047 ac_tool_warned=yes ;;
6056 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6058 as_fn_error $? "no acceptable C compiler found in \$PATH
6059 See \`config.log' for more details" "$LINENO" 5; }
6061 # Provide some information about the compiler.
6062 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6065 for ac_option in --version -v -V -qversion; do
6066 { { ac_try="$ac_compiler $ac_option >&5"
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6072 $as_echo "$ac_try_echo"; } >&5
6073 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6075 if test -s conftest.err; then
6077 ... rest of stderr output deleted ...
6078 10q' conftest.err >conftest.er1
6079 cat conftest.er1 >&5
6081 rm -f conftest.er1 conftest.err
6082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6083 test $ac_status = 0; }
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6087 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6088 if ${ac_cv_c_compiler_gnu+:} false; then :
6089 $as_echo_n "(cached) " >&6
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6105 if ac_fn_c_try_compile "$LINENO"; then :
6110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6115 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6116 if test $ac_compiler_gnu = yes; then
6121 ac_test_CFLAGS=${CFLAGS+set}
6122 ac_save_CFLAGS=$CFLAGS
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6124 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6125 if ${ac_cv_prog_cc_g+:} false; then :
6126 $as_echo_n "(cached) " >&6
6128 ac_save_c_werror_flag=$ac_c_werror_flag
6129 ac_c_werror_flag=yes
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6143 if ac_fn_c_try_compile "$LINENO"; then :
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6158 if ac_fn_c_try_compile "$LINENO"; then :
6161 ac_c_werror_flag=$ac_save_c_werror_flag
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6174 if ac_fn_c_try_compile "$LINENO"; then :
6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 ac_c_werror_flag=$ac_save_c_werror_flag
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6185 $as_echo "$ac_cv_prog_cc_g" >&6; }
6186 if test "$ac_test_CFLAGS" = set; then
6187 CFLAGS=$ac_save_CFLAGS
6188 elif test $ac_cv_prog_cc_g = yes; then
6189 if test "$GCC" = yes; then
6195 if test "$GCC" = yes; then
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6202 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6203 if ${ac_cv_prog_cc_c89+:} false; then :
6204 $as_echo_n "(cached) " >&6
6206 ac_cv_prog_cc_c89=no
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6213 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6214 struct buf { int x; };
6215 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6216 static char *e (p, i)
6222 static char *f (char * (*g) (char **, int), char **p, ...)
6227 s = g (p, va_arg (v,int));
6232 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6233 function prototypes and stuff, but not '\xHH' hex character constants.
6234 These don't provoke an error unfortunately, instead are silently treated
6235 as 'x'. The following induces an error, until -std is added to get
6236 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6237 array size at least. It's necessary to write '\x00'==0 to get something
6238 that's true only with -std. */
6239 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6241 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6242 inside strings and character constants. */
6244 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6246 int test (int i, double x);
6247 struct s1 {int (*f) (int a);};
6248 struct s2 {int (*f) (double a);};
6249 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6255 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6260 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6261 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6263 CC="$ac_save_CC $ac_arg"
6264 if ac_fn_c_try_compile "$LINENO"; then :
6265 ac_cv_prog_cc_c89=$ac_arg
6267 rm -f core conftest.err conftest.$ac_objext
6268 test "x$ac_cv_prog_cc_c89" != "xno" && break
6270 rm -f conftest.$ac_ext
6275 case "x$ac_cv_prog_cc_c89" in
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6278 $as_echo "none needed" >&6; } ;;
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6281 $as_echo "unsupported" >&6; } ;;
6283 CC="$CC $ac_cv_prog_cc_c89"
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6285 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6287 if test "x$ac_cv_prog_cc_c89" != xno; then :
6292 ac_cpp='$CPP $CPPFLAGS'
6293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6298 ac_cpp='$CPP $CPPFLAGS'
6299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6303 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6304 if ${am_cv_prog_cc_c_o+:} false; then :
6305 $as_echo_n "(cached) " >&6
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6318 # Make sure it works both with $CC and with simple cc.
6319 # Following AC_PROG_CC_C_O, we do the test twice because some
6320 # compilers refuse to overwrite an existing .o file with -o,
6321 # though they will create one.
6322 am_cv_prog_cc_c_o=yes
6324 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6325 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } \
6329 && test -f conftest2.$ac_objext; then
6332 am_cv_prog_cc_c_o=no
6336 rm -f core conftest*
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6340 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6341 if test "$am_cv_prog_cc_c_o" != yes; then
6342 # Losing compiler, so override with the script.
6343 # FIXME: It is wrong to rewrite CC.
6344 # But if we don't then we get into trouble of one sort or another.
6345 # A longer-term fix would be to have automake use am__CC in this case,
6346 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6347 CC="$am_aux_dir/compile $CC"
6350 ac_cpp='$CPP $CPPFLAGS'
6351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6356 depcc="$CC" am_compiler_list=
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6359 $as_echo_n "checking dependency style of $depcc... " >&6; }
6360 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6361 $as_echo_n "(cached) " >&6
6363 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6364 # We make a subdir and do the tests there. Otherwise we can end up
6365 # making bogus files that we don't know about and never remove. For
6366 # instance it was reported that on HP-UX the gcc test will end up
6367 # making a dummy file named 'D' -- because '-MD' means "put the output
6371 # Copy depcomp to subdir because otherwise we won't find it if we're
6372 # using a relative directory.
6373 cp "$am_depcomp" conftest.dir
6375 # We will build objects and dependencies in a subdirectory because
6376 # it helps to detect inapplicable dependency modes. For instance
6377 # both Tru64's cc and ICC support -MD to output dependencies as a
6378 # side effect of compilation, but ICC will put the dependencies in
6379 # the current directory while Tru64 will put them in the object
6383 am_cv_CC_dependencies_compiler_type=none
6384 if test "$am_compiler_list" = ""; then
6385 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6388 case " $depcc " in #(
6389 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6392 for depmode in $am_compiler_list; do
6393 # Setup a source with many dependencies, because some compilers
6394 # like to wrap large dependency lists on column 80 (with \), and
6395 # we should not choose a depcomp mode which is confused by this.
6397 # We need to recreate these files for each test, as the compiler may
6398 # overwrite some of them when testing with obscure command lines.
6399 # This happens at least with the AIX C compiler.
6401 for i in 1 2 3 4 5 6; do
6402 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6403 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6404 # Solaris 10 /bin/sh.
6405 echo '/* dummy */' > sub/conftst$i.h
6407 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6409 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6410 # mode. It turns out that the SunPro C++ compiler does not properly
6411 # handle '-M -o', and we need to detect this. Also, some Intel
6412 # versions had trouble with output in subdirs.
6413 am__obj=sub/conftest.${OBJEXT-o}
6414 am__minus_obj="-o $am__obj"
6417 # This depmode causes a compiler race in universal mode.
6418 test "$am__universal" = false || continue
6421 # After this tag, mechanisms are not by side-effect, so they'll
6422 # only be used when explicitly requested.
6423 if test "x$enable_dependency_tracking" = xyes; then
6429 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6430 # This compiler won't grok '-c -o', but also, the minuso test has
6431 # not run yet. These depmodes are late enough in the game, and
6432 # so weak that their functioning should not be impacted.
6433 am__obj=conftest.${OBJEXT-o}
6438 if depmode=$depmode \
6439 source=sub/conftest.c object=$am__obj \
6440 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6441 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6442 >/dev/null 2>conftest.err &&
6443 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6444 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6445 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6446 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6447 # icc doesn't choke on unknown options, it will just issue warnings
6448 # or remarks (even with -Werror). So we grep stderr for any message
6449 # that says an option was ignored or not supported.
6450 # When given -MP, icc 7.0 and 7.1 complain thusly:
6451 # icc: Command line warning: ignoring option '-M'; no argument required
6452 # The diagnosis changed in icc 8.0:
6453 # icc: Command line remark: option '-MP' not supported
6454 if (grep 'ignoring option' conftest.err ||
6455 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6456 am_cv_CC_dependencies_compiler_type=$depmode
6465 am_cv_CC_dependencies_compiler_type=none
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6470 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6471 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6474 test "x$enable_dependency_tracking" != xno \
6475 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6477 am__fastdepCC_FALSE='#'
6479 am__fastdepCC_TRUE='#'
6480 am__fastdepCC_FALSE=
6484 # Ralf Wildenhues: With per-target flags we need CC_C_O
6485 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
6487 if test $ac_cv_c_compiler_gnu = yes; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6489 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6490 if ${ac_cv_prog_gcc_traditional+:} false; then :
6491 $as_echo_n "(cached) " >&6
6493 ac_pattern="Autoconf.*'x'"
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6500 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6501 ac_cv_prog_gcc_traditional=yes
6503 ac_cv_prog_gcc_traditional=no
6508 if test $ac_cv_prog_gcc_traditional = no; then
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6515 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6516 ac_cv_prog_gcc_traditional=yes
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6523 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6524 if test $ac_cv_prog_gcc_traditional = yes; then
6525 CC="$CC -traditional"
6542 case "$ac_cv_prog_cc_c89" in
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6545 version 4.2.5 and higher." >&5
6546 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6547 version 4.2.5 and higher." >&2;}
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
6552 $as_echo_n "checking if $CC can handle #warning... " >&6; }
6553 if ${ntp_cv_cpp_warning+:} false; then :
6554 $as_echo_n "(cached) " >&6
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6567 if ac_fn_c_try_compile "$LINENO"; then :
6568 ntp_cv_cpp_warning=yes
6570 ntp_cv_cpp_warning=no
6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
6577 $as_echo "$ntp_cv_cpp_warning" >&6; }
6578 case "$ntp_cv_cpp_warning" in
6581 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
6586 $as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
6587 if ${ntp_cv_cc_attribute+:} false; then :
6588 $as_echo_n "(cached) " >&6
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6596 void foo(void) __attribute__((__noreturn__));
6602 if ac_fn_c_try_compile "$LINENO"; then :
6603 ntp_cv_cc_attribute=yes
6605 ntp_cv_cc_attribute=no
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
6612 $as_echo "$ntp_cv_cc_attribute" >&6; }
6613 case "$ntp_cv_cc_attribute" in
6616 $as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
6623 SAVED_CFLAGS="$CFLAGS"
6624 CFLAGS="$CFLAGS -Wstrict-overflow"
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
6626 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
6627 if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
6628 $as_echo_n "(cached) " >&6
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6641 if ac_fn_c_try_compile "$LINENO"; then :
6642 ntp_cv_gcc_Wstrict_overflow=yes
6644 ntp_cv_gcc_Wstrict_overflow=no
6647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
6651 $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
6653 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
6656 CFLAGS="$SAVED_CFLAGS -Winit-self"
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
6658 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
6659 if ${ntp_cv_gcc_Winit_self+:} false; then :
6660 $as_echo_n "(cached) " >&6
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6674 if ac_fn_c_try_compile "$LINENO"; then :
6675 ntp_cv_gcc_Winit_self=yes
6677 ntp_cv_gcc_Winit_self=no
6680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
6685 $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
6686 CFLAGS="$SAVED_CFLAGS"
6687 { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
6689 # $ntp_cv_gcc_Winit_self is tested later to add the
6690 # flag to CFLAGS_NTP.
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
6693 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
6694 if ${ntp_cv_gc_sections_runs+:} false; then :
6695 $as_echo_n "(cached) " >&6
6698 origCFLAGS="$CFLAGS"
6699 CFLAGS="$CFLAGS -Wl,--gc-sections"
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6713 int read_success_once;
6715 fpC = fopen("conftest.c", "r");
6719 cch = fread(buf, sizeof(buf), 1, fpC);
6720 read_success_once |= (0 != cch);
6722 if (!read_success_once)
6726 if (0 != fclose(fpC))
6736 if ac_fn_c_try_link "$LINENO"; then :
6738 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
6739 ntp_cv_gc_sections_runs=no
6741 ntp_cv_gc_sections_runs=no
6742 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
6746 ntp_cv_gc_sections_runs=no
6749 rm -f core conftest.err conftest.$ac_objext \
6750 conftest$ac_exeext conftest.$ac_ext
6751 CFLAGS="$origCFLAGS"
6752 { origCFLAGS=; unset origCFLAGS;}
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
6757 $as_echo "$ntp_cv_gc_sections_runs" >&6; }
6758 case "$ntp_cv_gc_sections_runs" in
6760 LDADD_LIBNTP="-Wl,--gc-sections"
6761 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
6767 CFLAGS_NTP="$CFLAGS_NTP -Wall"
6768 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
6769 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
6770 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
6771 # CFLAGS_NTP="$CFLAGS_NTP -Werror"
6772 # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
6773 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
6774 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
6775 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
6776 CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
6777 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
6778 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
6779 case "$ntp_cv_gcc_Winit_self" in
6781 CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
6783 case "$ntp_cv_gcc_Wstrict_overflow" in
6785 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
6787 # -W[no-]strict-prototypes might be added by NTP_OPENSSL
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6792 $as_echo_n "checking additional compiler flags... " >&6; }
6793 # allow ntp_os_cflags to be preset to skip this stuff
6794 case "${ntp_os_cflags+set}" in
6803 # turn on additional headers
6804 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6807 # avoid circular dependencies in yp headers, and more
6808 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6809 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
6812 # XXX Only verified thru AIX6.
6813 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
6814 # avoid circular dependencies in yp headers
6815 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
6816 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
6817 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
6818 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
6819 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
6822 ntp_os_cflags="-DSYS_AMIGA"
6824 darwin*|macosx*|rhapsody*)
6825 ntp_os_cflags="-D_P1003_1B_VISIBLE"
6827 hpux10.*) # at least for hppa2.0-hp-hpux10.20
6832 # use Ansi compiler on HPUX, and some -Wp magic
6833 ntp_os_cflags="-Ae -Wp,-H18816"
6836 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6843 # use Ansi compiler on HPUX
6846 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6851 # do not use 64-bit compiler
6852 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
6856 ntp_os_cflags="-posix"
6858 solaris1*|solaris2.[0-5]|solaris2.5.*)
6860 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
6863 # turn on 64-bit file offset interface
6864 ntp_os_cflags="-D_LARGEFILE64_SOURCE"
6871 # Quick and dirty sanity check
6872 case "$VX_KERNEL" in
6874 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
6876 ntp_os_cflags="-DSYS_VXWORKS"
6881 case "$ntp_os_cflags" in
6883 ntp_os_cflags_msg="none needed"
6886 ntp_os_cflags_msg="$ntp_os_cflags"
6888 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
6890 $as_echo "$ntp_os_cflags_msg" >&6; }
6891 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
6894 $as_echo_n "checking additional linker flags... " >&6; }
6895 # HMS: The following might still need tweaking
6896 # allow ntp_os_ldflags to be preset to skip this stuff
6897 case "${ntp_os_ldflags+set}" in
6906 ntp_os_ldflags="-Wl,+allowdups"
6913 case "$ntp_os_ldflags" in
6915 ntp_os_ldflags_msg="none needed"
6918 ntp_os_ldflags_msg="$ntp_os_ldflags"
6920 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
6922 $as_echo "$ntp_os_ldflags_msg" >&6; }
6923 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6928 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6929 if ${ac_cv_c_bigendian+:} false; then :
6930 $as_echo_n "(cached) " >&6
6932 ac_cv_c_bigendian=unknown
6933 # See if we're dealing with a universal compiler.
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6936 #ifndef __APPLE_CC__
6937 not a universal capable compiler
6942 if ac_fn_c_try_compile "$LINENO"; then :
6944 # Check for potential -arch flags. It is not universal unless
6945 # there are at least two -arch flags with different values.
6948 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6949 if test -n "$ac_prev"; then
6951 i?86 | x86_64 | ppc | ppc64)
6952 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6955 ac_cv_c_bigendian=universal
6961 elif test "x$ac_word" = "x-arch"; then
6966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6967 if test $ac_cv_c_bigendian = unknown; then
6968 # See if sys/param.h defines the BYTE_ORDER macro.
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971 #include <sys/types.h>
6972 #include <sys/param.h>
6977 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6978 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6987 if ac_fn_c_try_compile "$LINENO"; then :
6988 # It does; now see whether it defined to BIG_ENDIAN or not.
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6991 #include <sys/types.h>
6992 #include <sys/param.h>
6997 #if BYTE_ORDER != BIG_ENDIAN
7005 if ac_fn_c_try_compile "$LINENO"; then :
7006 ac_cv_c_bigendian=yes
7008 ac_cv_c_bigendian=no
7010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014 if test $ac_cv_c_bigendian = unknown; then
7015 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7023 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7031 if ac_fn_c_try_compile "$LINENO"; then :
7032 # It does; now see whether it defined to _BIG_ENDIAN or not.
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7048 if ac_fn_c_try_compile "$LINENO"; then :
7049 ac_cv_c_bigendian=yes
7051 ac_cv_c_bigendian=no
7053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057 if test $ac_cv_c_bigendian = unknown; then
7058 # Compile a test program.
7059 if test "$cross_compiling" = yes; then :
7060 # Try to guess by grepping values from an object file.
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7063 short int ascii_mm[] =
7064 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7065 short int ascii_ii[] =
7066 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7067 int use_ascii (int i) {
7068 return ascii_mm[i] + ascii_ii[i];
7070 short int ebcdic_ii[] =
7071 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7072 short int ebcdic_mm[] =
7073 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7074 int use_ebcdic (int i) {
7075 return ebcdic_mm[i] + ebcdic_ii[i];
7082 return use_ascii (foo) == use_ebcdic (foo);
7087 if ac_fn_c_try_compile "$LINENO"; then :
7088 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7089 ac_cv_c_bigendian=yes
7091 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7092 if test "$ac_cv_c_bigendian" = unknown; then
7093 ac_cv_c_bigendian=no
7095 # finding both strings is unlikely to happen, but who knows?
7096 ac_cv_c_bigendian=unknown
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7104 $ac_includes_default
7109 /* Are we little or big endian? From Harbison&Steele. */
7113 char c[sizeof (long int)];
7116 return u.c[sizeof (long int) - 1] == 1;
7122 if ac_fn_c_try_run "$LINENO"; then :
7123 ac_cv_c_bigendian=no
7125 ac_cv_c_bigendian=yes
7127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7128 conftest.$ac_objext conftest.beam conftest.$ac_ext
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7134 $as_echo "$ac_cv_c_bigendian" >&6; }
7135 case $ac_cv_c_bigendian in #(
7137 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7143 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7147 as_fn_error $? "unknown endianness
7148 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7152 $as_echo_n "checking for working volatile... " >&6; }
7153 if ${ac_cv_c_volatile+:} false; then :
7154 $as_echo_n "(cached) " >&6
7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7164 int * volatile y = (int *) 0;
7170 if ac_fn_c_try_compile "$LINENO"; then :
7171 ac_cv_c_volatile=yes
7175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7178 $as_echo "$ac_cv_c_volatile" >&6; }
7179 if test $ac_cv_c_volatile = no; then
7181 $as_echo "#define volatile /**/" >>confdefs.h
7186 ac_cpp='$CPP $CPPFLAGS'
7187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7191 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7192 # On Suns, sometimes $CPP names a directory.
7193 if test -n "$CPP" && test -d "$CPP"; then
7196 if test -z "$CPP"; then
7197 if ${ac_cv_prog_CPP+:} false; then :
7198 $as_echo_n "(cached) " >&6
7200 # Double quotes because CPP needs to be expanded
7201 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7204 for ac_c_preproc_warn_flag in '' yes
7206 # Use a header file that comes with gcc, so configuring glibc
7207 # with a fresh cross-compiler works.
7208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7209 # <limits.h> exists even on freestanding compilers.
7210 # On the NeXT, cc -E runs the code through the compiler's parser,
7211 # not just through cpp. "Syntax error" is here to catch this case.
7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h. */
7215 # include <limits.h>
7217 # include <assert.h>
7221 if ac_fn_c_try_cpp "$LINENO"; then :
7224 # Broken: fails on valid input.
7227 rm -f conftest.err conftest.i conftest.$ac_ext
7229 # OK, works on sane cases. Now check whether nonexistent headers
7230 # can be detected and how.
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7233 #include <ac_nonexistent.h>
7235 if ac_fn_c_try_cpp "$LINENO"; then :
7236 # Broken: success on invalid input.
7239 # Passes both tests.
7243 rm -f conftest.err conftest.i conftest.$ac_ext
7246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7247 rm -f conftest.i conftest.err conftest.$ac_ext
7248 if $ac_preproc_ok; then :
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7261 $as_echo "$CPP" >&6; }
7263 for ac_c_preproc_warn_flag in '' yes
7265 # Use a header file that comes with gcc, so configuring glibc
7266 # with a fresh cross-compiler works.
7267 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7268 # <limits.h> exists even on freestanding compilers.
7269 # On the NeXT, cc -E runs the code through the compiler's parser,
7270 # not just through cpp. "Syntax error" is here to catch this case.
7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h. */
7274 # include <limits.h>
7276 # include <assert.h>
7280 if ac_fn_c_try_cpp "$LINENO"; then :
7283 # Broken: fails on valid input.
7286 rm -f conftest.err conftest.i conftest.$ac_ext
7288 # OK, works on sane cases. Now check whether nonexistent headers
7289 # can be detected and how.
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7292 #include <ac_nonexistent.h>
7294 if ac_fn_c_try_cpp "$LINENO"; then :
7295 # Broken: success on invalid input.
7298 # Passes both tests.
7302 rm -f conftest.err conftest.i conftest.$ac_ext
7305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7306 rm -f conftest.i conftest.err conftest.$ac_ext
7307 if $ac_preproc_ok; then :
7310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7312 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7313 See \`config.log' for more details" "$LINENO" 5; }
7317 ac_cpp='$CPP $CPPFLAGS'
7318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7325 ac_cpp='$CPP $CPPFLAGS'
7326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7330 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7331 # On Suns, sometimes $CPP names a directory.
7332 if test -n "$CPP" && test -d "$CPP"; then
7335 if test -z "$CPP"; then
7336 if ${ac_cv_prog_CPP+:} false; then :
7337 $as_echo_n "(cached) " >&6
7339 # Double quotes because CPP needs to be expanded
7340 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7343 for ac_c_preproc_warn_flag in '' yes
7345 # Use a header file that comes with gcc, so configuring glibc
7346 # with a fresh cross-compiler works.
7347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7348 # <limits.h> exists even on freestanding compilers.
7349 # On the NeXT, cc -E runs the code through the compiler's parser,
7350 # not just through cpp. "Syntax error" is here to catch this case.
7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352 /* end confdefs.h. */
7354 # include <limits.h>
7356 # include <assert.h>
7360 if ac_fn_c_try_cpp "$LINENO"; then :
7363 # Broken: fails on valid input.
7366 rm -f conftest.err conftest.i conftest.$ac_ext
7368 # OK, works on sane cases. Now check whether nonexistent headers
7369 # can be detected and how.
7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371 /* end confdefs.h. */
7372 #include <ac_nonexistent.h>
7374 if ac_fn_c_try_cpp "$LINENO"; then :
7375 # Broken: success on invalid input.
7378 # Passes both tests.
7382 rm -f conftest.err conftest.i conftest.$ac_ext
7385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7386 rm -f conftest.i conftest.err conftest.$ac_ext
7387 if $ac_preproc_ok; then :
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7400 $as_echo "$CPP" >&6; }
7402 for ac_c_preproc_warn_flag in '' yes
7404 # Use a header file that comes with gcc, so configuring glibc
7405 # with a fresh cross-compiler works.
7406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7407 # <limits.h> exists even on freestanding compilers.
7408 # On the NeXT, cc -E runs the code through the compiler's parser,
7409 # not just through cpp. "Syntax error" is here to catch this case.
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7413 # include <limits.h>
7415 # include <assert.h>
7419 if ac_fn_c_try_cpp "$LINENO"; then :
7422 # Broken: fails on valid input.
7425 rm -f conftest.err conftest.i conftest.$ac_ext
7427 # OK, works on sane cases. Now check whether nonexistent headers
7428 # can be detected and how.
7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h. */
7431 #include <ac_nonexistent.h>
7433 if ac_fn_c_try_cpp "$LINENO"; then :
7434 # Broken: success on invalid input.
7437 # Passes both tests.
7441 rm -f conftest.err conftest.i conftest.$ac_ext
7444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7445 rm -f conftest.i conftest.err conftest.$ac_ext
7446 if $ac_preproc_ok; then :
7449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7451 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7452 See \`config.log' for more details" "$LINENO" 5; }
7456 ac_cpp='$CPP $CPPFLAGS'
7457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7461 # Do we need CXX for anything besides google test?
7463 ac_cpp='$CXXCPP $CPPFLAGS'
7464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7467 if test -z "$CXX"; then
7468 if test -n "$CCC"; then
7471 if test -n "$ac_tool_prefix"; then
7472 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7475 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_prog_CXX+:} false; then :
7479 $as_echo_n "(cached) " >&6
7481 if test -n "$CXX"; then
7482 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 if test -n "$CXX"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7504 $as_echo "$CXX" >&6; }
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7511 test -n "$CXX" && break
7514 if test -z "$CXX"; then
7516 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7518 # Extract the first word of "$ac_prog", so it can be a program name with args.
7519 set dummy $ac_prog; ac_word=$2
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7521 $as_echo_n "checking for $ac_word... " >&6; }
7522 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7523 $as_echo_n "(cached) " >&6
7525 if test -n "$ac_ct_CXX"; then
7526 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 test -z "$as_dir" && as_dir=.
7533 for ac_exec_ext in '' $ac_executable_extensions; do
7534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7535 ac_cv_prog_ac_ct_CXX="$ac_prog"
7536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7546 if test -n "$ac_ct_CXX"; then
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7548 $as_echo "$ac_ct_CXX" >&6; }
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7555 test -n "$ac_ct_CXX" && break
7558 if test "x$ac_ct_CXX" = x; then
7561 case $cross_compiling:$ac_tool_warned in
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7565 ac_tool_warned=yes ;;
7573 # Provide some information about the compiler.
7574 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7577 for ac_option in --version -v -V -qversion; do
7578 { { ac_try="$ac_compiler $ac_option >&5"
7580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581 *) ac_try_echo=$ac_try;;
7583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7584 $as_echo "$ac_try_echo"; } >&5
7585 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7587 if test -s conftest.err; then
7589 ... rest of stderr output deleted ...
7590 10q' conftest.err >conftest.er1
7591 cat conftest.er1 >&5
7593 rm -f conftest.er1 conftest.err
7594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7595 test $ac_status = 0; }
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7599 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7600 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7601 $as_echo_n "(cached) " >&6
7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7617 if ac_fn_cxx_try_compile "$LINENO"; then :
7622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7623 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7627 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7628 if test $ac_compiler_gnu = yes; then
7633 ac_test_CXXFLAGS=${CXXFLAGS+set}
7634 ac_save_CXXFLAGS=$CXXFLAGS
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7636 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7637 if ${ac_cv_prog_cxx_g+:} false; then :
7638 $as_echo_n "(cached) " >&6
7640 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7641 ac_cxx_werror_flag=yes
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7655 if ac_fn_cxx_try_compile "$LINENO"; then :
7656 ac_cv_prog_cxx_g=yes
7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h. */
7670 if ac_fn_cxx_try_compile "$LINENO"; then :
7673 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7686 if ac_fn_cxx_try_compile "$LINENO"; then :
7687 ac_cv_prog_cxx_g=yes
7689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7697 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7698 if test "$ac_test_CXXFLAGS" = set; then
7699 CXXFLAGS=$ac_save_CXXFLAGS
7700 elif test $ac_cv_prog_cxx_g = yes; then
7701 if test "$GXX" = yes; then
7707 if test "$GXX" = yes; then
7714 ac_cpp='$CPP $CPPFLAGS'
7715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7719 depcc="$CXX" am_compiler_list=
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7722 $as_echo_n "checking dependency style of $depcc... " >&6; }
7723 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7724 $as_echo_n "(cached) " >&6
7726 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7727 # We make a subdir and do the tests there. Otherwise we can end up
7728 # making bogus files that we don't know about and never remove. For
7729 # instance it was reported that on HP-UX the gcc test will end up
7730 # making a dummy file named 'D' -- because '-MD' means "put the output
7734 # Copy depcomp to subdir because otherwise we won't find it if we're
7735 # using a relative directory.
7736 cp "$am_depcomp" conftest.dir
7738 # We will build objects and dependencies in a subdirectory because
7739 # it helps to detect inapplicable dependency modes. For instance
7740 # both Tru64's cc and ICC support -MD to output dependencies as a
7741 # side effect of compilation, but ICC will put the dependencies in
7742 # the current directory while Tru64 will put them in the object
7746 am_cv_CXX_dependencies_compiler_type=none
7747 if test "$am_compiler_list" = ""; then
7748 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7751 case " $depcc " in #(
7752 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7755 for depmode in $am_compiler_list; do
7756 # Setup a source with many dependencies, because some compilers
7757 # like to wrap large dependency lists on column 80 (with \), and
7758 # we should not choose a depcomp mode which is confused by this.
7760 # We need to recreate these files for each test, as the compiler may
7761 # overwrite some of them when testing with obscure command lines.
7762 # This happens at least with the AIX C compiler.
7764 for i in 1 2 3 4 5 6; do
7765 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7766 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7767 # Solaris 10 /bin/sh.
7768 echo '/* dummy */' > sub/conftst$i.h
7770 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7772 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7773 # mode. It turns out that the SunPro C++ compiler does not properly
7774 # handle '-M -o', and we need to detect this. Also, some Intel
7775 # versions had trouble with output in subdirs.
7776 am__obj=sub/conftest.${OBJEXT-o}
7777 am__minus_obj="-o $am__obj"
7780 # This depmode causes a compiler race in universal mode.
7781 test "$am__universal" = false || continue
7784 # After this tag, mechanisms are not by side-effect, so they'll
7785 # only be used when explicitly requested.
7786 if test "x$enable_dependency_tracking" = xyes; then
7792 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7793 # This compiler won't grok '-c -o', but also, the minuso test has
7794 # not run yet. These depmodes are late enough in the game, and
7795 # so weak that their functioning should not be impacted.
7796 am__obj=conftest.${OBJEXT-o}
7801 if depmode=$depmode \
7802 source=sub/conftest.c object=$am__obj \
7803 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7804 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7805 >/dev/null 2>conftest.err &&
7806 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7807 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7808 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7809 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7810 # icc doesn't choke on unknown options, it will just issue warnings
7811 # or remarks (even with -Werror). So we grep stderr for any message
7812 # that says an option was ignored or not supported.
7813 # When given -MP, icc 7.0 and 7.1 complain thusly:
7814 # icc: Command line warning: ignoring option '-M'; no argument required
7815 # The diagnosis changed in icc 8.0:
7816 # icc: Command line remark: option '-MP' not supported
7817 if (grep 'ignoring option' conftest.err ||
7818 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7819 am_cv_CXX_dependencies_compiler_type=$depmode
7828 am_cv_CXX_dependencies_compiler_type=none
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7833 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7834 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7837 test "x$enable_dependency_tracking" != xno \
7838 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7839 am__fastdepCXX_TRUE=
7840 am__fastdepCXX_FALSE='#'
7842 am__fastdepCXX_TRUE='#'
7843 am__fastdepCXX_FALSE=
7847 for ac_prog in 'bison -y' byacc
7849 # Extract the first word of "$ac_prog", so it can be a program name with args.
7850 set dummy $ac_prog; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if ${ac_cv_prog_YACC+:} false; then :
7854 $as_echo_n "(cached) " >&6
7856 if test -n "$YACC"; then
7857 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866 ac_cv_prog_YACC="$ac_prog"
7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 YACC=$ac_cv_prog_YACC
7877 if test -n "$YACC"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7879 $as_echo "$YACC" >&6; }
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7886 test -n "$YACC" && break
7888 test -n "$YACC" || YACC="yacc"
7890 if test "x$CC" != xcc; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7892 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7895 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7897 set dummy $CC; ac_cc=`$as_echo "$2" |
7898 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7899 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7900 $as_echo_n "(cached) " >&6
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7913 # Make sure it works both with $CC and with simple cc.
7914 # We do the test twice because some compilers refuse to overwrite an
7915 # existing .o file with -o, though they will create one.
7916 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7918 if { { case "(($ac_try" in
7919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920 *) ac_try_echo=$ac_try;;
7922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7923 $as_echo "$ac_try_echo"; } >&5
7924 (eval "$ac_try") 2>&5
7926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7927 test $ac_status = 0; } &&
7928 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7930 *) ac_try_echo=$ac_try;;
7932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7933 $as_echo "$ac_try_echo"; } >&5
7934 (eval "$ac_try") 2>&5
7936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7937 test $ac_status = 0; };
7939 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7940 if test "x$CC" != xcc; then
7941 # Test first that cc exists at all.
7942 if { ac_try='cc -c conftest.$ac_ext >&5'
7943 { { case "(($ac_try" in
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7948 $as_echo "$ac_try_echo"; } >&5
7949 (eval "$ac_try") 2>&5
7951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7952 test $ac_status = 0; }; }; then
7953 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7955 if { { case "(($ac_try" in
7956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957 *) ac_try_echo=$ac_try;;
7959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7960 $as_echo "$ac_try_echo"; } >&5
7961 (eval "$ac_try") 2>&5
7963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7964 test $ac_status = 0; } &&
7965 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967 *) ac_try_echo=$ac_try;;
7969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7970 $as_echo "$ac_try_echo"; } >&5
7971 (eval "$ac_try") 2>&5
7973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7974 test $ac_status = 0; };
7979 # cc exists but doesn't like -o.
7980 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7985 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7987 rm -f core conftest*
7990 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7992 $as_echo "yes" >&6; }
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7997 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
8003 $as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }
8007 ac_cpp='$CPP $CPPFLAGS'
8008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8016 struct foo_s {int i1; int i2;};
8017 int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
8020 if ac_fn_c_try_compile "$LINENO"; then :
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8022 $as_echo "yes" >&6; }
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8027 $as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
8030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033 ac_cpp='$CPP $CPPFLAGS'
8034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
8042 $as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
8044 case "$srcdir::${force_ntp_vpath_hack-no}" in
8046 ;; # VPATH_HACK path is for VPATH builds only.
8048 ntp_vpath_hack="yes"
8051 case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
8053 ntp_vpath_hack="yes"
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
8057 $as_echo "$ntp_vpath_hack" >&6; }
8058 if test x$ntp_vpath_hack = xyes; then
8060 VPATH_HACK_FALSE='#'
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
8070 $as_echo_n "checking for install dir and man conventions... " >&6; }
8073 # Check whether --with-locfile was given.
8074 if test "${with_locfile+set}" = set; then :
8075 withval=$with_locfile;
8083 SENTINEL_DIR="$PWD" && \
8084 cd $srcdir/sntp && \
8085 case "$with_locfile" in \
8087 scripts/genLocInfo -d "$SENTINEL_DIR" \
8090 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \
8093 ) > genLocInfo.i 2> genLocInfo.err
8096 case "$GENLOCINFO" in
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
8099 $as_echo "in file $GENLOCINFOFILE" >&6; }
8100 rm genLocInfo.err genLocInfo.i
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
8104 $as_echo "failed." >&6; }
8105 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
8109 if test "$CALC_TICKADJ_MS" ; then
8110 WANT_CALC_TICKADJ_MS_TRUE=
8111 WANT_CALC_TICKADJ_MS_FALSE='#'
8113 WANT_CALC_TICKADJ_MS_TRUE='#'
8114 WANT_CALC_TICKADJ_MS_FALSE=
8159 if test -z "$NTPSWEEP_NI" ; then
8160 INSTALL_NTPSWEEP_TRUE=
8161 INSTALL_NTPSWEEP_FALSE='#'
8163 INSTALL_NTPSWEEP_TRUE='#'
8164 INSTALL_NTPSWEEP_FALSE=
8207 if test -z "$UPDATE_LEAP_NI" ; then
8208 INSTALL_UPDATE_LEAP_TRUE=
8209 INSTALL_UPDATE_LEAP_FALSE='#'
8211 INSTALL_UPDATE_LEAP_TRUE='#'
8212 INSTALL_UPDATE_LEAP_FALSE=
8217 if test -n "$ac_tool_prefix"; then
8218 for ac_prog in ar lib "link -lib"
8220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223 $as_echo_n "checking for $ac_word... " >&6; }
8224 if ${ac_cv_prog_AR+:} false; then :
8225 $as_echo_n "(cached) " >&6
8227 if test -n "$AR"; then
8228 ac_cv_prog_AR="$AR" # Let the user override the test.
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 test -z "$as_dir" && as_dir=.
8235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8237 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 if test -n "$AR"; then
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8250 $as_echo "$AR" >&6; }
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253 $as_echo "no" >&6; }
8257 test -n "$AR" && break
8260 if test -z "$AR"; then
8262 for ac_prog in ar lib "link -lib"
8264 # Extract the first word of "$ac_prog", so it can be a program name with args.
8265 set dummy $ac_prog; ac_word=$2
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 $as_echo_n "checking for $ac_word... " >&6; }
8268 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8269 $as_echo_n "(cached) " >&6
8271 if test -n "$ac_ct_AR"; then
8272 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8281 ac_cv_prog_ac_ct_AR="$ac_prog"
8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8292 if test -n "$ac_ct_AR"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8294 $as_echo "$ac_ct_AR" >&6; }
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8301 test -n "$ac_ct_AR" && break
8304 if test "x$ac_ct_AR" = x; then
8307 case $cross_compiling:$ac_tool_warned in
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8311 ac_tool_warned=yes ;;
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8320 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
8321 if ${am_cv_ar_interface+:} false; then :
8322 $as_echo_n "(cached) " >&6
8325 ac_cpp='$CPP $CPPFLAGS'
8326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8330 am_cv_ar_interface=ar
8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8332 /* end confdefs.h. */
8333 int some_variable = 0;
8335 if ac_fn_c_try_compile "$LINENO"; then :
8336 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8338 (eval $am_ar_try) 2>&5
8340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8341 test $ac_status = 0; }
8342 if test "$ac_status" -eq 0; then
8343 am_cv_ar_interface=ar
8345 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8347 (eval $am_ar_try) 2>&5
8349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8350 test $ac_status = 0; }
8351 if test "$ac_status" -eq 0; then
8352 am_cv_ar_interface=lib
8354 am_cv_ar_interface=unknown
8357 rm -f conftest.lib libconftest.a
8360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8362 ac_cpp='$CPP $CPPFLAGS'
8363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8369 $as_echo "$am_cv_ar_interface" >&6; }
8371 case $am_cv_ar_interface in
8375 # Microsoft lib, so override with the ar-lib wrapper script.
8376 # FIXME: It is wrong to rewrite AR.
8377 # But if we don't then we get into trouble of one sort or another.
8378 # A longer-term fix would be to have automake use am__AR in this case,
8379 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8381 AR="$am_aux_dir/ar-lib $AR"
8384 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8390 # So far, the only shared library we might use is libopts.
8391 # It's a small library - we might as well use a static version of it.
8392 # Check whether --enable-shared was given.
8393 if test "${enable_shared+set}" = set; then :
8394 enableval=$enable_shared; p=${PACKAGE-default}
8396 yes) enable_shared=yes ;;
8397 no) enable_shared=no ;;
8400 # Look at the argument we got. We use all the common list separators.
8401 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8402 for pkg in $enableval; do
8404 if test "X$pkg" = "X$p"; then
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8426 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8431 macro_version='2.4.2'
8432 macro_revision='1.3337'
8446 ltmain="$ac_aux_dir/ltmain.sh"
8448 # Backslashify metacharacters that are still active within
8449 # double-quoted strings.
8450 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8452 # Same as above, but do not quote variable references.
8453 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8455 # Sed substitution to delay expansion of an escaped shell variable in a
8456 # double_quote_subst'ed string.
8457 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8459 # Sed substitution to delay expansion of an escaped single quote.
8460 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8462 # Sed substitution to avoid accidental globbing in evaled expressions
8463 no_glob_subst='s/\*/\\\*/g'
8465 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8466 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8467 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8470 $as_echo_n "checking how to print strings... " >&6; }
8471 # Test print first, because it will be a builtin if present.
8472 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8473 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8475 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8478 # Use this function as a fallback that always works.
8479 func_fallback_echo ()
8481 eval 'cat <<_LTECHO_EOF
8485 ECHO='func_fallback_echo'
8488 # func_echo_all arg...
8489 # Invoke $ECHO with all args, space-separated.
8496 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8497 $as_echo "printf" >&6; } ;;
8498 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8499 $as_echo "print -r" >&6; } ;;
8500 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8501 $as_echo "cat" >&6; } ;;
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8518 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8519 if ${ac_cv_path_SED+:} false; then :
8520 $as_echo_n "(cached) " >&6
8522 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8523 for ac_i in 1 2 3 4 5 6 7; do
8524 ac_script="$ac_script$as_nl$ac_script"
8526 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8527 { ac_script=; unset ac_script;}
8528 if test -z "$SED"; then
8529 ac_path_SED_found=false
8530 # Loop through the user's path and test for each of PROGNAME-LIST
8531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535 test -z "$as_dir" && as_dir=.
8536 for ac_prog in sed gsed; do
8537 for ac_exec_ext in '' $ac_executable_extensions; do
8538 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8539 as_fn_executable_p "$ac_path_SED" || continue
8540 # Check for GNU ac_path_SED and select it if it is found.
8541 # Check for GNU $ac_path_SED
8542 case `"$ac_path_SED" --version 2>&1` in
8544 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8547 $as_echo_n 0123456789 >"conftest.in"
8550 cat "conftest.in" "conftest.in" >"conftest.tmp"
8551 mv "conftest.tmp" "conftest.in"
8552 cp "conftest.in" "conftest.nl"
8553 $as_echo '' >> "conftest.nl"
8554 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8556 as_fn_arith $ac_count + 1 && ac_count=$as_val
8557 if test $ac_count -gt ${ac_path_SED_max-0}; then
8558 # Best one so far, save it but keep looking for a better one
8559 ac_cv_path_SED="$ac_path_SED"
8560 ac_path_SED_max=$ac_count
8562 # 10*(2^10) chars as input seems more than enough
8563 test $ac_count -gt 10 && break
8565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8568 $ac_path_SED_found && break 3
8573 if test -z "$ac_cv_path_SED"; then
8574 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8582 $as_echo "$ac_cv_path_SED" >&6; }
8583 SED="$ac_cv_path_SED"
8586 test -z "$SED" && SED=sed
8587 Xsed="$SED -e 1s/^X//"
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8600 $as_echo_n "checking for fgrep... " >&6; }
8601 if ${ac_cv_path_FGREP+:} false; then :
8602 $as_echo_n "(cached) " >&6
8604 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8605 then ac_cv_path_FGREP="$GREP -F"
8607 if test -z "$FGREP"; then
8608 ac_path_FGREP_found=false
8609 # Loop through the user's path and test for each of PROGNAME-LIST
8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8614 test -z "$as_dir" && as_dir=.
8615 for ac_prog in fgrep; do
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8618 as_fn_executable_p "$ac_path_FGREP" || continue
8619 # Check for GNU ac_path_FGREP and select it if it is found.
8620 # Check for GNU $ac_path_FGREP
8621 case `"$ac_path_FGREP" --version 2>&1` in
8623 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8626 $as_echo_n 0123456789 >"conftest.in"
8629 cat "conftest.in" "conftest.in" >"conftest.tmp"
8630 mv "conftest.tmp" "conftest.in"
8631 cp "conftest.in" "conftest.nl"
8632 $as_echo 'FGREP' >> "conftest.nl"
8633 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8635 as_fn_arith $ac_count + 1 && ac_count=$as_val
8636 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8637 # Best one so far, save it but keep looking for a better one
8638 ac_cv_path_FGREP="$ac_path_FGREP"
8639 ac_path_FGREP_max=$ac_count
8641 # 10*(2^10) chars as input seems more than enough
8642 test $ac_count -gt 10 && break
8644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8647 $ac_path_FGREP_found && break 3
8652 if test -z "$ac_cv_path_FGREP"; then
8653 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8656 ac_cv_path_FGREP=$FGREP
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8662 $as_echo "$ac_cv_path_FGREP" >&6; }
8663 FGREP="$ac_cv_path_FGREP"
8666 test -z "$GREP" && GREP=grep
8686 # Check whether --with-gnu-ld was given.
8687 if test "${with_gnu_ld+set}" = set; then :
8688 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8694 if test "$GCC" = yes; then
8695 # Check if gcc -print-prog-name=ld gives a path.
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8697 $as_echo_n "checking for ld used by $CC... " >&6; }
8700 # gcc leaves a trailing carriage return which upsets mingw
8701 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8703 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8706 # Accept absolute paths.
8708 re_direlt='/[^/][^/]*/\.\./'
8709 # Canonicalize the pathname of ld
8710 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8711 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8712 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8714 test -z "$LD" && LD="$ac_prog"
8717 # If it fails, then pretend we aren't using GCC.
8721 # If it is relative, then search for the first ld in PATH.
8725 elif test "$with_gnu_ld" = yes; then
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8727 $as_echo_n "checking for GNU ld... " >&6; }
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8730 $as_echo_n "checking for non-GNU ld... " >&6; }
8732 if ${lt_cv_path_LD+:} false; then :
8733 $as_echo_n "(cached) " >&6
8735 if test -z "$LD"; then
8736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8737 for ac_dir in $PATH; do
8739 test -z "$ac_dir" && ac_dir=.
8740 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8741 lt_cv_path_LD="$ac_dir/$ac_prog"
8742 # Check to see if the program is GNU ld. I'd rather use --version,
8743 # but apparently some variants of GNU ld only accept -v.
8744 # Break only if it was the GNU/non-GNU ld that we prefer.
8745 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8746 *GNU* | *'with BFD'*)
8747 test "$with_gnu_ld" != no && break
8750 test "$with_gnu_ld" != yes && break
8757 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8762 if test -n "$LD"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8764 $as_echo "$LD" >&6; }
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8769 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8771 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8772 if ${lt_cv_prog_gnu_ld+:} false; then :
8773 $as_echo_n "(cached) " >&6
8775 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8776 case `$LD -v 2>&1 </dev/null` in
8777 *GNU* | *'with BFD'*)
8778 lt_cv_prog_gnu_ld=yes
8781 lt_cv_prog_gnu_ld=no
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8786 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8787 with_gnu_ld=$lt_cv_prog_gnu_ld
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8798 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8799 if ${lt_cv_path_NM+:} false; then :
8800 $as_echo_n "(cached) " >&6
8802 if test -n "$NM"; then
8803 # Let the user override the test.
8806 lt_nm_to_check="${ac_tool_prefix}nm"
8807 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8808 lt_nm_to_check="$lt_nm_to_check nm"
8810 for lt_tmp_nm in $lt_nm_to_check; do
8811 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8812 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8814 test -z "$ac_dir" && ac_dir=.
8815 tmp_nm="$ac_dir/$lt_tmp_nm"
8816 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8817 # Check to see if the nm accepts a BSD-compat flag.
8818 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8819 # nm: unknown option "B" ignored
8820 # Tru64's nm complains that /dev/null is an invalid object file
8821 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8822 */dev/null* | *'Invalid file or object type'*)
8823 lt_cv_path_NM="$tmp_nm -B"
8827 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8829 lt_cv_path_NM="$tmp_nm -p"
8833 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8834 continue # so that we can try to find one that supports BSD flags
8843 : ${lt_cv_path_NM=no}
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8847 $as_echo "$lt_cv_path_NM" >&6; }
8848 if test "$lt_cv_path_NM" != "no"; then
8851 # Didn't find any BSD compatible name lister, look for dumpbin.
8852 if test -n "$DUMPBIN"; then :
8853 # Let the user override the test.
8855 if test -n "$ac_tool_prefix"; then
8856 for ac_prog in dumpbin "link -dump"
8858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8859 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if ${ac_cv_prog_DUMPBIN+:} false; then :
8863 $as_echo_n "(cached) " >&6
8865 if test -n "$DUMPBIN"; then
8866 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872 test -z "$as_dir" && as_dir=.
8873 for ac_exec_ext in '' $ac_executable_extensions; do
8874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8875 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 DUMPBIN=$ac_cv_prog_DUMPBIN
8886 if test -n "$DUMPBIN"; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8888 $as_echo "$DUMPBIN" >&6; }
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891 $as_echo "no" >&6; }
8895 test -n "$DUMPBIN" && break
8898 if test -z "$DUMPBIN"; then
8899 ac_ct_DUMPBIN=$DUMPBIN
8900 for ac_prog in dumpbin "link -dump"
8902 # Extract the first word of "$ac_prog", so it can be a program name with args.
8903 set dummy $ac_prog; ac_word=$2
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8905 $as_echo_n "checking for $ac_word... " >&6; }
8906 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8907 $as_echo_n "(cached) " >&6
8909 if test -n "$ac_ct_DUMPBIN"; then
8910 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8916 test -z "$as_dir" && as_dir=.
8917 for ac_exec_ext in '' $ac_executable_extensions; do
8918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8919 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8929 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8930 if test -n "$ac_ct_DUMPBIN"; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8932 $as_echo "$ac_ct_DUMPBIN" >&6; }
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935 $as_echo "no" >&6; }
8939 test -n "$ac_ct_DUMPBIN" && break
8942 if test "x$ac_ct_DUMPBIN" = x; then
8945 case $cross_compiling:$ac_tool_warned in
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8949 ac_tool_warned=yes ;;
8951 DUMPBIN=$ac_ct_DUMPBIN
8955 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8957 DUMPBIN="$DUMPBIN -symbols"
8965 if test "$DUMPBIN" != ":"; then
8969 test -z "$NM" && NM=nm
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8977 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8978 if ${lt_cv_nm_interface+:} false; then :
8979 $as_echo_n "(cached) " >&6
8981 lt_cv_nm_interface="BSD nm"
8982 echo "int some_variable = 0;" > conftest.$ac_ext
8983 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8984 (eval "$ac_compile" 2>conftest.err)
8985 cat conftest.err >&5
8986 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8987 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8988 cat conftest.err >&5
8989 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8990 cat conftest.out >&5
8991 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8992 lt_cv_nm_interface="MS dumpbin"
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8997 $as_echo "$lt_cv_nm_interface" >&6; }
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9000 $as_echo_n "checking whether ln -s works... " >&6; }
9002 if test "$LN_S" = "ln -s"; then
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9004 $as_echo "yes" >&6; }
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9007 $as_echo "no, using $LN_S" >&6; }
9010 # find the maximum length of command line arguments
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9012 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9013 if ${lt_cv_sys_max_cmd_len+:} false; then :
9014 $as_echo_n "(cached) " >&6
9021 # On DJGPP, this test can blow up pretty badly due to problems in libc
9022 # (any single argument exceeding 2000 bytes causes a buffer overrun
9023 # during glob expansion). Even if it were fixed, the result of this
9024 # check would be larger than it should be.
9025 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9029 # Under GNU Hurd, this test is not required because there is
9030 # no limit to the length of command line arguments.
9031 # Libtool will interpret -1 as no limit whatsoever
9032 lt_cv_sys_max_cmd_len=-1;
9035 cygwin* | mingw* | cegcc*)
9036 # On Win9x/ME, this test blows up -- it succeeds, but takes
9037 # about 5 minutes as the teststring grows exponentially.
9038 # Worse, since 9x/ME are not pre-emptively multitasking,
9039 # you end up with a "frozen" computer, even though with patience
9040 # the test eventually succeeds (with a max line length of 256k).
9041 # Instead, let's just punt: use the minimum linelength reported by
9042 # all of the supported platforms: 8192 (on NT/2K/XP).
9043 lt_cv_sys_max_cmd_len=8192;
9047 # On MiNT this can take a long time and run out of memory.
9048 lt_cv_sys_max_cmd_len=8192;
9052 # On AmigaOS with pdksh, this test takes hours, literally.
9053 # So we just punt and use a minimum line length of 8192.
9054 lt_cv_sys_max_cmd_len=8192;
9057 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9058 # This has been around since 386BSD, at least. Likely further.
9059 if test -x /sbin/sysctl; then
9060 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9061 elif test -x /usr/sbin/sysctl; then
9062 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9064 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9066 # And add a safety zone
9067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9072 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9073 lt_cv_sys_max_cmd_len=196608
9077 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9078 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9079 # nice to cause kernel panics so lets avoid the loop below.
9080 # First set a reasonable default.
9081 lt_cv_sys_max_cmd_len=16384
9083 if test -x /sbin/sysconfig; then
9084 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9085 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9090 lt_cv_sys_max_cmd_len=102400
9092 sysv5* | sco5v6* | sysv4.2uw2*)
9093 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9094 if test -n "$kargmax"; then
9095 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9097 lt_cv_sys_max_cmd_len=32768
9101 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9102 if test -n "$lt_cv_sys_max_cmd_len"; then
9103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9106 # Make teststring a little bigger before we do anything with it.
9107 # a 1K string should be a reasonable start.
9108 for i in 1 2 3 4 5 6 7 8 ; do
9109 teststring=$teststring$teststring
9111 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9112 # If test is not a shell built-in, we'll probably end up computing a
9113 # maximum length that is only half of the actual maximum length, but
9115 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9116 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9117 test $i != 17 # 1/2 MB should be enough
9120 teststring=$teststring$teststring
9122 # Only check the string length outside the loop.
9123 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9125 # Add a significant safety factor because C++ compilers can tack on
9126 # massive amounts of additional arguments before passing them to the
9127 # linker. It appears as though 1/2 is a usable value.
9128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9135 if test -n $lt_cv_sys_max_cmd_len ; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9137 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9140 $as_echo "none" >&6; }
9142 max_cmd_len=$lt_cv_sys_max_cmd_len
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9154 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9155 # Try some XSI features
9158 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9160 && eval 'test $(( 1 + 1 )) -eq 2 \
9161 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9164 $as_echo "$xsi_shell" >&6; }
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9168 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9170 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9172 && lt_shell_append=yes
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9174 $as_echo "$lt_shell_append" >&6; }
9177 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9187 # test EBCDIC or ASCII
9188 case `echo X|tr X '\101'` in
9189 A) # ASCII based system
9190 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9191 lt_SP2NL='tr \040 \012'
9192 lt_NL2SP='tr \015\012 \040\040'
9194 *) # EBCDIC based system
9195 lt_SP2NL='tr \100 \n'
9196 lt_NL2SP='tr \r\n \100\100'
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9209 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9210 if ${lt_cv_to_host_file_cmd+:} false; then :
9211 $as_echo_n "(cached) " >&6
9216 *-*-mingw* ) # actually msys
9217 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9220 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9222 * ) # otherwise, assume *nix
9223 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9229 *-*-mingw* ) # actually msys
9230 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9233 lt_cv_to_host_file_cmd=func_convert_file_noop
9235 * ) # otherwise, assume *nix
9236 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9240 * ) # unhandled hosts (and "normal" native builds)
9241 lt_cv_to_host_file_cmd=func_convert_file_noop
9247 to_host_file_cmd=$lt_cv_to_host_file_cmd
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9249 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9256 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9257 if ${lt_cv_to_tool_file_cmd+:} false; then :
9258 $as_echo_n "(cached) " >&6
9260 #assume ordinary cross tools, or native build.
9261 lt_cv_to_tool_file_cmd=func_convert_file_noop
9265 *-*-mingw* ) # actually msys
9266 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9274 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9276 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9283 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9284 if ${lt_cv_ld_reload_flag+:} false; then :
9285 $as_echo_n "(cached) " >&6
9287 lt_cv_ld_reload_flag='-r'
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9290 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9291 reload_flag=$lt_cv_ld_reload_flag
9292 case $reload_flag in
9294 *) reload_flag=" $reload_flag" ;;
9296 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9298 cygwin* | mingw* | pw32* | cegcc*)
9299 if test "$GCC" != yes; then
9304 if test "$GCC" = yes; then
9305 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9307 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9320 if test -n "$ac_tool_prefix"; then
9321 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9322 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9324 $as_echo_n "checking for $ac_word... " >&6; }
9325 if ${ac_cv_prog_OBJDUMP+:} false; then :
9326 $as_echo_n "(cached) " >&6
9328 if test -n "$OBJDUMP"; then
9329 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9335 test -z "$as_dir" && as_dir=.
9336 for ac_exec_ext in '' $ac_executable_extensions; do
9337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9338 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9348 OBJDUMP=$ac_cv_prog_OBJDUMP
9349 if test -n "$OBJDUMP"; then
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9351 $as_echo "$OBJDUMP" >&6; }
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354 $as_echo "no" >&6; }
9359 if test -z "$ac_cv_prog_OBJDUMP"; then
9360 ac_ct_OBJDUMP=$OBJDUMP
9361 # Extract the first word of "objdump", so it can be a program name with args.
9362 set dummy objdump; ac_word=$2
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9364 $as_echo_n "checking for $ac_word... " >&6; }
9365 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9366 $as_echo_n "(cached) " >&6
9368 if test -n "$ac_ct_OBJDUMP"; then
9369 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9375 test -z "$as_dir" && as_dir=.
9376 for ac_exec_ext in '' $ac_executable_extensions; do
9377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9378 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9388 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9389 if test -n "$ac_ct_OBJDUMP"; then
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9391 $as_echo "$ac_ct_OBJDUMP" >&6; }
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9394 $as_echo "no" >&6; }
9397 if test "x$ac_ct_OBJDUMP" = x; then
9400 case $cross_compiling:$ac_tool_warned in
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9404 ac_tool_warned=yes ;;
9406 OBJDUMP=$ac_ct_OBJDUMP
9409 OBJDUMP="$ac_cv_prog_OBJDUMP"
9412 test -z "$OBJDUMP" && OBJDUMP=objdump
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9423 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9424 if ${lt_cv_deplibs_check_method+:} false; then :
9425 $as_echo_n "(cached) " >&6
9427 lt_cv_file_magic_cmd='$MAGIC_CMD'
9428 lt_cv_file_magic_test_file=
9429 lt_cv_deplibs_check_method='unknown'
9430 # Need to set the preceding variable on all platforms that support
9431 # interlibrary dependencies.
9432 # 'none' -- dependencies not supported.
9433 # `unknown' -- same as none, but documents that we really don't know.
9434 # 'pass_all' -- all dependencies passed with no checks.
9435 # 'test_compile' -- check by making test program.
9436 # 'file_magic [[regex]]' -- check by looking for files in library path
9437 # which responds to the $file_magic_cmd with a given extended regex.
9438 # If you have `file' or equivalent on your system and you're not sure
9439 # whether `pass_all' will *always* work, you probably want this one.
9443 lt_cv_deplibs_check_method=pass_all
9447 lt_cv_deplibs_check_method=pass_all
9451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9452 lt_cv_file_magic_cmd='/usr/bin/file -L'
9453 lt_cv_file_magic_test_file=/shlib/libc.so
9457 # func_win32_libid is a shell function defined in ltmain.sh
9458 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9459 lt_cv_file_magic_cmd='func_win32_libid'
9463 # Base MSYS/MinGW do not provide the 'file' command needed by
9464 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9465 # unless we find 'file', for example because we are cross-compiling.
9466 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
9467 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
9468 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9469 lt_cv_file_magic_cmd='func_win32_libid'
9471 # Keep this pattern in sync with the one in func_win32_libid.
9472 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9473 lt_cv_file_magic_cmd='$OBJDUMP -f'
9478 # use the weaker test based on 'objdump'. See mingw*.
9479 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9480 lt_cv_file_magic_cmd='$OBJDUMP -f'
9483 darwin* | rhapsody*)
9484 lt_cv_deplibs_check_method=pass_all
9487 freebsd* | dragonfly*)
9488 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9491 # Not sure whether the presence of OpenBSD here was a mistake.
9492 # Let's accept both of them until this is cleared up.
9493 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9494 lt_cv_file_magic_cmd=/usr/bin/file
9495 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9499 lt_cv_deplibs_check_method=pass_all
9504 lt_cv_deplibs_check_method=pass_all
9508 lt_cv_deplibs_check_method=pass_all
9511 hpux10.20* | hpux11*)
9512 lt_cv_file_magic_cmd=/usr/bin/file
9515 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9516 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9519 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]'
9520 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9524 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9530 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9534 irix5* | irix6* | nonstopux*)
9536 *-32|*"-32 ") libmagic=32-bit;;
9537 *-n32|*"-n32 ") libmagic=N32;;
9538 *-64|*"-64 ") libmagic=64-bit;;
9539 *) libmagic=never-match;;
9541 lt_cv_deplibs_check_method=pass_all
9544 # This must be Linux ELF.
9545 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9546 lt_cv_deplibs_check_method=pass_all
9550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9559 lt_cv_file_magic_cmd=/usr/bin/file
9560 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9564 lt_cv_deplibs_check_method=pass_all
9568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9575 osf3* | osf4* | osf5*)
9576 lt_cv_deplibs_check_method=pass_all
9580 lt_cv_deplibs_check_method=pass_all
9584 lt_cv_deplibs_check_method=pass_all
9587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9588 lt_cv_deplibs_check_method=pass_all
9592 case $host_vendor in
9594 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]'
9595 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9598 lt_cv_deplibs_check_method=pass_all
9601 lt_cv_file_magic_cmd='/bin/file'
9602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9605 lt_cv_file_magic_cmd='/bin/file'
9606 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9607 lt_cv_file_magic_test_file=/lib/libc.so
9610 lt_cv_deplibs_check_method=pass_all
9613 lt_cv_deplibs_check_method=pass_all
9619 lt_cv_deplibs_check_method=pass_all
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9625 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9629 if test "$build" = "$host"; then
9632 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9635 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9641 file_magic_cmd=$lt_cv_file_magic_cmd
9642 deplibs_check_method=$lt_cv_deplibs_check_method
9643 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9666 if test -n "$ac_tool_prefix"; then
9667 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9668 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9670 $as_echo_n "checking for $ac_word... " >&6; }
9671 if ${ac_cv_prog_DLLTOOL+:} false; then :
9672 $as_echo_n "(cached) " >&6
9674 if test -n "$DLLTOOL"; then
9675 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 test -z "$as_dir" && as_dir=.
9682 for ac_exec_ext in '' $ac_executable_extensions; do
9683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9684 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9694 DLLTOOL=$ac_cv_prog_DLLTOOL
9695 if test -n "$DLLTOOL"; then
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9697 $as_echo "$DLLTOOL" >&6; }
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700 $as_echo "no" >&6; }
9705 if test -z "$ac_cv_prog_DLLTOOL"; then
9706 ac_ct_DLLTOOL=$DLLTOOL
9707 # Extract the first word of "dlltool", so it can be a program name with args.
9708 set dummy dlltool; ac_word=$2
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9710 $as_echo_n "checking for $ac_word... " >&6; }
9711 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9712 $as_echo_n "(cached) " >&6
9714 if test -n "$ac_ct_DLLTOOL"; then
9715 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721 test -z "$as_dir" && as_dir=.
9722 for ac_exec_ext in '' $ac_executable_extensions; do
9723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9724 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9734 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9735 if test -n "$ac_ct_DLLTOOL"; then
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9737 $as_echo "$ac_ct_DLLTOOL" >&6; }
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740 $as_echo "no" >&6; }
9743 if test "x$ac_ct_DLLTOOL" = x; then
9746 case $cross_compiling:$ac_tool_warned in
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9750 ac_tool_warned=yes ;;
9752 DLLTOOL=$ac_ct_DLLTOOL
9755 DLLTOOL="$ac_cv_prog_DLLTOOL"
9758 test -z "$DLLTOOL" && DLLTOOL=dlltool
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9770 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9771 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9772 $as_echo_n "(cached) " >&6
9774 lt_cv_sharedlib_from_linklib_cmd='unknown'
9777 cygwin* | mingw* | pw32* | cegcc*)
9778 # two different shell functions defined in ltmain.sh
9779 # decide which to use based on capabilities of $DLLTOOL
9780 case `$DLLTOOL --help 2>&1` in
9781 *--identify-strict*)
9782 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9785 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9790 # fallback: assume linklib IS sharedlib
9791 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9797 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9798 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9799 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9807 if test -n "$ac_tool_prefix"; then
9810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813 $as_echo_n "checking for $ac_word... " >&6; }
9814 if ${ac_cv_prog_AR+:} false; then :
9815 $as_echo_n "(cached) " >&6
9817 if test -n "$AR"; then
9818 ac_cv_prog_AR="$AR" # Let the user override the test.
9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824 test -z "$as_dir" && as_dir=.
9825 for ac_exec_ext in '' $ac_executable_extensions; do
9826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9827 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9838 if test -n "$AR"; then
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9840 $as_echo "$AR" >&6; }
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9843 $as_echo "no" >&6; }
9847 test -n "$AR" && break
9850 if test -z "$AR"; then
9854 # Extract the first word of "$ac_prog", so it can be a program name with args.
9855 set dummy $ac_prog; ac_word=$2
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857 $as_echo_n "checking for $ac_word... " >&6; }
9858 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9859 $as_echo_n "(cached) " >&6
9861 if test -n "$ac_ct_AR"; then
9862 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9868 test -z "$as_dir" && as_dir=.
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9871 ac_cv_prog_ac_ct_AR="$ac_prog"
9872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9882 if test -n "$ac_ct_AR"; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9884 $as_echo "$ac_ct_AR" >&6; }
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887 $as_echo "no" >&6; }
9891 test -n "$ac_ct_AR" && break
9894 if test "x$ac_ct_AR" = x; then
9897 case $cross_compiling:$ac_tool_warned in
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9901 ac_tool_warned=yes ;;
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9921 $as_echo_n "checking for archiver @FILE support... " >&6; }
9922 if ${lt_cv_ar_at_file+:} false; then :
9923 $as_echo_n "(cached) " >&6
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9937 if ac_fn_c_try_compile "$LINENO"; then :
9938 echo conftest.$ac_objext > conftest.lst
9939 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9941 (eval $lt_ar_try) 2>&5
9943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9944 test $ac_status = 0; }
9945 if test "$ac_status" -eq 0; then
9946 # Ensure the archiver fails upon bogus file names.
9947 rm -f conftest.$ac_objext libconftest.a
9948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9949 (eval $lt_ar_try) 2>&5
9951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9952 test $ac_status = 0; }
9953 if test "$ac_status" -ne 0; then
9957 rm -f conftest.* libconftest.a
9960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9964 $as_echo "$lt_cv_ar_at_file" >&6; }
9966 if test "x$lt_cv_ar_at_file" = xno; then
9969 archiver_list_spec=$lt_cv_ar_at_file
9978 if test -n "$ac_tool_prefix"; then
9979 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9980 set dummy ${ac_tool_prefix}strip; ac_word=$2
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9982 $as_echo_n "checking for $ac_word... " >&6; }
9983 if ${ac_cv_prog_STRIP+:} false; then :
9984 $as_echo_n "(cached) " >&6
9986 if test -n "$STRIP"; then
9987 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9993 test -z "$as_dir" && as_dir=.
9994 for ac_exec_ext in '' $ac_executable_extensions; do
9995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9996 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10006 STRIP=$ac_cv_prog_STRIP
10007 if test -n "$STRIP"; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10009 $as_echo "$STRIP" >&6; }
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012 $as_echo "no" >&6; }
10017 if test -z "$ac_cv_prog_STRIP"; then
10019 # Extract the first word of "strip", so it can be a program name with args.
10020 set dummy strip; ac_word=$2
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10022 $as_echo_n "checking for $ac_word... " >&6; }
10023 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10024 $as_echo_n "(cached) " >&6
10026 if test -n "$ac_ct_STRIP"; then
10027 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030 for as_dir in $PATH
10033 test -z "$as_dir" && as_dir=.
10034 for ac_exec_ext in '' $ac_executable_extensions; do
10035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10036 ac_cv_prog_ac_ct_STRIP="strip"
10037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10047 if test -n "$ac_ct_STRIP"; then
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10049 $as_echo "$ac_ct_STRIP" >&6; }
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10052 $as_echo "no" >&6; }
10055 if test "x$ac_ct_STRIP" = x; then
10058 case $cross_compiling:$ac_tool_warned in
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10062 ac_tool_warned=yes ;;
10067 STRIP="$ac_cv_prog_STRIP"
10070 test -z "$STRIP" && STRIP=:
10077 if test -n "$ac_tool_prefix"; then
10078 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10079 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081 $as_echo_n "checking for $ac_word... " >&6; }
10082 if ${ac_cv_prog_RANLIB+:} false; then :
10083 $as_echo_n "(cached) " >&6
10085 if test -n "$RANLIB"; then
10086 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089 for as_dir in $PATH
10092 test -z "$as_dir" && as_dir=.
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10095 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105 RANLIB=$ac_cv_prog_RANLIB
10106 if test -n "$RANLIB"; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10108 $as_echo "$RANLIB" >&6; }
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10116 if test -z "$ac_cv_prog_RANLIB"; then
10117 ac_ct_RANLIB=$RANLIB
10118 # Extract the first word of "ranlib", so it can be a program name with args.
10119 set dummy ranlib; ac_word=$2
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10121 $as_echo_n "checking for $ac_word... " >&6; }
10122 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10123 $as_echo_n "(cached) " >&6
10125 if test -n "$ac_ct_RANLIB"; then
10126 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10129 for as_dir in $PATH
10132 test -z "$as_dir" && as_dir=.
10133 for ac_exec_ext in '' $ac_executable_extensions; do
10134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10135 ac_cv_prog_ac_ct_RANLIB="ranlib"
10136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10145 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10146 if test -n "$ac_ct_RANLIB"; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10148 $as_echo "$ac_ct_RANLIB" >&6; }
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10154 if test "x$ac_ct_RANLIB" = x; then
10157 case $cross_compiling:$ac_tool_warned in
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10161 ac_tool_warned=yes ;;
10163 RANLIB=$ac_ct_RANLIB
10166 RANLIB="$ac_cv_prog_RANLIB"
10169 test -z "$RANLIB" && RANLIB=:
10176 # Determine commands to create old-style static archives.
10177 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10178 old_postinstall_cmds='chmod 644 $oldlib'
10179 old_postuninstall_cmds=
10181 if test -n "$RANLIB"; then
10184 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10187 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10190 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10195 lock_old_archive_extraction=yes ;;
10197 lock_old_archive_extraction=no ;;
10238 # If no C compiler was specified, use CC.
10241 # If no C compiler flags were specified, use CFLAGS.
10242 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10244 # Allow CC to be a program name with arguments.
10248 # Check for command to grab the raw symbol name followed by C symbol from nm.
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10250 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10251 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10252 $as_echo_n "(cached) " >&6
10255 # These are sane defaults that work on at least a few old systems.
10256 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10258 # Character class describing NM global symbol codes.
10259 symcode='[BCDEGRST]'
10261 # Regexp to match symbols that can be accessed directly from C.
10262 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10264 # Define system-specific variables.
10269 cygwin* | mingw* | pw32* | cegcc*)
10270 symcode='[ABCDGISTW]'
10273 if test "$host_cpu" = ia64; then
10274 symcode='[ABCDEGRST]'
10277 irix* | nonstopux*)
10278 symcode='[BCDEGRST]'
10281 symcode='[BCDEGQRST]'
10292 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10300 # If we're using GNU nm, then use its standard symbol codes.
10301 case `$NM -V 2>&1` in
10302 *GNU* | *'with BFD'*)
10303 symcode='[ABCDGIRSTW]' ;;
10306 # Transform an extracted symbol line into a proper C declaration.
10307 # Some systems (esp. on ia64) link data and code symbols differently,
10308 # so use this general approach.
10309 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10311 # Transform an extracted symbol line into symbol name and symbol address
10312 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10313 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'"
10315 # Handle CRLF in mingw tool chain
10319 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10323 # Try without a prefix underscore, then with it.
10324 for ac_symprfx in "" "_"; do
10326 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10327 symxfrm="\\1 $ac_symprfx\\2 \\2"
10329 # Write the raw and C identifiers.
10330 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10331 # Fake it for dumpbin and say T for any non-static function
10332 # and D for any global variable.
10333 # Also find C++ and __fastcall symbols from MSVC++,
10334 # which start with @ or ?.
10335 lt_cv_sys_global_symbol_pipe="$AWK '"\
10336 " {last_section=section; section=\$ 3};"\
10337 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10338 " \$ 0!~/External *\|/{next};"\
10339 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10340 " {if(hide[section]) next};"\
10341 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10342 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10343 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
10344 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10345 " ' prfx=^$ac_symprfx"
10347 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10349 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10351 # Check to see that the pipe works correctly.
10355 cat > conftest.$ac_ext <<_LT_EOF
10360 void nm_test_func(void);
10361 void nm_test_func(void){}
10365 int main(){nm_test_var='a';nm_test_func();return(0);}
10368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10369 (eval $ac_compile) 2>&5
10371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10372 test $ac_status = 0; }; then
10373 # Now try to grab the symbols.
10375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10376 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10379 test $ac_status = 0; } && test -s "$nlist"; then
10380 # Try sorting and uniquifying the output.
10381 if sort "$nlist" | uniq > "$nlist"T; then
10382 mv -f "$nlist"T "$nlist"
10387 # Make sure that we snagged all the symbols we need.
10388 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10389 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10390 cat <<_LT_EOF > conftest.$ac_ext
10391 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10392 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
10393 /* DATA imports from DLLs on WIN32 con't be const, because runtime
10394 relocations are performed -- see ld's documentation on pseudo-relocs. */
10395 # define LT_DLSYM_CONST
10396 #elif defined(__osf__)
10397 /* This system does not cope well with relocations in const data. */
10398 # define LT_DLSYM_CONST
10400 # define LT_DLSYM_CONST const
10408 # Now generate the symbol file.
10409 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10411 cat <<_LT_EOF >> conftest.$ac_ext
10413 /* The mapping between symbol names and symbols. */
10414 LT_DLSYM_CONST struct {
10418 lt__PROGRAM__LTX_preloaded_symbols[] =
10420 { "@PROGRAM@", (void *) 0 },
10422 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10423 cat <<\_LT_EOF >> conftest.$ac_ext
10427 /* This works around a problem in FreeBSD linker */
10428 #ifdef FREEBSD_WORKAROUND
10429 static const void *lt_preloaded_setup() {
10430 return lt__PROGRAM__LTX_preloaded_symbols;
10438 # Now try linking the two files.
10439 mv conftest.$ac_objext conftstm.$ac_objext
10440 lt_globsym_save_LIBS=$LIBS
10441 lt_globsym_save_CFLAGS=$CFLAGS
10442 LIBS="conftstm.$ac_objext"
10443 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10445 (eval $ac_link) 2>&5
10447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10448 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10451 LIBS=$lt_globsym_save_LIBS
10452 CFLAGS=$lt_globsym_save_CFLAGS
10454 echo "cannot find nm_test_func in $nlist" >&5
10457 echo "cannot find nm_test_var in $nlist" >&5
10460 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10463 echo "$progname: failed program was:" >&5
10464 cat conftest.$ac_ext >&5
10466 rm -rf conftest* conftst*
10468 # Do not use the global_symbol_pipe unless it works.
10469 if test "$pipe_works" = yes; then
10472 lt_cv_sys_global_symbol_pipe=
10478 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10479 lt_cv_sys_global_symbol_to_cdecl=
10481 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10483 $as_echo "failed" >&6; }
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10486 $as_echo "ok" >&6; }
10489 # Response file support.
10490 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10491 nm_file_list_spec='@'
10492 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10493 nm_file_list_spec='@'
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10523 $as_echo_n "checking for sysroot... " >&6; }
10525 # Check whether --with-sysroot was given.
10526 if test "${with_sysroot+set}" = set; then :
10527 withval=$with_sysroot;
10534 case ${with_sysroot} in #(
10536 if test "$GCC" = yes; then
10537 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10541 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
10547 $as_echo "${with_sysroot}" >&6; }
10548 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10553 $as_echo "${lt_sysroot:-no}" >&6; }
10559 # Check whether --enable-libtool-lock was given.
10560 if test "${enable_libtool_lock+set}" = set; then :
10561 enableval=$enable_libtool_lock;
10564 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10566 # Some flags need to be propagated to the compiler or linker for good
10570 # Find out which ABI we are using.
10571 echo 'int i;' > conftest.$ac_ext
10572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10573 (eval $ac_compile) 2>&5
10575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10576 test $ac_status = 0; }; then
10577 case `/usr/bin/file conftest.$ac_objext` in
10579 HPUX_IA64_MODE="32"
10582 HPUX_IA64_MODE="64"
10589 # Find out which ABI we are using.
10590 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10592 (eval $ac_compile) 2>&5
10594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10595 test $ac_status = 0; }; then
10596 if test "$lt_cv_prog_gnu_ld" = yes; then
10597 case `/usr/bin/file conftest.$ac_objext` in
10599 LD="${LD-ld} -melf32bsmip"
10602 LD="${LD-ld} -melf32bmipn32"
10605 LD="${LD-ld} -melf64bmip"
10609 case `/usr/bin/file conftest.$ac_objext` in
10625 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10626 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10627 # Find out which ABI we are using.
10628 echo 'int i;' > conftest.$ac_ext
10629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10630 (eval $ac_compile) 2>&5
10632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10633 test $ac_status = 0; }; then
10634 case `/usr/bin/file conftest.o` in
10637 x86_64-*kfreebsd*-gnu)
10638 LD="${LD-ld} -m elf_i386_fbsd"
10641 LD="${LD-ld} -m elf_i386"
10643 ppc64-*linux*|powerpc64-*linux*)
10644 LD="${LD-ld} -m elf32ppclinux"
10647 LD="${LD-ld} -m elf_s390"
10650 LD="${LD-ld} -m elf32_sparc"
10656 x86_64-*kfreebsd*-gnu)
10657 LD="${LD-ld} -m elf_x86_64_fbsd"
10660 LD="${LD-ld} -m elf_x86_64"
10662 ppc*-*linux*|powerpc*-*linux*)
10663 LD="${LD-ld} -m elf64ppc"
10665 s390*-*linux*|s390*-*tpf*)
10666 LD="${LD-ld} -m elf64_s390"
10669 LD="${LD-ld} -m elf64_sparc"
10679 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10680 SAVE_CFLAGS="$CFLAGS"
10681 CFLAGS="$CFLAGS -belf"
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10683 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10684 if ${lt_cv_cc_needs_belf+:} false; then :
10685 $as_echo_n "(cached) " >&6
10688 ac_cpp='$CPP $CPPFLAGS'
10689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10704 if ac_fn_c_try_link "$LINENO"; then :
10705 lt_cv_cc_needs_belf=yes
10707 lt_cv_cc_needs_belf=no
10709 rm -f core conftest.err conftest.$ac_objext \
10710 conftest$ac_exeext conftest.$ac_ext
10712 ac_cpp='$CPP $CPPFLAGS'
10713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10719 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10720 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10721 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10722 CFLAGS="$SAVE_CFLAGS"
10726 # Find out which ABI we are using.
10727 echo 'int i;' > conftest.$ac_ext
10728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10729 (eval $ac_compile) 2>&5
10731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10732 test $ac_status = 0; }; then
10733 case `/usr/bin/file conftest.o` in
10735 case $lt_cv_prog_gnu_ld in
10736 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10738 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10750 need_locks="$enable_libtool_lock"
10752 if test -n "$ac_tool_prefix"; then
10753 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10754 set dummy ${ac_tool_prefix}mt; ac_word=$2
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756 $as_echo_n "checking for $ac_word... " >&6; }
10757 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10758 $as_echo_n "(cached) " >&6
10760 if test -n "$MANIFEST_TOOL"; then
10761 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10764 for as_dir in $PATH
10767 test -z "$as_dir" && as_dir=.
10768 for ac_exec_ext in '' $ac_executable_extensions; do
10769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10770 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10781 if test -n "$MANIFEST_TOOL"; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10783 $as_echo "$MANIFEST_TOOL" >&6; }
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 $as_echo "no" >&6; }
10791 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10792 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10793 # Extract the first word of "mt", so it can be a program name with args.
10794 set dummy mt; ac_word=$2
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10796 $as_echo_n "checking for $ac_word... " >&6; }
10797 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10798 $as_echo_n "(cached) " >&6
10800 if test -n "$ac_ct_MANIFEST_TOOL"; then
10801 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804 for as_dir in $PATH
10807 test -z "$as_dir" && as_dir=.
10808 for ac_exec_ext in '' $ac_executable_extensions; do
10809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10810 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10820 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10821 if test -n "$ac_ct_MANIFEST_TOOL"; then
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10823 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826 $as_echo "no" >&6; }
10829 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10832 case $cross_compiling:$ac_tool_warned in
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10836 ac_tool_warned=yes ;;
10838 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10841 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10844 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10846 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10847 if ${lt_cv_path_mainfest_tool+:} false; then :
10848 $as_echo_n "(cached) " >&6
10850 lt_cv_path_mainfest_tool=no
10851 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10852 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10853 cat conftest.err >&5
10854 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10855 lt_cv_path_mainfest_tool=yes
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10860 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10861 if test "x$lt_cv_path_mainfest_tool" != xyes; then
10871 rhapsody* | darwin*)
10872 if test -n "$ac_tool_prefix"; then
10873 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10874 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876 $as_echo_n "checking for $ac_word... " >&6; }
10877 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10878 $as_echo_n "(cached) " >&6
10880 if test -n "$DSYMUTIL"; then
10881 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884 for as_dir in $PATH
10887 test -z "$as_dir" && as_dir=.
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10890 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10900 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10901 if test -n "$DSYMUTIL"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10903 $as_echo "$DSYMUTIL" >&6; }
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906 $as_echo "no" >&6; }
10911 if test -z "$ac_cv_prog_DSYMUTIL"; then
10912 ac_ct_DSYMUTIL=$DSYMUTIL
10913 # Extract the first word of "dsymutil", so it can be a program name with args.
10914 set dummy dsymutil; ac_word=$2
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10916 $as_echo_n "checking for $ac_word... " >&6; }
10917 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10918 $as_echo_n "(cached) " >&6
10920 if test -n "$ac_ct_DSYMUTIL"; then
10921 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924 for as_dir in $PATH
10927 test -z "$as_dir" && as_dir=.
10928 for ac_exec_ext in '' $ac_executable_extensions; do
10929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10930 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10940 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10941 if test -n "$ac_ct_DSYMUTIL"; then
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10943 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946 $as_echo "no" >&6; }
10949 if test "x$ac_ct_DSYMUTIL" = x; then
10952 case $cross_compiling:$ac_tool_warned in
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10956 ac_tool_warned=yes ;;
10958 DSYMUTIL=$ac_ct_DSYMUTIL
10961 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10964 if test -n "$ac_tool_prefix"; then
10965 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10966 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10968 $as_echo_n "checking for $ac_word... " >&6; }
10969 if ${ac_cv_prog_NMEDIT+:} false; then :
10970 $as_echo_n "(cached) " >&6
10972 if test -n "$NMEDIT"; then
10973 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976 for as_dir in $PATH
10979 test -z "$as_dir" && as_dir=.
10980 for ac_exec_ext in '' $ac_executable_extensions; do
10981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10992 NMEDIT=$ac_cv_prog_NMEDIT
10993 if test -n "$NMEDIT"; then
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10995 $as_echo "$NMEDIT" >&6; }
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998 $as_echo "no" >&6; }
11003 if test -z "$ac_cv_prog_NMEDIT"; then
11004 ac_ct_NMEDIT=$NMEDIT
11005 # Extract the first word of "nmedit", so it can be a program name with args.
11006 set dummy nmedit; ac_word=$2
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11008 $as_echo_n "checking for $ac_word... " >&6; }
11009 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11010 $as_echo_n "(cached) " >&6
11012 if test -n "$ac_ct_NMEDIT"; then
11013 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11016 for as_dir in $PATH
11019 test -z "$as_dir" && as_dir=.
11020 for ac_exec_ext in '' $ac_executable_extensions; do
11021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11022 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11032 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11033 if test -n "$ac_ct_NMEDIT"; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11035 $as_echo "$ac_ct_NMEDIT" >&6; }
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11041 if test "x$ac_ct_NMEDIT" = x; then
11044 case $cross_compiling:$ac_tool_warned in
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11048 ac_tool_warned=yes ;;
11050 NMEDIT=$ac_ct_NMEDIT
11053 NMEDIT="$ac_cv_prog_NMEDIT"
11056 if test -n "$ac_tool_prefix"; then
11057 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11058 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11060 $as_echo_n "checking for $ac_word... " >&6; }
11061 if ${ac_cv_prog_LIPO+:} false; then :
11062 $as_echo_n "(cached) " >&6
11064 if test -n "$LIPO"; then
11065 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11068 for as_dir in $PATH
11071 test -z "$as_dir" && as_dir=.
11072 for ac_exec_ext in '' $ac_executable_extensions; do
11073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11074 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 LIPO=$ac_cv_prog_LIPO
11085 if test -n "$LIPO"; then
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11087 $as_echo "$LIPO" >&6; }
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090 $as_echo "no" >&6; }
11095 if test -z "$ac_cv_prog_LIPO"; then
11097 # Extract the first word of "lipo", so it can be a program name with args.
11098 set dummy lipo; ac_word=$2
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11100 $as_echo_n "checking for $ac_word... " >&6; }
11101 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11102 $as_echo_n "(cached) " >&6
11104 if test -n "$ac_ct_LIPO"; then
11105 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108 for as_dir in $PATH
11111 test -z "$as_dir" && as_dir=.
11112 for ac_exec_ext in '' $ac_executable_extensions; do
11113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11114 ac_cv_prog_ac_ct_LIPO="lipo"
11115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11125 if test -n "$ac_ct_LIPO"; then
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11127 $as_echo "$ac_ct_LIPO" >&6; }
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130 $as_echo "no" >&6; }
11133 if test "x$ac_ct_LIPO" = x; then
11136 case $cross_compiling:$ac_tool_warned in
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11140 ac_tool_warned=yes ;;
11145 LIPO="$ac_cv_prog_LIPO"
11148 if test -n "$ac_tool_prefix"; then
11149 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11150 set dummy ${ac_tool_prefix}otool; ac_word=$2
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11152 $as_echo_n "checking for $ac_word... " >&6; }
11153 if ${ac_cv_prog_OTOOL+:} false; then :
11154 $as_echo_n "(cached) " >&6
11156 if test -n "$OTOOL"; then
11157 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11160 for as_dir in $PATH
11163 test -z "$as_dir" && as_dir=.
11164 for ac_exec_ext in '' $ac_executable_extensions; do
11165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11166 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11176 OTOOL=$ac_cv_prog_OTOOL
11177 if test -n "$OTOOL"; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11179 $as_echo "$OTOOL" >&6; }
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182 $as_echo "no" >&6; }
11187 if test -z "$ac_cv_prog_OTOOL"; then
11189 # Extract the first word of "otool", so it can be a program name with args.
11190 set dummy otool; ac_word=$2
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192 $as_echo_n "checking for $ac_word... " >&6; }
11193 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11194 $as_echo_n "(cached) " >&6
11196 if test -n "$ac_ct_OTOOL"; then
11197 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200 for as_dir in $PATH
11203 test -z "$as_dir" && as_dir=.
11204 for ac_exec_ext in '' $ac_executable_extensions; do
11205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11206 ac_cv_prog_ac_ct_OTOOL="otool"
11207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11217 if test -n "$ac_ct_OTOOL"; then
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11219 $as_echo "$ac_ct_OTOOL" >&6; }
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222 $as_echo "no" >&6; }
11225 if test "x$ac_ct_OTOOL" = x; then
11228 case $cross_compiling:$ac_tool_warned in
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11232 ac_tool_warned=yes ;;
11237 OTOOL="$ac_cv_prog_OTOOL"
11240 if test -n "$ac_tool_prefix"; then
11241 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11242 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11244 $as_echo_n "checking for $ac_word... " >&6; }
11245 if ${ac_cv_prog_OTOOL64+:} false; then :
11246 $as_echo_n "(cached) " >&6
11248 if test -n "$OTOOL64"; then
11249 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252 for as_dir in $PATH
11255 test -z "$as_dir" && as_dir=.
11256 for ac_exec_ext in '' $ac_executable_extensions; do
11257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11258 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11268 OTOOL64=$ac_cv_prog_OTOOL64
11269 if test -n "$OTOOL64"; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11271 $as_echo "$OTOOL64" >&6; }
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; }
11279 if test -z "$ac_cv_prog_OTOOL64"; then
11280 ac_ct_OTOOL64=$OTOOL64
11281 # Extract the first word of "otool64", so it can be a program name with args.
11282 set dummy otool64; ac_word=$2
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284 $as_echo_n "checking for $ac_word... " >&6; }
11285 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11286 $as_echo_n "(cached) " >&6
11288 if test -n "$ac_ct_OTOOL64"; then
11289 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292 for as_dir in $PATH
11295 test -z "$as_dir" && as_dir=.
11296 for ac_exec_ext in '' $ac_executable_extensions; do
11297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11298 ac_cv_prog_ac_ct_OTOOL64="otool64"
11299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11308 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11309 if test -n "$ac_ct_OTOOL64"; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11311 $as_echo "$ac_ct_OTOOL64" >&6; }
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314 $as_echo "no" >&6; }
11317 if test "x$ac_ct_OTOOL64" = x; then
11320 case $cross_compiling:$ac_tool_warned in
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11324 ac_tool_warned=yes ;;
11326 OTOOL64=$ac_ct_OTOOL64
11329 OTOOL64="$ac_cv_prog_OTOOL64"
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11359 $as_echo_n "checking for -single_module linker flag... " >&6; }
11360 if ${lt_cv_apple_cc_single_mod+:} false; then :
11361 $as_echo_n "(cached) " >&6
11363 lt_cv_apple_cc_single_mod=no
11364 if test -z "${LT_MULTI_MODULE}"; then
11365 # By default we will add the -single_module flag. You can override
11366 # by either setting the environment variable LT_MULTI_MODULE
11367 # non-empty at configure time, or by adding -multi_module to the
11369 rm -rf libconftest.dylib*
11370 echo "int foo(void){return 1;}" > conftest.c
11371 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11372 -dynamiclib -Wl,-single_module conftest.c" >&5
11373 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11374 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11376 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11377 lt_cv_apple_cc_single_mod=yes
11379 cat conftest.err >&5
11381 rm -rf libconftest.dylib*
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11386 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11388 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11389 if ${lt_cv_ld_exported_symbols_list+:} false; then :
11390 $as_echo_n "(cached) " >&6
11392 lt_cv_ld_exported_symbols_list=no
11393 save_LDFLAGS=$LDFLAGS
11394 echo "_main" > conftest.sym
11395 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h. */
11407 if ac_fn_c_try_link "$LINENO"; then :
11408 lt_cv_ld_exported_symbols_list=yes
11410 lt_cv_ld_exported_symbols_list=no
11412 rm -f core conftest.err conftest.$ac_objext \
11413 conftest$ac_exeext conftest.$ac_ext
11414 LDFLAGS="$save_LDFLAGS"
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11418 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11420 $as_echo_n "checking for -force_load linker flag... " >&6; }
11421 if ${lt_cv_ld_force_load+:} false; then :
11422 $as_echo_n "(cached) " >&6
11424 lt_cv_ld_force_load=no
11425 cat > conftest.c << _LT_EOF
11426 int forced_loaded() { return 2;}
11428 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11429 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11430 echo "$AR cru libconftest.a conftest.o" >&5
11431 $AR cru libconftest.a conftest.o 2>&5
11432 echo "$RANLIB libconftest.a" >&5
11433 $RANLIB libconftest.a 2>&5
11434 cat > conftest.c << _LT_EOF
11435 int main() { return 0;}
11437 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11438 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11440 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11441 lt_cv_ld_force_load=yes
11443 cat conftest.err >&5
11445 rm -f conftest.err libconftest.a conftest conftest.c
11446 rm -rf conftest.dSYM
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11450 $as_echo "$lt_cv_ld_force_load" >&6; }
11452 rhapsody* | darwin1.[012])
11453 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11455 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11456 darwin*) # darwin 5.x on
11457 # if running on 10.5 or later, the deployment target defaults
11458 # to the OS version, if on x86, and 10.4, the deployment
11459 # target defaults to 10.4. Don't you love it?
11460 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11461 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11462 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11464 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11466 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11470 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11471 _lt_dar_single_mod='$single_module'
11473 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11474 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11476 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11478 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11479 _lt_dsymutil='~$DSYMUTIL $lib || :'
11486 for ac_header in dlfcn.h
11488 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11490 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11491 cat >>confdefs.h <<_ACEOF
11492 #define HAVE_DLFCN_H 1
11502 func_stripname_cnf ()
11505 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11506 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11508 } # func_stripname_cnf
11521 enable_win32_dll=no
11525 # Check whether --enable-static was given.
11526 if test "${enable_static+set}" = set; then :
11527 enableval=$enable_static; p=${PACKAGE-default}
11529 yes) enable_static=yes ;;
11530 no) enable_static=no ;;
11533 # Look at the argument we got. We use all the common list separators.
11534 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11535 for pkg in $enableval; do
11537 if test "X$pkg" = "X$p"; then
11557 # Check whether --with-pic was given.
11558 if test "${with_pic+set}" = set; then :
11559 withval=$with_pic; pic_mode="$withval"
11565 test -z "$pic_mode" && pic_mode=default
11573 # Check whether --enable-fast-install was given.
11574 if test "${enable_fast_install+set}" = set; then :
11575 enableval=$enable_fast_install; p=${PACKAGE-default}
11577 yes) enable_fast_install=yes ;;
11578 no) enable_fast_install=no ;;
11580 enable_fast_install=no
11581 # Look at the argument we got. We use all the common list separators.
11582 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11583 for pkg in $enableval; do
11585 if test "X$pkg" = "X$p"; then
11586 enable_fast_install=yes
11593 enable_fast_install=yes
11606 # This can be used to rebuild libtool when needed
11607 LIBTOOL_DEPS="$ltmain"
11609 # Always use our own libtool.
11610 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11637 test -z "$LN_S" && LN_S="ln -s"
11652 if test -n "${ZSH_VERSION+set}" ; then
11653 setopt NO_GLOB_SUBST
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11657 $as_echo_n "checking for objdir... " >&6; }
11658 if ${lt_cv_objdir+:} false; then :
11659 $as_echo_n "(cached) " >&6
11661 rm -f .libs 2>/dev/null
11662 mkdir .libs 2>/dev/null
11663 if test -d .libs; then
11666 # MS-DOS does not allow filenames that begin with a dot.
11669 rmdir .libs 2>/dev/null
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11672 $as_echo "$lt_cv_objdir" >&6; }
11673 objdir=$lt_cv_objdir
11679 cat >>confdefs.h <<_ACEOF
11680 #define LT_OBJDIR "$lt_cv_objdir/"
11688 # AIX sometimes has problems with the GCC collect2 program. For some
11689 # reason, if we set the COLLECT_NAMES environment variable, the problems
11690 # vanish in a puff of smoke.
11691 if test "X${COLLECT_NAMES+set}" != Xset; then
11693 export COLLECT_NAMES
11698 # Global variables:
11700 can_build_shared=yes
11702 # All known linkers require a `.a' archive for static linking (except MSVC,
11703 # which needs '.lib').
11706 with_gnu_ld="$lt_cv_prog_gnu_ld"
11709 old_CFLAGS="$CFLAGS"
11711 # Set sane defaults for various variables
11712 test -z "$CC" && CC=cc
11713 test -z "$LTCC" && LTCC=$CC
11714 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11715 test -z "$LD" && LD=ld
11716 test -z "$ac_objext" && ac_objext=o
11718 for cc_temp in $compiler""; do
11720 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11721 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11726 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11729 # Only perform the check for file, if the check method requires it
11730 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11731 case $deplibs_check_method in
11733 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11735 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11736 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11737 $as_echo_n "(cached) " >&6
11741 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11744 lt_save_MAGIC_CMD="$MAGIC_CMD"
11745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11746 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11747 for ac_dir in $ac_dummy; do
11749 test -z "$ac_dir" && ac_dir=.
11750 if test -f $ac_dir/${ac_tool_prefix}file; then
11751 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11752 if test -n "$file_magic_test_file"; then
11753 case $deplibs_check_method in
11755 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11756 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11757 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11758 $EGREP "$file_magic_regex" > /dev/null; then
11763 *** Warning: the command libtool uses to detect shared libraries,
11764 *** $file_magic_cmd, produces output that libtool cannot recognize.
11765 *** The result is that libtool may fail to recognize shared libraries
11766 *** as such. This will affect the creation of libtool libraries that
11767 *** depend on shared libraries, but programs linked with such libtool
11768 *** libraries will work regardless of this problem. Nevertheless, you
11769 *** may want to report the problem to your system manager and/or to
11770 *** bug-libtool@gnu.org
11780 MAGIC_CMD="$lt_save_MAGIC_CMD"
11785 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11786 if test -n "$MAGIC_CMD"; then
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11788 $as_echo "$MAGIC_CMD" >&6; }
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791 $as_echo "no" >&6; }
11798 if test -z "$lt_cv_path_MAGIC_CMD"; then
11799 if test -n "$ac_tool_prefix"; then
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11801 $as_echo_n "checking for file... " >&6; }
11802 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11803 $as_echo_n "(cached) " >&6
11807 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11810 lt_save_MAGIC_CMD="$MAGIC_CMD"
11811 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11812 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11813 for ac_dir in $ac_dummy; do
11815 test -z "$ac_dir" && ac_dir=.
11816 if test -f $ac_dir/file; then
11817 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11818 if test -n "$file_magic_test_file"; then
11819 case $deplibs_check_method in
11821 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11822 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11823 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11824 $EGREP "$file_magic_regex" > /dev/null; then
11829 *** Warning: the command libtool uses to detect shared libraries,
11830 *** $file_magic_cmd, produces output that libtool cannot recognize.
11831 *** The result is that libtool may fail to recognize shared libraries
11832 *** as such. This will affect the creation of libtool libraries that
11833 *** depend on shared libraries, but programs linked with such libtool
11834 *** libraries will work regardless of this problem. Nevertheless, you
11835 *** may want to report the problem to your system manager and/or to
11836 *** bug-libtool@gnu.org
11846 MAGIC_CMD="$lt_save_MAGIC_CMD"
11851 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11852 if test -n "$MAGIC_CMD"; then
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11854 $as_echo "$MAGIC_CMD" >&6; }
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857 $as_echo "no" >&6; }
11870 # Use C for the default configuration in the libtool script
11874 ac_cpp='$CPP $CPPFLAGS'
11875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11880 # Source file extension for C test sources.
11883 # Object file extension for compiled C test sources.
11887 # Code to be used in simple compile tests
11888 lt_simple_compile_test_code="int some_variable = 0;"
11890 # Code to be used in simple link tests
11891 lt_simple_link_test_code='int main(){return(0);}'
11899 # If no C compiler was specified, use CC.
11902 # If no C compiler flags were specified, use CFLAGS.
11903 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11905 # Allow CC to be a program name with arguments.
11908 # Save the default compiler, since it gets overwritten when the other
11909 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11910 compiler_DEFAULT=$CC
11912 # save warnings/boilerplate of simple test code
11913 ac_outfile=conftest.$ac_objext
11914 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11915 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11916 _lt_compiler_boilerplate=`cat conftest.err`
11919 ac_outfile=conftest.$ac_objext
11920 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11921 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11922 _lt_linker_boilerplate=`cat conftest.err`
11927 ## There is no encapsulation within the following macros, do not change
11928 ## the running order or otherwise move them around unless you know exactly
11929 ## what you are doing...
11930 if test -n "$compiler"; then
11932 lt_prog_compiler_no_builtin_flag=
11934 if test "$GCC" = yes; then
11935 case $cc_basename in
11937 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11939 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11943 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11944 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11945 $as_echo_n "(cached) " >&6
11947 lt_cv_prog_compiler_rtti_exceptions=no
11948 ac_outfile=conftest.$ac_objext
11949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11950 lt_compiler_flag="-fno-rtti -fno-exceptions"
11951 # Insert the option either (1) after the last *FLAGS variable, or
11952 # (2) before a word containing "conftest.", or (3) at the end.
11953 # Note that $ac_compile itself does not contain backslashes and begins
11954 # with a dollar sign (not a hyphen), so the echo should work correctly.
11955 # The option is referenced via a variable to avoid confusing sed.
11956 lt_compile=`echo "$ac_compile" | $SED \
11957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11959 -e 's:$: $lt_compiler_flag:'`
11960 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11961 (eval "$lt_compile" 2>conftest.err)
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 if (exit $ac_status) && test -s "$ac_outfile"; then
11966 # The compiler can only warn and ignore the option if not recognized
11967 # So say no if there are warnings other than the usual output.
11968 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11970 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11971 lt_cv_prog_compiler_rtti_exceptions=yes
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11978 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11980 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11981 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11993 lt_prog_compiler_wl=
11994 lt_prog_compiler_pic=
11995 lt_prog_compiler_static=
11998 if test "$GCC" = yes; then
11999 lt_prog_compiler_wl='-Wl,'
12000 lt_prog_compiler_static='-static'
12004 # All AIX code is PIC.
12005 if test "$host_cpu" = ia64; then
12006 # AIX 5 now supports IA64 processor
12007 lt_prog_compiler_static='-Bstatic'
12014 # see comment about AmigaOS4 .so support
12015 lt_prog_compiler_pic='-fPIC'
12018 # FIXME: we need at least 68020 code to build shared libraries, but
12019 # adding the `-m68020' flag to GCC prevents building anything better,
12021 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12026 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12027 # PIC is the default for these OSes.
12030 mingw* | cygwin* | pw32* | os2* | cegcc*)
12031 # This hack is so that the source file can tell whether it is being
12032 # built for inclusion in a dll (and should export symbols for example).
12033 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12034 # (--disable-auto-import) libraries
12035 lt_prog_compiler_pic='-DDLL_EXPORT'
12038 darwin* | rhapsody*)
12039 # PIC is the default on this platform
12040 # Common symbols not allowed in MH_DYLIB files
12041 lt_prog_compiler_pic='-fno-common'
12045 # PIC is the default for Haiku.
12046 # The "-static" flag exists, but is broken.
12047 lt_prog_compiler_static=
12051 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12052 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12053 # sets the default TLS model and affects inlining.
12059 lt_prog_compiler_pic='-fPIC'
12065 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12066 # Instead, we relocate shared libraries at runtime.
12070 # Just because we use GCC doesn't mean we suddenly get shared libraries
12071 # on systems that don't support them.
12072 lt_prog_compiler_can_build_shared=no
12077 # QNX uses GNU C++, but need to define -shared option too, otherwise
12078 # it will coredump.
12079 lt_prog_compiler_pic='-fPIC -shared'
12083 if test -d /usr/nec; then
12084 lt_prog_compiler_pic=-Kconform_pic
12089 lt_prog_compiler_pic='-fPIC'
12093 case $cc_basename in
12094 nvcc*) # Cuda Compiler Driver 2.2
12095 lt_prog_compiler_wl='-Xlinker '
12096 lt_prog_compiler_pic='-Xcompiler -fPIC'
12100 # PORTME Check for flag to pass linker flags through the system compiler.
12103 lt_prog_compiler_wl='-Wl,'
12104 if test "$host_cpu" = ia64; then
12105 # AIX 5 now supports IA64 processor
12106 lt_prog_compiler_static='-Bstatic'
12108 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12112 mingw* | cygwin* | pw32* | os2* | cegcc*)
12113 # This hack is so that the source file can tell whether it is being
12114 # built for inclusion in a dll (and should export symbols for example).
12115 lt_prog_compiler_pic='-DDLL_EXPORT'
12118 hpux9* | hpux10* | hpux11*)
12119 lt_prog_compiler_wl='-Wl,'
12120 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12121 # not for PA HP-UX.
12127 lt_prog_compiler_pic='+Z'
12130 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12131 lt_prog_compiler_static='${wl}-a ${wl}archive'
12134 irix5* | irix6* | nonstopux*)
12135 lt_prog_compiler_wl='-Wl,'
12136 # PIC (with -KPIC) is the default.
12137 lt_prog_compiler_static='-non_shared'
12140 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12141 case $cc_basename in
12142 # old Intel for x86_64 which still supported -KPIC.
12144 lt_prog_compiler_wl='-Wl,'
12145 lt_prog_compiler_pic='-KPIC'
12146 lt_prog_compiler_static='-static'
12148 # icc used to be incompatible with GCC.
12149 # ICC 10 doesn't accept -KPIC any more.
12151 lt_prog_compiler_wl='-Wl,'
12152 lt_prog_compiler_pic='-fPIC'
12153 lt_prog_compiler_static='-static'
12155 # Lahey Fortran 8.1.
12157 lt_prog_compiler_wl='-Wl,'
12158 lt_prog_compiler_pic='--shared'
12159 lt_prog_compiler_static='--static'
12162 # NAG Fortran compiler
12163 lt_prog_compiler_wl='-Wl,-Wl,,'
12164 lt_prog_compiler_pic='-PIC'
12165 lt_prog_compiler_static='-Bstatic'
12167 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12168 # Portland Group compilers (*not* the Pentium gcc compiler,
12169 # which looks to be a dead project)
12170 lt_prog_compiler_wl='-Wl,'
12171 lt_prog_compiler_pic='-fpic'
12172 lt_prog_compiler_static='-Bstatic'
12175 lt_prog_compiler_wl='-Wl,'
12176 # All Alpha code is PIC.
12177 lt_prog_compiler_static='-non_shared'
12179 xl* | bgxl* | bgf* | mpixl*)
12180 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12181 lt_prog_compiler_wl='-Wl,'
12182 lt_prog_compiler_pic='-qpic'
12183 lt_prog_compiler_static='-qstaticlink'
12186 case `$CC -V 2>&1 | sed 5q` in
12187 *Sun\ F* | *Sun*Fortran*)
12188 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12189 lt_prog_compiler_pic='-KPIC'
12190 lt_prog_compiler_static='-Bstatic'
12191 lt_prog_compiler_wl=''
12195 lt_prog_compiler_pic='-KPIC'
12196 lt_prog_compiler_static='-Bstatic'
12197 lt_prog_compiler_wl='-Wl,'
12205 lt_prog_compiler_pic='-KPIC'
12206 lt_prog_compiler_static='-Bstatic'
12210 # QNX uses GNU C++, but need to define -shared option too, otherwise
12211 # it will coredump.
12212 lt_prog_compiler_pic='-fPIC -shared'
12215 osf3* | osf4* | osf5*)
12216 lt_prog_compiler_wl='-Wl,'
12217 # All OSF/1 code is PIC.
12218 lt_prog_compiler_static='-non_shared'
12222 lt_prog_compiler_static='-non_shared'
12226 lt_prog_compiler_pic='-KPIC'
12227 lt_prog_compiler_static='-Bstatic'
12228 case $cc_basename in
12229 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12230 lt_prog_compiler_wl='-Qoption ld ';;
12232 lt_prog_compiler_wl='-Wl,';;
12237 lt_prog_compiler_wl='-Qoption ld '
12238 lt_prog_compiler_pic='-PIC'
12239 lt_prog_compiler_static='-Bstatic'
12242 sysv4 | sysv4.2uw2* | sysv4.3*)
12243 lt_prog_compiler_wl='-Wl,'
12244 lt_prog_compiler_pic='-KPIC'
12245 lt_prog_compiler_static='-Bstatic'
12249 if test -d /usr/nec ;then
12250 lt_prog_compiler_pic='-Kconform_pic'
12251 lt_prog_compiler_static='-Bstatic'
12255 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12256 lt_prog_compiler_wl='-Wl,'
12257 lt_prog_compiler_pic='-KPIC'
12258 lt_prog_compiler_static='-Bstatic'
12262 lt_prog_compiler_wl='-Wl,'
12263 lt_prog_compiler_can_build_shared=no
12267 lt_prog_compiler_pic='-pic'
12268 lt_prog_compiler_static='-Bstatic'
12272 lt_prog_compiler_can_build_shared=no
12278 # For platforms which do not support PIC, -DPIC is meaningless:
12280 lt_prog_compiler_pic=
12283 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12288 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12289 if ${lt_cv_prog_compiler_pic+:} false; then :
12290 $as_echo_n "(cached) " >&6
12292 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12295 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12296 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12299 # Check to make sure the PIC flag actually works.
12301 if test -n "$lt_prog_compiler_pic"; then
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12303 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12304 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12305 $as_echo_n "(cached) " >&6
12307 lt_cv_prog_compiler_pic_works=no
12308 ac_outfile=conftest.$ac_objext
12309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12310 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12311 # Insert the option either (1) after the last *FLAGS variable, or
12312 # (2) before a word containing "conftest.", or (3) at the end.
12313 # Note that $ac_compile itself does not contain backslashes and begins
12314 # with a dollar sign (not a hyphen), so the echo should work correctly.
12315 # The option is referenced via a variable to avoid confusing sed.
12316 lt_compile=`echo "$ac_compile" | $SED \
12317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12319 -e 's:$: $lt_compiler_flag:'`
12320 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12321 (eval "$lt_compile" 2>conftest.err)
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 if (exit $ac_status) && test -s "$ac_outfile"; then
12326 # The compiler can only warn and ignore the option if not recognized
12327 # So say no if there are warnings other than the usual output.
12328 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12330 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12331 lt_cv_prog_compiler_pic_works=yes
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12338 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12340 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12341 case $lt_prog_compiler_pic in
12343 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12346 lt_prog_compiler_pic=
12347 lt_prog_compiler_can_build_shared=no
12363 # Check to make sure the static flag actually works.
12365 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12367 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12368 if ${lt_cv_prog_compiler_static_works+:} false; then :
12369 $as_echo_n "(cached) " >&6
12371 lt_cv_prog_compiler_static_works=no
12372 save_LDFLAGS="$LDFLAGS"
12373 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12374 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12375 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12376 # The linker can only warn and ignore the option if not recognized
12377 # So say no if there are warnings
12378 if test -s conftest.err; then
12379 # Append any errors to the config.log.
12380 cat conftest.err 1>&5
12381 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12382 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12383 if diff conftest.exp conftest.er2 >/dev/null; then
12384 lt_cv_prog_compiler_static_works=yes
12387 lt_cv_prog_compiler_static_works=yes
12391 LDFLAGS="$save_LDFLAGS"
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12395 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12397 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12400 lt_prog_compiler_static=
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12410 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12411 if ${lt_cv_prog_compiler_c_o+:} false; then :
12412 $as_echo_n "(cached) " >&6
12414 lt_cv_prog_compiler_c_o=no
12415 $RM -r conftest 2>/dev/null
12419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12421 lt_compiler_flag="-o out/conftest2.$ac_objext"
12422 # Insert the option either (1) after the last *FLAGS variable, or
12423 # (2) before a word containing "conftest.", or (3) at the end.
12424 # Note that $ac_compile itself does not contain backslashes and begins
12425 # with a dollar sign (not a hyphen), so the echo should work correctly.
12426 lt_compile=`echo "$ac_compile" | $SED \
12427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12429 -e 's:$: $lt_compiler_flag:'`
12430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12431 (eval "$lt_compile" 2>out/conftest.err)
12433 cat out/conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12437 # The compiler can only warn and ignore the option if not recognized
12438 # So say no if there are warnings
12439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12440 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12441 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12442 lt_cv_prog_compiler_c_o=yes
12447 # SGI C++ compiler will create directory out/ii_files/ for
12448 # template instantiation
12449 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12450 $RM out/* && rmdir out
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12457 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12465 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12466 if ${lt_cv_prog_compiler_c_o+:} false; then :
12467 $as_echo_n "(cached) " >&6
12469 lt_cv_prog_compiler_c_o=no
12470 $RM -r conftest 2>/dev/null
12474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12476 lt_compiler_flag="-o out/conftest2.$ac_objext"
12477 # Insert the option either (1) after the last *FLAGS variable, or
12478 # (2) before a word containing "conftest.", or (3) at the end.
12479 # Note that $ac_compile itself does not contain backslashes and begins
12480 # with a dollar sign (not a hyphen), so the echo should work correctly.
12481 lt_compile=`echo "$ac_compile" | $SED \
12482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12484 -e 's:$: $lt_compiler_flag:'`
12485 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12486 (eval "$lt_compile" 2>out/conftest.err)
12488 cat out/conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12492 # The compiler can only warn and ignore the option if not recognized
12493 # So say no if there are warnings
12494 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12495 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12496 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12497 lt_cv_prog_compiler_c_o=yes
12502 # SGI C++ compiler will create directory out/ii_files/ for
12503 # template instantiation
12504 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12505 $RM out/* && rmdir out
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12512 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12517 hard_links="nottested"
12518 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12519 # do not overwrite the value of need_locks provided by the user
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12521 $as_echo_n "checking if we can lock with hard links... " >&6; }
12524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12526 ln conftest.a conftest.b 2>&5 || hard_links=no
12527 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12529 $as_echo "$hard_links" >&6; }
12530 if test "$hard_links" = no; then
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12532 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12545 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12548 allow_undefined_flag=
12549 always_export_symbols=no
12551 archive_expsym_cmds=
12552 compiler_needs_object=no
12553 enable_shared_with_static_runtimes=no
12554 export_dynamic_flag_spec=
12555 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12556 hardcode_automatic=no
12558 hardcode_direct_absolute=no
12559 hardcode_libdir_flag_spec=
12560 hardcode_libdir_flag_spec_ld=
12561 hardcode_libdir_separator=
12562 hardcode_minus_L=no
12563 hardcode_shlibpath_var=unsupported
12565 link_all_deplibs=unknown
12567 module_expsym_cmds=
12568 old_archive_from_new_cmds=
12569 old_archive_from_expsyms_cmds=
12570 thread_safe_flag_spec=
12571 whole_archive_flag_spec=
12572 # include_expsyms should be a list of space-separated symbols to be *always*
12573 # included in the symbol list
12575 # exclude_expsyms can be an extended regexp of symbols to exclude
12576 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12577 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12578 # as well as any symbol that contains `d'.
12579 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12580 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12581 # platforms (ab)use it in PIC code, but their linkers get confused if
12582 # the symbol is explicitly referenced. Since portable code cannot
12583 # rely on this symbol name, it's probably fine to never include it in
12584 # preloaded symbol tables.
12585 # Exclude shared library initialization/finalization symbols.
12586 extract_expsyms_cmds=
12589 cygwin* | mingw* | pw32* | cegcc*)
12590 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12591 # When not using gcc, we currently assume that we are using
12592 # Microsoft Visual C++.
12593 if test "$GCC" != yes; then
12598 # we just hope/assume this is gcc and not c89 (= MSVC++)
12608 # On some targets, GNU ld is compatible enough with the native linker
12609 # that we're better off using the native interface for both.
12610 lt_use_gnu_ld_interface=no
12611 if test "$with_gnu_ld" = yes; then
12614 # The AIX port of GNU ld has always aspired to compatibility
12615 # with the native linker. However, as the warning in the GNU ld
12616 # block says, versions before 2.19.5* couldn't really create working
12617 # shared libraries, regardless of the interface used.
12618 case `$LD -v 2>&1` in
12619 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12620 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12621 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12623 lt_use_gnu_ld_interface=yes
12628 lt_use_gnu_ld_interface=yes
12633 if test "$lt_use_gnu_ld_interface" = yes; then
12634 # If archive_cmds runs LD, not CC, wlarc should be empty
12637 # Set some defaults for GNU ld with shared library support. These
12638 # are reset later if shared libraries are not supported. Putting them
12639 # here allows them to be overridden if necessary.
12640 runpath_var=LD_RUN_PATH
12641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12642 export_dynamic_flag_spec='${wl}--export-dynamic'
12643 # ancient GNU ld didn't support --whole-archive et. al.
12644 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12645 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12647 whole_archive_flag_spec=
12649 supports_anon_versioning=no
12650 case `$LD -v 2>&1` in
12651 *GNU\ gold*) supports_anon_versioning=yes ;;
12652 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12653 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12654 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12655 *\ 2.11.*) ;; # other 2.11 versions
12656 *) supports_anon_versioning=yes ;;
12659 # See if GNU ld supports shared libraries.
12662 # On AIX/PPC, the GNU linker is very broken
12663 if test "$host_cpu" != ia64; then
12667 *** Warning: the GNU linker, at least up to release 2.19, is reported
12668 *** to be unable to reliably create shared libraries on AIX.
12669 *** Therefore, libtool is disabling shared libraries support. If you
12670 *** really care for shared libraries, you may want to install binutils
12671 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12672 *** You will then need to restart the configuration process.
12681 # see comment about AmigaOS4 .so support
12682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12683 archive_expsym_cmds=''
12686 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)'
12687 hardcode_libdir_flag_spec='-L$libdir'
12688 hardcode_minus_L=yes
12694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12695 allow_undefined_flag=unsupported
12696 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12697 # support --undefined. This deserves some investigation. FIXME
12698 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12704 cygwin* | mingw* | pw32* | cegcc*)
12705 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12706 # as there is no search path for DLLs.
12707 hardcode_libdir_flag_spec='-L$libdir'
12708 export_dynamic_flag_spec='${wl}--export-all-symbols'
12709 allow_undefined_flag=unsupported
12710 always_export_symbols=no
12711 enable_shared_with_static_runtimes=yes
12712 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'
12713 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12715 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12717 # If the export-symbols file already is a .def file (1st line
12718 # is EXPORTS), use it as is; otherwise, prepend...
12719 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12720 cp $export_symbols $output_objdir/$soname.def;
12722 echo EXPORTS > $output_objdir/$soname.def;
12723 cat $export_symbols >> $output_objdir/$soname.def;
12725 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12733 link_all_deplibs=yes
12738 hardcode_shlibpath_var=no
12739 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12740 export_dynamic_flag_spec='${wl}-E'
12741 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12742 # Instead, shared libraries are loaded at an image base (0x10000000 by
12743 # default) and relocated if they conflict, which is a slow very memory
12744 # consuming and fragmenting process. To avoid this, we pick a random,
12745 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12746 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12747 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12748 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'
12751 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12753 if test "$host_os" = linux-dietlibc; then
12754 case $cc_basename in
12755 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12758 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12759 && test "$tmp_diet" = no
12761 tmp_addflag=' $pic_flag'
12762 tmp_sharedflag='-shared'
12763 case $cc_basename,$host_cpu in
12764 pgcc*) # Portland Group C compiler
12765 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12766 tmp_addflag=' $pic_flag'
12768 pgf77* | pgf90* | pgf95* | pgfortran*)
12769 # Portland Group f77 and f90 compilers
12770 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'
12771 tmp_addflag=' $pic_flag -Mnomain' ;;
12772 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12773 tmp_addflag=' -i_dynamic' ;;
12774 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12775 tmp_addflag=' -i_dynamic -nofor_main' ;;
12776 ifc* | ifort*) # Intel Fortran compiler
12777 tmp_addflag=' -nofor_main' ;;
12778 lf95*) # Lahey Fortran 8.1
12779 whole_archive_flag_spec=
12780 tmp_sharedflag='--shared' ;;
12781 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12782 tmp_sharedflag='-qmkshrobj'
12784 nvcc*) # Cuda Compiler Driver 2.2
12785 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'
12786 compiler_needs_object=yes
12789 case `$CC -V 2>&1 | sed 5q` in
12790 *Sun\ C*) # Sun C 5.9
12791 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'
12792 compiler_needs_object=yes
12793 tmp_sharedflag='-G' ;;
12794 *Sun\ F*) # Sun Fortran 8.3
12795 tmp_sharedflag='-G' ;;
12797 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12799 if test "x$supports_anon_versioning" = xyes; then
12800 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12802 echo "local: *; };" >> $output_objdir/$libname.ver~
12803 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12806 case $cc_basename in
12807 xlf* | bgf* | bgxlf* | mpixlf*)
12808 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12809 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12810 hardcode_libdir_flag_spec=
12811 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12812 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12813 if test "x$supports_anon_versioning" = xyes; then
12814 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12815 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12816 echo "local: *; };" >> $output_objdir/$libname.ver~
12817 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12827 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12828 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12831 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12832 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12837 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12841 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12842 *** create shared libraries on Solaris systems. Therefore, libtool
12843 *** is disabling shared libraries support. We urge you to upgrade GNU
12844 *** binutils to release 2.9.1 or newer. Another option is to modify
12845 *** your PATH or compiler configuration so that the native linker is
12846 *** used, and then restart.
12849 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12850 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12851 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12857 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12858 case `$LD -v 2>&1` in
12859 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12863 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12864 *** reliably create shared libraries on SCO systems. Therefore, libtool
12865 *** is disabling shared libraries support. We urge you to upgrade GNU
12866 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12867 *** your PATH or compiler configuration so that the native linker is
12868 *** used, and then restart.
12873 # For security reasons, it is highly recommended that you always
12874 # use absolute paths for naming shared libraries, and exclude the
12875 # DT_RUNPATH tag from executables and libraries. But doing so
12876 # requires that you compile everything twice, which is a pain.
12877 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12880 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12889 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12891 hardcode_direct=yes
12892 hardcode_shlibpath_var=no
12896 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12897 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12898 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12905 if test "$ld_shlibs" = no; then
12907 hardcode_libdir_flag_spec=
12908 export_dynamic_flag_spec=
12909 whole_archive_flag_spec=
12912 # PORTME fill in a description of your system's linker (not GNU ld)
12915 allow_undefined_flag=unsupported
12916 always_export_symbols=yes
12917 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'
12918 # Note: this linker hardcodes the directories in LIBPATH if there
12919 # are no directories specified by -L.
12920 hardcode_minus_L=yes
12921 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12922 # Neither direct hardcoding nor static linking is supported with a
12924 hardcode_direct=unsupported
12929 if test "$host_cpu" = ia64; then
12930 # On IA64, the linker does run time linking by default, so we don't
12931 # have to do anything special.
12932 aix_use_runtimelinking=no
12933 exp_sym_flag='-Bexport'
12936 # If we're using GNU nm, then we don't want the "-C" option.
12937 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12938 # Also, AIX nm treats weak defined symbols like other global
12939 # defined symbols, whereas GNU nm marks them as "W".
12940 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12941 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'
12943 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'
12945 aix_use_runtimelinking=no
12947 # Test if we are trying to use run time linking or normal
12948 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12949 # need to do runtime linking.
12950 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12951 for ld_flag in $LDFLAGS; do
12952 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12953 aix_use_runtimelinking=yes
12960 exp_sym_flag='-bexport'
12961 no_entry_flag='-bnoentry'
12964 # When large executables or shared objects are built, AIX ld can
12965 # have problems creating the table of contents. If linking a library
12966 # or program results in "error TOC overflow" add -mminimal-toc to
12967 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12968 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12971 hardcode_direct=yes
12972 hardcode_direct_absolute=yes
12973 hardcode_libdir_separator=':'
12974 link_all_deplibs=yes
12975 file_list_spec='${wl}-f,'
12977 if test "$GCC" = yes; then
12978 case $host_os in aix4.[012]|aix4.[012].*)
12979 # We only want to do this on AIX 4.2 and lower, the check
12980 # below for broken collect2 doesn't work under 4.3+
12981 collect2name=`${CC} -print-prog-name=collect2`
12982 if test -f "$collect2name" &&
12983 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12985 # We have reworked collect2
12988 # We have old collect2
12989 hardcode_direct=unsupported
12990 # It fails to find uninstalled libraries when the uninstalled
12991 # path is not listed in the libpath. Setting hardcode_minus_L
12992 # to unsupported forces relinking
12993 hardcode_minus_L=yes
12994 hardcode_libdir_flag_spec='-L$libdir'
12995 hardcode_libdir_separator=
12999 shared_flag='-shared'
13000 if test "$aix_use_runtimelinking" = yes; then
13001 shared_flag="$shared_flag "'${wl}-G'
13005 if test "$host_cpu" = ia64; then
13006 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13007 # chokes on -Wl,-G. The following line is correct:
13010 if test "$aix_use_runtimelinking" = yes; then
13011 shared_flag='${wl}-G'
13013 shared_flag='${wl}-bM:SRE'
13018 export_dynamic_flag_spec='${wl}-bexpall'
13019 # It seems that -bexpall does not export symbols beginning with
13020 # underscore (_), so it is better to generate a list of symbols to export.
13021 always_export_symbols=yes
13022 if test "$aix_use_runtimelinking" = yes; then
13023 # Warning - without using the other runtime loading flags (-brtl),
13024 # -berok will link without error, but may produce a broken library.
13025 allow_undefined_flag='-berok'
13026 # Determine the default libpath from the value encoded in an
13027 # empty executable.
13028 if test "${lt_cv_aix_libpath+set}" = set; then
13029 aix_libpath=$lt_cv_aix_libpath
13031 if ${lt_cv_aix_libpath_+:} false; then :
13032 $as_echo_n "(cached) " >&6
13034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035 /* end confdefs.h. */
13045 if ac_fn_c_try_link "$LINENO"; then :
13047 lt_aix_libpath_sed='
13048 /Import File Strings/,/^$/ {
13050 s/^0 *\([^ ]*\) *$/\1/
13054 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13055 # Check for a 64-bit object if we didn't find anything.
13056 if test -z "$lt_cv_aix_libpath_"; then
13057 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13060 rm -f core conftest.err conftest.$ac_objext \
13061 conftest$ac_exeext conftest.$ac_ext
13062 if test -z "$lt_cv_aix_libpath_"; then
13063 lt_cv_aix_libpath_="/usr/lib:/lib"
13068 aix_libpath=$lt_cv_aix_libpath_
13071 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13072 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"
13074 if test "$host_cpu" = ia64; then
13075 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13076 allow_undefined_flag="-z nodefs"
13077 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"
13079 # Determine the default libpath from the value encoded in an
13080 # empty executable.
13081 if test "${lt_cv_aix_libpath+set}" = set; then
13082 aix_libpath=$lt_cv_aix_libpath
13084 if ${lt_cv_aix_libpath_+:} false; then :
13085 $as_echo_n "(cached) " >&6
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13098 if ac_fn_c_try_link "$LINENO"; then :
13100 lt_aix_libpath_sed='
13101 /Import File Strings/,/^$/ {
13103 s/^0 *\([^ ]*\) *$/\1/
13107 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13108 # Check for a 64-bit object if we didn't find anything.
13109 if test -z "$lt_cv_aix_libpath_"; then
13110 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13113 rm -f core conftest.err conftest.$ac_objext \
13114 conftest$ac_exeext conftest.$ac_ext
13115 if test -z "$lt_cv_aix_libpath_"; then
13116 lt_cv_aix_libpath_="/usr/lib:/lib"
13121 aix_libpath=$lt_cv_aix_libpath_
13124 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13125 # Warning - without using the other run time loading flags,
13126 # -berok will link without error, but may produce a broken library.
13127 no_undefined_flag=' ${wl}-bernotok'
13128 allow_undefined_flag=' ${wl}-berok'
13129 if test "$with_gnu_ld" = yes; then
13130 # We only use this code for GNU lds that support --whole-archive.
13131 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13133 # Exported symbols can be pulled into shared objects from archives
13134 whole_archive_flag_spec='$convenience'
13136 archive_cmds_need_lc=yes
13137 # This is similar to how AIX traditionally builds its shared libraries.
13138 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'
13146 # see comment about AmigaOS4 .so support
13147 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13148 archive_expsym_cmds=''
13151 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)'
13152 hardcode_libdir_flag_spec='-L$libdir'
13153 hardcode_minus_L=yes
13159 export_dynamic_flag_spec=-rdynamic
13162 cygwin* | mingw* | pw32* | cegcc*)
13163 # When not using gcc, we currently assume that we are using
13164 # Microsoft Visual C++.
13165 # hardcode_libdir_flag_spec is actually meaningless, as there is
13166 # no search path for DLLs.
13167 case $cc_basename in
13170 hardcode_libdir_flag_spec=' '
13171 allow_undefined_flag=unsupported
13172 always_export_symbols=yes
13174 # Tell ltmain to make .lib files, not .a files.
13176 # Tell ltmain to make .dll files, not .so files.
13178 # FIXME: Setting linknames here is a bad hack.
13179 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13180 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13181 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13183 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13185 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13187 # The linker will not automatically build a static lib if we build a DLL.
13188 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13189 enable_shared_with_static_runtimes=yes
13190 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13192 old_postinstall_cmds='chmod 644 $oldlib'
13193 postlink_cmds='lt_outputfile="@OUTPUT@"~
13194 lt_tool_outputfile="@TOOL_OUTPUT@"~
13195 case $lt_outputfile in
13198 lt_outputfile="$lt_outputfile.exe"
13199 lt_tool_outputfile="$lt_tool_outputfile.exe"
13202 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13203 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13204 $RM "$lt_outputfile.manifest";
13208 # Assume MSVC wrapper
13209 hardcode_libdir_flag_spec=' '
13210 allow_undefined_flag=unsupported
13211 # Tell ltmain to make .lib files, not .a files.
13213 # Tell ltmain to make .dll files, not .so files.
13215 # FIXME: Setting linknames here is a bad hack.
13216 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13217 # The linker will automatically build a .lib file if we build a DLL.
13218 old_archive_from_new_cmds='true'
13219 # FIXME: Should let the user specify the lib program.
13220 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13221 enable_shared_with_static_runtimes=yes
13226 darwin* | rhapsody*)
13229 archive_cmds_need_lc=no
13231 hardcode_automatic=yes
13232 hardcode_shlibpath_var=unsupported
13233 if test "$lt_cv_ld_force_load" = "yes"; then
13234 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\"`'
13236 whole_archive_flag_spec=''
13238 link_all_deplibs=yes
13239 allow_undefined_flag="$_lt_dar_allow_undefined"
13240 case $cc_basename in
13241 ifort*) _lt_dar_can_shared=yes ;;
13242 *) _lt_dar_can_shared=$GCC ;;
13244 if test "$_lt_dar_can_shared" = "yes"; then
13245 output_verbose_link_cmd=func_echo_all
13246 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13247 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13248 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}"
13249 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}"
13258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13259 hardcode_libdir_flag_spec='-L$libdir'
13260 hardcode_shlibpath_var=no
13267 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13268 # support. Future versions do this automatically, but an explicit c++rt0.o
13269 # does not break anything, and helps significantly (at the cost of a little
13272 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13273 hardcode_libdir_flag_spec='-R$libdir'
13274 hardcode_direct=yes
13275 hardcode_shlibpath_var=no
13278 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13281 hardcode_direct=yes
13282 hardcode_minus_L=yes
13283 hardcode_shlibpath_var=no
13286 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13287 freebsd* | dragonfly*)
13288 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13289 hardcode_libdir_flag_spec='-R$libdir'
13290 hardcode_direct=yes
13291 hardcode_shlibpath_var=no
13295 if test "$GCC" = yes; then
13296 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'
13298 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'
13300 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13301 hardcode_libdir_separator=:
13302 hardcode_direct=yes
13304 # hardcode_minus_L: Not really in the search PATH,
13305 # but as the default location of the library.
13306 hardcode_minus_L=yes
13307 export_dynamic_flag_spec='${wl}-E'
13311 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13312 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13314 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13316 if test "$with_gnu_ld" = no; then
13317 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13318 hardcode_libdir_flag_spec_ld='+b $libdir'
13319 hardcode_libdir_separator=:
13320 hardcode_direct=yes
13321 hardcode_direct_absolute=yes
13322 export_dynamic_flag_spec='${wl}-E'
13323 # hardcode_minus_L: Not really in the search PATH,
13324 # but as the default location of the library.
13325 hardcode_minus_L=yes
13330 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13333 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13336 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13339 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13345 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13348 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13352 # Older versions of the 11.00 compiler do not understand -b yet
13353 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13355 $as_echo_n "checking if $CC understands -b... " >&6; }
13356 if ${lt_cv_prog_compiler__b+:} false; then :
13357 $as_echo_n "(cached) " >&6
13359 lt_cv_prog_compiler__b=no
13360 save_LDFLAGS="$LDFLAGS"
13361 LDFLAGS="$LDFLAGS -b"
13362 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13363 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13364 # The linker can only warn and ignore the option if not recognized
13365 # So say no if there are warnings
13366 if test -s conftest.err; then
13367 # Append any errors to the config.log.
13368 cat conftest.err 1>&5
13369 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13370 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13371 if diff conftest.exp conftest.er2 >/dev/null; then
13372 lt_cv_prog_compiler__b=yes
13375 lt_cv_prog_compiler__b=yes
13379 LDFLAGS="$save_LDFLAGS"
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13383 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13385 if test x"$lt_cv_prog_compiler__b" = xyes; then
13386 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13388 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13394 if test "$with_gnu_ld" = no; then
13395 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13396 hardcode_libdir_separator=:
13401 hardcode_shlibpath_var=no
13404 hardcode_direct=yes
13405 hardcode_direct_absolute=yes
13406 export_dynamic_flag_spec='${wl}-E'
13408 # hardcode_minus_L: Not really in the search PATH,
13409 # but as the default location of the library.
13410 hardcode_minus_L=yes
13416 irix5* | irix6* | nonstopux*)
13417 if test "$GCC" = yes; then
13418 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'
13419 # Try to use the -exported_symbol ld option, if it does not
13420 # work, assume that -exports_file does not work either and
13421 # implicitly export all symbols.
13422 # This should be the same for all languages, so no per-tag cache variable.
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13424 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13425 if ${lt_cv_irix_exported_symbol+:} false; then :
13426 $as_echo_n "(cached) " >&6
13428 save_LDFLAGS="$LDFLAGS"
13429 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h. */
13432 int foo (void) { return 0; }
13434 if ac_fn_c_try_link "$LINENO"; then :
13435 lt_cv_irix_exported_symbol=yes
13437 lt_cv_irix_exported_symbol=no
13439 rm -f core conftest.err conftest.$ac_objext \
13440 conftest$ac_exeext conftest.$ac_ext
13441 LDFLAGS="$save_LDFLAGS"
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13444 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13445 if test "$lt_cv_irix_exported_symbol" = yes; then
13446 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'
13449 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'
13450 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'
13452 archive_cmds_need_lc='no'
13453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13454 hardcode_libdir_separator=:
13456 link_all_deplibs=yes
13460 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13463 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13465 hardcode_libdir_flag_spec='-R$libdir'
13466 hardcode_direct=yes
13467 hardcode_shlibpath_var=no
13471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13472 hardcode_direct=yes
13473 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13474 hardcode_libdir_separator=:
13475 hardcode_shlibpath_var=no
13482 if test -f /usr/libexec/ld.so; then
13483 hardcode_direct=yes
13484 hardcode_shlibpath_var=no
13485 hardcode_direct_absolute=yes
13486 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13487 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13488 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13489 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13490 export_dynamic_flag_spec='${wl}-E'
13493 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13495 hardcode_libdir_flag_spec='-R$libdir'
13498 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13499 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13509 hardcode_libdir_flag_spec='-L$libdir'
13510 hardcode_minus_L=yes
13511 allow_undefined_flag=unsupported
13512 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'
13513 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13517 if test "$GCC" = yes; then
13518 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13519 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'
13521 allow_undefined_flag=' -expect_unresolved \*'
13522 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'
13524 archive_cmds_need_lc='no'
13525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13526 hardcode_libdir_separator=:
13529 osf4* | osf5*) # as osf3* with the addition of -msym flag
13530 if test "$GCC" = yes; then
13531 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13532 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'
13533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13535 allow_undefined_flag=' -expect_unresolved \*'
13536 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'
13537 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~
13538 $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'
13540 # Both c and cxx compiler support -rpath directly
13541 hardcode_libdir_flag_spec='-rpath $libdir'
13543 archive_cmds_need_lc='no'
13544 hardcode_libdir_separator=:
13548 no_undefined_flag=' -z defs'
13549 if test "$GCC" = yes; then
13551 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13552 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13553 $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'
13555 case `$CC -V 2>&1` in
13558 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13559 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13560 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13564 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13565 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13566 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13570 hardcode_libdir_flag_spec='-R$libdir'
13571 hardcode_shlibpath_var=no
13573 solaris2.[0-5] | solaris2.[0-5].*) ;;
13575 # The compiler driver will combine and reorder linker options,
13576 # but understands `-z linker_flag'. GCC discards it without `$wl',
13577 # but is careful enough not to reorder.
13578 # Supported since Solaris 2.6 (maybe 2.5.1?)
13579 if test "$GCC" = yes; then
13580 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13582 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13586 link_all_deplibs=yes
13590 if test "x$host_vendor" = xsequent; then
13591 # Use $CC to link under sequent, because it throws in some extra .o
13592 # files that make .init and .fini sections work.
13593 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13595 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13597 hardcode_libdir_flag_spec='-L$libdir'
13598 hardcode_direct=yes
13599 hardcode_minus_L=yes
13600 hardcode_shlibpath_var=no
13604 case $host_vendor in
13606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13607 hardcode_direct=yes # is this really true???
13610 ## LD is ld it makes a PLAMLIB
13611 ## CC just makes a GrossModule.
13612 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13613 reload_cmds='$CC -r -o $output$reload_objs'
13617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13618 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13621 runpath_var='LD_RUN_PATH'
13622 hardcode_shlibpath_var=no
13626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13627 hardcode_shlibpath_var=no
13628 export_dynamic_flag_spec='-Bexport'
13632 if test -d /usr/nec; then
13633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13634 hardcode_shlibpath_var=no
13635 runpath_var=LD_RUN_PATH
13636 hardcode_runpath_var=yes
13641 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13642 no_undefined_flag='${wl}-z,text'
13643 archive_cmds_need_lc=no
13644 hardcode_shlibpath_var=no
13645 runpath_var='LD_RUN_PATH'
13647 if test "$GCC" = yes; then
13648 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13649 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13651 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13652 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13656 sysv5* | sco3.2v5* | sco5v6*)
13657 # Note: We can NOT use -z defs as we might desire, because we do not
13658 # link with -lc, and that would cause any symbols used from libc to
13659 # always be unresolved, which means just about no library would
13660 # ever link correctly. If we're not using GNU ld we use -z text
13661 # though, which does catch some bad symbols but isn't as heavy-handed
13663 no_undefined_flag='${wl}-z,text'
13664 allow_undefined_flag='${wl}-z,nodefs'
13665 archive_cmds_need_lc=no
13666 hardcode_shlibpath_var=no
13667 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13668 hardcode_libdir_separator=':'
13669 link_all_deplibs=yes
13670 export_dynamic_flag_spec='${wl}-Bexport'
13671 runpath_var='LD_RUN_PATH'
13673 if test "$GCC" = yes; then
13674 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13675 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13677 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13678 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13684 hardcode_libdir_flag_spec='-L$libdir'
13685 hardcode_shlibpath_var=no
13693 if test x$host_vendor = xsni; then
13695 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13696 export_dynamic_flag_spec='${wl}-Blargedynsym'
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13703 $as_echo "$ld_shlibs" >&6; }
13704 test "$ld_shlibs" = no && can_build_shared=no
13706 with_gnu_ld=$with_gnu_ld
13723 # Do we need to explicitly link libc?
13725 case "x$archive_cmds_need_lc" in
13727 # Assume -lc should be added
13728 archive_cmds_need_lc=yes
13730 if test "$enable_shared" = yes && test "$GCC" = yes; then
13731 case $archive_cmds in
13733 # FIXME: we may have to deal with multi-command sequences.
13736 # Test whether the compiler implicitly links with -lc since on some
13737 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13738 # to ld, don't add -lc before -lgcc.
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13740 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13741 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13742 $as_echo_n "(cached) " >&6
13745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13748 (eval $ac_compile) 2>&5
13750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13751 test $ac_status = 0; } 2>conftest.err; then
13754 libobjs=conftest.$ac_objext
13756 wl=$lt_prog_compiler_wl
13757 pic_flag=$lt_prog_compiler_pic
13763 lt_save_allow_undefined_flag=$allow_undefined_flag
13764 allow_undefined_flag=
13765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13766 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13769 test $ac_status = 0; }
13771 lt_cv_archive_cmds_need_lc=no
13773 lt_cv_archive_cmds_need_lc=yes
13775 allow_undefined_flag=$lt_save_allow_undefined_flag
13777 cat conftest.err 1>&5
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13783 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13784 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13948 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13950 if test "$GCC" = yes; then
13952 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13953 *) lt_awk_arg="/^libraries:/" ;;
13956 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13957 *) lt_sed_strip_eq="s,=/,/,g" ;;
13959 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13960 case $lt_search_path_spec in
13962 # if the path contains ";" then we assume it to be the separator
13963 # otherwise default to the standard path separator (i.e. ":") - it is
13964 # assumed that no part of a normal pathname contains ";" but that should
13965 # okay in the real world where ";" in dirpaths is itself problematic.
13966 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13969 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13972 # Ok, now we have the path, separated by spaces, we can step through it
13973 # and add multilib dir if necessary.
13974 lt_tmp_lt_search_path_spec=
13975 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13976 for lt_sys_path in $lt_search_path_spec; do
13977 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13978 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13980 test -d "$lt_sys_path" && \
13981 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13984 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13985 BEGIN {RS=" "; FS="/|\n";} {
13988 for (lt_i = NF; lt_i > 0; lt_i--) {
13989 if ($lt_i != "" && $lt_i != ".") {
13990 if ($lt_i == "..") {
13993 if (lt_count == 0) {
13994 lt_foo="/" $lt_i lt_foo;
14001 if (lt_foo != "") { lt_freq[lt_foo]++; }
14002 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14004 # AWK program above erroneously prepends '/' to C:/dos/paths
14007 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14008 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14010 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14012 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14014 library_names_spec=
14015 libname_spec='lib$name'
14019 postuninstall_cmds=
14023 shlibpath_overrides_runpath=unknown
14025 dynamic_linker="$host_os ld.so"
14026 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14027 need_lib_prefix=unknown
14028 hardcode_into_libs=no
14030 # when you set need_version to no, make sure it does not cause -set_version
14031 # flags to be left without arguments
14032 need_version=unknown
14037 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14038 shlibpath_var=LIBPATH
14040 # AIX 3 has no versioning support, so we append a major version to the name.
14041 soname_spec='${libname}${release}${shared_ext}$major'
14048 hardcode_into_libs=yes
14049 if test "$host_cpu" = ia64; then
14050 # AIX 5 supports IA64
14051 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14052 shlibpath_var=LD_LIBRARY_PATH
14054 # With GCC up to 2.95.x, collect2 would create an import file
14055 # for dependence libraries. The import file would start with
14056 # the line `#! .'. This would cause the generated library to
14057 # depend on `.', always an invalid library. This was fixed in
14058 # development snapshots of GCC prior to 3.0.
14060 aix4 | aix4.[01] | aix4.[01].*)
14061 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14063 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14066 can_build_shared=no
14070 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14071 # soname into executable. Probably we can add versioning support to
14072 # collect2, so additional links can be useful in future.
14073 if test "$aix_use_runtimelinking" = yes; then
14074 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14075 # instead of lib<name>.a to let people know that these are not
14076 # typical AIX shared libraries.
14077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079 # We preserve .a as extension for shared libraries through AIX4.2
14080 # and later when we are not doing run time linking.
14081 library_names_spec='${libname}${release}.a $libname.a'
14082 soname_spec='${libname}${release}${shared_ext}$major'
14084 shlibpath_var=LIBPATH
14091 # Since July 2007 AmigaOS4 officially supports .so libraries.
14092 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14096 library_names_spec='$libname.ixlibrary $libname.a'
14097 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14098 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'
14104 library_names_spec='${libname}${shared_ext}'
14105 dynamic_linker="$host_os ld.so"
14106 shlibpath_var=LIBRARY_PATH
14112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14113 soname_spec='${libname}${release}${shared_ext}$major'
14114 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14115 shlibpath_var=LD_LIBRARY_PATH
14116 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14117 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14118 # the default ld.so.conf also contains /usr/contrib/lib and
14119 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14120 # libtool to hard-code these into programs
14123 cygwin* | mingw* | pw32* | cegcc*)
14124 version_type=windows
14129 case $GCC,$cc_basename in
14132 library_names_spec='$libname.dll.a'
14133 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14134 postinstall_cmds='base_file=`basename \${file}`~
14135 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14136 dldir=$destdir/`dirname \$dlpath`~
14137 test -d \$dldir || mkdir -p \$dldir~
14138 $install_prog $dir/$dlname \$dldir/$dlname~
14139 chmod a+x \$dldir/$dlname~
14140 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14141 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14143 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14144 dlpath=$dir/\$dldll~
14146 shlibpath_overrides_runpath=yes
14150 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14151 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14153 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14156 # MinGW DLLs use traditional 'lib' prefix
14157 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14160 # pw32 DLLs use 'pw' prefix rather than 'lib'
14161 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14164 dynamic_linker='Win32 ld.exe'
14169 libname_spec='$name'
14170 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14171 library_names_spec='${libname}.dll.lib'
14175 sys_lib_search_path_spec=
14178 for lt_path in $LIB
14181 # Let DOS variable expansion print the short 8.3 style file name.
14182 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14183 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14186 # Convert to MSYS style.
14187 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14190 # Convert to unix form, then to dos form, then back to unix form
14191 # but this time dos style (no spaces!) so that the unix form looks
14192 # like /cygdrive/c/PROGRA~1:/cygdr...
14193 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14194 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14195 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14198 sys_lib_search_path_spec="$LIB"
14199 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14200 # It is most probably a Windows format PATH.
14201 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14203 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14205 # FIXME: find the short name or the path components, as spaces are
14206 # common. (e.g. "Program Files" -> "PROGRA~1")
14210 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14211 postinstall_cmds='base_file=`basename \${file}`~
14212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14213 dldir=$destdir/`dirname \$dlpath`~
14214 test -d \$dldir || mkdir -p \$dldir~
14215 $install_prog $dir/$dlname \$dldir/$dlname'
14216 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14217 dlpath=$dir/\$dldll~
14219 shlibpath_overrides_runpath=yes
14220 dynamic_linker='Win32 link.exe'
14224 # Assume MSVC wrapper
14225 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14226 dynamic_linker='Win32 ld.exe'
14229 # FIXME: first we should search . and the directory the executable is in
14233 darwin* | rhapsody*)
14234 dynamic_linker="$host_os dyld"
14235 version_type=darwin
14238 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14239 soname_spec='${libname}${release}${major}$shared_ext'
14240 shlibpath_overrides_runpath=yes
14241 shlibpath_var=DYLD_LIBRARY_PATH
14242 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14244 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14245 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14253 soname_spec='${libname}${release}${shared_ext}$major'
14254 shlibpath_var=LD_LIBRARY_PATH
14261 freebsd* | dragonfly*)
14262 # DragonFly does not have aout. When/if they implement a new
14263 # versioning mechanism, adjust this.
14264 if test -x /usr/bin/objformat; then
14265 objformat=`/usr/bin/objformat`
14268 freebsd[123]*) objformat=aout ;;
14269 *) objformat=elf ;;
14272 version_type=freebsd-$objformat
14273 case $version_type in
14275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14284 shlibpath_var=LD_LIBRARY_PATH
14287 shlibpath_overrides_runpath=yes
14289 freebsd3.[01]* | freebsdelf3.[01]*)
14290 shlibpath_overrides_runpath=yes
14291 hardcode_into_libs=yes
14293 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14294 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14295 shlibpath_overrides_runpath=no
14296 hardcode_into_libs=yes
14298 *) # from 4.6 on, and DragonFly
14299 shlibpath_overrides_runpath=yes
14300 hardcode_into_libs=yes
14309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14310 soname_spec='${libname}${release}${shared_ext}$major'
14311 shlibpath_var=LD_LIBRARY_PATH
14312 hardcode_into_libs=yes
14319 dynamic_linker="$host_os runtime_loader"
14320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14321 soname_spec='${libname}${release}${shared_ext}$major'
14322 shlibpath_var=LIBRARY_PATH
14323 shlibpath_overrides_runpath=yes
14324 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14325 hardcode_into_libs=yes
14328 hpux9* | hpux10* | hpux11*)
14329 # Give a soname corresponding to the major version so that dld.sl refuses to
14330 # link against other versions.
14337 hardcode_into_libs=yes
14338 dynamic_linker="$host_os dld.so"
14339 shlibpath_var=LD_LIBRARY_PATH
14340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14342 soname_spec='${libname}${release}${shared_ext}$major'
14343 if test "X$HPUX_IA64_MODE" = X32; then
14344 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14346 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14352 hardcode_into_libs=yes
14353 dynamic_linker="$host_os dld.sl"
14354 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14357 soname_spec='${libname}${release}${shared_ext}$major'
14358 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14363 dynamic_linker="$host_os dld.sl"
14364 shlibpath_var=SHLIB_PATH
14365 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14367 soname_spec='${libname}${release}${shared_ext}$major'
14370 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14371 postinstall_cmds='chmod 555 $lib'
14372 # or fails outright, so override atomically:
14373 install_override_mode=555
14380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14381 soname_spec='${libname}${release}${shared_ext}$major'
14382 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14383 shlibpath_var=LD_LIBRARY_PATH
14384 shlibpath_overrides_runpath=no
14385 hardcode_into_libs=yes
14388 irix5* | irix6* | nonstopux*)
14390 nonstopux*) version_type=nonstopux ;;
14392 if test "$lt_cv_prog_gnu_ld" = yes; then
14400 soname_spec='${libname}${release}${shared_ext}$major'
14401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14403 irix5* | nonstopux*)
14404 libsuff= shlibsuff=
14407 case $LD in # libtool.m4 will add one of these switches to LD
14408 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14409 libsuff= shlibsuff= libmagic=32-bit;;
14410 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14411 libsuff=32 shlibsuff=N32 libmagic=N32;;
14412 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14413 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14414 *) libsuff= shlibsuff= libmagic=never-match;;
14418 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14419 shlibpath_overrides_runpath=no
14420 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14421 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14422 hardcode_into_libs=yes
14425 # No shared lib support for Linux oldld, aout, or coff.
14426 linux*oldld* | linux*aout* | linux*coff*)
14430 # This must be Linux ELF.
14431 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14436 soname_spec='${libname}${release}${shared_ext}$major'
14437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14438 shlibpath_var=LD_LIBRARY_PATH
14439 shlibpath_overrides_runpath=no
14441 # Some binutils ld are patched to set DT_RUNPATH
14442 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14443 $as_echo_n "(cached) " >&6
14445 lt_cv_shlibpath_overrides_runpath=no
14446 save_LDFLAGS=$LDFLAGS
14447 save_libdir=$libdir
14448 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14449 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14461 if ac_fn_c_try_link "$LINENO"; then :
14462 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14463 lt_cv_shlibpath_overrides_runpath=yes
14466 rm -f core conftest.err conftest.$ac_objext \
14467 conftest$ac_exeext conftest.$ac_ext
14468 LDFLAGS=$save_LDFLAGS
14469 libdir=$save_libdir
14473 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14475 # This implies no fast_install, which is unacceptable.
14476 # Some rework will be needed to allow for fast_install
14477 # before this can be enabled.
14478 hardcode_into_libs=yes
14480 # Append ld.so.conf contents to the search path
14481 if test -f /etc/ld.so.conf; then
14482 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' ' '`
14483 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14486 # We used to test for /lib/ld.so.1 and disable shared libraries on
14487 # powerpc, because MkLinux only supported shared libraries with the
14488 # GNU dynamic linker. Since this was broken with cross compilers,
14489 # most powerpc-linux boxes support dynamic linking these days and
14490 # people can always --disable-shared, the test was removed, and we
14491 # assume the GNU/Linux dynamic linker is in use.
14492 dynamic_linker='GNU/Linux ld.so'
14499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14502 dynamic_linker='NetBSD (a.out) ld.so'
14504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14505 soname_spec='${libname}${release}${shared_ext}$major'
14506 dynamic_linker='NetBSD ld.elf_so'
14508 shlibpath_var=LD_LIBRARY_PATH
14509 shlibpath_overrides_runpath=yes
14510 hardcode_into_libs=yes
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516 shlibpath_var=LD_LIBRARY_PATH
14517 shlibpath_overrides_runpath=yes
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525 soname_spec='${libname}${release}${shared_ext}$major'
14526 shlibpath_var=LD_LIBRARY_PATH
14527 shlibpath_overrides_runpath=no
14528 hardcode_into_libs=yes
14529 dynamic_linker='ldqnx.so'
14534 sys_lib_dlsearch_path_spec="/usr/lib"
14536 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14538 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14539 *) need_version=no ;;
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14543 shlibpath_var=LD_LIBRARY_PATH
14544 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14546 openbsd2.[89] | openbsd2.[89].*)
14547 shlibpath_overrides_runpath=no
14550 shlibpath_overrides_runpath=yes
14554 shlibpath_overrides_runpath=yes
14559 libname_spec='$name'
14562 library_names_spec='$libname${shared_ext} $libname.a'
14563 dynamic_linker='OS/2 ld.exe'
14564 shlibpath_var=LIBPATH
14567 osf3* | osf4* | osf5*)
14571 soname_spec='${libname}${release}${shared_ext}$major'
14572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14573 shlibpath_var=LD_LIBRARY_PATH
14574 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14575 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14587 soname_spec='${libname}${release}${shared_ext}$major'
14588 shlibpath_var=LD_LIBRARY_PATH
14589 shlibpath_overrides_runpath=yes
14590 hardcode_into_libs=yes
14591 # ldd complains unless libraries are executable
14592 postinstall_cmds='chmod +x $lib'
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14598 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14599 shlibpath_var=LD_LIBRARY_PATH
14600 shlibpath_overrides_runpath=yes
14601 if test "$with_gnu_ld" = yes; then
14609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14610 soname_spec='${libname}${release}${shared_ext}$major'
14611 shlibpath_var=LD_LIBRARY_PATH
14612 case $host_vendor in
14614 shlibpath_overrides_runpath=no
14616 runpath_var=LD_RUN_PATH
14624 shlibpath_overrides_runpath=no
14625 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14631 if test -d /usr/nec ;then
14633 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14634 soname_spec='$libname${shared_ext}.$major'
14635 shlibpath_var=LD_LIBRARY_PATH
14639 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14640 version_type=freebsd-elf
14643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14644 soname_spec='${libname}${release}${shared_ext}$major'
14645 shlibpath_var=LD_LIBRARY_PATH
14646 shlibpath_overrides_runpath=yes
14647 hardcode_into_libs=yes
14648 if test "$with_gnu_ld" = yes; then
14649 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14651 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14654 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14658 sys_lib_dlsearch_path_spec='/usr/lib'
14662 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14667 shlibpath_var=LD_LIBRARY_PATH
14668 shlibpath_overrides_runpath=no
14669 hardcode_into_libs=yes
14674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14675 soname_spec='${libname}${release}${shared_ext}$major'
14676 shlibpath_var=LD_LIBRARY_PATH
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14684 $as_echo "$dynamic_linker" >&6; }
14685 test "$dynamic_linker" = no && can_build_shared=no
14687 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14688 if test "$GCC" = yes; then
14689 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14692 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14693 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14695 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14696 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14791 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14793 if test -n "$hardcode_libdir_flag_spec" ||
14794 test -n "$runpath_var" ||
14795 test "X$hardcode_automatic" = "Xyes" ; then
14797 # We can hardcode non-existent directories.
14798 if test "$hardcode_direct" != no &&
14799 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14800 # have to relink, otherwise we might link with an installed library
14801 # when we should be linking with a yet-to-be-installed one
14802 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14803 test "$hardcode_minus_L" != no; then
14804 # Linking always hardcodes the temporary library directory.
14805 hardcode_action=relink
14807 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14808 hardcode_action=immediate
14811 # We cannot hardcode anything, or else we can only hardcode existing
14813 hardcode_action=unsupported
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14816 $as_echo "$hardcode_action" >&6; }
14818 if test "$hardcode_action" = relink ||
14819 test "$inherit_rpath" = yes; then
14820 # Fast installation is not supported
14821 enable_fast_install=no
14822 elif test "$shlibpath_overrides_runpath" = yes ||
14823 test "$enable_shared" = no; then
14824 # Fast installation is not necessary
14825 enable_fast_install=needless
14833 if test "x$enable_dlopen" != xyes; then
14834 enable_dlopen=unknown
14835 enable_dlopen_self=unknown
14836 enable_dlopen_self_static=unknown
14843 lt_cv_dlopen="load_add_on"
14845 lt_cv_dlopen_self=yes
14848 mingw* | pw32* | cegcc*)
14849 lt_cv_dlopen="LoadLibrary"
14854 lt_cv_dlopen="dlopen"
14859 # if libdl is installed we need to link against it
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14861 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14862 if ${ac_cv_lib_dl_dlopen+:} false; then :
14863 $as_echo_n "(cached) " >&6
14865 ac_check_lib_save_LIBS=$LIBS
14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h. */
14870 /* Override any GCC internal prototype to avoid an error.
14871 Use char because int might match the return type of a GCC
14872 builtin and then its argument prototype would still apply. */
14885 if ac_fn_c_try_link "$LINENO"; then :
14886 ac_cv_lib_dl_dlopen=yes
14888 ac_cv_lib_dl_dlopen=no
14890 rm -f core conftest.err conftest.$ac_objext \
14891 conftest$ac_exeext conftest.$ac_ext
14892 LIBS=$ac_check_lib_save_LIBS
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14895 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14896 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14897 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14900 lt_cv_dlopen="dyld"
14902 lt_cv_dlopen_self=yes
14909 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14910 if test "x$ac_cv_func_shl_load" = xyes; then :
14911 lt_cv_dlopen="shl_load"
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14914 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14915 if ${ac_cv_lib_dld_shl_load+:} false; then :
14916 $as_echo_n "(cached) " >&6
14918 ac_check_lib_save_LIBS=$LIBS
14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14923 /* Override any GCC internal prototype to avoid an error.
14924 Use char because int might match the return type of a GCC
14925 builtin and then its argument prototype would still apply. */
14933 return shl_load ();
14938 if ac_fn_c_try_link "$LINENO"; then :
14939 ac_cv_lib_dld_shl_load=yes
14941 ac_cv_lib_dld_shl_load=no
14943 rm -f core conftest.err conftest.$ac_objext \
14944 conftest$ac_exeext conftest.$ac_ext
14945 LIBS=$ac_check_lib_save_LIBS
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14948 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14949 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14950 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14952 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14953 if test "x$ac_cv_func_dlopen" = xyes; then :
14954 lt_cv_dlopen="dlopen"
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14957 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14958 if ${ac_cv_lib_dl_dlopen+:} false; then :
14959 $as_echo_n "(cached) " >&6
14961 ac_check_lib_save_LIBS=$LIBS
14963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h. */
14966 /* Override any GCC internal prototype to avoid an error.
14967 Use char because int might match the return type of a GCC
14968 builtin and then its argument prototype would still apply. */
14981 if ac_fn_c_try_link "$LINENO"; then :
14982 ac_cv_lib_dl_dlopen=yes
14984 ac_cv_lib_dl_dlopen=no
14986 rm -f core conftest.err conftest.$ac_objext \
14987 conftest$ac_exeext conftest.$ac_ext
14988 LIBS=$ac_check_lib_save_LIBS
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14991 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14992 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14993 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14996 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14997 if ${ac_cv_lib_svld_dlopen+:} false; then :
14998 $as_echo_n "(cached) " >&6
15000 ac_check_lib_save_LIBS=$LIBS
15001 LIBS="-lsvld $LIBS"
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15005 /* Override any GCC internal prototype to avoid an error.
15006 Use char because int might match the return type of a GCC
15007 builtin and then its argument prototype would still apply. */
15020 if ac_fn_c_try_link "$LINENO"; then :
15021 ac_cv_lib_svld_dlopen=yes
15023 ac_cv_lib_svld_dlopen=no
15025 rm -f core conftest.err conftest.$ac_objext \
15026 conftest$ac_exeext conftest.$ac_ext
15027 LIBS=$ac_check_lib_save_LIBS
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15030 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15031 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15032 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15035 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15036 if ${ac_cv_lib_dld_dld_link+:} false; then :
15037 $as_echo_n "(cached) " >&6
15039 ac_check_lib_save_LIBS=$LIBS
15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h. */
15044 /* Override any GCC internal prototype to avoid an error.
15045 Use char because int might match the return type of a GCC
15046 builtin and then its argument prototype would still apply. */
15054 return dld_link ();
15059 if ac_fn_c_try_link "$LINENO"; then :
15060 ac_cv_lib_dld_dld_link=yes
15062 ac_cv_lib_dld_dld_link=no
15064 rm -f core conftest.err conftest.$ac_objext \
15065 conftest$ac_exeext conftest.$ac_ext
15066 LIBS=$ac_check_lib_save_LIBS
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15069 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15070 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15071 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15092 if test "x$lt_cv_dlopen" != xno; then
15098 case $lt_cv_dlopen in
15100 save_CPPFLAGS="$CPPFLAGS"
15101 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15103 save_LDFLAGS="$LDFLAGS"
15104 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15107 LIBS="$lt_cv_dlopen_libs $LIBS"
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15110 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15111 if ${lt_cv_dlopen_self+:} false; then :
15112 $as_echo_n "(cached) " >&6
15114 if test "$cross_compiling" = yes; then :
15115 lt_cv_dlopen_self=cross
15117 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15118 lt_status=$lt_dlunknown
15119 cat > conftest.$ac_ext <<_LT_EOF
15120 #line $LINENO "configure"
15121 #include "confdefs.h"
15130 # define LT_DLGLOBAL RTLD_GLOBAL
15133 # define LT_DLGLOBAL DL_GLOBAL
15135 # define LT_DLGLOBAL 0
15139 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15140 find out it does not work in some platform. */
15141 #ifndef LT_DLLAZY_OR_NOW
15143 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15146 # define LT_DLLAZY_OR_NOW DL_LAZY
15149 # define LT_DLLAZY_OR_NOW RTLD_NOW
15152 # define LT_DLLAZY_OR_NOW DL_NOW
15154 # define LT_DLLAZY_OR_NOW 0
15161 /* When -fvisbility=hidden is used, assume the code has been annotated
15162 correspondingly for the symbols needed. */
15163 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15164 int fnord () __attribute__((visibility("default")));
15167 int fnord () { return 42; }
15170 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15171 int status = $lt_dlunknown;
15175 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15178 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15179 else puts (dlerror ());
15181 /* dlclose (self); */
15189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15190 (eval $ac_link) 2>&5
15192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15193 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15194 (./conftest; exit; ) >&5 2>/dev/null
15196 case x$lt_status in
15197 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15198 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15199 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15202 # compilation failed
15203 lt_cv_dlopen_self=no
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15211 $as_echo "$lt_cv_dlopen_self" >&6; }
15213 if test "x$lt_cv_dlopen_self" = xyes; then
15214 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15216 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15217 if ${lt_cv_dlopen_self_static+:} false; then :
15218 $as_echo_n "(cached) " >&6
15220 if test "$cross_compiling" = yes; then :
15221 lt_cv_dlopen_self_static=cross
15223 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15224 lt_status=$lt_dlunknown
15225 cat > conftest.$ac_ext <<_LT_EOF
15226 #line $LINENO "configure"
15227 #include "confdefs.h"
15236 # define LT_DLGLOBAL RTLD_GLOBAL
15239 # define LT_DLGLOBAL DL_GLOBAL
15241 # define LT_DLGLOBAL 0
15245 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15246 find out it does not work in some platform. */
15247 #ifndef LT_DLLAZY_OR_NOW
15249 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15252 # define LT_DLLAZY_OR_NOW DL_LAZY
15255 # define LT_DLLAZY_OR_NOW RTLD_NOW
15258 # define LT_DLLAZY_OR_NOW DL_NOW
15260 # define LT_DLLAZY_OR_NOW 0
15267 /* When -fvisbility=hidden is used, assume the code has been annotated
15268 correspondingly for the symbols needed. */
15269 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15270 int fnord () __attribute__((visibility("default")));
15273 int fnord () { return 42; }
15276 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15277 int status = $lt_dlunknown;
15281 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15284 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15285 else puts (dlerror ());
15287 /* dlclose (self); */
15295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15296 (eval $ac_link) 2>&5
15298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15299 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15300 (./conftest; exit; ) >&5 2>/dev/null
15302 case x$lt_status in
15303 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15304 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15305 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15308 # compilation failed
15309 lt_cv_dlopen_self_static=no
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15317 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15320 CPPFLAGS="$save_CPPFLAGS"
15321 LDFLAGS="$save_LDFLAGS"
15326 case $lt_cv_dlopen_self in
15327 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15328 *) enable_dlopen_self=unknown ;;
15331 case $lt_cv_dlopen_self_static in
15332 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15333 *) enable_dlopen_self_static=unknown ;;
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15356 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15357 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15358 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15359 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15361 $as_echo "yes" >&6; }
15363 # FIXME - insert some real tests, host_os isn't really good enough
15366 if test -n "$STRIP" ; then
15367 striplib="$STRIP -x"
15368 old_striplib="$STRIP -S"
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15370 $as_echo "yes" >&6; }
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15373 $as_echo "no" >&6; }
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15378 $as_echo "no" >&6; }
15394 # Report which library types will actually be built
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15396 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15398 $as_echo "$can_build_shared" >&6; }
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15401 $as_echo_n "checking whether to build shared libraries... " >&6; }
15402 test "$can_build_shared" = "no" && enable_shared=no
15404 # On AIX, shared libraries and static libraries use the same namespace, and
15405 # are all built from PIC.
15408 test "$enable_shared" = yes && enable_static=no
15409 if test -n "$RANLIB"; then
15410 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15411 postinstall_cmds='$RANLIB $lib'
15416 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15417 test "$enable_shared" = yes && enable_static=no
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15422 $as_echo "$enable_shared" >&6; }
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15425 $as_echo_n "checking whether to build static libraries... " >&6; }
15426 # Make sure either enable_shared or enable_static is yes.
15427 test "$enable_shared" = yes || enable_static=yes
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15429 $as_echo "$enable_static" >&6; }
15436 ac_cpp='$CPP $CPPFLAGS'
15437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15443 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15444 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15445 (test "X$CXX" != "Xg++"))) ; then
15447 ac_cpp='$CXXCPP $CPPFLAGS'
15448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15452 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15453 if test -z "$CXXCPP"; then
15454 if ${ac_cv_prog_CXXCPP+:} false; then :
15455 $as_echo_n "(cached) " >&6
15457 # Double quotes because CXXCPP needs to be expanded
15458 for CXXCPP in "$CXX -E" "/lib/cpp"
15460 ac_preproc_ok=false
15461 for ac_cxx_preproc_warn_flag in '' yes
15463 # Use a header file that comes with gcc, so configuring glibc
15464 # with a fresh cross-compiler works.
15465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15466 # <limits.h> exists even on freestanding compilers.
15467 # On the NeXT, cc -E runs the code through the compiler's parser,
15468 # not just through cpp. "Syntax error" is here to catch this case.
15469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15470 /* end confdefs.h. */
15472 # include <limits.h>
15474 # include <assert.h>
15478 if ac_fn_cxx_try_cpp "$LINENO"; then :
15481 # Broken: fails on valid input.
15484 rm -f conftest.err conftest.i conftest.$ac_ext
15486 # OK, works on sane cases. Now check whether nonexistent headers
15487 # can be detected and how.
15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15490 #include <ac_nonexistent.h>
15492 if ac_fn_cxx_try_cpp "$LINENO"; then :
15493 # Broken: success on invalid input.
15496 # Passes both tests.
15500 rm -f conftest.err conftest.i conftest.$ac_ext
15503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15504 rm -f conftest.i conftest.err conftest.$ac_ext
15505 if $ac_preproc_ok; then :
15510 ac_cv_prog_CXXCPP=$CXXCPP
15513 CXXCPP=$ac_cv_prog_CXXCPP
15515 ac_cv_prog_CXXCPP=$CXXCPP
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15518 $as_echo "$CXXCPP" >&6; }
15519 ac_preproc_ok=false
15520 for ac_cxx_preproc_warn_flag in '' yes
15522 # Use a header file that comes with gcc, so configuring glibc
15523 # with a fresh cross-compiler works.
15524 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15525 # <limits.h> exists even on freestanding compilers.
15526 # On the NeXT, cc -E runs the code through the compiler's parser,
15527 # not just through cpp. "Syntax error" is here to catch this case.
15528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h. */
15531 # include <limits.h>
15533 # include <assert.h>
15537 if ac_fn_cxx_try_cpp "$LINENO"; then :
15540 # Broken: fails on valid input.
15543 rm -f conftest.err conftest.i conftest.$ac_ext
15545 # OK, works on sane cases. Now check whether nonexistent headers
15546 # can be detected and how.
15547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548 /* end confdefs.h. */
15549 #include <ac_nonexistent.h>
15551 if ac_fn_cxx_try_cpp "$LINENO"; then :
15552 # Broken: success on invalid input.
15555 # Passes both tests.
15559 rm -f conftest.err conftest.i conftest.$ac_ext
15562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15563 rm -f conftest.i conftest.err conftest.$ac_ext
15564 if $ac_preproc_ok; then :
15567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15569 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15570 See \`config.log' for more details" "$LINENO" 5; }
15574 ac_cpp='$CPP $CPPFLAGS'
15575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15580 _lt_caught_CXX_error=yes
15584 ac_cpp='$CXXCPP $CPPFLAGS'
15585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15589 archive_cmds_need_lc_CXX=no
15590 allow_undefined_flag_CXX=
15591 always_export_symbols_CXX=no
15592 archive_expsym_cmds_CXX=
15593 compiler_needs_object_CXX=no
15594 export_dynamic_flag_spec_CXX=
15595 hardcode_direct_CXX=no
15596 hardcode_direct_absolute_CXX=no
15597 hardcode_libdir_flag_spec_CXX=
15598 hardcode_libdir_flag_spec_ld_CXX=
15599 hardcode_libdir_separator_CXX=
15600 hardcode_minus_L_CXX=no
15601 hardcode_shlibpath_var_CXX=unsupported
15602 hardcode_automatic_CXX=no
15603 inherit_rpath_CXX=no
15605 module_expsym_cmds_CXX=
15606 link_all_deplibs_CXX=unknown
15607 old_archive_cmds_CXX=$old_archive_cmds
15608 reload_flag_CXX=$reload_flag
15609 reload_cmds_CXX=$reload_cmds
15610 no_undefined_flag_CXX=
15611 whole_archive_flag_spec_CXX=
15612 enable_shared_with_static_runtimes_CXX=no
15614 # Source file extension for C++ test sources.
15617 # Object file extension for compiled C++ test sources.
15621 # No sense in running all these tests if we already determined that
15622 # the CXX compiler isn't working. Some variables (like enable_shared)
15623 # are currently assumed to apply to all compilers on this platform,
15624 # and will be corrupted by setting them based on a non-working compiler.
15625 if test "$_lt_caught_CXX_error" != yes; then
15626 # Code to be used in simple compile tests
15627 lt_simple_compile_test_code="int some_variable = 0;"
15629 # Code to be used in simple link tests
15630 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15632 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15639 # If no C compiler was specified, use CC.
15642 # If no C compiler flags were specified, use CFLAGS.
15643 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15645 # Allow CC to be a program name with arguments.
15649 # save warnings/boilerplate of simple test code
15650 ac_outfile=conftest.$ac_objext
15651 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15652 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15653 _lt_compiler_boilerplate=`cat conftest.err`
15656 ac_outfile=conftest.$ac_objext
15657 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15658 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15659 _lt_linker_boilerplate=`cat conftest.err`
15663 # Allow CC to be a program name with arguments.
15665 lt_save_CFLAGS=$CFLAGS
15669 lt_save_with_gnu_ld=$with_gnu_ld
15670 lt_save_path_LD=$lt_cv_path_LD
15671 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15672 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15674 $as_unset lt_cv_prog_gnu_ld
15676 if test -n "${lt_cv_path_LDCXX+set}"; then
15677 lt_cv_path_LD=$lt_cv_path_LDCXX
15679 $as_unset lt_cv_path_LD
15681 test -z "${LDCXX+set}" || LD=$LDCXX
15686 for cc_temp in $compiler""; do
15688 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15689 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15694 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15697 if test -n "$compiler"; then
15698 # We don't want -fno-exception when compiling C++ code, so set the
15699 # no_builtin_flag separately
15700 if test "$GXX" = yes; then
15701 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15703 lt_prog_compiler_no_builtin_flag_CXX=
15706 if test "$GXX" = yes; then
15707 # Set up default GNU C++ configuration
15711 # Check whether --with-gnu-ld was given.
15712 if test "${with_gnu_ld+set}" = set; then :
15713 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15719 if test "$GCC" = yes; then
15720 # Check if gcc -print-prog-name=ld gives a path.
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15722 $as_echo_n "checking for ld used by $CC... " >&6; }
15725 # gcc leaves a trailing carriage return which upsets mingw
15726 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15728 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15731 # Accept absolute paths.
15733 re_direlt='/[^/][^/]*/\.\./'
15734 # Canonicalize the pathname of ld
15735 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15736 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15737 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15739 test -z "$LD" && LD="$ac_prog"
15742 # If it fails, then pretend we aren't using GCC.
15746 # If it is relative, then search for the first ld in PATH.
15747 with_gnu_ld=unknown
15750 elif test "$with_gnu_ld" = yes; then
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15752 $as_echo_n "checking for GNU ld... " >&6; }
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15755 $as_echo_n "checking for non-GNU ld... " >&6; }
15757 if ${lt_cv_path_LD+:} false; then :
15758 $as_echo_n "(cached) " >&6
15760 if test -z "$LD"; then
15761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15762 for ac_dir in $PATH; do
15764 test -z "$ac_dir" && ac_dir=.
15765 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15766 lt_cv_path_LD="$ac_dir/$ac_prog"
15767 # Check to see if the program is GNU ld. I'd rather use --version,
15768 # but apparently some variants of GNU ld only accept -v.
15769 # Break only if it was the GNU/non-GNU ld that we prefer.
15770 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15771 *GNU* | *'with BFD'*)
15772 test "$with_gnu_ld" != no && break
15775 test "$with_gnu_ld" != yes && break
15782 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15786 LD="$lt_cv_path_LD"
15787 if test -n "$LD"; then
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15789 $as_echo "$LD" >&6; }
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15792 $as_echo "no" >&6; }
15794 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15796 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15797 if ${lt_cv_prog_gnu_ld+:} false; then :
15798 $as_echo_n "(cached) " >&6
15800 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15801 case `$LD -v 2>&1 </dev/null` in
15802 *GNU* | *'with BFD'*)
15803 lt_cv_prog_gnu_ld=yes
15806 lt_cv_prog_gnu_ld=no
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15811 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15812 with_gnu_ld=$lt_cv_prog_gnu_ld
15820 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15821 # archiving commands below assume that GNU ld is being used.
15822 if test "$with_gnu_ld" = yes; then
15823 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15824 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'
15826 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15827 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15829 # If archive_cmds runs LD, not CC, wlarc should be empty
15830 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15831 # investigate it a little bit more. (MM)
15834 # ancient GNU ld didn't support --whole-archive et. al.
15835 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15836 $GREP 'no-whole-archive' > /dev/null; then
15837 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15839 whole_archive_flag_spec_CXX=
15845 # A generic and very simple default shared library creation
15846 # command for GNU C++ for the case where it uses the native
15847 # linker, instead of GNU ld. If possible, this setting should
15848 # overridden to take advantage of the native linker features on
15849 # the platform it is being used on.
15850 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15853 # Commands to make compiler produce verbose output that lists
15854 # what "hidden" libraries, object files and flags are used when
15855 # linking a shared library.
15856 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15864 # PORTME: fill in a description of your system's C++ link characteristics
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15866 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15870 # FIXME: insert proper C++ library support
15874 if test "$host_cpu" = ia64; then
15875 # On IA64, the linker does run time linking by default, so we don't
15876 # have to do anything special.
15877 aix_use_runtimelinking=no
15878 exp_sym_flag='-Bexport'
15881 aix_use_runtimelinking=no
15883 # Test if we are trying to use run time linking or normal
15884 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15885 # need to do runtime linking.
15886 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15887 for ld_flag in $LDFLAGS; do
15890 aix_use_runtimelinking=yes
15898 exp_sym_flag='-bexport'
15899 no_entry_flag='-bnoentry'
15902 # When large executables or shared objects are built, AIX ld can
15903 # have problems creating the table of contents. If linking a library
15904 # or program results in "error TOC overflow" add -mminimal-toc to
15905 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15906 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15908 archive_cmds_CXX=''
15909 hardcode_direct_CXX=yes
15910 hardcode_direct_absolute_CXX=yes
15911 hardcode_libdir_separator_CXX=':'
15912 link_all_deplibs_CXX=yes
15913 file_list_spec_CXX='${wl}-f,'
15915 if test "$GXX" = yes; then
15916 case $host_os in aix4.[012]|aix4.[012].*)
15917 # We only want to do this on AIX 4.2 and lower, the check
15918 # below for broken collect2 doesn't work under 4.3+
15919 collect2name=`${CC} -print-prog-name=collect2`
15920 if test -f "$collect2name" &&
15921 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15923 # We have reworked collect2
15926 # We have old collect2
15927 hardcode_direct_CXX=unsupported
15928 # It fails to find uninstalled libraries when the uninstalled
15929 # path is not listed in the libpath. Setting hardcode_minus_L
15930 # to unsupported forces relinking
15931 hardcode_minus_L_CXX=yes
15932 hardcode_libdir_flag_spec_CXX='-L$libdir'
15933 hardcode_libdir_separator_CXX=
15936 shared_flag='-shared'
15937 if test "$aix_use_runtimelinking" = yes; then
15938 shared_flag="$shared_flag "'${wl}-G'
15942 if test "$host_cpu" = ia64; then
15943 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15944 # chokes on -Wl,-G. The following line is correct:
15947 if test "$aix_use_runtimelinking" = yes; then
15948 shared_flag='${wl}-G'
15950 shared_flag='${wl}-bM:SRE'
15955 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15956 # It seems that -bexpall does not export symbols beginning with
15957 # underscore (_), so it is better to generate a list of symbols to
15959 always_export_symbols_CXX=yes
15960 if test "$aix_use_runtimelinking" = yes; then
15961 # Warning - without using the other runtime loading flags (-brtl),
15962 # -berok will link without error, but may produce a broken library.
15963 allow_undefined_flag_CXX='-berok'
15964 # Determine the default libpath from the value encoded in an empty
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"
16011 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"
16013 if test "$host_cpu" = ia64; then
16014 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16015 allow_undefined_flag_CXX="-z nodefs"
16016 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"
16018 # Determine the default libpath from the value encoded in an
16019 # empty executable.
16020 if test "${lt_cv_aix_libpath+set}" = set; then
16021 aix_libpath=$lt_cv_aix_libpath
16023 if ${lt_cv_aix_libpath__CXX+:} false; then :
16024 $as_echo_n "(cached) " >&6
16026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16027 /* end confdefs.h. */
16037 if ac_fn_cxx_try_link "$LINENO"; then :
16039 lt_aix_libpath_sed='
16040 /Import File Strings/,/^$/ {
16042 s/^0 *\([^ ]*\) *$/\1/
16046 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16047 # Check for a 64-bit object if we didn't find anything.
16048 if test -z "$lt_cv_aix_libpath__CXX"; then
16049 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16052 rm -f core conftest.err conftest.$ac_objext \
16053 conftest$ac_exeext conftest.$ac_ext
16054 if test -z "$lt_cv_aix_libpath__CXX"; then
16055 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16060 aix_libpath=$lt_cv_aix_libpath__CXX
16063 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16064 # Warning - without using the other run time loading flags,
16065 # -berok will link without error, but may produce a broken library.
16066 no_undefined_flag_CXX=' ${wl}-bernotok'
16067 allow_undefined_flag_CXX=' ${wl}-berok'
16068 if test "$with_gnu_ld" = yes; then
16069 # We only use this code for GNU lds that support --whole-archive.
16070 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16072 # Exported symbols can be pulled into shared objects from archives
16073 whole_archive_flag_spec_CXX='$convenience'
16075 archive_cmds_need_lc_CXX=yes
16076 # This is similar to how AIX traditionally builds its shared
16078 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'
16084 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16085 allow_undefined_flag_CXX=unsupported
16086 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16087 # support --undefined. This deserves some investigation. FIXME
16088 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16095 case $cc_basename in
16097 # FIXME: insert proper C++ library support
16103 cygwin* | mingw* | pw32* | cegcc*)
16104 case $GXX,$cc_basename in
16107 # hardcode_libdir_flag_spec is actually meaningless, as there is
16108 # no search path for DLLs.
16109 hardcode_libdir_flag_spec_CXX=' '
16110 allow_undefined_flag_CXX=unsupported
16111 always_export_symbols_CXX=yes
16112 file_list_spec_CXX='@'
16113 # Tell ltmain to make .lib files, not .a files.
16115 # Tell ltmain to make .dll files, not .so files.
16117 # FIXME: Setting linknames here is a bad hack.
16118 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16119 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16120 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16122 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16124 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16126 # The linker will not automatically build a static lib if we build a DLL.
16127 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16128 enable_shared_with_static_runtimes_CXX=yes
16130 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16131 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16132 lt_tool_outputfile="@TOOL_OUTPUT@"~
16133 case $lt_outputfile in
16136 lt_outputfile="$lt_outputfile.exe"
16137 lt_tool_outputfile="$lt_tool_outputfile.exe"
16140 func_to_tool_file "$lt_outputfile"~
16141 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16142 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16143 $RM "$lt_outputfile.manifest";
16148 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16149 # as there is no search path for DLLs.
16150 hardcode_libdir_flag_spec_CXX='-L$libdir'
16151 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
16152 allow_undefined_flag_CXX=unsupported
16153 always_export_symbols_CXX=no
16154 enable_shared_with_static_runtimes_CXX=yes
16156 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16157 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'
16158 # If the export-symbols file already is a .def file (1st line
16159 # is EXPORTS), use it as is; otherwise, prepend...
16160 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16161 cp $export_symbols $output_objdir/$soname.def;
16163 echo EXPORTS > $output_objdir/$soname.def;
16164 cat $export_symbols >> $output_objdir/$soname.def;
16166 $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'
16173 darwin* | rhapsody*)
16176 archive_cmds_need_lc_CXX=no
16177 hardcode_direct_CXX=no
16178 hardcode_automatic_CXX=yes
16179 hardcode_shlibpath_var_CXX=unsupported
16180 if test "$lt_cv_ld_force_load" = "yes"; then
16181 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\"`'
16183 whole_archive_flag_spec_CXX=''
16185 link_all_deplibs_CXX=yes
16186 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16187 case $cc_basename in
16188 ifort*) _lt_dar_can_shared=yes ;;
16189 *) _lt_dar_can_shared=$GCC ;;
16191 if test "$_lt_dar_can_shared" = "yes"; then
16192 output_verbose_link_cmd=func_echo_all
16193 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}"
16194 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16195 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}"
16196 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}"
16197 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16198 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}"
16199 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}"
16209 case $cc_basename in
16211 # FIXME: insert proper C++ library support
16215 # Green Hills C++ Compiler
16216 # FIXME: insert proper C++ library support
16220 # FIXME: insert proper C++ library support
16227 # C++ shared libraries reported to be fairly broken before
16233 archive_cmds_need_lc_CXX=no
16236 freebsd* | dragonfly*)
16237 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16246 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16247 link_all_deplibs_CXX=yes
16251 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16252 hardcode_libdir_separator_CXX=:
16253 export_dynamic_flag_spec_CXX='${wl}-E'
16254 hardcode_direct_CXX=yes
16255 hardcode_minus_L_CXX=yes # Not in the search PATH,
16256 # but as the default
16257 # location of the library.
16259 case $cc_basename in
16261 # FIXME: insert proper C++ library support
16265 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'
16266 # Commands to make compiler produce verbose output that lists
16267 # what "hidden" libraries, object files and flags are used when
16268 # linking a shared library.
16270 # There doesn't appear to be a way to prevent this compiler from
16271 # explicitly linking system object files so we need to strip them
16272 # from the output so that they don't get included in the library
16274 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"'
16277 if test "$GXX" = yes; then
16278 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'
16280 # FIXME: insert proper C++ library support
16288 if test $with_gnu_ld = no; then
16289 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16290 hardcode_libdir_separator_CXX=:
16296 export_dynamic_flag_spec_CXX='${wl}-E'
16302 hardcode_direct_CXX=no
16303 hardcode_shlibpath_var_CXX=no
16306 hardcode_direct_CXX=yes
16307 hardcode_direct_absolute_CXX=yes
16308 hardcode_minus_L_CXX=yes # Not in the search PATH,
16309 # but as the default
16310 # location of the library.
16314 case $cc_basename in
16316 # FIXME: insert proper C++ library support
16322 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16325 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16328 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16331 # Commands to make compiler produce verbose output that lists
16332 # what "hidden" libraries, object files and flags are used when
16333 # linking a shared library.
16335 # There doesn't appear to be a way to prevent this compiler from
16336 # explicitly linking system object files so we need to strip them
16337 # from the output so that they don't get included in the library
16339 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"'
16342 if test "$GXX" = yes; then
16343 if test $with_gnu_ld = no; then
16346 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16349 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16352 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'
16357 # FIXME: insert proper C++ library support
16365 hardcode_direct_CXX=no
16366 hardcode_shlibpath_var_CXX=no
16367 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16368 export_dynamic_flag_spec_CXX='${wl}-E'
16369 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16370 # Instead, shared libraries are loaded at an image base (0x10000000 by
16371 # default) and relocated if they conflict, which is a slow very memory
16372 # consuming and fragmenting process. To avoid this, we pick a random,
16373 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16374 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16375 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'
16376 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'
16379 case $cc_basename in
16382 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'
16384 # Archives containing C++ object files must be created using
16385 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16386 # necessary to make sure instantiated templates are included
16388 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16391 if test "$GXX" = yes; then
16392 if test "$with_gnu_ld" = no; then
16393 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'
16395 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'
16398 link_all_deplibs_CXX=yes
16401 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16402 hardcode_libdir_separator_CXX=:
16403 inherit_rpath_CXX=yes
16406 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16407 case $cc_basename in
16409 # Kuck and Associates, Inc. (KAI) C++ Compiler
16411 # KCC will only create a shared library if the output file
16412 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16413 # to its proper name (with version) after linking.
16414 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'
16415 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'
16416 # Commands to make compiler produce verbose output that lists
16417 # what "hidden" libraries, object files and flags are used when
16418 # linking a shared library.
16420 # There doesn't appear to be a way to prevent this compiler from
16421 # explicitly linking system object files so we need to strip them
16422 # from the output so that they don't get included in the library
16424 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"'
16426 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16427 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16429 # Archives containing C++ object files must be created using
16430 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16431 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16436 # version 8.0 and above of icpc choke on multiply defined symbols
16437 # if we add $predep_objects and $postdep_objects, however 7.1 and
16438 # earlier do not add the objects themselves.
16439 case `$CC -V 2>&1` in
16441 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16442 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'
16444 *) # Version 8.0 or newer
16447 ia64*) tmp_idyn=' -i_dynamic';;
16449 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16450 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'
16453 archive_cmds_need_lc_CXX=no
16454 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16455 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16456 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16459 # Portland Group C++ compiler
16461 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16462 prelink_cmds_CXX='tpldir=Template.dir~
16464 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16465 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16466 old_archive_cmds_CXX='tpldir=Template.dir~
16468 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16469 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16471 archive_cmds_CXX='tpldir=Template.dir~
16473 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16474 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16475 archive_expsym_cmds_CXX='tpldir=Template.dir~
16477 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16478 $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'
16480 *) # Version 6 and above use weak symbols
16481 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16482 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'
16486 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16487 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16488 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'
16492 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16493 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'
16495 runpath_var=LD_RUN_PATH
16496 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16497 hardcode_libdir_separator_CXX=:
16499 # Commands to make compiler produce verbose output that lists
16500 # what "hidden" libraries, object files and flags are used when
16501 # linking a shared library.
16503 # There doesn't appear to be a way to prevent this compiler from
16504 # explicitly linking system object files so we need to strip them
16505 # from the output so that they don't get included in the library
16507 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'
16509 xl* | mpixl* | bgxl*)
16510 # IBM XL 8.0 on PPC, with GNU ld
16511 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16512 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16513 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16514 if test "x$supports_anon_versioning" = xyes; then
16515 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16516 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16517 echo "local: *; };" >> $output_objdir/$libname.ver~
16518 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16522 case `$CC -V 2>&1 | sed 5q` in
16525 no_undefined_flag_CXX=' -zdefs'
16526 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16527 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'
16528 hardcode_libdir_flag_spec_CXX='-R$libdir'
16529 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'
16530 compiler_needs_object_CXX=yes
16532 # Not sure whether something based on
16533 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16535 output_verbose_link_cmd='func_echo_all'
16537 # Archives containing C++ object files must be created using
16538 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16539 # necessary to make sure instantiated templates are included
16541 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16549 # FIXME: insert proper C++ library support
16554 # FIXME: insert proper C++ library support
16559 case $cc_basename in
16561 # FIXME: insert proper C++ library support
16565 # FIXME: insert proper C++ library support
16572 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16573 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16575 hardcode_libdir_flag_spec_CXX='-R$libdir'
16576 hardcode_direct_CXX=yes
16577 hardcode_shlibpath_var_CXX=no
16579 # Workaround some broken pre-1.5 toolchains
16580 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16588 # C++ shared libraries are fairly broken
16593 if test -f /usr/libexec/ld.so; then
16594 hardcode_direct_CXX=yes
16595 hardcode_shlibpath_var_CXX=no
16596 hardcode_direct_absolute_CXX=yes
16597 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16598 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16599 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16600 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16601 export_dynamic_flag_spec_CXX='${wl}-E'
16602 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16604 output_verbose_link_cmd=func_echo_all
16610 osf3* | osf4* | osf5*)
16611 case $cc_basename in
16613 # Kuck and Associates, Inc. (KAI) C++ Compiler
16615 # KCC will only create a shared library if the output file
16616 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16617 # to its proper name (with version) after linking.
16618 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'
16620 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16621 hardcode_libdir_separator_CXX=:
16623 # Archives containing C++ object files must be created using
16624 # the KAI C++ compiler.
16626 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16627 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16631 # Rational C++ 2.4.1
16632 # FIXME: insert proper C++ library support
16638 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16639 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'
16640 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16643 allow_undefined_flag_CXX=' -expect_unresolved \*'
16644 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'
16645 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16646 echo "-hidden">> $lib.exp~
16647 $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~
16649 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16653 hardcode_libdir_separator_CXX=:
16655 # Commands to make compiler produce verbose output that lists
16656 # what "hidden" libraries, object files and flags are used when
16657 # linking a shared library.
16659 # There doesn't appear to be a way to prevent this compiler from
16660 # explicitly linking system object files so we need to strip them
16661 # from the output so that they don't get included in the library
16663 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"'
16666 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16667 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16670 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'
16673 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'
16677 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16678 hardcode_libdir_separator_CXX=:
16680 # Commands to make compiler produce verbose output that lists
16681 # what "hidden" libraries, object files and flags are used when
16682 # linking a shared library.
16683 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16686 # FIXME: insert proper C++ library support
16694 # FIXME: insert proper C++ library support
16699 case $cc_basename in
16702 # FIXME: insert proper C++ library support
16707 # FIXME: insert proper C++ library support
16711 # FIXME: insert proper C++ library support
16718 case $cc_basename in
16720 # Sun C++ 4.2, 5.x and Centerline C++
16721 archive_cmds_need_lc_CXX=yes
16722 no_undefined_flag_CXX=' -zdefs'
16723 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16724 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16725 $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'
16727 hardcode_libdir_flag_spec_CXX='-R$libdir'
16728 hardcode_shlibpath_var_CXX=no
16730 solaris2.[0-5] | solaris2.[0-5].*) ;;
16732 # The compiler driver will combine and reorder linker options,
16733 # but understands `-z linker_flag'.
16734 # Supported since Solaris 2.6 (maybe 2.5.1?)
16735 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16738 link_all_deplibs_CXX=yes
16740 output_verbose_link_cmd='func_echo_all'
16742 # Archives containing C++ object files must be created using
16743 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16744 # necessary to make sure instantiated templates are included
16746 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16749 # Green Hills C++ Compiler
16750 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16752 # The C++ compiler must be used to create the archive.
16753 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16756 # GNU C++ compiler with Solaris linker
16757 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16758 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16759 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16760 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16761 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16762 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16764 # Commands to make compiler produce verbose output that lists
16765 # what "hidden" libraries, object files and flags are used when
16766 # linking a shared library.
16767 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16769 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16771 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16772 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16773 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16775 # Commands to make compiler produce verbose output that lists
16776 # what "hidden" libraries, object files and flags are used when
16777 # linking a shared library.
16778 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16781 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16783 solaris2.[0-5] | solaris2.[0-5].*) ;;
16785 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16793 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16794 no_undefined_flag_CXX='${wl}-z,text'
16795 archive_cmds_need_lc_CXX=no
16796 hardcode_shlibpath_var_CXX=no
16797 runpath_var='LD_RUN_PATH'
16799 case $cc_basename in
16801 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16802 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16805 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16806 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16811 sysv5* | sco3.2v5* | sco5v6*)
16812 # Note: We can NOT use -z defs as we might desire, because we do not
16813 # link with -lc, and that would cause any symbols used from libc to
16814 # always be unresolved, which means just about no library would
16815 # ever link correctly. If we're not using GNU ld we use -z text
16816 # though, which does catch some bad symbols but isn't as heavy-handed
16818 no_undefined_flag_CXX='${wl}-z,text'
16819 allow_undefined_flag_CXX='${wl}-z,nodefs'
16820 archive_cmds_need_lc_CXX=no
16821 hardcode_shlibpath_var_CXX=no
16822 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16823 hardcode_libdir_separator_CXX=':'
16824 link_all_deplibs_CXX=yes
16825 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16826 runpath_var='LD_RUN_PATH'
16828 case $cc_basename in
16830 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16831 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16832 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16833 '"$old_archive_cmds_CXX"
16834 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16835 '"$reload_cmds_CXX"
16838 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16839 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16845 case $cc_basename in
16847 # NonStop-UX NCC 3.20
16848 # FIXME: insert proper C++ library support
16852 # FIXME: insert proper C++ library support
16859 # FIXME: insert proper C++ library support
16864 # FIXME: insert proper C++ library support
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16870 $as_echo "$ld_shlibs_CXX" >&6; }
16871 test "$ld_shlibs_CXX" = no && can_build_shared=no
16877 ## There is no encapsulation within the following macros, do not change
16878 ## the running order or otherwise move them around unless you know exactly
16879 ## what you are doing...
16880 # Dependencies to place before and after the object being linked:
16881 predep_objects_CXX=
16882 postdep_objects_CXX=
16885 compiler_lib_search_path_CXX=
16887 cat > conftest.$ac_ext <<_LT_EOF
16891 Foo (void) { a = 0; }
16898 _lt_libdeps_save_CFLAGS=$CFLAGS
16899 case "$CC $CFLAGS " in #(
16900 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16901 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16905 (eval $ac_compile) 2>&5
16907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16908 test $ac_status = 0; }; then
16909 # Parse the compiler output and extract the necessary
16910 # objects, libraries and library flags.
16912 # Sentinel used to keep track of whether or not we are before
16913 # the conftest object file.
16914 pre_test_object_deps_done=no
16916 for p in `eval "$output_verbose_link_cmd"`; do
16917 case ${prev}${p} in
16920 # Some compilers place space between "-{L,R}" and the path.
16921 # Remove the space.
16922 if test $p = "-L" ||
16923 test $p = "-R"; then
16928 # Expand the sysroot to ease extracting the directories later.
16929 if test -z "$prev"; then
16931 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16932 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16933 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16937 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16939 if test "$pre_test_object_deps_done" = no; then
16942 # Internal compiler library paths should come after those
16943 # provided the user. The postdeps already come after the
16944 # user supplied libs so there is no need to process them.
16945 if test -z "$compiler_lib_search_path_CXX"; then
16946 compiler_lib_search_path_CXX="${prev}${p}"
16948 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16951 # The "-l" case would never come before the object being
16952 # linked, so don't bother handling this case.
16955 if test -z "$postdeps_CXX"; then
16956 postdeps_CXX="${prev}${p}"
16958 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16964 *.lto.$objext) ;; # Ignore GCC LTO objects
16966 # This assumes that the test object file only shows up
16967 # once in the compiler output.
16968 if test "$p" = "conftest.$objext"; then
16969 pre_test_object_deps_done=yes
16973 if test "$pre_test_object_deps_done" = no; then
16974 if test -z "$predep_objects_CXX"; then
16975 predep_objects_CXX="$p"
16977 predep_objects_CXX="$predep_objects_CXX $p"
16980 if test -z "$postdep_objects_CXX"; then
16981 postdep_objects_CXX="$p"
16983 postdep_objects_CXX="$postdep_objects_CXX $p"
16988 *) ;; # Ignore the rest.
16996 echo "libtool.m4: error: problem compiling CXX test program"
16999 $RM -f confest.$objext
17000 CFLAGS=$_lt_libdeps_save_CFLAGS
17002 # PORTME: override above test on systems where it is broken
17005 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17006 # hack all around it, let's just trust "g++" to DTRT.
17007 predep_objects_CXX=
17008 postdep_objects_CXX=
17013 case `$CC -V 2>&1 | sed 5q` in
17017 # The more standards-conforming stlport4 library is
17018 # incompatible with the Cstd library. Avoid specifying
17019 # it if it's in CXXFLAGS. Ignore libCrun as
17020 # -library=stlport4 depends on it.
17021 case " $CXX $CXXFLAGS " in
17022 *" -library=stlport4 "*)
17023 solaris_use_stlport4=yes
17027 if test "$solaris_use_stlport4" != yes; then
17028 postdeps_CXX='-library=Cstd -library=Crun'
17035 case $cc_basename in
17037 # The more standards-conforming stlport4 library is
17038 # incompatible with the Cstd library. Avoid specifying
17039 # it if it's in CXXFLAGS. Ignore libCrun as
17040 # -library=stlport4 depends on it.
17041 case " $CXX $CXXFLAGS " in
17042 *" -library=stlport4 "*)
17043 solaris_use_stlport4=yes
17047 # Adding this requires a known-good setup of shared libraries for
17048 # Sun compiler versions before 5.6, else PIC objects from an old
17049 # archive will be linked into the output, leading to subtle bugs.
17050 if test "$solaris_use_stlport4" != yes; then
17051 postdeps_CXX='-library=Cstd -library=Crun'
17059 case " $postdeps_CXX " in
17060 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17062 compiler_lib_search_dirs_CXX=
17063 if test -n "${compiler_lib_search_path_CXX}"; then
17064 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17097 lt_prog_compiler_wl_CXX=
17098 lt_prog_compiler_pic_CXX=
17099 lt_prog_compiler_static_CXX=
17102 # C++ specific cases for pic, static, wl, etc.
17103 if test "$GXX" = yes; then
17104 lt_prog_compiler_wl_CXX='-Wl,'
17105 lt_prog_compiler_static_CXX='-static'
17109 # All AIX code is PIC.
17110 if test "$host_cpu" = ia64; then
17111 # AIX 5 now supports IA64 processor
17112 lt_prog_compiler_static_CXX='-Bstatic'
17119 # see comment about AmigaOS4 .so support
17120 lt_prog_compiler_pic_CXX='-fPIC'
17123 # FIXME: we need at least 68020 code to build shared libraries, but
17124 # adding the `-m68020' flag to GCC prevents building anything better,
17126 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17131 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17132 # PIC is the default for these OSes.
17134 mingw* | cygwin* | os2* | pw32* | cegcc*)
17135 # This hack is so that the source file can tell whether it is being
17136 # built for inclusion in a dll (and should export symbols for example).
17137 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17138 # (--disable-auto-import) libraries
17139 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17141 darwin* | rhapsody*)
17142 # PIC is the default on this platform
17143 # Common symbols not allowed in MH_DYLIB files
17144 lt_prog_compiler_pic_CXX='-fno-common'
17147 # DJGPP does not support shared libraries at all
17148 lt_prog_compiler_pic_CXX=
17151 # PIC is the default for Haiku.
17152 # The "-static" flag exists, but is broken.
17153 lt_prog_compiler_static_CXX=
17156 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17157 # Instead, we relocate shared libraries at runtime.
17160 if test -d /usr/nec; then
17161 lt_prog_compiler_pic_CXX=-Kconform_pic
17165 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17166 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17167 # sets the default TLS model and affects inlining.
17172 lt_prog_compiler_pic_CXX='-fPIC'
17177 # QNX uses GNU C++, but need to define -shared option too, otherwise
17178 # it will coredump.
17179 lt_prog_compiler_pic_CXX='-fPIC -shared'
17182 lt_prog_compiler_pic_CXX='-fPIC'
17188 # All AIX code is PIC.
17189 if test "$host_cpu" = ia64; then
17190 # AIX 5 now supports IA64 processor
17191 lt_prog_compiler_static_CXX='-Bstatic'
17193 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17197 case $cc_basename in
17199 # Green Hills C++ Compiler
17200 # _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"
17204 mingw* | cygwin* | os2* | pw32* | cegcc*)
17205 # This hack is so that the source file can tell whether it is being
17206 # built for inclusion in a dll (and should export symbols for example).
17207 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17210 case $cc_basename in
17212 lt_prog_compiler_pic_CXX='-KPIC'
17215 # Green Hills C++ Compiler
17216 lt_prog_compiler_pic_CXX='-pic'
17222 freebsd* | dragonfly*)
17223 # FreeBSD uses GNU C++
17225 hpux9* | hpux10* | hpux11*)
17226 case $cc_basename in
17228 lt_prog_compiler_wl_CXX='-Wl,'
17229 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17230 if test "$host_cpu" != ia64; then
17231 lt_prog_compiler_pic_CXX='+Z'
17235 lt_prog_compiler_wl_CXX='-Wl,'
17236 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17242 lt_prog_compiler_pic_CXX='+Z'
17251 # This is c89, which is MS Visual C++ (no shared libs)
17252 # Anyone wants to do a port?
17254 irix5* | irix6* | nonstopux*)
17255 case $cc_basename in
17257 lt_prog_compiler_wl_CXX='-Wl,'
17258 lt_prog_compiler_static_CXX='-non_shared'
17259 # CC pic flag -KPIC is the default.
17265 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17266 case $cc_basename in
17269 lt_prog_compiler_wl_CXX='--backend -Wl,'
17270 lt_prog_compiler_pic_CXX='-fPIC'
17273 # old Intel C++ for x86_64 which still supported -KPIC.
17274 lt_prog_compiler_wl_CXX='-Wl,'
17275 lt_prog_compiler_pic_CXX='-KPIC'
17276 lt_prog_compiler_static_CXX='-static'
17279 # Intel C++, used to be incompatible with GCC.
17280 # ICC 10 doesn't accept -KPIC any more.
17281 lt_prog_compiler_wl_CXX='-Wl,'
17282 lt_prog_compiler_pic_CXX='-fPIC'
17283 lt_prog_compiler_static_CXX='-static'
17286 # Portland Group C++ compiler
17287 lt_prog_compiler_wl_CXX='-Wl,'
17288 lt_prog_compiler_pic_CXX='-fpic'
17289 lt_prog_compiler_static_CXX='-Bstatic'
17293 # Make sure the PIC flag is empty. It appears that all Alpha
17294 # Linux and Compaq Tru64 Unix objects are PIC.
17295 lt_prog_compiler_pic_CXX=
17296 lt_prog_compiler_static_CXX='-non_shared'
17298 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17299 # IBM XL 8.0, 9.0 on PPC and BlueGene
17300 lt_prog_compiler_wl_CXX='-Wl,'
17301 lt_prog_compiler_pic_CXX='-qpic'
17302 lt_prog_compiler_static_CXX='-qstaticlink'
17305 case `$CC -V 2>&1 | sed 5q` in
17308 lt_prog_compiler_pic_CXX='-KPIC'
17309 lt_prog_compiler_static_CXX='-Bstatic'
17310 lt_prog_compiler_wl_CXX='-Qoption ld '
17321 case $cc_basename in
17323 lt_prog_compiler_pic_CXX='-W c,exportall'
17332 # QNX uses GNU C++, but need to define -shared option too, otherwise
17333 # it will coredump.
17334 lt_prog_compiler_pic_CXX='-fPIC -shared'
17336 osf3* | osf4* | osf5*)
17337 case $cc_basename in
17339 lt_prog_compiler_wl_CXX='--backend -Wl,'
17342 # Rational C++ 2.4.1
17343 lt_prog_compiler_pic_CXX='-pic'
17346 # Digital/Compaq C++
17347 lt_prog_compiler_wl_CXX='-Wl,'
17348 # Make sure the PIC flag is empty. It appears that all Alpha
17349 # Linux and Compaq Tru64 Unix objects are PIC.
17350 lt_prog_compiler_pic_CXX=
17351 lt_prog_compiler_static_CXX='-non_shared'
17360 case $cc_basename in
17362 # Sun C++ 4.2, 5.x and Centerline C++
17363 lt_prog_compiler_pic_CXX='-KPIC'
17364 lt_prog_compiler_static_CXX='-Bstatic'
17365 lt_prog_compiler_wl_CXX='-Qoption ld '
17368 # Green Hills C++ Compiler
17369 lt_prog_compiler_pic_CXX='-PIC'
17376 case $cc_basename in
17379 lt_prog_compiler_pic_CXX='-pic'
17380 lt_prog_compiler_static_CXX='-Bstatic'
17384 lt_prog_compiler_pic_CXX='-pic'
17390 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17391 case $cc_basename in
17393 lt_prog_compiler_wl_CXX='-Wl,'
17394 lt_prog_compiler_pic_CXX='-KPIC'
17395 lt_prog_compiler_static_CXX='-Bstatic'
17400 case $cc_basename in
17402 # NonStop-UX NCC 3.20
17403 lt_prog_compiler_pic_CXX='-KPIC'
17412 lt_prog_compiler_can_build_shared_CXX=no
17418 # For platforms which do not support PIC, -DPIC is meaningless:
17420 lt_prog_compiler_pic_CXX=
17423 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17428 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17429 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17430 $as_echo_n "(cached) " >&6
17432 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17435 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17436 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17439 # Check to make sure the PIC flag actually works.
17441 if test -n "$lt_prog_compiler_pic_CXX"; then
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17443 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17444 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17445 $as_echo_n "(cached) " >&6
17447 lt_cv_prog_compiler_pic_works_CXX=no
17448 ac_outfile=conftest.$ac_objext
17449 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17450 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17451 # Insert the option either (1) after the last *FLAGS variable, or
17452 # (2) before a word containing "conftest.", or (3) at the end.
17453 # Note that $ac_compile itself does not contain backslashes and begins
17454 # with a dollar sign (not a hyphen), so the echo should work correctly.
17455 # The option is referenced via a variable to avoid confusing sed.
17456 lt_compile=`echo "$ac_compile" | $SED \
17457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17459 -e 's:$: $lt_compiler_flag:'`
17460 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17461 (eval "$lt_compile" 2>conftest.err)
17463 cat conftest.err >&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 if (exit $ac_status) && test -s "$ac_outfile"; then
17466 # The compiler can only warn and ignore the option if not recognized
17467 # So say no if there are warnings other than the usual output.
17468 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17470 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17471 lt_cv_prog_compiler_pic_works_CXX=yes
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17478 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17480 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17481 case $lt_prog_compiler_pic_CXX in
17483 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17486 lt_prog_compiler_pic_CXX=
17487 lt_prog_compiler_can_build_shared_CXX=no
17497 # Check to make sure the static flag actually works.
17499 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17501 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17502 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17503 $as_echo_n "(cached) " >&6
17505 lt_cv_prog_compiler_static_works_CXX=no
17506 save_LDFLAGS="$LDFLAGS"
17507 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17508 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17509 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17510 # The linker can only warn and ignore the option if not recognized
17511 # So say no if there are warnings
17512 if test -s conftest.err; then
17513 # Append any errors to the config.log.
17514 cat conftest.err 1>&5
17515 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17517 if diff conftest.exp conftest.er2 >/dev/null; then
17518 lt_cv_prog_compiler_static_works_CXX=yes
17521 lt_cv_prog_compiler_static_works_CXX=yes
17525 LDFLAGS="$save_LDFLAGS"
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17529 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17531 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17534 lt_prog_compiler_static_CXX=
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17541 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17542 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17543 $as_echo_n "(cached) " >&6
17545 lt_cv_prog_compiler_c_o_CXX=no
17546 $RM -r conftest 2>/dev/null
17550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17552 lt_compiler_flag="-o out/conftest2.$ac_objext"
17553 # Insert the option either (1) after the last *FLAGS variable, or
17554 # (2) before a word containing "conftest.", or (3) at the end.
17555 # Note that $ac_compile itself does not contain backslashes and begins
17556 # with a dollar sign (not a hyphen), so the echo should work correctly.
17557 lt_compile=`echo "$ac_compile" | $SED \
17558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17560 -e 's:$: $lt_compiler_flag:'`
17561 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17562 (eval "$lt_compile" 2>out/conftest.err)
17564 cat out/conftest.err >&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17568 # The compiler can only warn and ignore the option if not recognized
17569 # So say no if there are warnings
17570 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17571 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17572 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17573 lt_cv_prog_compiler_c_o_CXX=yes
17578 # SGI C++ compiler will create directory out/ii_files/ for
17579 # template instantiation
17580 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17581 $RM out/* && rmdir out
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17588 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17593 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17594 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17595 $as_echo_n "(cached) " >&6
17597 lt_cv_prog_compiler_c_o_CXX=no
17598 $RM -r conftest 2>/dev/null
17602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17604 lt_compiler_flag="-o out/conftest2.$ac_objext"
17605 # Insert the option either (1) after the last *FLAGS variable, or
17606 # (2) before a word containing "conftest.", or (3) at the end.
17607 # Note that $ac_compile itself does not contain backslashes and begins
17608 # with a dollar sign (not a hyphen), so the echo should work correctly.
17609 lt_compile=`echo "$ac_compile" | $SED \
17610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17612 -e 's:$: $lt_compiler_flag:'`
17613 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17614 (eval "$lt_compile" 2>out/conftest.err)
17616 cat out/conftest.err >&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17620 # The compiler can only warn and ignore the option if not recognized
17621 # So say no if there are warnings
17622 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17623 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17624 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17625 lt_cv_prog_compiler_c_o_CXX=yes
17630 # SGI C++ compiler will create directory out/ii_files/ for
17631 # template instantiation
17632 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17633 $RM out/* && rmdir out
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17640 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17645 hard_links="nottested"
17646 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17647 # do not overwrite the value of need_locks provided by the user
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17649 $as_echo_n "checking if we can lock with hard links... " >&6; }
17652 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17654 ln conftest.a conftest.b 2>&5 || hard_links=no
17655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17657 $as_echo "$hard_links" >&6; }
17658 if test "$hard_links" = no; then
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17660 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17670 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17672 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17673 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17676 # If we're using GNU nm, then we don't want the "-C" option.
17677 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17678 # Also, AIX nm treats weak defined symbols like other global defined
17679 # symbols, whereas GNU nm marks them as "W".
17680 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17681 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'
17683 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'
17687 export_symbols_cmds_CXX="$ltdll_cmds"
17689 cygwin* | mingw* | cegcc*)
17690 case $cc_basename in
17693 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'
17694 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17699 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17704 $as_echo "$ld_shlibs_CXX" >&6; }
17705 test "$ld_shlibs_CXX" = no && can_build_shared=no
17707 with_gnu_ld_CXX=$with_gnu_ld
17715 # Do we need to explicitly link libc?
17717 case "x$archive_cmds_need_lc_CXX" in
17719 # Assume -lc should be added
17720 archive_cmds_need_lc_CXX=yes
17722 if test "$enable_shared" = yes && test "$GCC" = yes; then
17723 case $archive_cmds_CXX in
17725 # FIXME: we may have to deal with multi-command sequences.
17728 # Test whether the compiler implicitly links with -lc since on some
17729 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17730 # to ld, don't add -lc before -lgcc.
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17732 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17733 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17734 $as_echo_n "(cached) " >&6
17737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17740 (eval $ac_compile) 2>&5
17742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17743 test $ac_status = 0; } 2>conftest.err; then
17746 libobjs=conftest.$ac_objext
17748 wl=$lt_prog_compiler_wl_CXX
17749 pic_flag=$lt_prog_compiler_pic_CXX
17755 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17756 allow_undefined_flag_CXX=
17757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17758 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17761 test $ac_status = 0; }
17763 lt_cv_archive_cmds_need_lc_CXX=no
17765 lt_cv_archive_cmds_need_lc_CXX=yes
17767 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17769 cat conftest.err 1>&5
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17775 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17776 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17847 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17849 library_names_spec=
17850 libname_spec='lib$name'
17854 postuninstall_cmds=
17858 shlibpath_overrides_runpath=unknown
17860 dynamic_linker="$host_os ld.so"
17861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17862 need_lib_prefix=unknown
17863 hardcode_into_libs=no
17865 # when you set need_version to no, make sure it does not cause -set_version
17866 # flags to be left without arguments
17867 need_version=unknown
17872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17873 shlibpath_var=LIBPATH
17875 # AIX 3 has no versioning support, so we append a major version to the name.
17876 soname_spec='${libname}${release}${shared_ext}$major'
17883 hardcode_into_libs=yes
17884 if test "$host_cpu" = ia64; then
17885 # AIX 5 supports IA64
17886 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17887 shlibpath_var=LD_LIBRARY_PATH
17889 # With GCC up to 2.95.x, collect2 would create an import file
17890 # for dependence libraries. The import file would start with
17891 # the line `#! .'. This would cause the generated library to
17892 # depend on `.', always an invalid library. This was fixed in
17893 # development snapshots of GCC prior to 3.0.
17895 aix4 | aix4.[01] | aix4.[01].*)
17896 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17898 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17901 can_build_shared=no
17905 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17906 # soname into executable. Probably we can add versioning support to
17907 # collect2, so additional links can be useful in future.
17908 if test "$aix_use_runtimelinking" = yes; then
17909 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17910 # instead of lib<name>.a to let people know that these are not
17911 # typical AIX shared libraries.
17912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17914 # We preserve .a as extension for shared libraries through AIX4.2
17915 # and later when we are not doing run time linking.
17916 library_names_spec='${libname}${release}.a $libname.a'
17917 soname_spec='${libname}${release}${shared_ext}$major'
17919 shlibpath_var=LIBPATH
17926 # Since July 2007 AmigaOS4 officially supports .so libraries.
17927 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17931 library_names_spec='$libname.ixlibrary $libname.a'
17932 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17933 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'
17939 library_names_spec='${libname}${shared_ext}'
17940 dynamic_linker="$host_os ld.so"
17941 shlibpath_var=LIBRARY_PATH
17947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17948 soname_spec='${libname}${release}${shared_ext}$major'
17949 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17950 shlibpath_var=LD_LIBRARY_PATH
17951 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17952 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17953 # the default ld.so.conf also contains /usr/contrib/lib and
17954 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17955 # libtool to hard-code these into programs
17958 cygwin* | mingw* | pw32* | cegcc*)
17959 version_type=windows
17964 case $GCC,$cc_basename in
17967 library_names_spec='$libname.dll.a'
17968 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17969 postinstall_cmds='base_file=`basename \${file}`~
17970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17971 dldir=$destdir/`dirname \$dlpath`~
17972 test -d \$dldir || mkdir -p \$dldir~
17973 $install_prog $dir/$dlname \$dldir/$dlname~
17974 chmod a+x \$dldir/$dlname~
17975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17979 dlpath=$dir/\$dldll~
17981 shlibpath_overrides_runpath=yes
17985 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17986 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17990 # MinGW DLLs use traditional 'lib' prefix
17991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17994 # pw32 DLLs use 'pw' prefix rather than 'lib'
17995 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17998 dynamic_linker='Win32 ld.exe'
18003 libname_spec='$name'
18004 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18005 library_names_spec='${libname}.dll.lib'
18009 sys_lib_search_path_spec=
18012 for lt_path in $LIB
18015 # Let DOS variable expansion print the short 8.3 style file name.
18016 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18017 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18020 # Convert to MSYS style.
18021 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18024 # Convert to unix form, then to dos form, then back to unix form
18025 # but this time dos style (no spaces!) so that the unix form looks
18026 # like /cygdrive/c/PROGRA~1:/cygdr...
18027 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18028 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18029 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18032 sys_lib_search_path_spec="$LIB"
18033 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18034 # It is most probably a Windows format PATH.
18035 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18037 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18039 # FIXME: find the short name or the path components, as spaces are
18040 # common. (e.g. "Program Files" -> "PROGRA~1")
18044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18045 postinstall_cmds='base_file=`basename \${file}`~
18046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18047 dldir=$destdir/`dirname \$dlpath`~
18048 test -d \$dldir || mkdir -p \$dldir~
18049 $install_prog $dir/$dlname \$dldir/$dlname'
18050 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18051 dlpath=$dir/\$dldll~
18053 shlibpath_overrides_runpath=yes
18054 dynamic_linker='Win32 link.exe'
18058 # Assume MSVC wrapper
18059 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18060 dynamic_linker='Win32 ld.exe'
18063 # FIXME: first we should search . and the directory the executable is in
18067 darwin* | rhapsody*)
18068 dynamic_linker="$host_os dyld"
18069 version_type=darwin
18072 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18073 soname_spec='${libname}${release}${major}$shared_ext'
18074 shlibpath_overrides_runpath=yes
18075 shlibpath_var=DYLD_LIBRARY_PATH
18076 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18078 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18086 soname_spec='${libname}${release}${shared_ext}$major'
18087 shlibpath_var=LD_LIBRARY_PATH
18094 freebsd* | dragonfly*)
18095 # DragonFly does not have aout. When/if they implement a new
18096 # versioning mechanism, adjust this.
18097 if test -x /usr/bin/objformat; then
18098 objformat=`/usr/bin/objformat`
18101 freebsd[123]*) objformat=aout ;;
18102 *) objformat=elf ;;
18105 version_type=freebsd-$objformat
18106 case $version_type in
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18117 shlibpath_var=LD_LIBRARY_PATH
18120 shlibpath_overrides_runpath=yes
18122 freebsd3.[01]* | freebsdelf3.[01]*)
18123 shlibpath_overrides_runpath=yes
18124 hardcode_into_libs=yes
18126 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18127 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18128 shlibpath_overrides_runpath=no
18129 hardcode_into_libs=yes
18131 *) # from 4.6 on, and DragonFly
18132 shlibpath_overrides_runpath=yes
18133 hardcode_into_libs=yes
18142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18143 soname_spec='${libname}${release}${shared_ext}$major'
18144 shlibpath_var=LD_LIBRARY_PATH
18145 hardcode_into_libs=yes
18152 dynamic_linker="$host_os runtime_loader"
18153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18154 soname_spec='${libname}${release}${shared_ext}$major'
18155 shlibpath_var=LIBRARY_PATH
18156 shlibpath_overrides_runpath=yes
18157 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18158 hardcode_into_libs=yes
18161 hpux9* | hpux10* | hpux11*)
18162 # Give a soname corresponding to the major version so that dld.sl refuses to
18163 # link against other versions.
18170 hardcode_into_libs=yes
18171 dynamic_linker="$host_os dld.so"
18172 shlibpath_var=LD_LIBRARY_PATH
18173 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18175 soname_spec='${libname}${release}${shared_ext}$major'
18176 if test "X$HPUX_IA64_MODE" = X32; then
18177 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18179 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18181 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18185 hardcode_into_libs=yes
18186 dynamic_linker="$host_os dld.sl"
18187 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18190 soname_spec='${libname}${release}${shared_ext}$major'
18191 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18192 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18196 dynamic_linker="$host_os dld.sl"
18197 shlibpath_var=SHLIB_PATH
18198 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18200 soname_spec='${libname}${release}${shared_ext}$major'
18203 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18204 postinstall_cmds='chmod 555 $lib'
18205 # or fails outright, so override atomically:
18206 install_override_mode=555
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18214 soname_spec='${libname}${release}${shared_ext}$major'
18215 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18216 shlibpath_var=LD_LIBRARY_PATH
18217 shlibpath_overrides_runpath=no
18218 hardcode_into_libs=yes
18221 irix5* | irix6* | nonstopux*)
18223 nonstopux*) version_type=nonstopux ;;
18225 if test "$lt_cv_prog_gnu_ld" = yes; then
18233 soname_spec='${libname}${release}${shared_ext}$major'
18234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18236 irix5* | nonstopux*)
18237 libsuff= shlibsuff=
18240 case $LD in # libtool.m4 will add one of these switches to LD
18241 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18242 libsuff= shlibsuff= libmagic=32-bit;;
18243 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18244 libsuff=32 shlibsuff=N32 libmagic=N32;;
18245 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18246 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18247 *) libsuff= shlibsuff= libmagic=never-match;;
18251 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18252 shlibpath_overrides_runpath=no
18253 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18254 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18255 hardcode_into_libs=yes
18258 # No shared lib support for Linux oldld, aout, or coff.
18259 linux*oldld* | linux*aout* | linux*coff*)
18263 # This must be Linux ELF.
18264 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18269 soname_spec='${libname}${release}${shared_ext}$major'
18270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18271 shlibpath_var=LD_LIBRARY_PATH
18272 shlibpath_overrides_runpath=no
18274 # Some binutils ld are patched to set DT_RUNPATH
18275 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18276 $as_echo_n "(cached) " >&6
18278 lt_cv_shlibpath_overrides_runpath=no
18279 save_LDFLAGS=$LDFLAGS
18280 save_libdir=$libdir
18281 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18282 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18284 /* end confdefs.h. */
18294 if ac_fn_cxx_try_link "$LINENO"; then :
18295 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18296 lt_cv_shlibpath_overrides_runpath=yes
18299 rm -f core conftest.err conftest.$ac_objext \
18300 conftest$ac_exeext conftest.$ac_ext
18301 LDFLAGS=$save_LDFLAGS
18302 libdir=$save_libdir
18306 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18308 # This implies no fast_install, which is unacceptable.
18309 # Some rework will be needed to allow for fast_install
18310 # before this can be enabled.
18311 hardcode_into_libs=yes
18313 # Append ld.so.conf contents to the search path
18314 if test -f /etc/ld.so.conf; then
18315 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' ' '`
18316 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18319 # We used to test for /lib/ld.so.1 and disable shared libraries on
18320 # powerpc, because MkLinux only supported shared libraries with the
18321 # GNU dynamic linker. Since this was broken with cross compilers,
18322 # most powerpc-linux boxes support dynamic linking these days and
18323 # people can always --disable-shared, the test was removed, and we
18324 # assume the GNU/Linux dynamic linker is in use.
18325 dynamic_linker='GNU/Linux ld.so'
18332 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18335 dynamic_linker='NetBSD (a.out) ld.so'
18337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18338 soname_spec='${libname}${release}${shared_ext}$major'
18339 dynamic_linker='NetBSD ld.elf_so'
18341 shlibpath_var=LD_LIBRARY_PATH
18342 shlibpath_overrides_runpath=yes
18343 hardcode_into_libs=yes
18348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18349 shlibpath_var=LD_LIBRARY_PATH
18350 shlibpath_overrides_runpath=yes
18357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18358 soname_spec='${libname}${release}${shared_ext}$major'
18359 shlibpath_var=LD_LIBRARY_PATH
18360 shlibpath_overrides_runpath=no
18361 hardcode_into_libs=yes
18362 dynamic_linker='ldqnx.so'
18367 sys_lib_dlsearch_path_spec="/usr/lib"
18369 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18371 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18372 *) need_version=no ;;
18374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18376 shlibpath_var=LD_LIBRARY_PATH
18377 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18379 openbsd2.[89] | openbsd2.[89].*)
18380 shlibpath_overrides_runpath=no
18383 shlibpath_overrides_runpath=yes
18387 shlibpath_overrides_runpath=yes
18392 libname_spec='$name'
18395 library_names_spec='$libname${shared_ext} $libname.a'
18396 dynamic_linker='OS/2 ld.exe'
18397 shlibpath_var=LIBPATH
18400 osf3* | osf4* | osf5*)
18404 soname_spec='${libname}${release}${shared_ext}$major'
18405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18406 shlibpath_var=LD_LIBRARY_PATH
18407 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18408 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18420 soname_spec='${libname}${release}${shared_ext}$major'
18421 shlibpath_var=LD_LIBRARY_PATH
18422 shlibpath_overrides_runpath=yes
18423 hardcode_into_libs=yes
18424 # ldd complains unless libraries are executable
18425 postinstall_cmds='chmod +x $lib'
18430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18431 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18432 shlibpath_var=LD_LIBRARY_PATH
18433 shlibpath_overrides_runpath=yes
18434 if test "$with_gnu_ld" = yes; then
18442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18443 soname_spec='${libname}${release}${shared_ext}$major'
18444 shlibpath_var=LD_LIBRARY_PATH
18445 case $host_vendor in
18447 shlibpath_overrides_runpath=no
18449 runpath_var=LD_RUN_PATH
18457 shlibpath_overrides_runpath=no
18458 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18464 if test -d /usr/nec ;then
18466 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18467 soname_spec='$libname${shared_ext}.$major'
18468 shlibpath_var=LD_LIBRARY_PATH
18472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18473 version_type=freebsd-elf
18476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18477 soname_spec='${libname}${release}${shared_ext}$major'
18478 shlibpath_var=LD_LIBRARY_PATH
18479 shlibpath_overrides_runpath=yes
18480 hardcode_into_libs=yes
18481 if test "$with_gnu_ld" = yes; then
18482 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18484 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18487 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18491 sys_lib_dlsearch_path_spec='/usr/lib'
18495 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18500 shlibpath_var=LD_LIBRARY_PATH
18501 shlibpath_overrides_runpath=no
18502 hardcode_into_libs=yes
18507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18508 soname_spec='${libname}${release}${shared_ext}$major'
18509 shlibpath_var=LD_LIBRARY_PATH
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18517 $as_echo "$dynamic_linker" >&6; }
18518 test "$dynamic_linker" = no && can_build_shared=no
18520 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18521 if test "$GCC" = yes; then
18522 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18525 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18526 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18528 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18529 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18570 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18571 hardcode_action_CXX=
18572 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18573 test -n "$runpath_var_CXX" ||
18574 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18576 # We can hardcode non-existent directories.
18577 if test "$hardcode_direct_CXX" != no &&
18578 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18579 # have to relink, otherwise we might link with an installed library
18580 # when we should be linking with a yet-to-be-installed one
18581 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18582 test "$hardcode_minus_L_CXX" != no; then
18583 # Linking always hardcodes the temporary library directory.
18584 hardcode_action_CXX=relink
18586 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18587 hardcode_action_CXX=immediate
18590 # We cannot hardcode anything, or else we can only hardcode existing
18592 hardcode_action_CXX=unsupported
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18595 $as_echo "$hardcode_action_CXX" >&6; }
18597 if test "$hardcode_action_CXX" = relink ||
18598 test "$inherit_rpath_CXX" = yes; then
18599 # Fast installation is not supported
18600 enable_fast_install=no
18601 elif test "$shlibpath_overrides_runpath" = yes ||
18602 test "$enable_shared" = no; then
18603 # Fast installation is not necessary
18604 enable_fast_install=needless
18613 fi # test -n "$compiler"
18616 CFLAGS=$lt_save_CFLAGS
18620 with_gnu_ld=$lt_save_with_gnu_ld
18621 lt_cv_path_LDCXX=$lt_cv_path_LD
18622 lt_cv_path_LD=$lt_save_path_LD
18623 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18624 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18625 fi # test "$_lt_caught_CXX_error" != yes
18628 ac_cpp='$CPP $CPPFLAGS'
18629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18645 ac_config_commands="$ac_config_commands libtool"
18650 # Only expand once:
18655 # NTP has (so far) been relying on leading-edge autogen, which
18656 # means we need the appropriate corresponding libopts as well.
18657 # Therefore, by default:
18658 # - use the version of libopts we ship with
18659 # - do not install it
18660 # - build a static copy (AC_DISABLE_SHARED - done earlier)
18661 case "${enable_local_libopts+set}" in
18663 *) enable_local_libopts=yes ;;
18665 case "${enable_libopts_install+set}" in
18667 *) enable_libopts_install=no ;;
18670 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18671 if test "x$ac_cv_type_pid_t" = xyes; then :
18675 cat >>confdefs.h <<_ACEOF
18683 ac_header_dirent=no
18684 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18685 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18687 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18688 if eval \${$as_ac_Header+:} false; then :
18689 $as_echo_n "(cached) " >&6
18691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18692 /* end confdefs.h. */
18693 #include <sys/types.h>
18705 if ac_fn_c_try_compile "$LINENO"; then :
18706 eval "$as_ac_Header=yes"
18708 eval "$as_ac_Header=no"
18710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18712 eval ac_res=\$$as_ac_Header
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18714 $as_echo "$ac_res" >&6; }
18715 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18716 cat >>confdefs.h <<_ACEOF
18717 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18720 ac_header_dirent=$ac_hdr; break
18724 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18725 if test $ac_header_dirent = dirent.h; then
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18727 $as_echo_n "checking for library containing opendir... " >&6; }
18728 if ${ac_cv_search_opendir+:} false; then :
18729 $as_echo_n "(cached) " >&6
18731 ac_func_search_save_LIBS=$LIBS
18732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18733 /* end confdefs.h. */
18735 /* Override any GCC internal prototype to avoid an error.
18736 Use char because int might match the return type of a GCC
18737 builtin and then its argument prototype would still apply. */
18750 for ac_lib in '' dir; do
18751 if test -z "$ac_lib"; then
18752 ac_res="none required"
18755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18757 if ac_fn_c_try_link "$LINENO"; then :
18758 ac_cv_search_opendir=$ac_res
18760 rm -f core conftest.err conftest.$ac_objext \
18762 if ${ac_cv_search_opendir+:} false; then :
18766 if ${ac_cv_search_opendir+:} false; then :
18769 ac_cv_search_opendir=no
18771 rm conftest.$ac_ext
18772 LIBS=$ac_func_search_save_LIBS
18774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18775 $as_echo "$ac_cv_search_opendir" >&6; }
18776 ac_res=$ac_cv_search_opendir
18777 if test "$ac_res" != no; then :
18778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18784 $as_echo_n "checking for library containing opendir... " >&6; }
18785 if ${ac_cv_search_opendir+:} false; then :
18786 $as_echo_n "(cached) " >&6
18788 ac_func_search_save_LIBS=$LIBS
18789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18790 /* end confdefs.h. */
18792 /* Override any GCC internal prototype to avoid an error.
18793 Use char because int might match the return type of a GCC
18794 builtin and then its argument prototype would still apply. */
18807 for ac_lib in '' x; do
18808 if test -z "$ac_lib"; then
18809 ac_res="none required"
18812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18814 if ac_fn_c_try_link "$LINENO"; then :
18815 ac_cv_search_opendir=$ac_res
18817 rm -f core conftest.err conftest.$ac_objext \
18819 if ${ac_cv_search_opendir+:} false; then :
18823 if ${ac_cv_search_opendir+:} false; then :
18826 ac_cv_search_opendir=no
18828 rm conftest.$ac_ext
18829 LIBS=$ac_func_search_save_LIBS
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18832 $as_echo "$ac_cv_search_opendir" >&6; }
18833 ac_res=$ac_cv_search_opendir
18834 if test "$ac_res" != no; then :
18835 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18842 # =================
18844 # =================
18846 sys/mman.h sys/param.h sys/poll.h sys/procset.h \
18847 sys/select.h sys/socket.h sys/stropts.h sys/time.h \
18848 sys/un.h sys/wait.h dlfcn.h errno.h \
18849 fcntl.h libgen.h libintl.h memory.h \
18850 netinet/in.h setjmp.h stdbool.h sysexits.h \
18853 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18854 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18855 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18856 cat >>confdefs.h <<_ACEOF
18857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18865 for ac_header in stdarg.h varargs.h
18867 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18868 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18869 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18870 cat >>confdefs.h <<_ACEOF
18871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18873 lo_have_arg_hdr=true;break
18875 lo_have_arg_hdr=false
18881 for ac_header in string.h strings.h
18883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18884 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18885 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18886 cat >>confdefs.h <<_ACEOF
18887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18889 lo_have_str_hdr=true;break
18891 lo_have_str_hdr=false
18897 for ac_header in limits.h sys/limits.h values.h
18899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18900 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18901 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18902 cat >>confdefs.h <<_ACEOF
18903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18905 lo_have_lim_hdr=true;break
18907 lo_have_lim_hdr=false
18913 for ac_header in inttypes.h stdint.h
18915 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18916 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18917 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18918 cat >>confdefs.h <<_ACEOF
18919 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18921 lo_have_typ_hdr=true;break
18923 lo_have_typ_hdr=false
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
18930 $as_echo_n "checking for working stdnoreturn.h... " >&6; }
18931 if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
18932 $as_echo_n "(cached) " >&6
18934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18935 /* end confdefs.h. */
18936 #include <stdlib.h>
18937 #include <stdnoreturn.h>
18938 /* Do not check for 'noreturn' after the return type.
18939 C11 allows it, but it's rarely done that way
18940 and circa-2012 bleeding-edge GCC rejects it when given
18941 -Werror=old-style-declaration. */
18942 noreturn void foo1 (void) { exit (0); }
18943 _Noreturn void foo2 (void) { exit (0); }
18944 int testit (int argc, char **argv) {
18947 (argv[0][0] ? foo1 : foo2) ();
18958 if ac_fn_c_try_compile "$LINENO"; then :
18959 gl_cv_header_working_stdnoreturn_h=yes
18961 gl_cv_header_working_stdnoreturn_h=no
18963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
18966 $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
18968 if test $gl_cv_header_working_stdnoreturn_h = yes; then
18971 STDNORETURN_H='stdnoreturn.h'
18975 if test -n "$STDNORETURN_H"; then
18976 GL_GENERATE_STDNORETURN_H_TRUE=
18977 GL_GENERATE_STDNORETURN_H_FALSE='#'
18979 GL_GENERATE_STDNORETURN_H_TRUE='#'
18980 GL_GENERATE_STDNORETURN_H_FALSE=
18985 # ----------------------------------------------------------------------
18986 # check for various programs used during the build.
18987 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
18988 # ----------------------------------------------------------------------
18989 for ac_header in runetype.h wchar.h
18991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18992 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18993 $ac_includes_default
18994 #if HAVE_RUNETYPE_H
18995 # include <runetype.h>
18999 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19000 cat >>confdefs.h <<_ACEOF
19001 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19009 # Check whether --enable-nls was given.
19010 if test "${enable_nls+set}" = set; then :
19011 enableval=$enable_nls;
19014 if test "x$enable_nls" != "xno" && \
19015 test "X${ac_cv_header_libintl_h}" = Xyes; then :
19018 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19022 # --------------------------------------------
19023 # Verify certain entries from AC_CHECK_HEADERS
19024 # --------------------------------------------
19025 ${lo_have_arg_hdr} || \
19026 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
19028 ${lo_have_str_hdr} || \
19029 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
19031 ${lo_have_lim_hdr} || \
19032 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
19034 ${lo_have_typ_hdr} || \
19035 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
19037 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
19038 do eval as_ac_var=\${ac_cv_header_${f}_h}
19039 test "X${as_ac_var}" = Xyes || {
19040 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
19043 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
19044 echo '#include <stdint.h>' > inttypes.h
19046 # ----------------------------------------------------------------------
19047 # Checks for typedefs
19048 # ----------------------------------------------------------------------
19049 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
19050 if test "x$ac_cv_type_wchar_t" = xyes; then :
19052 cat >>confdefs.h <<_ACEOF
19053 #define HAVE_WCHAR_T 1
19059 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
19060 $ac_includes_default
19061 #if HAVE_RUNETYPE_H
19062 # include <runetype.h>
19065 # include <wchar.h>
19069 if test "x$ac_cv_type_wint_t" = xyes; then :
19071 cat >>confdefs.h <<_ACEOF
19072 #define HAVE_WINT_T 1
19078 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
19079 if test "x$ac_cv_type_int8_t" = xyes; then :
19081 cat >>confdefs.h <<_ACEOF
19082 #define HAVE_INT8_T 1
19087 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
19088 if test "x$ac_cv_type_uint8_t" = xyes; then :
19090 cat >>confdefs.h <<_ACEOF
19091 #define HAVE_UINT8_T 1
19096 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
19097 if test "x$ac_cv_type_int16_t" = xyes; then :
19099 cat >>confdefs.h <<_ACEOF
19100 #define HAVE_INT16_T 1
19105 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
19106 if test "x$ac_cv_type_uint16_t" = xyes; then :
19108 cat >>confdefs.h <<_ACEOF
19109 #define HAVE_UINT16_T 1
19114 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
19115 if test "x$ac_cv_type_int32_t" = xyes; then :
19117 cat >>confdefs.h <<_ACEOF
19118 #define HAVE_INT32_T 1
19123 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
19124 if test "x$ac_cv_type_uint32_t" = xyes; then :
19126 cat >>confdefs.h <<_ACEOF
19127 #define HAVE_UINT32_T 1
19132 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
19133 if test "x$ac_cv_type_intptr_t" = xyes; then :
19135 cat >>confdefs.h <<_ACEOF
19136 #define HAVE_INTPTR_T 1
19141 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
19142 if test "x$ac_cv_type_uintptr_t" = xyes; then :
19144 cat >>confdefs.h <<_ACEOF
19145 #define HAVE_UINTPTR_T 1
19150 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
19151 if test "x$ac_cv_type_uint_t" = xyes; then :
19153 cat >>confdefs.h <<_ACEOF
19154 #define HAVE_UINT_T 1
19159 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19160 if test "x$ac_cv_type_pid_t" = xyes; then :
19162 cat >>confdefs.h <<_ACEOF
19163 #define HAVE_PID_T 1
19168 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19169 if test "x$ac_cv_type_size_t" = xyes; then :
19171 cat >>confdefs.h <<_ACEOF
19172 #define HAVE_SIZE_T 1
19177 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19178 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19180 cat >>confdefs.h <<_ACEOF
19181 #define HAVE_PTRDIFF_T 1
19187 # The cast to long int works around a bug in the HP C Compiler
19188 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19189 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19190 # This bug is HP SR number 8606223364.
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
19192 $as_echo_n "checking size of char *... " >&6; }
19193 if ${ac_cv_sizeof_char_p+:} false; then :
19194 $as_echo_n "(cached) " >&6
19196 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
19199 if test "$ac_cv_type_char_p" = yes; then
19200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19202 as_fn_error 77 "cannot compute sizeof (char *)
19203 See \`config.log' for more details" "$LINENO" 5; }
19205 ac_cv_sizeof_char_p=0
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
19211 $as_echo "$ac_cv_sizeof_char_p" >&6; }
19215 cat >>confdefs.h <<_ACEOF
19216 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
19220 # The cast to long int works around a bug in the HP C Compiler
19221 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19222 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19223 # This bug is HP SR number 8606223364.
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
19225 $as_echo_n "checking size of int... " >&6; }
19226 if ${ac_cv_sizeof_int+:} false; then :
19227 $as_echo_n "(cached) " >&6
19229 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
19232 if test "$ac_cv_type_int" = yes; then
19233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19235 as_fn_error 77 "cannot compute sizeof (int)
19236 See \`config.log' for more details" "$LINENO" 5; }
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
19244 $as_echo "$ac_cv_sizeof_int" >&6; }
19248 cat >>confdefs.h <<_ACEOF
19249 #define SIZEOF_INT $ac_cv_sizeof_int
19253 # The cast to long int works around a bug in the HP C Compiler
19254 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19255 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19256 # This bug is HP SR number 8606223364.
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
19258 $as_echo_n "checking size of long... " >&6; }
19259 if ${ac_cv_sizeof_long+:} false; then :
19260 $as_echo_n "(cached) " >&6
19262 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
19265 if test "$ac_cv_type_long" = yes; then
19266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19268 as_fn_error 77 "cannot compute sizeof (long)
19269 See \`config.log' for more details" "$LINENO" 5; }
19271 ac_cv_sizeof_long=0
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
19277 $as_echo "$ac_cv_sizeof_long" >&6; }
19281 cat >>confdefs.h <<_ACEOF
19282 #define SIZEOF_LONG $ac_cv_sizeof_long
19286 # The cast to long int works around a bug in the HP C Compiler
19287 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19288 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19289 # This bug is HP SR number 8606223364.
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
19291 $as_echo_n "checking size of short... " >&6; }
19292 if ${ac_cv_sizeof_short+:} false; then :
19293 $as_echo_n "(cached) " >&6
19295 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
19298 if test "$ac_cv_type_short" = yes; then
19299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19301 as_fn_error 77 "cannot compute sizeof (short)
19302 See \`config.log' for more details" "$LINENO" 5; }
19304 ac_cv_sizeof_short=0
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
19310 $as_echo "$ac_cv_sizeof_short" >&6; }
19314 cat >>confdefs.h <<_ACEOF
19315 #define SIZEOF_SHORT $ac_cv_sizeof_short
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
19324 $as_echo_n "checking for pathfind in -lgen... " >&6; }
19325 if ${ac_cv_lib_gen_pathfind+:} false; then :
19326 $as_echo_n "(cached) " >&6
19328 ac_check_lib_save_LIBS=$LIBS
19330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h. */
19333 /* Override any GCC internal prototype to avoid an error.
19334 Use char because int might match the return type of a GCC
19335 builtin and then its argument prototype would still apply. */
19343 return pathfind ();
19348 if ac_fn_c_try_link "$LINENO"; then :
19349 ac_cv_lib_gen_pathfind=yes
19351 ac_cv_lib_gen_pathfind=no
19353 rm -f core conftest.err conftest.$ac_objext \
19354 conftest$ac_exeext conftest.$ac_ext
19355 LIBS=$ac_check_lib_save_LIBS
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
19358 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
19359 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
19360 cat >>confdefs.h <<_ACEOF
19361 #define HAVE_LIBGEN 1
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
19369 $as_echo_n "checking for gettext in -lintl... " >&6; }
19370 if ${ac_cv_lib_intl_gettext+:} false; then :
19371 $as_echo_n "(cached) " >&6
19373 ac_check_lib_save_LIBS=$LIBS
19374 LIBS="-lintl $LIBS"
19375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19376 /* end confdefs.h. */
19378 /* Override any GCC internal prototype to avoid an error.
19379 Use char because int might match the return type of a GCC
19380 builtin and then its argument prototype would still apply. */
19393 if ac_fn_c_try_link "$LINENO"; then :
19394 ac_cv_lib_intl_gettext=yes
19396 ac_cv_lib_intl_gettext=no
19398 rm -f core conftest.err conftest.$ac_objext \
19399 conftest$ac_exeext conftest.$ac_ext
19400 LIBS=$ac_check_lib_save_LIBS
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
19403 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
19404 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
19405 cat >>confdefs.h <<_ACEOF
19406 #define HAVE_LIBINTL 1
19409 LIBS="-lintl $LIBS"
19413 for ac_func in vprintf
19415 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19416 if test "x$ac_cv_func_vprintf" = xyes; then :
19417 cat >>confdefs.h <<_ACEOF
19418 #define HAVE_VPRINTF 1
19421 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19422 if test "x$ac_cv_func__doprnt" = xyes; then :
19424 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19432 for ac_header in vfork.h
19434 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19435 if test "x$ac_cv_header_vfork_h" = xyes; then :
19436 cat >>confdefs.h <<_ACEOF
19437 #define HAVE_VFORK_H 1
19444 for ac_func in fork vfork
19446 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19447 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19448 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19449 cat >>confdefs.h <<_ACEOF
19450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19456 if test "x$ac_cv_func_fork" = xyes; then
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19458 $as_echo_n "checking for working fork... " >&6; }
19459 if ${ac_cv_func_fork_works+:} false; then :
19460 $as_echo_n "(cached) " >&6
19462 if test "$cross_compiling" = yes; then :
19463 ac_cv_func_fork_works=cross
19465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19466 /* end confdefs.h. */
19467 $ac_includes_default
19472 /* By Ruediger Kuhlmann. */
19473 return fork () < 0;
19479 if ac_fn_c_try_run "$LINENO"; then :
19480 ac_cv_func_fork_works=yes
19482 ac_cv_func_fork_works=no
19484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19485 conftest.$ac_objext conftest.beam conftest.$ac_ext
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19490 $as_echo "$ac_cv_func_fork_works" >&6; }
19493 ac_cv_func_fork_works=$ac_cv_func_fork
19495 if test "x$ac_cv_func_fork_works" = xcross; then
19497 *-*-amigaos* | *-*-msdosdjgpp*)
19498 # Override, as these systems have only a dummy fork() stub
19499 ac_cv_func_fork_works=no
19502 ac_cv_func_fork_works=yes
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19506 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19508 ac_cv_func_vfork_works=$ac_cv_func_vfork
19509 if test "x$ac_cv_func_vfork" = xyes; then
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19511 $as_echo_n "checking for working vfork... " >&6; }
19512 if ${ac_cv_func_vfork_works+:} false; then :
19513 $as_echo_n "(cached) " >&6
19515 if test "$cross_compiling" = yes; then :
19516 ac_cv_func_vfork_works=cross
19518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19519 /* end confdefs.h. */
19520 /* Thanks to Paul Eggert for this test. */
19521 $ac_includes_default
19522 #include <sys/wait.h>
19523 #ifdef HAVE_VFORK_H
19524 # include <vfork.h>
19526 /* On some sparc systems, changes by the child to local and incoming
19527 argument registers are propagated back to the parent. The compiler
19528 is told about this with #include <vfork.h>, but some compilers
19529 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19530 static variable whose address is put into a register that is
19531 clobbered by the vfork. */
19534 sparc_address_test (int arg)
19536 sparc_address_test (arg) int arg;
19539 static pid_t child;
19557 pid_t parent = getpid ();
19560 sparc_address_test (0);
19565 /* Here is another test for sparc vfork register problems. This
19566 test uses lots of local variables, at least as many local
19567 variables as main has allocated so far including compiler
19568 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19569 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19570 reuse the register of parent for one of the local variables,
19571 since it will think that parent can't possibly be used any more
19572 in this routine. Assigning to the local variable will thus
19573 munge parent in the parent process. */
19575 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19576 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19577 /* Convince the compiler that p..p7 are live; otherwise, it might
19578 use the same hardware register for all 8 local variables. */
19579 if (p != p1 || p != p2 || p != p3 || p != p4
19580 || p != p5 || p != p6 || p != p7)
19583 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19584 from child file descriptors. If the child closes a descriptor
19585 before it execs or exits, this munges the parent's descriptor
19586 as well. Test for this by closing stdout in the child. */
19587 _exit(close(fileno(stdout)) != 0);
19592 while (wait(&status) != child)
19595 /* Was there some problem with vforking? */
19598 /* Did the child fail? (This shouldn't happen.) */
19601 /* Did the vfork/compiler bug occur? */
19602 || parent != getpid()
19604 /* Did the file descriptor bug occur? */
19605 || fstat(fileno(stdout), &st) != 0
19610 if ac_fn_c_try_run "$LINENO"; then :
19611 ac_cv_func_vfork_works=yes
19613 ac_cv_func_vfork_works=no
19615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19616 conftest.$ac_objext conftest.beam conftest.$ac_ext
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19621 $as_echo "$ac_cv_func_vfork_works" >&6; }
19624 if test "x$ac_cv_func_fork_works" = xcross; then
19625 ac_cv_func_vfork_works=$ac_cv_func_vfork
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19627 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19630 if test "x$ac_cv_func_vfork_works" = xyes; then
19632 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19636 $as_echo "#define vfork fork" >>confdefs.h
19639 if test "x$ac_cv_func_fork_works" = xyes; then
19641 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19645 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
19646 strrchr strsignal fchmod fstat chmod
19648 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19649 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19650 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19651 cat >>confdefs.h <<_ACEOF
19652 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
19659 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
19660 if ${ac_cv_path_SED+:} false; then :
19661 $as_echo_n "(cached) " >&6
19663 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
19664 for ac_i in 1 2 3 4 5 6 7; do
19665 ac_script="$ac_script$as_nl$ac_script"
19667 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
19668 { ac_script=; unset ac_script;}
19669 if test -z "$SED"; then
19670 ac_path_SED_found=false
19671 # Loop through the user's path and test for each of PROGNAME-LIST
19672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19673 for as_dir in $PATH
19676 test -z "$as_dir" && as_dir=.
19677 for ac_prog in sed gsed; do
19678 for ac_exec_ext in '' $ac_executable_extensions; do
19679 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
19680 as_fn_executable_p "$ac_path_SED" || continue
19681 # Check for GNU ac_path_SED and select it if it is found.
19682 # Check for GNU $ac_path_SED
19683 case `"$ac_path_SED" --version 2>&1` in
19685 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
19688 $as_echo_n 0123456789 >"conftest.in"
19691 cat "conftest.in" "conftest.in" >"conftest.tmp"
19692 mv "conftest.tmp" "conftest.in"
19693 cp "conftest.in" "conftest.nl"
19694 $as_echo '' >> "conftest.nl"
19695 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
19696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19697 as_fn_arith $ac_count + 1 && ac_count=$as_val
19698 if test $ac_count -gt ${ac_path_SED_max-0}; then
19699 # Best one so far, save it but keep looking for a better one
19700 ac_cv_path_SED="$ac_path_SED"
19701 ac_path_SED_max=$ac_count
19703 # 10*(2^10) chars as input seems more than enough
19704 test $ac_count -gt 10 && break
19706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19709 $ac_path_SED_found && break 3
19714 if test -z "$ac_cv_path_SED"; then
19715 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
19718 ac_cv_path_SED=$SED
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
19723 $as_echo "$ac_cv_path_SED" >&6; }
19724 SED="$ac_cv_path_SED"
19729 POSIX_SHELL=`which bash`
19730 test -x "$POSIX_SHELL" && break
19731 POSIX_SHELL=`which dash`
19732 test -x "$POSIX_SHELL" && break
19733 POSIX_SHELL=/usr/xpg4/bin/sh
19734 test -x "$POSIX_SHELL" && break
19735 POSIX_SHELL=`/bin/sh -c '
19737 if ! true ; then exit 1 ; fi
19739 test -x "$POSIX_SHELL" && break
19740 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
19743 cat >>confdefs.h <<_ACEOF
19744 #define POSIX_SHELL "${POSIX_SHELL}"
19751 LIBOPTS_BUILD_BLOCKED=true
19754 NEED_LIBOPTS_DIR=''
19756 # Check whether --enable-local-libopts was given.
19757 if test "${enable_local_libopts+set}" = set; then :
19758 enableval=$enable_local_libopts;
19759 if test x$enableval = xyes ; then
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
19761 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
19762 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19763 NEED_LIBOPTS_DIR=true
19764 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19769 # Check whether --enable-libopts-install was given.
19770 if test "${enable_libopts_install+set}" = set; then :
19771 enableval=$enable_libopts_install;
19774 if test "X${enable_libopts_install}" = Xyes; then
19775 INSTALL_LIBOPTS_TRUE=
19776 INSTALL_LIBOPTS_FALSE='#'
19778 INSTALL_LIBOPTS_TRUE='#'
19779 INSTALL_LIBOPTS_FALSE=
19783 if test -z "${NEED_LIBOPTS_DIR}" ; then
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
19785 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
19787 # Check whether --with-autoopts-config was given.
19788 if test "${with_autoopts_config+set}" = set; then :
19789 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
19792 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
19793 if ${lo_cv_with_autoopts_config+:} false; then :
19794 $as_echo_n "(cached) " >&6
19796 if autoopts-config --help 2>/dev/null 1>&2
19797 then lo_cv_with_autoopts_config=autoopts-config
19798 elif libopts-config --help 2>/dev/null 1>&2
19799 then lo_cv_with_autoopts_config=libopts-config
19800 else lo_cv_with_autoopts_config=no ; fi
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
19803 $as_echo "$lo_cv_with_autoopts_config" >&6; }
19806 # end of AC_ARG_WITH
19808 if ${lo_cv_test_autoopts+:} false; then :
19809 $as_echo_n "(cached) " >&6
19812 if test -z "${lo_cv_with_autoopts_config}" \
19813 -o X"${lo_cv_with_autoopts_config}" = Xno
19815 if autoopts-config --help 2>/dev/null 1>&2
19816 then lo_cv_with_autoopts_config=autoopts-config
19817 elif libopts-config --help 2>/dev/null 1>&2
19818 then lo_cv_with_autoopts_config=libopts-config
19819 else lo_cv_with_autoopts_config=false ; fi
19821 lo_cv_test_autoopts=`
19822 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
19823 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
19824 then lo_cv_test_autoopts=no ; fi
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
19829 $as_echo "${lo_cv_test_autoopts}" >&6; }
19831 if test "X${lo_cv_test_autoopts}" != Xno
19833 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
19834 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
19836 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19837 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19838 NEED_LIBOPTS_DIR=true
19840 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
19841 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
19842 NEED_LIBOPTS_DIR=''
19844 if test -n "${NEED_LIBOPTS_DIR}"; then
19846 NEED_LIBOPTS_FALSE='#'
19848 NEED_LIBOPTS_TRUE='#'
19849 NEED_LIBOPTS_FALSE=
19854 LIBOPTS_DIR=sntp/libopts
19857 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
19859 # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD
19864 ntp_pkgconfig_min_version='0.15.0'
19865 if test -n "$ac_tool_prefix"; then
19866 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19867 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19869 $as_echo_n "checking for $ac_word... " >&6; }
19870 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19871 $as_echo_n "(cached) " >&6
19873 case $PKG_CONFIG in
19875 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19879 for as_dir in $PATH
19882 test -z "$as_dir" && as_dir=.
19883 for ac_exec_ext in '' $ac_executable_extensions; do
19884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19885 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19896 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19897 if test -n "$PKG_CONFIG"; then
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19899 $as_echo "$PKG_CONFIG" >&6; }
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19902 $as_echo "no" >&6; }
19907 if test -z "$ac_cv_path_PKG_CONFIG"; then
19908 ac_pt_PKG_CONFIG=$PKG_CONFIG
19909 # Extract the first word of "pkg-config", so it can be a program name with args.
19910 set dummy pkg-config; ac_word=$2
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19912 $as_echo_n "checking for $ac_word... " >&6; }
19913 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19914 $as_echo_n "(cached) " >&6
19916 case $ac_pt_PKG_CONFIG in
19918 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19922 for as_dir in $PATH
19925 test -z "$as_dir" && as_dir=.
19926 for ac_exec_ext in '' $ac_executable_extensions; do
19927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19928 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19939 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19940 if test -n "$ac_pt_PKG_CONFIG"; then
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19942 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19945 $as_echo "no" >&6; }
19948 if test "x$ac_pt_PKG_CONFIG" = x; then
19951 case $cross_compiling:$ac_tool_warned in
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19955 ac_tool_warned=yes ;;
19957 PKG_CONFIG=$ac_pt_PKG_CONFIG
19960 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19963 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
19964 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
19966 case "$PKG_CONFIG" in
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
19969 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
19970 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19972 $as_echo "yes" >&6; }
19974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19975 $as_echo "no" >&6; }
19984 # Check whether --enable-local-libevent was given.
19985 if test "${enable_local_libevent+set}" = set; then :
19986 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
19988 ntp_use_local_libevent=${ntp_use_local_libevent-detect}
19996 ntp_libevent_min_version=2
19997 ntp_libevent_tearoff=sntp/libevent
20003 case "$ntp_use_local_libevent" in
20006 *) # If we have (a good enough) pkg-config, see if it can find libevent
20007 case "$PKG_CONFIG" in
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
20010 $as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
20011 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
20013 ntp_use_local_libevent=no
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
20015 $as_echo "$as_me: Using the installed libevent" >&6;}
20016 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
20017 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
20018 # HMS: I hope the following is accurate.
20019 # We don't need -levent, we only need -levent_core.
20020 # While we could grab only the -L stuff, there *might* be
20021 # other flags there we want. Originally we just removed -levent
20022 # but then somebody decided to install -levent-2.0
20023 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
20024 # So now we dance...
20026 for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
20031 *) case "$LDADD_LIBEVENT" in
20032 '') LDADD_LIBEVENT="$i" ;;
20033 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
20038 case "$LIBISC_PTHREADS_NOTHREADS" in
20040 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
20042 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20044 $as_echo "yes" >&6; }
20046 ntp_use_local_libevent=yes
20047 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
20049 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20051 $as_echo "no" >&6; }
20055 ntp_use_local_libevent=yes
20061 case "$ntp_use_local_libevent" in
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
20064 $as_echo "$as_me: Using libevent tearoff" >&6;}
20065 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
20066 case "$LIBISC_PTHREADS_NOTHREADS" in
20068 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
20071 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
20076 if test "x$ntp_use_local_libevent" = "xyes"; then
20077 BUILD_LIBEVENT_TRUE=
20078 BUILD_LIBEVENT_FALSE='#'
20080 BUILD_LIBEVENT_TRUE='#'
20081 BUILD_LIBEVENT_FALSE=
20089 # Expose a cross-compilation indicator to makefiles
20090 if test $build != $host; then
20091 NTP_CROSSCOMPILE_TRUE=
20092 NTP_CROSSCOMPILE_FALSE='#'
20094 NTP_CROSSCOMPILE_TRUE='#'
20095 NTP_CROSSCOMPILE_FALSE=
20100 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20101 if test "x$ac_cv_type_size_t" = xyes; then :
20105 cat >>confdefs.h <<_ACEOF
20106 #define size_t unsigned int
20112 # Check whether --enable-c99-snprintf was given.
20113 if test "${enable_c99_snprintf+set}" = set; then :
20114 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
20116 force_c99_snprintf=no
20120 case "$force_c99_snprintf" in
20122 hw_force_rpl_snprintf=yes
20123 hw_force_rpl_vsnprintf=yes
20131 for ac_header in $ac_header_list
20133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20134 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20136 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20137 cat >>confdefs.h <<_ACEOF
20138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20152 $as_echo_n "checking for unsigned long long int... " >&6; }
20153 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
20154 $as_echo_n "(cached) " >&6
20156 ac_cv_type_unsigned_long_long_int=yes
20157 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20159 /* end confdefs.h. */
20161 /* For now, do not test the preprocessor; as of 2007 there are too many
20162 implementations with broken preprocessors. Perhaps this can
20163 be revisited in 2012. In the meantime, code should not expect
20164 #if to work with literals wider than 32 bits. */
20165 /* Test literals. */
20166 long long int ll = 9223372036854775807ll;
20167 long long int nll = -9223372036854775807LL;
20168 unsigned long long int ull = 18446744073709551615ULL;
20169 /* Test constant expressions. */
20170 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20172 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20178 /* Test availability of runtime routines for shift and division. */
20179 long long int llmax = 9223372036854775807ll;
20180 unsigned long long int ullmax = 18446744073709551615ull;
20181 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20182 | (llmax / ll) | (llmax % ll)
20183 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20184 | (ullmax / ull) | (ullmax % ull));
20190 if ac_fn_c_try_link "$LINENO"; then :
20193 ac_cv_type_unsigned_long_long_int=no
20195 rm -f core conftest.err conftest.$ac_objext \
20196 conftest$ac_exeext conftest.$ac_ext
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20200 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20201 if test $ac_cv_type_unsigned_long_long_int = yes; then
20203 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20208 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
20209 if test "x$ac_cv_func_vsnprintf" = xyes; then :
20210 hw_cv_func_vsnprintf=yes
20212 hw_cv_func_vsnprintf=no
20215 if test "$hw_cv_func_vsnprintf" = yes; then :
20216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
20217 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
20218 if ${hw_cv_func_vsnprintf_c99+:} false; then :
20219 $as_echo_n "(cached) " >&6
20221 if test "$cross_compiling" = yes; then :
20222 hw_cv_func_vsnprintf_c99=no
20224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20225 /* end confdefs.h. */
20227 #include <stdarg.h>
20230 static int testprintf(char *buf, size_t size, const char *format, ...)
20234 va_start(ap, format);
20235 result = vsnprintf(buf, size, format, ap);
20243 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20244 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20245 buf[0] != 'T' || buf[3] != '\0')
20251 if ac_fn_c_try_run "$LINENO"; then :
20252 hw_cv_func_vsnprintf_c99=yes
20254 hw_cv_func_vsnprintf_c99=no
20256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20257 conftest.$ac_objext conftest.beam conftest.$ac_ext
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
20262 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
20264 hw_cv_func_vsnprintf_c99=no
20267 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
20269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
20270 $as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
20271 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
20272 hw_use_rpl_vsnprintf=yes
20274 hw_use_rpl_vsnprintf=no
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
20277 $as_echo "$hw_use_rpl_vsnprintf" >&6; }
20278 if test "$hw_use_rpl_vsnprintf" = yes; then :
20280 $as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
20282 if test ${hw_nodef_vsnprintf=no} = no; then :
20284 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
20287 for ac_header in inttypes.h locale.h stddef.h stdint.h
20289 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20290 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20291 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20292 cat >>confdefs.h <<_ACEOF
20293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20300 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
20302 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
20304 cat >>confdefs.h <<_ACEOF
20305 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
20310 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
20312 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
20314 cat >>confdefs.h <<_ACEOF
20315 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
20323 $as_echo_n "checking for long double... " >&6; }
20324 if ${ac_cv_type_long_double+:} false; then :
20325 $as_echo_n "(cached) " >&6
20327 if test "$GCC" = yes; then
20328 ac_cv_type_long_double=yes
20330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20331 /* end confdefs.h. */
20332 /* The Stardent Vistra knows sizeof (long double), but does
20334 long double foo = 0.0L;
20338 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
20339 sizeof (double) <= sizeof (long double))];
20340 test_array [0] = 0;
20341 return test_array [0];
20347 if ac_fn_c_try_compile "$LINENO"; then :
20348 ac_cv_type_long_double=yes
20350 ac_cv_type_long_double=no
20352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
20356 $as_echo "$ac_cv_type_long_double" >&6; }
20357 if test $ac_cv_type_long_double = yes; then
20359 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20366 $as_echo_n "checking for long long int... " >&6; }
20367 if ${ac_cv_type_long_long_int+:} false; then :
20368 $as_echo_n "(cached) " >&6
20370 ac_cv_type_long_long_int=yes
20371 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20372 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
20373 if test $ac_cv_type_long_long_int = yes; then
20374 if test "$cross_compiling" = yes; then :
20377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20378 /* end confdefs.h. */
20379 #include <limits.h>
20382 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20383 # define LLONG_MAX (HALF - 1 + HALF)
20388 long long int n = 1;
20392 long long int m = n << i;
20395 if (LLONG_MAX / 2 < m)
20403 if ac_fn_c_try_run "$LINENO"; then :
20406 ac_cv_type_long_long_int=no
20408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20409 conftest.$ac_objext conftest.beam conftest.$ac_ext
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
20416 $as_echo "$ac_cv_type_long_long_int" >&6; }
20417 if test $ac_cv_type_long_long_int = yes; then
20419 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20425 $as_echo_n "checking for unsigned long long int... " >&6; }
20426 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
20427 $as_echo_n "(cached) " >&6
20429 ac_cv_type_unsigned_long_long_int=yes
20430 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20432 /* end confdefs.h. */
20434 /* For now, do not test the preprocessor; as of 2007 there are too many
20435 implementations with broken preprocessors. Perhaps this can
20436 be revisited in 2012. In the meantime, code should not expect
20437 #if to work with literals wider than 32 bits. */
20438 /* Test literals. */
20439 long long int ll = 9223372036854775807ll;
20440 long long int nll = -9223372036854775807LL;
20441 unsigned long long int ull = 18446744073709551615ULL;
20442 /* Test constant expressions. */
20443 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20445 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20451 /* Test availability of runtime routines for shift and division. */
20452 long long int llmax = 9223372036854775807ll;
20453 unsigned long long int ullmax = 18446744073709551615ull;
20454 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20455 | (llmax / ll) | (llmax % ll)
20456 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20457 | (ullmax / ull) | (ullmax % ull));
20463 if ac_fn_c_try_link "$LINENO"; then :
20466 ac_cv_type_unsigned_long_long_int=no
20468 rm -f core conftest.err conftest.$ac_objext \
20469 conftest$ac_exeext conftest.$ac_ext
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20473 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20474 if test $ac_cv_type_unsigned_long_long_int = yes; then
20476 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20480 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20481 if test "x$ac_cv_type_size_t" = xyes; then :
20485 cat >>confdefs.h <<_ACEOF
20486 #define size_t unsigned int
20493 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
20494 if test "x$ac_cv_type_intmax_t" = xyes; then :
20496 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20499 test $ac_cv_type_long_long_int = yes \
20500 && ac_type='long long int' \
20501 || ac_type='long int'
20503 cat >>confdefs.h <<_ACEOF
20504 #define intmax_t $ac_type
20512 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
20513 if test "x$ac_cv_type_uintmax_t" = xyes; then :
20515 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20518 test $ac_cv_type_unsigned_long_long_int = yes \
20519 && ac_type='unsigned long long int' \
20520 || ac_type='unsigned long int'
20522 cat >>confdefs.h <<_ACEOF
20523 #define uintmax_t $ac_type
20530 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20531 if test "x$ac_cv_type_uintptr_t" = xyes; then :
20533 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
20536 for ac_type in 'unsigned int' 'unsigned long int' \
20537 'unsigned long long int'; do
20538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20539 /* end confdefs.h. */
20540 $ac_includes_default
20544 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
20545 test_array [0] = 0;
20546 return test_array [0];
20552 if ac_fn_c_try_compile "$LINENO"; then :
20554 cat >>confdefs.h <<_ACEOF
20555 #define uintptr_t $ac_type
20560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20561 test -z "$ac_type" && break
20566 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20567 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20569 cat >>confdefs.h <<_ACEOF
20570 #define HAVE_PTRDIFF_T 1
20576 for ac_func in localeconv
20578 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
20579 if test "x$ac_cv_func_localeconv" = xyes; then :
20580 cat >>confdefs.h <<_ACEOF
20581 #define HAVE_LOCALECONV 1
20588 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20590 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20591 if ${ac_cv_c_const+:} false; then :
20592 $as_echo_n "(cached) " >&6
20594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20595 /* end confdefs.h. */
20601 #ifndef __cplusplus
20602 /* Ultrix mips cc rejects this sort of thing. */
20603 typedef int charset[2];
20604 const charset cs = { 0, 0 };
20605 /* SunOS 4.1.1 cc rejects this. */
20606 char const *const *pcpcc;
20608 /* NEC SVR4.0.2 mips cc rejects this. */
20609 struct point {int x, y;};
20610 static struct point const zero = {0,0};
20611 /* AIX XL C 1.02.0.0 rejects this.
20612 It does not let you subtract one const X* pointer from another in
20613 an arm of an if-expression whose if-part is not a constant
20615 const char *g = "string";
20616 pcpcc = &g + (g ? g-g : 0);
20617 /* HPUX 7.0 cc rejects these. */
20619 ppc = (char**) pcpcc;
20620 pcpcc = (char const *const *) ppc;
20621 { /* SCO 3.2v4 cc rejects this sort of thing. */
20624 char const *s = 0 ? (char *) 0 : (char const *) 0;
20629 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20630 int x[] = {25, 17};
20631 const int *foo = &x[0];
20634 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20635 typedef const int *iptr;
20639 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20640 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20641 struct s { int j; const int *ap[3]; } bx;
20642 struct s *b = &bx; b->j = 5;
20644 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20645 const int foo = 10;
20646 if (!foo) return 0;
20648 return !cs[0] && !zero.x;
20655 if ac_fn_c_try_compile "$LINENO"; then :
20660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20663 $as_echo "$ac_cv_c_const" >&6; }
20664 if test $ac_cv_c_const = no; then
20666 $as_echo "#define const /**/" >>confdefs.h
20673 case " $LIBOBJS " in
20674 *" snprintf.$ac_objext "* ) ;;
20675 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20679 _hw_cv_func_xprintf_replace_done=yes
20685 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20686 if test "x$ac_cv_func_snprintf" = xyes; then :
20687 hw_cv_func_snprintf=yes
20689 hw_cv_func_snprintf=no
20692 if test "$hw_cv_func_snprintf" = yes; then :
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
20694 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
20695 if ${hw_cv_func_snprintf_c99+:} false; then :
20696 $as_echo_n "(cached) " >&6
20698 if test "$cross_compiling" = yes; then :
20699 hw_cv_func_snprintf_c99=no
20701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20702 /* end confdefs.h. */
20708 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20709 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20710 buf[0] != 'T' || buf[3] != '\0')
20716 if ac_fn_c_try_run "$LINENO"; then :
20717 hw_cv_func_snprintf_c99=yes
20719 hw_cv_func_snprintf_c99=no
20721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20722 conftest.$ac_objext conftest.beam conftest.$ac_ext
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
20727 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
20729 hw_cv_func_snprintf_c99=no
20732 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
20735 $as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
20736 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
20737 hw_use_rpl_snprintf=yes
20739 hw_use_rpl_snprintf=no
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
20742 $as_echo "$hw_use_rpl_snprintf" >&6; }
20743 if test "$hw_use_rpl_snprintf" = yes; then :
20745 $as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
20747 if test ${hw_nodef_snprintf=no} = no; then :
20749 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
20753 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20755 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20756 if ${ac_cv_c_const+:} false; then :
20757 $as_echo_n "(cached) " >&6
20759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20760 /* end confdefs.h. */
20766 #ifndef __cplusplus
20767 /* Ultrix mips cc rejects this sort of thing. */
20768 typedef int charset[2];
20769 const charset cs = { 0, 0 };
20770 /* SunOS 4.1.1 cc rejects this. */
20771 char const *const *pcpcc;
20773 /* NEC SVR4.0.2 mips cc rejects this. */
20774 struct point {int x, y;};
20775 static struct point const zero = {0,0};
20776 /* AIX XL C 1.02.0.0 rejects this.
20777 It does not let you subtract one const X* pointer from another in
20778 an arm of an if-expression whose if-part is not a constant
20780 const char *g = "string";
20781 pcpcc = &g + (g ? g-g : 0);
20782 /* HPUX 7.0 cc rejects these. */
20784 ppc = (char**) pcpcc;
20785 pcpcc = (char const *const *) ppc;
20786 { /* SCO 3.2v4 cc rejects this sort of thing. */
20789 char const *s = 0 ? (char *) 0 : (char const *) 0;
20794 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20795 int x[] = {25, 17};
20796 const int *foo = &x[0];
20799 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20800 typedef const int *iptr;
20804 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20805 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20806 struct s { int j; const int *ap[3]; } bx;
20807 struct s *b = &bx; b->j = 5;
20809 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20810 const int foo = 10;
20811 if (!foo) return 0;
20813 return !cs[0] && !zero.x;
20820 if ac_fn_c_try_compile "$LINENO"; then :
20825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20828 $as_echo "$ac_cv_c_const" >&6; }
20829 if test $ac_cv_c_const = no; then
20831 $as_echo "#define const /**/" >>confdefs.h
20838 case " $LIBOBJS " in
20839 *" snprintf.$ac_objext "* ) ;;
20840 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20844 _hw_cv_func_xprintf_replace_done=yes
20853 # HMS: Save $LIBS and empty it.
20854 # any LIBS we add here should go in to LDADD_LIBNTP
20861 # [Bug 2332] because we need to know if we are using GNU ld...
20864 # Check whether --with-gnu-ld was given.
20865 if test "${with_gnu_ld+set}" = set; then :
20866 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20872 if test "$GCC" = yes; then
20873 # Check if gcc -print-prog-name=ld gives a path.
20874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20875 $as_echo_n "checking for ld used by $CC... " >&6; }
20878 # gcc leaves a trailing carriage return which upsets mingw
20879 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20881 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20884 # Accept absolute paths.
20886 re_direlt='/[^/][^/]*/\.\./'
20887 # Canonicalize the pathname of ld
20888 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20889 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20890 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20892 test -z "$LD" && LD="$ac_prog"
20895 # If it fails, then pretend we aren't using GCC.
20899 # If it is relative, then search for the first ld in PATH.
20900 with_gnu_ld=unknown
20903 elif test "$with_gnu_ld" = yes; then
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20905 $as_echo_n "checking for GNU ld... " >&6; }
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20908 $as_echo_n "checking for non-GNU ld... " >&6; }
20910 if ${lt_cv_path_LD+:} false; then :
20911 $as_echo_n "(cached) " >&6
20913 if test -z "$LD"; then
20914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20915 for ac_dir in $PATH; do
20917 test -z "$ac_dir" && ac_dir=.
20918 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20919 lt_cv_path_LD="$ac_dir/$ac_prog"
20920 # Check to see if the program is GNU ld. I'd rather use --version,
20921 # but apparently some variants of GNU ld only accept -v.
20922 # Break only if it was the GNU/non-GNU ld that we prefer.
20923 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20924 *GNU* | *'with BFD'*)
20925 test "$with_gnu_ld" != no && break
20928 test "$with_gnu_ld" != yes && break
20935 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20939 LD="$lt_cv_path_LD"
20940 if test -n "$LD"; then
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20942 $as_echo "$LD" >&6; }
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20945 $as_echo "no" >&6; }
20947 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20949 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20950 if ${lt_cv_prog_gnu_ld+:} false; then :
20951 $as_echo_n "(cached) " >&6
20953 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20954 case `$LD -v 2>&1 </dev/null` in
20955 *GNU* | *'with BFD'*)
20956 lt_cv_prog_gnu_ld=yes
20959 lt_cv_prog_gnu_ld=no
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20964 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20965 with_gnu_ld=$lt_cv_prog_gnu_ld
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
20975 $as_echo_n "checking for directory path separator... " >&6; }
20976 if ${ntp_cv_dir_sep+:} false; then :
20977 $as_echo_n "(cached) " >&6
20980 case "$ntp_cv_dir_sep" in
20983 *djgpp | *mingw32* | *emx*)
20984 ntp_cv_dir_sep="'\\'"
20987 ntp_cv_dir_sep="'/'"
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
20995 $as_echo "$ntp_cv_dir_sep" >&6; }
20997 cat >>confdefs.h <<_ACEOF
20998 #define DIR_SEP $ntp_cv_dir_sep
21003 NTP_ORIG_LIBS="$LIBS"
21005 # Check whether --with-lineeditlibs was given.
21006 if test "${with_lineeditlibs+set}" = set; then :
21007 withval=$with_lineeditlibs; use_lineeditlibs="$withval"
21009 use_lineeditlibs="edit,editline"
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
21014 $as_echo_n "checking line editing libraries... " >&6; }
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
21016 $as_echo "$use_lineeditlibs" >&6; }
21017 case "$use_lineeditlibs" in
21019 ntp_lib_lineedit=no
21022 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
21023 for term_lib in "" termcap curses ncurses; do
21024 case "$term_lib" in
21026 TRY_LIB="-l$lineedit_lib"
21029 TRY_LIB="-l$lineedit_lib -l$term_lib"
21032 LIBS="$NTP_ORIG_LIBS $TRY_LIB"
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
21034 $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
21035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21036 /* end confdefs.h. */
21038 /* Override any GCC internal prototype to avoid an error.
21039 Use char because int might match the return type of a GCC
21040 builtin and then its argument prototype would still apply. */
21048 return readline ();
21053 if ac_fn_c_try_link "$LINENO"; then :
21054 ntp_lib_lineedit="$TRY_LIB"
21056 rm -f core conftest.err conftest.$ac_objext \
21057 conftest$ac_exeext conftest.$ac_ext
21058 case "$ntp_lib_lineedit" in
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21061 $as_echo "no" >&6; }
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21066 $as_echo "yes" >&6; }
21069 case "$term_lib" in
21071 # do not try el_gets without a terminal library
21074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
21075 $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
21076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21077 /* end confdefs.h. */
21079 /* Override any GCC internal prototype to avoid an error.
21080 Use char because int might match the return type of a GCC
21081 builtin and then its argument prototype would still apply. */
21094 if ac_fn_c_try_link "$LINENO"; then :
21095 ntp_lib_lineedit="$TRY_LIB"
21097 rm -f core conftest.err conftest.$ac_objext \
21098 conftest$ac_exeext conftest.$ac_ext
21099 case "$ntp_lib_lineedit" in
21101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21102 $as_echo "no" >&6; }
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21106 $as_echo "yes" >&6; }
21109 esac # $ntp_lib_lineedit
21112 case "$ntp_lib_lineedit" in
21120 LIBS="$NTP_ORIG_LIBS"
21122 esac # $use_lineeditlibs
21124 case "$ntp_lib_lineedit" in
21126 ntp_lib_lineedit="no"
21131 EDITLINE_LIBS="$ntp_lib_lineedit"
21134 esac # $ntp_lib_lineedit
21136 case "$ntp_lib_lineedit" in
21140 for ac_header in readline.h readline/readline.h histedit.h
21142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21143 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21144 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21145 cat >>confdefs.h <<_ACEOF
21146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21153 for ac_header in history.h readline/history.h
21155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21156 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21157 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21158 cat >>confdefs.h <<_ACEOF
21159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21167 case "$ac_cv_header_histedit_h" in
21169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
21170 $as_echo_n "checking number of arguments to el_init()... " >&6; }
21171 if ${ntp_cv_el_init_args+:} false; then :
21172 $as_echo_n "(cached) " >&6
21174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21175 /* end confdefs.h. */
21178 #include <histedit.h>
21184 el_init("conftest", stdin, stdout, stderr);
21191 if ac_fn_c_try_compile "$LINENO"; then :
21192 ntp_cv_el_init_args=4
21194 ntp_cv_el_init_args=3
21197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
21201 $as_echo "$ntp_cv_el_init_args" >&6; }
21203 cat >>confdefs.h <<_ACEOF
21204 #define EL_INIT_ARGS $ntp_cv_el_init_args
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
21210 $as_echo_n "checking whether readline supports history... " >&6; }
21212 ntp_lib_lineedit_history="no"
21214 LIBS="$ORIG_LIBS $ntp_lib_lineedit"
21215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21216 /* end confdefs.h. */
21218 /* Override any GCC internal prototype to avoid an error.
21219 Use char because int might match the return type of a GCC
21220 builtin and then its argument prototype would still apply. */
21224 char add_history ();
21228 return add_history ();
21233 if ac_fn_c_try_link "$LINENO"; then :
21234 ntp_lib_lineedit_history="yes"
21236 rm -f core conftest.err conftest.$ac_objext \
21237 conftest$ac_exeext conftest.$ac_ext
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
21241 $as_echo "$ntp_lib_lineedit_history" >&6; }
21243 case "$ntp_lib_lineedit_history" in
21246 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
21249 esac # $ntp_lib_lineedit
21250 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
21251 { ORIG_LIBS=; unset ORIG_LIBS;}
21252 { TRY_LIB=; unset TRY_LIB;}
21253 { use_lineeditlibs=; unset use_lineeditlibs;}
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
21263 $as_echo_n "checking for library containing cos... " >&6; }
21264 if ${ac_cv_search_cos+:} false; then :
21265 $as_echo_n "(cached) " >&6
21267 ac_func_search_save_LIBS=$LIBS
21268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21269 /* end confdefs.h. */
21271 /* Override any GCC internal prototype to avoid an error.
21272 Use char because int might match the return type of a GCC
21273 builtin and then its argument prototype would still apply. */
21286 for ac_lib in '' m; do
21287 if test -z "$ac_lib"; then
21288 ac_res="none required"
21291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21293 if ac_fn_c_try_link "$LINENO"; then :
21294 ac_cv_search_cos=$ac_res
21296 rm -f core conftest.err conftest.$ac_objext \
21298 if ${ac_cv_search_cos+:} false; then :
21302 if ${ac_cv_search_cos+:} false; then :
21305 ac_cv_search_cos=no
21307 rm conftest.$ac_ext
21308 LIBS=$ac_func_search_save_LIBS
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
21311 $as_echo "$ac_cv_search_cos" >&6; }
21312 ac_res=$ac_cv_search_cos
21313 if test "$ac_res" != no; then :
21314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21322 { _libs=; unset _libs;}
21325 for ac_header in vfork.h
21327 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21328 if test "x$ac_cv_header_vfork_h" = xyes; then :
21329 cat >>confdefs.h <<_ACEOF
21330 #define HAVE_VFORK_H 1
21337 for ac_func in fork vfork
21339 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21340 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21341 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21342 cat >>confdefs.h <<_ACEOF
21343 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21349 if test "x$ac_cv_func_fork" = xyes; then
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21351 $as_echo_n "checking for working fork... " >&6; }
21352 if ${ac_cv_func_fork_works+:} false; then :
21353 $as_echo_n "(cached) " >&6
21355 if test "$cross_compiling" = yes; then :
21356 ac_cv_func_fork_works=cross
21358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21359 /* end confdefs.h. */
21360 $ac_includes_default
21365 /* By Ruediger Kuhlmann. */
21366 return fork () < 0;
21372 if ac_fn_c_try_run "$LINENO"; then :
21373 ac_cv_func_fork_works=yes
21375 ac_cv_func_fork_works=no
21377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21378 conftest.$ac_objext conftest.beam conftest.$ac_ext
21382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21383 $as_echo "$ac_cv_func_fork_works" >&6; }
21386 ac_cv_func_fork_works=$ac_cv_func_fork
21388 if test "x$ac_cv_func_fork_works" = xcross; then
21390 *-*-amigaos* | *-*-msdosdjgpp*)
21391 # Override, as these systems have only a dummy fork() stub
21392 ac_cv_func_fork_works=no
21395 ac_cv_func_fork_works=yes
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21399 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21401 ac_cv_func_vfork_works=$ac_cv_func_vfork
21402 if test "x$ac_cv_func_vfork" = xyes; then
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21404 $as_echo_n "checking for working vfork... " >&6; }
21405 if ${ac_cv_func_vfork_works+:} false; then :
21406 $as_echo_n "(cached) " >&6
21408 if test "$cross_compiling" = yes; then :
21409 ac_cv_func_vfork_works=cross
21411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21412 /* end confdefs.h. */
21413 /* Thanks to Paul Eggert for this test. */
21414 $ac_includes_default
21415 #include <sys/wait.h>
21416 #ifdef HAVE_VFORK_H
21417 # include <vfork.h>
21419 /* On some sparc systems, changes by the child to local and incoming
21420 argument registers are propagated back to the parent. The compiler
21421 is told about this with #include <vfork.h>, but some compilers
21422 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21423 static variable whose address is put into a register that is
21424 clobbered by the vfork. */
21427 sparc_address_test (int arg)
21429 sparc_address_test (arg) int arg;
21432 static pid_t child;
21450 pid_t parent = getpid ();
21453 sparc_address_test (0);
21458 /* Here is another test for sparc vfork register problems. This
21459 test uses lots of local variables, at least as many local
21460 variables as main has allocated so far including compiler
21461 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21462 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21463 reuse the register of parent for one of the local variables,
21464 since it will think that parent can't possibly be used any more
21465 in this routine. Assigning to the local variable will thus
21466 munge parent in the parent process. */
21468 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21469 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21470 /* Convince the compiler that p..p7 are live; otherwise, it might
21471 use the same hardware register for all 8 local variables. */
21472 if (p != p1 || p != p2 || p != p3 || p != p4
21473 || p != p5 || p != p6 || p != p7)
21476 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21477 from child file descriptors. If the child closes a descriptor
21478 before it execs or exits, this munges the parent's descriptor
21479 as well. Test for this by closing stdout in the child. */
21480 _exit(close(fileno(stdout)) != 0);
21485 while (wait(&status) != child)
21488 /* Was there some problem with vforking? */
21491 /* Did the child fail? (This shouldn't happen.) */
21494 /* Did the vfork/compiler bug occur? */
21495 || parent != getpid()
21497 /* Did the file descriptor bug occur? */
21498 || fstat(fileno(stdout), &st) != 0
21503 if ac_fn_c_try_run "$LINENO"; then :
21504 ac_cv_func_vfork_works=yes
21506 ac_cv_func_vfork_works=no
21508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21509 conftest.$ac_objext conftest.beam conftest.$ac_ext
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21514 $as_echo "$ac_cv_func_vfork_works" >&6; }
21517 if test "x$ac_cv_func_fork_works" = xcross; then
21518 ac_cv_func_vfork_works=$ac_cv_func_vfork
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21520 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21523 if test "x$ac_cv_func_vfork_works" = xyes; then
21525 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21529 $as_echo "#define vfork fork" >>confdefs.h
21532 if test "x$ac_cv_func_fork_works" = xyes; then
21534 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21538 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21539 # for constant arguments. Useless!
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21541 $as_echo_n "checking for working alloca.h... " >&6; }
21542 if ${ac_cv_working_alloca_h+:} false; then :
21543 $as_echo_n "(cached) " >&6
21545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21546 /* end confdefs.h. */
21547 #include <alloca.h>
21551 char *p = (char *) alloca (2 * sizeof (int));
21557 if ac_fn_c_try_link "$LINENO"; then :
21558 ac_cv_working_alloca_h=yes
21560 ac_cv_working_alloca_h=no
21562 rm -f core conftest.err conftest.$ac_objext \
21563 conftest$ac_exeext conftest.$ac_ext
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21566 $as_echo "$ac_cv_working_alloca_h" >&6; }
21567 if test $ac_cv_working_alloca_h = yes; then
21569 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21574 $as_echo_n "checking for alloca... " >&6; }
21575 if ${ac_cv_func_alloca_works+:} false; then :
21576 $as_echo_n "(cached) " >&6
21578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21579 /* end confdefs.h. */
21581 # define alloca __builtin_alloca
21584 # include <malloc.h>
21585 # define alloca _alloca
21587 # ifdef HAVE_ALLOCA_H
21588 # include <alloca.h>
21593 # ifndef alloca /* predefined by HP cc +Olibcalls */
21594 void *alloca (size_t);
21604 char *p = (char *) alloca (1);
21610 if ac_fn_c_try_link "$LINENO"; then :
21611 ac_cv_func_alloca_works=yes
21613 ac_cv_func_alloca_works=no
21615 rm -f core conftest.err conftest.$ac_objext \
21616 conftest$ac_exeext conftest.$ac_ext
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21619 $as_echo "$ac_cv_func_alloca_works" >&6; }
21621 if test $ac_cv_func_alloca_works = yes; then
21623 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21626 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21627 # that cause trouble. Some versions do not even contain alloca or
21628 # contain a buggy version. If you still want to use their alloca,
21629 # use ar to extract alloca.o from them instead of compiling alloca.c.
21631 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21633 $as_echo "#define C_ALLOCA 1" >>confdefs.h
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21637 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21638 if ${ac_cv_os_cray+:} false; then :
21639 $as_echo_n "(cached) " >&6
21641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21642 /* end confdefs.h. */
21643 #if defined CRAY && ! defined CRAY2
21650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21651 $EGREP "webecray" >/dev/null 2>&1; then :
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21660 $as_echo "$ac_cv_os_cray" >&6; }
21661 if test $ac_cv_os_cray = yes; then
21662 for ac_func in _getb67 GETB67 getb67; do
21663 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21664 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21665 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21667 cat >>confdefs.h <<_ACEOF
21668 #define CRAY_STACKSEG_END $ac_func
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21678 $as_echo_n "checking stack direction for C alloca... " >&6; }
21679 if ${ac_cv_c_stack_direction+:} false; then :
21680 $as_echo_n "(cached) " >&6
21682 if test "$cross_compiling" = yes; then :
21683 ac_cv_c_stack_direction=0
21685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21686 /* end confdefs.h. */
21687 $ac_includes_default
21689 find_stack_direction (int *addr, int depth)
21691 int dir, dummy = 0;
21694 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21695 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21696 return dir + dummy;
21700 main (int argc, char **argv)
21702 return find_stack_direction (0, argc + !argv + 20) < 0;
21705 if ac_fn_c_try_run "$LINENO"; then :
21706 ac_cv_c_stack_direction=1
21708 ac_cv_c_stack_direction=-1
21710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21711 conftest.$ac_objext conftest.beam conftest.$ac_ext
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21716 $as_echo "$ac_cv_c_stack_direction" >&6; }
21717 cat >>confdefs.h <<_ACEOF
21718 #define STACK_DIRECTION $ac_cv_c_stack_direction
21724 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
21725 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
21731 cat >>confdefs.h <<_ACEOF
21732 #define HAVE_DECL_STRERROR_R $ac_have_decl
21735 for ac_func in strerror_r
21737 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21738 if test "x$ac_cv_func_strerror_r" = xyes; then :
21739 cat >>confdefs.h <<_ACEOF
21740 #define HAVE_STRERROR_R 1
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
21747 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
21748 if ${ac_cv_func_strerror_r_char_p+:} false; then :
21749 $as_echo_n "(cached) " >&6
21752 ac_cv_func_strerror_r_char_p=no
21753 if test $ac_cv_have_decl_strerror_r = yes; then
21754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21755 /* end confdefs.h. */
21756 $ac_includes_default
21762 char x = *strerror_r (0, buf, sizeof buf);
21763 char *p = strerror_r (0, buf, sizeof buf);
21770 if ac_fn_c_try_compile "$LINENO"; then :
21771 ac_cv_func_strerror_r_char_p=yes
21773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21775 # strerror_r is not declared. Choose between
21776 # systems that have relatively inaccessible declarations for the
21777 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
21778 # former has a strerror_r that returns char*, while the latter
21779 # has a strerror_r that returns `int'.
21780 # This test should segfault on the DEC system.
21781 if test "$cross_compiling" = yes; then :
21784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21785 /* end confdefs.h. */
21786 $ac_includes_default
21787 extern char *strerror_r ();
21792 char x = *strerror_r (0, buf, sizeof buf);
21793 return ! isalpha (x);
21798 if ac_fn_c_try_run "$LINENO"; then :
21799 ac_cv_func_strerror_r_char_p=yes
21801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21802 conftest.$ac_objext conftest.beam conftest.$ac_ext
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
21809 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21810 if test $ac_cv_func_strerror_r_char_p = yes; then
21812 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
21817 ac_busted_vpath_in_make=no
21819 *-*-irix6.1*) # 64 bit only
21822 *-*-irix6*) # 6.2 (and later?)
21823 ac_busted_vpath_in_make=yes
21826 ac_busted_vpath_in_make=yes
21829 ac_busted_vpath_in_make=yes
21833 case "$ac_busted_vpath_in_make$srcdir" in
21836 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
21838 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
21846 # Was *-*-aix[[4-9]]*
21847 # XXX only verified thru AIX6. But...
21848 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
21849 # that this support would be in 5.3, removed in 6, and added back.
21851 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
21852 # (returning ENOSYS). I didn't check 4.2. If, in the future,
21853 # IBM pulls its thumbs out long enough to implement clock_settime,
21854 # this conditional will need to change. Maybe use AC_TRY_RUN
21855 # instead to try to set the time to itself and check errno.
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21859 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21860 if ${ac_cv_search_clock_gettime+:} false; then :
21861 $as_echo_n "(cached) " >&6
21863 ac_func_search_save_LIBS=$LIBS
21864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21865 /* end confdefs.h. */
21867 /* Override any GCC internal prototype to avoid an error.
21868 Use char because int might match the return type of a GCC
21869 builtin and then its argument prototype would still apply. */
21873 char clock_gettime ();
21877 return clock_gettime ();
21882 for ac_lib in '' rt; do
21883 if test -z "$ac_lib"; then
21884 ac_res="none required"
21887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21889 if ac_fn_c_try_link "$LINENO"; then :
21890 ac_cv_search_clock_gettime=$ac_res
21892 rm -f core conftest.err conftest.$ac_objext \
21894 if ${ac_cv_search_clock_gettime+:} false; then :
21898 if ${ac_cv_search_clock_gettime+:} false; then :
21901 ac_cv_search_clock_gettime=no
21903 rm conftest.$ac_ext
21904 LIBS=$ac_func_search_save_LIBS
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21907 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21908 ac_res=$ac_cv_search_clock_gettime
21909 if test "$ac_res" != no; then :
21910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21911 case "$ac_cv_search_clock_gettime" in
21912 'none required') ;;
21914 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
21919 for ac_func in clock_getres clock_gettime clock_settime
21921 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21922 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21923 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21924 cat >>confdefs.h <<_ACEOF
21925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21934 for ac_func in getclock stime timegm strlcpy strlcat
21936 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21937 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21938 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21939 cat >>confdefs.h <<_ACEOF
21940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
21951 $as_echo_n "checking for library containing snprintb... " >&6; }
21952 if ${ac_cv_search_snprintb+:} false; then :
21953 $as_echo_n "(cached) " >&6
21955 ac_func_search_save_LIBS=$LIBS
21956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21957 /* end confdefs.h. */
21959 /* Override any GCC internal prototype to avoid an error.
21960 Use char because int might match the return type of a GCC
21961 builtin and then its argument prototype would still apply. */
21969 return snprintb ();
21974 for ac_lib in '' util; do
21975 if test -z "$ac_lib"; then
21976 ac_res="none required"
21979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21981 if ac_fn_c_try_link "$LINENO"; then :
21982 ac_cv_search_snprintb=$ac_res
21984 rm -f core conftest.err conftest.$ac_objext \
21986 if ${ac_cv_search_snprintb+:} false; then :
21990 if ${ac_cv_search_snprintb+:} false; then :
21993 ac_cv_search_snprintb=no
21995 rm conftest.$ac_ext
21996 LIBS=$ac_func_search_save_LIBS
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
21999 $as_echo "$ac_cv_search_snprintb" >&6; }
22000 ac_res=$ac_cv_search_snprintb
22001 if test "$ac_res" != no; then :
22002 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22003 case "$ac_cv_search_snprintb" in
22004 'none required') ;;
22006 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
22009 $as_echo "#define USE_SNPRINTB 1" >>confdefs.h
22015 for ac_header in errno.h sys/socket.h sys/types.h time.h
22017 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22018 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22019 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22020 cat >>confdefs.h <<_ACEOF
22021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22028 for ac_header in net/if.h
22030 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
22031 #ifdef HAVE_SYS_SOCKET_H
22032 # include <sys/socket.h>
22036 if test "x$ac_cv_header_net_if_h" = xyes; then :
22037 cat >>confdefs.h <<_ACEOF
22038 #define HAVE_NET_IF_H 1
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
22048 $as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
22049 if ${ntp_cv_predecl_mpinfou+:} false; then :
22050 $as_echo_n "(cached) " >&6
22053 np_cv_predecl_mpinfou=no
22054 case "$ac_cv_header_net_if_h" in
22056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22057 /* end confdefs.h. */
22059 typedef union mpinfou {
22060 struct pdk_mpinfo *pdkptr;
22061 struct mpinfo *pikptr;
22063 #ifdef HAVE_SYS_SOCKET_H
22064 # include <sys/socket.h>
22066 #include <net/if.h>
22078 if ac_fn_c_try_compile "$LINENO"; then :
22080 ntp_cv_predecl_mpinfou=yes
22081 ac_cv_header_net_if_h=yes
22085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
22091 $as_echo "$ntp_cv_predecl_mpinfou" >&6; }
22092 case "$ntp_cv_predecl_mpinfou" in
22094 cat >>confdefs.h <<_ACEOF
22095 #ifndef MPINFOU_PREDECLARED
22096 # define MPINFOU_PREDECLARED
22097 typedef union mpinfou {
22098 struct pdk_mpinfo *pdkptr;
22099 struct mpinfo *pikptr;
22109 for ac_header in linux/if_addr.h
22111 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
22112 #ifdef HAVE_SYS_SOCKET_H
22113 # include <sys/socket.h>
22117 if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
22118 cat >>confdefs.h <<_ACEOF
22119 #define HAVE_LINUX_IF_ADDR_H 1
22127 $as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h
22131 for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
22133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22134 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22135 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22136 cat >>confdefs.h <<_ACEOF
22137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22144 # sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
22145 for ac_header in sys/sysctl.h
22147 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
22148 #if defined HAVE_SYS_PARAM_H
22149 # include <sys/param.h>
22153 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
22154 cat >>confdefs.h <<_ACEOF
22155 #define HAVE_SYS_SYSCTL_H 1
22162 for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
22164 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22165 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22166 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22167 cat >>confdefs.h <<_ACEOF
22168 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22176 for ac_header in resolv.h
22178 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
22179 #ifdef HAVE_SYS_TYPES_H
22180 # include <sys/types.h>
22182 #ifdef HAVE_NETINET_IN_H
22183 # include <netinet/in.h>
22185 #ifdef HAVE_ARPA_NAMESER_H
22186 # include <arpa/nameser.h>
22190 if test "x$ac_cv_header_resolv_h" = xyes; then :
22191 cat >>confdefs.h <<_ACEOF
22192 #define HAVE_RESOLV_H 1
22200 for ac_header in net/if_var.h
22202 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
22203 #if HAVE_SYS_TYPES_H
22204 # include <sys/types.h>
22206 #ifdef HAVE_SYS_SOCKET_H
22207 # include <sys/socket.h>
22209 #ifdef HAVE_NETINET_IN_H
22210 # include <netinet/in.h>
22212 #ifdef HAVE_NET_IF_H
22213 # include <net/if.h>
22217 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
22218 cat >>confdefs.h <<_ACEOF
22219 #define HAVE_NET_IF_VAR_H 1
22227 for ac_header in netinet/ip.h netinet/in_var.h
22229 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22230 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22231 #ifdef HAVE_SYS_TYPES_H
22232 # include <sys/types.h>
22234 #ifdef HAVE_SYS_SOCKET_H
22235 # include <sys/socket.h>
22237 #ifdef HAVE_NET_IF_H
22238 # include <net/if.h>
22240 #ifdef HAVE_NETINET_IN_H
22241 # include <netinet/in.h>
22243 #ifdef HAVE_NET_IF_VAR_H
22244 # include <net/if_var.h>
22246 #ifdef HAVE_NETINET_IN_SYSTM_H
22247 # include <netinet/in_systm.h>
22251 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22252 cat >>confdefs.h <<_ACEOF
22253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22261 # HMS: Do we need to check for -lsocket before or after these tests?
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
22263 $as_echo_n "checking for library containing inet_pton... " >&6; }
22264 if ${ac_cv_search_inet_pton+:} false; then :
22265 $as_echo_n "(cached) " >&6
22267 ac_func_search_save_LIBS=$LIBS
22268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22269 /* end confdefs.h. */
22271 /* Override any GCC internal prototype to avoid an error.
22272 Use char because int might match the return type of a GCC
22273 builtin and then its argument prototype would still apply. */
22281 return inet_pton ();
22286 for ac_lib in '' nsl; do
22287 if test -z "$ac_lib"; then
22288 ac_res="none required"
22291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22293 if ac_fn_c_try_link "$LINENO"; then :
22294 ac_cv_search_inet_pton=$ac_res
22296 rm -f core conftest.err conftest.$ac_objext \
22298 if ${ac_cv_search_inet_pton+:} false; then :
22302 if ${ac_cv_search_inet_pton+:} false; then :
22305 ac_cv_search_inet_pton=no
22307 rm conftest.$ac_ext
22308 LIBS=$ac_func_search_save_LIBS
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
22311 $as_echo "$ac_cv_search_inet_pton" >&6; }
22312 ac_res=$ac_cv_search_inet_pton
22313 if test "$ac_res" != no; then :
22314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22315 case "$ac_cv_search_inet_pton" in
22316 'none required') ;;
22318 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
22324 $as_echo_n "checking for library containing inet_ntop... " >&6; }
22325 if ${ac_cv_search_inet_ntop+:} false; then :
22326 $as_echo_n "(cached) " >&6
22328 ac_func_search_save_LIBS=$LIBS
22329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22330 /* end confdefs.h. */
22332 /* Override any GCC internal prototype to avoid an error.
22333 Use char because int might match the return type of a GCC
22334 builtin and then its argument prototype would still apply. */
22342 return inet_ntop ();
22347 for ac_lib in '' resolv; do
22348 if test -z "$ac_lib"; then
22349 ac_res="none required"
22352 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
22354 if ac_fn_c_try_link "$LINENO"; then :
22355 ac_cv_search_inet_ntop=$ac_res
22357 rm -f core conftest.err conftest.$ac_objext \
22359 if ${ac_cv_search_inet_ntop+:} false; then :
22363 if ${ac_cv_search_inet_ntop+:} false; then :
22366 ac_cv_search_inet_ntop=no
22368 rm conftest.$ac_ext
22369 LIBS=$ac_func_search_save_LIBS
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
22372 $as_echo "$ac_cv_search_inet_ntop" >&6; }
22373 ac_res=$ac_cv_search_inet_ntop
22374 if test "$ac_res" != no; then :
22375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22376 case "$ac_cv_search_inet_ntop" in
22377 'none required') ;;
22379 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
22385 # [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to
22386 # avoid keying on the OS name: If we find socket functions in
22387 # libsocket, next try for them in libxnet without libsocket, if found,
22388 # list both. If we simply tested libxnet first, we would find the
22389 # functions there and never add libsocket. See also [Bug 660]
22390 # http://bugs.ntp.org/show_bug.cgi?id=660#c9
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
22393 $as_echo_n "checking for library containing setsockopt... " >&6; }
22394 if ${ac_cv_search_setsockopt+:} 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 setsockopt ();
22411 return setsockopt ();
22416 for ac_lib in '' socket; 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_setsockopt=$ac_res
22426 rm -f core conftest.err conftest.$ac_objext \
22428 if ${ac_cv_search_setsockopt+:} false; then :
22432 if ${ac_cv_search_setsockopt+:} false; then :
22435 ac_cv_search_setsockopt=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_setsockopt" >&5
22441 $as_echo "$ac_cv_search_setsockopt" >&6; }
22442 ac_res=$ac_cv_search_setsockopt
22443 if test "$ac_res" != no; then :
22444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22445 case "$ac_cv_search_setsockopt" in
22446 'none required') ;;
22448 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
22453 case "$ac_cv_search_setsockopt" in
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
22457 $as_echo_n "checking for library containing getsockopt... " >&6; }
22458 if ${ac_cv_search_getsockopt+:} false; then :
22459 $as_echo_n "(cached) " >&6
22461 ac_func_search_save_LIBS=$LIBS
22462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22463 /* end confdefs.h. */
22465 /* Override any GCC internal prototype to avoid an error.
22466 Use char because int might match the return type of a GCC
22467 builtin and then its argument prototype would still apply. */
22471 char getsockopt ();
22475 return getsockopt ();
22480 for ac_lib in '' xnet; do
22481 if test -z "$ac_lib"; then
22482 ac_res="none required"
22485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22487 if ac_fn_c_try_link "$LINENO"; then :
22488 ac_cv_search_getsockopt=$ac_res
22490 rm -f core conftest.err conftest.$ac_objext \
22492 if ${ac_cv_search_getsockopt+:} false; then :
22496 if ${ac_cv_search_getsockopt+:} false; then :
22499 ac_cv_search_getsockopt=no
22501 rm conftest.$ac_ext
22502 LIBS=$ac_func_search_save_LIBS
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
22505 $as_echo "$ac_cv_search_getsockopt" >&6; }
22506 ac_res=$ac_cv_search_getsockopt
22507 if test "$ac_res" != no; then :
22508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22509 case "$ac_cv_search_getsockopt" in
22510 'none required') ;;
22512 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
22517 # XXX Possible trouble here - reading the comments above and looking at the
22518 # code below I wonder if we'll add -lxnet when we don't need it.
22519 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
22520 # there when it is not needed?
22521 case "$ac_cv_search_getsockopt" in
22523 LIBS="-lxnet -lsocket $saved_LIBS"
22525 *) LIBS="-lsocket $saved_LIBS"
22530 { saved_LIBS=; unset saved_LIBS;}
22532 # Bug 2427 - look for recvmsg here.
22533 for ac_func in recvmsg
22535 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
22536 if test "x$ac_cv_func_recvmsg" = xyes; then :
22537 cat >>confdefs.h <<_ACEOF
22538 #define HAVE_RECVMSG 1
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22546 $as_echo_n "checking for inline... " >&6; }
22547 if ${ac_cv_c_inline+:} false; then :
22548 $as_echo_n "(cached) " >&6
22551 for ac_kw in inline __inline__ __inline; do
22552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22553 /* end confdefs.h. */
22554 #ifndef __cplusplus
22556 static $ac_kw foo_t static_foo () {return 0; }
22557 $ac_kw foo_t foo () {return 0; }
22561 if ac_fn_c_try_compile "$LINENO"; then :
22562 ac_cv_c_inline=$ac_kw
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565 test "$ac_cv_c_inline" != no && break
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22570 $as_echo "$ac_cv_c_inline" >&6; }
22572 case $ac_cv_c_inline in
22575 case $ac_cv_c_inline in
22577 *) ac_val=$ac_cv_c_inline;;
22579 cat >>confdefs.h <<_ACEOF
22580 #ifndef __cplusplus
22581 #define inline $ac_val
22588 case "$ac_cv_c_inline" in
22593 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
22598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22599 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22600 if ${ac_cv_header_time+:} false; then :
22601 $as_echo_n "(cached) " >&6
22603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22604 /* end confdefs.h. */
22605 #include <sys/types.h>
22606 #include <sys/time.h>
22612 if ((struct tm *) 0)
22618 if ac_fn_c_try_compile "$LINENO"; then :
22619 ac_cv_header_time=yes
22621 ac_cv_header_time=no
22623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22626 $as_echo "$ac_cv_header_time" >&6; }
22627 if test $ac_cv_header_time = yes; then
22629 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22633 # The cast to long int works around a bug in the HP C Compiler
22634 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22635 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22636 # This bug is HP SR number 8606223364.
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
22638 $as_echo_n "checking size of time_t... " >&6; }
22639 if ${ac_cv_sizeof_time_t+:} false; then :
22640 $as_echo_n "(cached) " >&6
22642 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
22645 if test "$ac_cv_type_time_t" = yes; then
22646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22648 as_fn_error 77 "cannot compute sizeof (time_t)
22649 See \`config.log' for more details" "$LINENO" 5; }
22651 ac_cv_sizeof_time_t=0
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
22657 $as_echo "$ac_cv_sizeof_time_t" >&6; }
22661 cat >>confdefs.h <<_ACEOF
22662 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22667 $as_echo_n "checking whether char is unsigned... " >&6; }
22668 if ${ac_cv_c_char_unsigned+:} false; then :
22669 $as_echo_n "(cached) " >&6
22671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22672 /* end confdefs.h. */
22673 $ac_includes_default
22677 static int test_array [1 - 2 * !(((char) -1) < 0)];
22678 test_array [0] = 0;
22679 return test_array [0];
22685 if ac_fn_c_try_compile "$LINENO"; then :
22686 ac_cv_c_char_unsigned=no
22688 ac_cv_c_char_unsigned=yes
22690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22693 $as_echo "$ac_cv_c_char_unsigned" >&6; }
22694 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22695 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22698 # The cast to long int works around a bug in the HP C Compiler
22699 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22700 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22701 # This bug is HP SR number 8606223364.
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
22703 $as_echo_n "checking size of signed char... " >&6; }
22704 if ${ac_cv_sizeof_signed_char+:} false; then :
22705 $as_echo_n "(cached) " >&6
22707 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
22710 if test "$ac_cv_type_signed_char" = yes; then
22711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22713 as_fn_error 77 "cannot compute sizeof (signed char)
22714 See \`config.log' for more details" "$LINENO" 5; }
22716 ac_cv_sizeof_signed_char=0
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
22722 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
22726 cat >>confdefs.h <<_ACEOF
22727 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
22731 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
22732 if test "x$ac_cv_type_s_char" = xyes; then :
22734 cat >>confdefs.h <<_ACEOF
22735 #define HAVE_S_CHAR 1
22740 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22741 if test "x$ac_cv_type_long_long" = xyes; then :
22743 cat >>confdefs.h <<_ACEOF
22744 #define HAVE_LONG_LONG 1
22750 # The cast to long int works around a bug in the HP C Compiler
22751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22753 # This bug is HP SR number 8606223364.
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
22755 $as_echo_n "checking size of short... " >&6; }
22756 if ${ac_cv_sizeof_short+:} false; then :
22757 $as_echo_n "(cached) " >&6
22759 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
22762 if test "$ac_cv_type_short" = yes; then
22763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22765 as_fn_error 77 "cannot compute sizeof (short)
22766 See \`config.log' for more details" "$LINENO" 5; }
22768 ac_cv_sizeof_short=0
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
22774 $as_echo "$ac_cv_sizeof_short" >&6; }
22778 cat >>confdefs.h <<_ACEOF
22779 #define SIZEOF_SHORT $ac_cv_sizeof_short
22783 # The cast to long int works around a bug in the HP C Compiler
22784 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22785 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22786 # This bug is HP SR number 8606223364.
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
22788 $as_echo_n "checking size of int... " >&6; }
22789 if ${ac_cv_sizeof_int+:} false; then :
22790 $as_echo_n "(cached) " >&6
22792 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
22795 if test "$ac_cv_type_int" = yes; then
22796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22798 as_fn_error 77 "cannot compute sizeof (int)
22799 See \`config.log' for more details" "$LINENO" 5; }
22806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
22807 $as_echo "$ac_cv_sizeof_int" >&6; }
22811 cat >>confdefs.h <<_ACEOF
22812 #define SIZEOF_INT $ac_cv_sizeof_int
22816 # The cast to long int works around a bug in the HP C Compiler
22817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22819 # This bug is HP SR number 8606223364.
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
22821 $as_echo_n "checking size of long... " >&6; }
22822 if ${ac_cv_sizeof_long+:} false; then :
22823 $as_echo_n "(cached) " >&6
22825 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
22828 if test "$ac_cv_type_long" = yes; then
22829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22831 as_fn_error 77 "cannot compute sizeof (long)
22832 See \`config.log' for more details" "$LINENO" 5; }
22834 ac_cv_sizeof_long=0
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
22840 $as_echo "$ac_cv_sizeof_long" >&6; }
22844 cat >>confdefs.h <<_ACEOF
22845 #define SIZEOF_LONG $ac_cv_sizeof_long
22850 case "$ac_cv_type_long_long" in
22854 # The cast to long int works around a bug in the HP C Compiler
22855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22857 # This bug is HP SR number 8606223364.
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
22859 $as_echo_n "checking size of long long... " >&6; }
22860 if ${ac_cv_sizeof_long_long+:} false; then :
22861 $as_echo_n "(cached) " >&6
22863 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
22866 if test "$ac_cv_type_long_long" = yes; then
22867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22869 as_fn_error 77 "cannot compute sizeof (long long)
22870 See \`config.log' for more details" "$LINENO" 5; }
22872 ac_cv_sizeof_long_long=0
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
22878 $as_echo "$ac_cv_sizeof_long_long" >&6; }
22882 cat >>confdefs.h <<_ACEOF
22883 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22890 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
22892 # We have a typedef for s_char. Might as well believe it...
22895 # We have signed chars, can't say 'signed char', no s_char typedef.
22897 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22901 # We have signed chars, can say 'signed char', no s_char typedef.
22903 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22907 # We have unsigned chars, can't say 'signed char', no s_char typedef.
22908 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
22911 # We have unsigned chars, can say 'signed char', no s_char typedef.
22913 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22919 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22920 if ${ac_cv_type_uid_t+:} false; then :
22921 $as_echo_n "(cached) " >&6
22923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22924 /* end confdefs.h. */
22925 #include <sys/types.h>
22928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22929 $EGREP "uid_t" >/dev/null 2>&1; then :
22930 ac_cv_type_uid_t=yes
22932 ac_cv_type_uid_t=no
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22938 $as_echo "$ac_cv_type_uid_t" >&6; }
22939 if test $ac_cv_type_uid_t = no; then
22941 $as_echo "#define uid_t int" >>confdefs.h
22944 $as_echo "#define gid_t int" >>confdefs.h
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
22954 $as_echo_n "checking if we're including debugging code... " >&6; }
22955 # Check whether --enable-debugging was given.
22956 if test "${enable_debugging+set}" = set; then :
22957 enableval=$enable_debugging; ntp_ok=$enableval
22966 $as_echo "#define DEBUG 1" >>confdefs.h
22969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22970 $as_echo "$ntp_ok" >&6; }
22974 # check if we can compile with pthreads
22975 for ac_header in semaphore.h
22977 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
22978 if test "x$ac_cv_header_semaphore_h" = xyes; then :
22979 cat >>confdefs.h <<_ACEOF
22980 #define HAVE_SEMAPHORE_H 1
22987 for ac_func in socketpair
22989 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
22990 if test "x$ac_cv_func_socketpair" = xyes; then :
22991 cat >>confdefs.h <<_ACEOF
22992 #define HAVE_SOCKETPAIR 1
22998 # Check whether --enable-thread-support was given.
22999 if test "${enable_thread_support+set}" = set; then :
23000 enableval=$enable_thread_support;
23002 enable_thread_support=yes
23007 case "$enable_thread_support" in
23010 ol_found_pthreads=no
23015 ac_cpp='$CPP $CPPFLAGS'
23016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23020 # OpenLDAP --with-threads
23022 # Check whether --with-threads was given.
23023 if test "${with_threads+set}" = set; then :
23024 withval=$with_threads;
23026 for ol_val in auto nt posix mach pth lwp yes no manual ; do
23027 if test "$withval" = "$ol_val" ; then
23031 if test "$ol_arg" = "invalid" ; then
23032 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
23034 ol_with_threads="$ol_arg"
23037 ol_with_threads="auto"
23039 # end --with-threads
23042 case "$ol_with_threads$host" in
23043 auto*-*-solaris2.[0-6])
23051 *-*-aix*) if test -z "$CC" ; then
23052 case "$ol_with_threads" in
23053 auto | yes | posix) ol_aix_threads=yes ;;
23059 if test $ol_aix_threads = yes ; then
23060 if test -z "${CC}" ; then
23061 for ac_prog in cc_r xlc_r cc
23063 # Extract the first word of "$ac_prog", so it can be a program name with args.
23064 set dummy $ac_prog; ac_word=$2
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23066 $as_echo_n "checking for $ac_word... " >&6; }
23067 if ${ac_cv_prog_CC+:} false; then :
23068 $as_echo_n "(cached) " >&6
23070 if test -n "$CC"; then
23071 ac_cv_prog_CC="$CC" # Let the user override the test.
23073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23074 for as_dir in $PATH
23077 test -z "$as_dir" && as_dir=.
23078 for ac_exec_ext in '' $ac_executable_extensions; do
23079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23080 ac_cv_prog_CC="$ac_prog"
23081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23091 if test -n "$CC"; then
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
23093 $as_echo "$CC" >&6; }
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23096 $as_echo "no" >&6; }
23100 test -n "$CC" && break
23104 if test "$CC" = cc ; then
23105 if test $ol_with_threads != auto ; then
23106 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
23108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
23109 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
23115 case ${CC} in cc_r | xlc_r)
23116 ol_with_threads=posix
23117 ol_cv_pthread_create=yes
23123 # OpenLDAP --with-yielding_select
23125 # Check whether --with-yielding_select was given.
23126 if test "${with_yielding_select+set}" = set; then :
23127 withval=$with_yielding_select;
23129 for ol_val in auto yes no manual ; do
23130 if test "$withval" = "$ol_val" ; then
23134 if test "$ol_arg" = "invalid" ; then
23135 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
23137 ol_with_yielding_select="$ol_arg"
23140 ol_with_yielding_select="auto"
23142 # end --with-yielding_select
23145 case $ol_with_threads in auto | yes | nt)
23148 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
23149 if test "x$ac_cv_func__beginthread" = xyes; then :
23154 if test $ac_cv_func__beginthread = yes ; then
23156 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
23158 ol_cv_nt_threads=yes
23162 if test "$ol_cv_nt_threads" = yes ; then
23164 ol_with_threads=found
23165 ol_with_yielding_select=yes
23168 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
23171 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
23175 if test $ol_with_threads = nt ; then
23176 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
23181 case $ol_with_threads in auto | yes | posix)
23183 for ac_header in pthread.h
23185 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
23186 if test "x$ac_cv_header_pthread_h" = xyes; then :
23187 cat >>confdefs.h <<_ACEOF
23188 #define HAVE_PTHREAD_H 1
23196 if test $ac_cv_header_pthread_h = yes ; then
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
23198 $as_echo_n "checking POSIX thread version... " >&6; }
23199 if ${ol_cv_pthread_version+:} false; then :
23200 $as_echo_n "(cached) " >&6
23203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23204 /* end confdefs.h. */
23206 # include <pthread.h>
23212 int i = PTHREAD_CREATE_JOINABLE;
23218 if ac_fn_c_try_compile "$LINENO"; then :
23220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23221 /* end confdefs.h. */
23222 #include <pthread.h>
23225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23226 $EGREP "pthread_detach" >/dev/null 2>&1; then :
23227 ol_cv_pthread_version=10
23229 ol_cv_pthread_version=8
23235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23236 /* end confdefs.h. */
23238 # include <pthread.h>
23239 # ifdef PTHREAD_CREATE_UNDETACHED
23244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23245 $EGREP "draft7" >/dev/null 2>&1; then :
23246 ol_cv_pthread_version=7
23249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23250 /* end confdefs.h. */
23251 #include <pthread.h>
23254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23255 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
23256 ol_cv_pthread_version=6
23259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23260 /* end confdefs.h. */
23262 # include <pthread.h>
23263 #ifdef PTHREAD_MUTEX_INITIALIZER
23268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23269 $EGREP "draft5" >/dev/null 2>&1; then :
23270 ol_cv_pthread_version=5
23272 ol_cv_pthread_version=4
23283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
23287 $as_echo "$ol_cv_pthread_version" >&6; }
23290 if test $ol_cv_pthread_version != 0 ; then
23292 cat >>confdefs.h <<_ACEOF
23293 #define HAVE_PTHREADS $ol_cv_pthread_version
23297 as_fn_error $? "unknown pthread version" "$LINENO" 5
23300 # consider threads found
23301 ol_with_threads=found
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
23305 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
23306 if ${ol_cv_header_linux_threads+:} false; then :
23307 $as_echo_n "(cached) " >&6
23309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23310 /* end confdefs.h. */
23311 #include <pthread.h>
23313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23314 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
23315 ol_cv_header_linux_threads=yes
23317 ol_cv_header_linux_threads=no
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
23324 $as_echo "$ol_cv_header_linux_threads" >&6; }
23325 if test $ol_cv_header_linux_threads = yes; then
23327 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
23333 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
23334 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
23335 $as_echo_n "(cached) " >&6
23337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23338 /* end confdefs.h. */
23339 #include <pthread.h>
23340 #ifdef _POSIX_THREAD_IS_GNU_PTH
23345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23346 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
23347 ol_cv_header_gnu_pth_pthread_h=yes
23349 ol_cv_header_gnu_pth_pthread_h=no
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
23356 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
23359 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
23360 for ac_header in sched.h
23362 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
23363 if test "x$ac_cv_header_sched_h" = xyes; then :
23364 cat >>confdefs.h <<_ACEOF
23365 #define HAVE_SCHED_H 1
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
23376 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
23377 if ${ol_cv_pthread_create+:} false; then :
23378 $as_echo_n "(cached) " >&6
23381 if test "$cross_compiling" = yes; then :
23382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23383 /* end confdefs.h. */
23385 /* pthread test headers */
23386 #include <pthread.h>
23387 #if HAVE_PTHREADS < 7
23391 #define NULL (void*)0
23394 static void *task(p)
23397 return (void *) (p == NULL);
23404 /* pthread test function */
23405 #ifndef PTHREAD_CREATE_DETACHED
23406 #define PTHREAD_CREATE_DETACHED 1
23410 int detach = PTHREAD_CREATE_DETACHED;
23412 #if HAVE_PTHREADS > 4
23413 /* Final pthreads */
23414 pthread_attr_t attr;
23416 status = pthread_attr_init(&attr);
23417 if( status ) return status;
23419 #if HAVE_PTHREADS < 7
23420 status = pthread_attr_setdetachstate(&attr, &detach);
23421 if( status < 0 ) status = errno;
23423 status = pthread_attr_setdetachstate(&attr, detach);
23425 if( status ) return status;
23426 status = pthread_create( &t, &attr, task, NULL );
23427 #if HAVE_PTHREADS < 7
23428 if( status < 0 ) status = errno;
23430 if( status ) return status;
23432 /* Draft 4 pthreads */
23433 status = pthread_create( &t, pthread_attr_default, task, NULL );
23434 if( status ) return errno;
23436 /* give thread a chance to complete */
23437 /* it should remain joinable and hence detachable */
23440 status = pthread_detach( &t );
23441 if( status ) return errno;
23444 #ifdef HAVE_LINUX_THREADS
23445 pthread_kill_other_threads_np();
23454 if ac_fn_c_try_link "$LINENO"; then :
23455 ol_cv_pthread_create=yes
23457 ol_cv_pthread_create=no
23459 rm -f core conftest.err conftest.$ac_objext \
23460 conftest$ac_exeext conftest.$ac_ext
23462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23463 /* end confdefs.h. */
23466 /* pthread test headers */
23467 #include <pthread.h>
23468 #if HAVE_PTHREADS < 7
23472 #define NULL (void*)0
23475 static void *task(p)
23478 return (void *) (p == NULL);
23482 int main(argc, argv)
23487 /* pthread test function */
23488 #ifndef PTHREAD_CREATE_DETACHED
23489 #define PTHREAD_CREATE_DETACHED 1
23493 int detach = PTHREAD_CREATE_DETACHED;
23495 #if HAVE_PTHREADS > 4
23496 /* Final pthreads */
23497 pthread_attr_t attr;
23499 status = pthread_attr_init(&attr);
23500 if( status ) return status;
23502 #if HAVE_PTHREADS < 7
23503 status = pthread_attr_setdetachstate(&attr, &detach);
23504 if( status < 0 ) status = errno;
23506 status = pthread_attr_setdetachstate(&attr, detach);
23508 if( status ) return status;
23509 status = pthread_create( &t, &attr, task, NULL );
23510 #if HAVE_PTHREADS < 7
23511 if( status < 0 ) status = errno;
23513 if( status ) return status;
23515 /* Draft 4 pthreads */
23516 status = pthread_create( &t, pthread_attr_default, task, NULL );
23517 if( status ) return errno;
23519 /* give thread a chance to complete */
23520 /* it should remain joinable and hence detachable */
23523 status = pthread_detach( &t );
23524 if( status ) return errno;
23527 #ifdef HAVE_LINUX_THREADS
23528 pthread_kill_other_threads_np();
23536 if ac_fn_c_try_run "$LINENO"; then :
23537 ol_cv_pthread_create=yes
23539 ol_cv_pthread_create=no
23541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23542 conftest.$ac_objext conftest.beam conftest.$ac_ext
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
23547 $as_echo "$ol_cv_pthread_create" >&6; }
23549 if test $ol_cv_pthread_create != no ; then
23550 ol_link_threads=posix
23551 ol_link_pthreads=""
23554 # Pthread try link: -kthread (ol_cv_pthread_kthread)
23555 if test "$ol_link_threads" = no ; then
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
23558 $as_echo_n "checking for pthread link with -kthread... " >&6; }
23559 if ${ol_cv_pthread_kthread+:} false; then :
23560 $as_echo_n "(cached) " >&6
23565 LIBS="-kthread $LIBS"
23567 if test "$cross_compiling" = yes; then :
23568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23569 /* end confdefs.h. */
23571 /* pthread test headers */
23572 #include <pthread.h>
23573 #if HAVE_PTHREADS < 7
23577 #define NULL (void*)0
23580 static void *task(p)
23583 return (void *) (p == NULL);
23590 /* pthread test function */
23591 #ifndef PTHREAD_CREATE_DETACHED
23592 #define PTHREAD_CREATE_DETACHED 1
23596 int detach = PTHREAD_CREATE_DETACHED;
23598 #if HAVE_PTHREADS > 4
23599 /* Final pthreads */
23600 pthread_attr_t attr;
23602 status = pthread_attr_init(&attr);
23603 if( status ) return status;
23605 #if HAVE_PTHREADS < 7
23606 status = pthread_attr_setdetachstate(&attr, &detach);
23607 if( status < 0 ) status = errno;
23609 status = pthread_attr_setdetachstate(&attr, detach);
23611 if( status ) return status;
23612 status = pthread_create( &t, &attr, task, NULL );
23613 #if HAVE_PTHREADS < 7
23614 if( status < 0 ) status = errno;
23616 if( status ) return status;
23618 /* Draft 4 pthreads */
23619 status = pthread_create( &t, pthread_attr_default, task, NULL );
23620 if( status ) return errno;
23622 /* give thread a chance to complete */
23623 /* it should remain joinable and hence detachable */
23626 status = pthread_detach( &t );
23627 if( status ) return errno;
23630 #ifdef HAVE_LINUX_THREADS
23631 pthread_kill_other_threads_np();
23640 if ac_fn_c_try_link "$LINENO"; then :
23641 ol_cv_pthread_kthread=yes
23643 ol_cv_pthread_kthread=no
23645 rm -f core conftest.err conftest.$ac_objext \
23646 conftest$ac_exeext conftest.$ac_ext
23648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23649 /* end confdefs.h. */
23652 /* pthread test headers */
23653 #include <pthread.h>
23654 #if HAVE_PTHREADS < 7
23658 #define NULL (void*)0
23661 static void *task(p)
23664 return (void *) (p == NULL);
23668 int main(argc, argv)
23673 /* pthread test function */
23674 #ifndef PTHREAD_CREATE_DETACHED
23675 #define PTHREAD_CREATE_DETACHED 1
23679 int detach = PTHREAD_CREATE_DETACHED;
23681 #if HAVE_PTHREADS > 4
23682 /* Final pthreads */
23683 pthread_attr_t attr;
23685 status = pthread_attr_init(&attr);
23686 if( status ) return status;
23688 #if HAVE_PTHREADS < 7
23689 status = pthread_attr_setdetachstate(&attr, &detach);
23690 if( status < 0 ) status = errno;
23692 status = pthread_attr_setdetachstate(&attr, detach);
23694 if( status ) return status;
23695 status = pthread_create( &t, &attr, task, NULL );
23696 #if HAVE_PTHREADS < 7
23697 if( status < 0 ) status = errno;
23699 if( status ) return status;
23701 /* Draft 4 pthreads */
23702 status = pthread_create( &t, pthread_attr_default, task, NULL );
23703 if( status ) return errno;
23705 /* give thread a chance to complete */
23706 /* it should remain joinable and hence detachable */
23709 status = pthread_detach( &t );
23710 if( status ) return errno;
23713 #ifdef HAVE_LINUX_THREADS
23714 pthread_kill_other_threads_np();
23722 if ac_fn_c_try_run "$LINENO"; then :
23723 ol_cv_pthread_kthread=yes
23725 ol_cv_pthread_kthread=no
23727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23728 conftest.$ac_objext conftest.beam conftest.$ac_ext
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
23737 $as_echo "$ol_cv_pthread_kthread" >&6; }
23739 if test $ol_cv_pthread_kthread = yes ; then
23740 ol_link_pthreads="-kthread"
23741 ol_link_threads=posix
23745 # Pthread try link: -pthread (ol_cv_pthread_pthread)
23746 if test "$ol_link_threads" = no ; then
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
23749 $as_echo_n "checking for pthread link with -pthread... " >&6; }
23750 if ${ol_cv_pthread_pthread+:} false; then :
23751 $as_echo_n "(cached) " >&6
23756 LIBS="-pthread $LIBS"
23758 if test "$cross_compiling" = yes; then :
23759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23760 /* end confdefs.h. */
23762 /* pthread test headers */
23763 #include <pthread.h>
23764 #if HAVE_PTHREADS < 7
23768 #define NULL (void*)0
23771 static void *task(p)
23774 return (void *) (p == NULL);
23781 /* pthread test function */
23782 #ifndef PTHREAD_CREATE_DETACHED
23783 #define PTHREAD_CREATE_DETACHED 1
23787 int detach = PTHREAD_CREATE_DETACHED;
23789 #if HAVE_PTHREADS > 4
23790 /* Final pthreads */
23791 pthread_attr_t attr;
23793 status = pthread_attr_init(&attr);
23794 if( status ) return status;
23796 #if HAVE_PTHREADS < 7
23797 status = pthread_attr_setdetachstate(&attr, &detach);
23798 if( status < 0 ) status = errno;
23800 status = pthread_attr_setdetachstate(&attr, detach);
23802 if( status ) return status;
23803 status = pthread_create( &t, &attr, task, NULL );
23804 #if HAVE_PTHREADS < 7
23805 if( status < 0 ) status = errno;
23807 if( status ) return status;
23809 /* Draft 4 pthreads */
23810 status = pthread_create( &t, pthread_attr_default, task, NULL );
23811 if( status ) return errno;
23813 /* give thread a chance to complete */
23814 /* it should remain joinable and hence detachable */
23817 status = pthread_detach( &t );
23818 if( status ) return errno;
23821 #ifdef HAVE_LINUX_THREADS
23822 pthread_kill_other_threads_np();
23831 if ac_fn_c_try_link "$LINENO"; then :
23832 ol_cv_pthread_pthread=yes
23834 ol_cv_pthread_pthread=no
23836 rm -f core conftest.err conftest.$ac_objext \
23837 conftest$ac_exeext conftest.$ac_ext
23839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23840 /* end confdefs.h. */
23843 /* pthread test headers */
23844 #include <pthread.h>
23845 #if HAVE_PTHREADS < 7
23849 #define NULL (void*)0
23852 static void *task(p)
23855 return (void *) (p == NULL);
23859 int main(argc, argv)
23864 /* pthread test function */
23865 #ifndef PTHREAD_CREATE_DETACHED
23866 #define PTHREAD_CREATE_DETACHED 1
23870 int detach = PTHREAD_CREATE_DETACHED;
23872 #if HAVE_PTHREADS > 4
23873 /* Final pthreads */
23874 pthread_attr_t attr;
23876 status = pthread_attr_init(&attr);
23877 if( status ) return status;
23879 #if HAVE_PTHREADS < 7
23880 status = pthread_attr_setdetachstate(&attr, &detach);
23881 if( status < 0 ) status = errno;
23883 status = pthread_attr_setdetachstate(&attr, detach);
23885 if( status ) return status;
23886 status = pthread_create( &t, &attr, task, NULL );
23887 #if HAVE_PTHREADS < 7
23888 if( status < 0 ) status = errno;
23890 if( status ) return status;
23892 /* Draft 4 pthreads */
23893 status = pthread_create( &t, pthread_attr_default, task, NULL );
23894 if( status ) return errno;
23896 /* give thread a chance to complete */
23897 /* it should remain joinable and hence detachable */
23900 status = pthread_detach( &t );
23901 if( status ) return errno;
23904 #ifdef HAVE_LINUX_THREADS
23905 pthread_kill_other_threads_np();
23913 if ac_fn_c_try_run "$LINENO"; then :
23914 ol_cv_pthread_pthread=yes
23916 ol_cv_pthread_pthread=no
23918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23919 conftest.$ac_objext conftest.beam conftest.$ac_ext
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
23928 $as_echo "$ol_cv_pthread_pthread" >&6; }
23930 if test $ol_cv_pthread_pthread = yes ; then
23931 ol_link_pthreads="-pthread"
23932 ol_link_threads=posix
23936 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
23937 if test "$ol_link_threads" = no ; then
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
23940 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
23941 if ${ol_cv_pthread_pthreads+:} false; then :
23942 $as_echo_n "(cached) " >&6
23947 LIBS="-pthreads $LIBS"
23949 if test "$cross_compiling" = yes; then :
23950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23951 /* end confdefs.h. */
23953 /* pthread test headers */
23954 #include <pthread.h>
23955 #if HAVE_PTHREADS < 7
23959 #define NULL (void*)0
23962 static void *task(p)
23965 return (void *) (p == NULL);
23972 /* pthread test function */
23973 #ifndef PTHREAD_CREATE_DETACHED
23974 #define PTHREAD_CREATE_DETACHED 1
23978 int detach = PTHREAD_CREATE_DETACHED;
23980 #if HAVE_PTHREADS > 4
23981 /* Final pthreads */
23982 pthread_attr_t attr;
23984 status = pthread_attr_init(&attr);
23985 if( status ) return status;
23987 #if HAVE_PTHREADS < 7
23988 status = pthread_attr_setdetachstate(&attr, &detach);
23989 if( status < 0 ) status = errno;
23991 status = pthread_attr_setdetachstate(&attr, detach);
23993 if( status ) return status;
23994 status = pthread_create( &t, &attr, task, NULL );
23995 #if HAVE_PTHREADS < 7
23996 if( status < 0 ) status = errno;
23998 if( status ) return status;
24000 /* Draft 4 pthreads */
24001 status = pthread_create( &t, pthread_attr_default, task, NULL );
24002 if( status ) return errno;
24004 /* give thread a chance to complete */
24005 /* it should remain joinable and hence detachable */
24008 status = pthread_detach( &t );
24009 if( status ) return errno;
24012 #ifdef HAVE_LINUX_THREADS
24013 pthread_kill_other_threads_np();
24022 if ac_fn_c_try_link "$LINENO"; then :
24023 ol_cv_pthread_pthreads=yes
24025 ol_cv_pthread_pthreads=no
24027 rm -f core conftest.err conftest.$ac_objext \
24028 conftest$ac_exeext conftest.$ac_ext
24030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24031 /* end confdefs.h. */
24034 /* pthread test headers */
24035 #include <pthread.h>
24036 #if HAVE_PTHREADS < 7
24040 #define NULL (void*)0
24043 static void *task(p)
24046 return (void *) (p == NULL);
24050 int main(argc, argv)
24055 /* pthread test function */
24056 #ifndef PTHREAD_CREATE_DETACHED
24057 #define PTHREAD_CREATE_DETACHED 1
24061 int detach = PTHREAD_CREATE_DETACHED;
24063 #if HAVE_PTHREADS > 4
24064 /* Final pthreads */
24065 pthread_attr_t attr;
24067 status = pthread_attr_init(&attr);
24068 if( status ) return status;
24070 #if HAVE_PTHREADS < 7
24071 status = pthread_attr_setdetachstate(&attr, &detach);
24072 if( status < 0 ) status = errno;
24074 status = pthread_attr_setdetachstate(&attr, detach);
24076 if( status ) return status;
24077 status = pthread_create( &t, &attr, task, NULL );
24078 #if HAVE_PTHREADS < 7
24079 if( status < 0 ) status = errno;
24081 if( status ) return status;
24083 /* Draft 4 pthreads */
24084 status = pthread_create( &t, pthread_attr_default, task, NULL );
24085 if( status ) return errno;
24087 /* give thread a chance to complete */
24088 /* it should remain joinable and hence detachable */
24091 status = pthread_detach( &t );
24092 if( status ) return errno;
24095 #ifdef HAVE_LINUX_THREADS
24096 pthread_kill_other_threads_np();
24104 if ac_fn_c_try_run "$LINENO"; then :
24105 ol_cv_pthread_pthreads=yes
24107 ol_cv_pthread_pthreads=no
24109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24110 conftest.$ac_objext conftest.beam conftest.$ac_ext
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
24119 $as_echo "$ol_cv_pthread_pthreads" >&6; }
24121 if test $ol_cv_pthread_pthreads = yes ; then
24122 ol_link_pthreads="-pthreads"
24123 ol_link_threads=posix
24127 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
24128 if test "$ol_link_threads" = no ; then
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
24131 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
24132 if ${ol_cv_pthread_mthreads+:} false; then :
24133 $as_echo_n "(cached) " >&6
24138 LIBS="-mthreads $LIBS"
24140 if test "$cross_compiling" = yes; then :
24141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24142 /* end confdefs.h. */
24144 /* pthread test headers */
24145 #include <pthread.h>
24146 #if HAVE_PTHREADS < 7
24150 #define NULL (void*)0
24153 static void *task(p)
24156 return (void *) (p == NULL);
24163 /* pthread test function */
24164 #ifndef PTHREAD_CREATE_DETACHED
24165 #define PTHREAD_CREATE_DETACHED 1
24169 int detach = PTHREAD_CREATE_DETACHED;
24171 #if HAVE_PTHREADS > 4
24172 /* Final pthreads */
24173 pthread_attr_t attr;
24175 status = pthread_attr_init(&attr);
24176 if( status ) return status;
24178 #if HAVE_PTHREADS < 7
24179 status = pthread_attr_setdetachstate(&attr, &detach);
24180 if( status < 0 ) status = errno;
24182 status = pthread_attr_setdetachstate(&attr, detach);
24184 if( status ) return status;
24185 status = pthread_create( &t, &attr, task, NULL );
24186 #if HAVE_PTHREADS < 7
24187 if( status < 0 ) status = errno;
24189 if( status ) return status;
24191 /* Draft 4 pthreads */
24192 status = pthread_create( &t, pthread_attr_default, task, NULL );
24193 if( status ) return errno;
24195 /* give thread a chance to complete */
24196 /* it should remain joinable and hence detachable */
24199 status = pthread_detach( &t );
24200 if( status ) return errno;
24203 #ifdef HAVE_LINUX_THREADS
24204 pthread_kill_other_threads_np();
24213 if ac_fn_c_try_link "$LINENO"; then :
24214 ol_cv_pthread_mthreads=yes
24216 ol_cv_pthread_mthreads=no
24218 rm -f core conftest.err conftest.$ac_objext \
24219 conftest$ac_exeext conftest.$ac_ext
24221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24222 /* end confdefs.h. */
24225 /* pthread test headers */
24226 #include <pthread.h>
24227 #if HAVE_PTHREADS < 7
24231 #define NULL (void*)0
24234 static void *task(p)
24237 return (void *) (p == NULL);
24241 int main(argc, argv)
24246 /* pthread test function */
24247 #ifndef PTHREAD_CREATE_DETACHED
24248 #define PTHREAD_CREATE_DETACHED 1
24252 int detach = PTHREAD_CREATE_DETACHED;
24254 #if HAVE_PTHREADS > 4
24255 /* Final pthreads */
24256 pthread_attr_t attr;
24258 status = pthread_attr_init(&attr);
24259 if( status ) return status;
24261 #if HAVE_PTHREADS < 7
24262 status = pthread_attr_setdetachstate(&attr, &detach);
24263 if( status < 0 ) status = errno;
24265 status = pthread_attr_setdetachstate(&attr, detach);
24267 if( status ) return status;
24268 status = pthread_create( &t, &attr, task, NULL );
24269 #if HAVE_PTHREADS < 7
24270 if( status < 0 ) status = errno;
24272 if( status ) return status;
24274 /* Draft 4 pthreads */
24275 status = pthread_create( &t, pthread_attr_default, task, NULL );
24276 if( status ) return errno;
24278 /* give thread a chance to complete */
24279 /* it should remain joinable and hence detachable */
24282 status = pthread_detach( &t );
24283 if( status ) return errno;
24286 #ifdef HAVE_LINUX_THREADS
24287 pthread_kill_other_threads_np();
24295 if ac_fn_c_try_run "$LINENO"; then :
24296 ol_cv_pthread_mthreads=yes
24298 ol_cv_pthread_mthreads=no
24300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24301 conftest.$ac_objext conftest.beam conftest.$ac_ext
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
24310 $as_echo "$ol_cv_pthread_mthreads" >&6; }
24312 if test $ol_cv_pthread_mthreads = yes ; then
24313 ol_link_pthreads="-mthreads"
24314 ol_link_threads=posix
24318 # Pthread try link: -thread (ol_cv_pthread_thread)
24319 if test "$ol_link_threads" = no ; then
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
24322 $as_echo_n "checking for pthread link with -thread... " >&6; }
24323 if ${ol_cv_pthread_thread+:} false; then :
24324 $as_echo_n "(cached) " >&6
24329 LIBS="-thread $LIBS"
24331 if test "$cross_compiling" = yes; then :
24332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24333 /* end confdefs.h. */
24335 /* pthread test headers */
24336 #include <pthread.h>
24337 #if HAVE_PTHREADS < 7
24341 #define NULL (void*)0
24344 static void *task(p)
24347 return (void *) (p == NULL);
24354 /* pthread test function */
24355 #ifndef PTHREAD_CREATE_DETACHED
24356 #define PTHREAD_CREATE_DETACHED 1
24360 int detach = PTHREAD_CREATE_DETACHED;
24362 #if HAVE_PTHREADS > 4
24363 /* Final pthreads */
24364 pthread_attr_t attr;
24366 status = pthread_attr_init(&attr);
24367 if( status ) return status;
24369 #if HAVE_PTHREADS < 7
24370 status = pthread_attr_setdetachstate(&attr, &detach);
24371 if( status < 0 ) status = errno;
24373 status = pthread_attr_setdetachstate(&attr, detach);
24375 if( status ) return status;
24376 status = pthread_create( &t, &attr, task, NULL );
24377 #if HAVE_PTHREADS < 7
24378 if( status < 0 ) status = errno;
24380 if( status ) return status;
24382 /* Draft 4 pthreads */
24383 status = pthread_create( &t, pthread_attr_default, task, NULL );
24384 if( status ) return errno;
24386 /* give thread a chance to complete */
24387 /* it should remain joinable and hence detachable */
24390 status = pthread_detach( &t );
24391 if( status ) return errno;
24394 #ifdef HAVE_LINUX_THREADS
24395 pthread_kill_other_threads_np();
24404 if ac_fn_c_try_link "$LINENO"; then :
24405 ol_cv_pthread_thread=yes
24407 ol_cv_pthread_thread=no
24409 rm -f core conftest.err conftest.$ac_objext \
24410 conftest$ac_exeext conftest.$ac_ext
24412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24413 /* end confdefs.h. */
24416 /* pthread test headers */
24417 #include <pthread.h>
24418 #if HAVE_PTHREADS < 7
24422 #define NULL (void*)0
24425 static void *task(p)
24428 return (void *) (p == NULL);
24432 int main(argc, argv)
24437 /* pthread test function */
24438 #ifndef PTHREAD_CREATE_DETACHED
24439 #define PTHREAD_CREATE_DETACHED 1
24443 int detach = PTHREAD_CREATE_DETACHED;
24445 #if HAVE_PTHREADS > 4
24446 /* Final pthreads */
24447 pthread_attr_t attr;
24449 status = pthread_attr_init(&attr);
24450 if( status ) return status;
24452 #if HAVE_PTHREADS < 7
24453 status = pthread_attr_setdetachstate(&attr, &detach);
24454 if( status < 0 ) status = errno;
24456 status = pthread_attr_setdetachstate(&attr, detach);
24458 if( status ) return status;
24459 status = pthread_create( &t, &attr, task, NULL );
24460 #if HAVE_PTHREADS < 7
24461 if( status < 0 ) status = errno;
24463 if( status ) return status;
24465 /* Draft 4 pthreads */
24466 status = pthread_create( &t, pthread_attr_default, task, NULL );
24467 if( status ) return errno;
24469 /* give thread a chance to complete */
24470 /* it should remain joinable and hence detachable */
24473 status = pthread_detach( &t );
24474 if( status ) return errno;
24477 #ifdef HAVE_LINUX_THREADS
24478 pthread_kill_other_threads_np();
24486 if ac_fn_c_try_run "$LINENO"; then :
24487 ol_cv_pthread_thread=yes
24489 ol_cv_pthread_thread=no
24491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24492 conftest.$ac_objext conftest.beam conftest.$ac_ext
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
24501 $as_echo "$ol_cv_pthread_thread" >&6; }
24503 if test $ol_cv_pthread_thread = yes ; then
24504 ol_link_pthreads="-thread"
24505 ol_link_threads=posix
24510 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
24511 if test "$ol_link_threads" = no ; then
24512 # try -lpthread -lmach -lexc -lc_r
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
24514 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
24515 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
24516 $as_echo_n "(cached) " >&6
24521 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
24523 if test "$cross_compiling" = yes; then :
24524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24525 /* end confdefs.h. */
24527 /* pthread test headers */
24528 #include <pthread.h>
24529 #if HAVE_PTHREADS < 7
24533 #define NULL (void*)0
24536 static void *task(p)
24539 return (void *) (p == NULL);
24546 /* pthread test function */
24547 #ifndef PTHREAD_CREATE_DETACHED
24548 #define PTHREAD_CREATE_DETACHED 1
24552 int detach = PTHREAD_CREATE_DETACHED;
24554 #if HAVE_PTHREADS > 4
24555 /* Final pthreads */
24556 pthread_attr_t attr;
24558 status = pthread_attr_init(&attr);
24559 if( status ) return status;
24561 #if HAVE_PTHREADS < 7
24562 status = pthread_attr_setdetachstate(&attr, &detach);
24563 if( status < 0 ) status = errno;
24565 status = pthread_attr_setdetachstate(&attr, detach);
24567 if( status ) return status;
24568 status = pthread_create( &t, &attr, task, NULL );
24569 #if HAVE_PTHREADS < 7
24570 if( status < 0 ) status = errno;
24572 if( status ) return status;
24574 /* Draft 4 pthreads */
24575 status = pthread_create( &t, pthread_attr_default, task, NULL );
24576 if( status ) return errno;
24578 /* give thread a chance to complete */
24579 /* it should remain joinable and hence detachable */
24582 status = pthread_detach( &t );
24583 if( status ) return errno;
24586 #ifdef HAVE_LINUX_THREADS
24587 pthread_kill_other_threads_np();
24596 if ac_fn_c_try_link "$LINENO"; then :
24597 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
24599 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
24601 rm -f core conftest.err conftest.$ac_objext \
24602 conftest$ac_exeext conftest.$ac_ext
24604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24605 /* end confdefs.h. */
24608 /* pthread test headers */
24609 #include <pthread.h>
24610 #if HAVE_PTHREADS < 7
24614 #define NULL (void*)0
24617 static void *task(p)
24620 return (void *) (p == NULL);
24624 int main(argc, argv)
24629 /* pthread test function */
24630 #ifndef PTHREAD_CREATE_DETACHED
24631 #define PTHREAD_CREATE_DETACHED 1
24635 int detach = PTHREAD_CREATE_DETACHED;
24637 #if HAVE_PTHREADS > 4
24638 /* Final pthreads */
24639 pthread_attr_t attr;
24641 status = pthread_attr_init(&attr);
24642 if( status ) return status;
24644 #if HAVE_PTHREADS < 7
24645 status = pthread_attr_setdetachstate(&attr, &detach);
24646 if( status < 0 ) status = errno;
24648 status = pthread_attr_setdetachstate(&attr, detach);
24650 if( status ) return status;
24651 status = pthread_create( &t, &attr, task, NULL );
24652 #if HAVE_PTHREADS < 7
24653 if( status < 0 ) status = errno;
24655 if( status ) return status;
24657 /* Draft 4 pthreads */
24658 status = pthread_create( &t, pthread_attr_default, task, NULL );
24659 if( status ) return errno;
24661 /* give thread a chance to complete */
24662 /* it should remain joinable and hence detachable */
24665 status = pthread_detach( &t );
24666 if( status ) return errno;
24669 #ifdef HAVE_LINUX_THREADS
24670 pthread_kill_other_threads_np();
24678 if ac_fn_c_try_run "$LINENO"; then :
24679 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
24681 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
24683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24684 conftest.$ac_objext conftest.beam conftest.$ac_ext
24692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
24693 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
24695 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
24696 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
24697 ol_link_threads=posix
24701 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
24702 if test "$ol_link_threads" = no ; then
24703 # try -lpthread -lmach -lexc
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
24705 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
24706 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
24707 $as_echo_n "(cached) " >&6
24712 LIBS="-lpthread -lmach -lexc $LIBS"
24714 if test "$cross_compiling" = yes; then :
24715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24716 /* end confdefs.h. */
24718 /* pthread test headers */
24719 #include <pthread.h>
24720 #if HAVE_PTHREADS < 7
24724 #define NULL (void*)0
24727 static void *task(p)
24730 return (void *) (p == NULL);
24737 /* pthread test function */
24738 #ifndef PTHREAD_CREATE_DETACHED
24739 #define PTHREAD_CREATE_DETACHED 1
24743 int detach = PTHREAD_CREATE_DETACHED;
24745 #if HAVE_PTHREADS > 4
24746 /* Final pthreads */
24747 pthread_attr_t attr;
24749 status = pthread_attr_init(&attr);
24750 if( status ) return status;
24752 #if HAVE_PTHREADS < 7
24753 status = pthread_attr_setdetachstate(&attr, &detach);
24754 if( status < 0 ) status = errno;
24756 status = pthread_attr_setdetachstate(&attr, detach);
24758 if( status ) return status;
24759 status = pthread_create( &t, &attr, task, NULL );
24760 #if HAVE_PTHREADS < 7
24761 if( status < 0 ) status = errno;
24763 if( status ) return status;
24765 /* Draft 4 pthreads */
24766 status = pthread_create( &t, pthread_attr_default, task, NULL );
24767 if( status ) return errno;
24769 /* give thread a chance to complete */
24770 /* it should remain joinable and hence detachable */
24773 status = pthread_detach( &t );
24774 if( status ) return errno;
24777 #ifdef HAVE_LINUX_THREADS
24778 pthread_kill_other_threads_np();
24787 if ac_fn_c_try_link "$LINENO"; then :
24788 ol_cv_pthread_lpthread_lmach_lexc=yes
24790 ol_cv_pthread_lpthread_lmach_lexc=no
24792 rm -f core conftest.err conftest.$ac_objext \
24793 conftest$ac_exeext conftest.$ac_ext
24795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24796 /* end confdefs.h. */
24799 /* pthread test headers */
24800 #include <pthread.h>
24801 #if HAVE_PTHREADS < 7
24805 #define NULL (void*)0
24808 static void *task(p)
24811 return (void *) (p == NULL);
24815 int main(argc, argv)
24820 /* pthread test function */
24821 #ifndef PTHREAD_CREATE_DETACHED
24822 #define PTHREAD_CREATE_DETACHED 1
24826 int detach = PTHREAD_CREATE_DETACHED;
24828 #if HAVE_PTHREADS > 4
24829 /* Final pthreads */
24830 pthread_attr_t attr;
24832 status = pthread_attr_init(&attr);
24833 if( status ) return status;
24835 #if HAVE_PTHREADS < 7
24836 status = pthread_attr_setdetachstate(&attr, &detach);
24837 if( status < 0 ) status = errno;
24839 status = pthread_attr_setdetachstate(&attr, detach);
24841 if( status ) return status;
24842 status = pthread_create( &t, &attr, task, NULL );
24843 #if HAVE_PTHREADS < 7
24844 if( status < 0 ) status = errno;
24846 if( status ) return status;
24848 /* Draft 4 pthreads */
24849 status = pthread_create( &t, pthread_attr_default, task, NULL );
24850 if( status ) return errno;
24852 /* give thread a chance to complete */
24853 /* it should remain joinable and hence detachable */
24856 status = pthread_detach( &t );
24857 if( status ) return errno;
24860 #ifdef HAVE_LINUX_THREADS
24861 pthread_kill_other_threads_np();
24869 if ac_fn_c_try_run "$LINENO"; then :
24870 ol_cv_pthread_lpthread_lmach_lexc=yes
24872 ol_cv_pthread_lpthread_lmach_lexc=no
24874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24875 conftest.$ac_objext conftest.beam conftest.$ac_ext
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
24884 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
24886 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
24887 ol_link_pthreads="-lpthread -lmach -lexc"
24888 ol_link_threads=posix
24893 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
24894 if test "$ol_link_threads" = no ; then
24895 # try -lpthread -Wl,-woff,85
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
24897 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
24898 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
24899 $as_echo_n "(cached) " >&6
24904 LIBS="-lpthread -Wl,-woff,85 $LIBS"
24906 if test "$cross_compiling" = yes; then :
24907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24908 /* end confdefs.h. */
24910 /* pthread test headers */
24911 #include <pthread.h>
24912 #if HAVE_PTHREADS < 7
24916 #define NULL (void*)0
24919 static void *task(p)
24922 return (void *) (p == NULL);
24929 /* pthread test function */
24930 #ifndef PTHREAD_CREATE_DETACHED
24931 #define PTHREAD_CREATE_DETACHED 1
24935 int detach = PTHREAD_CREATE_DETACHED;
24937 #if HAVE_PTHREADS > 4
24938 /* Final pthreads */
24939 pthread_attr_t attr;
24941 status = pthread_attr_init(&attr);
24942 if( status ) return status;
24944 #if HAVE_PTHREADS < 7
24945 status = pthread_attr_setdetachstate(&attr, &detach);
24946 if( status < 0 ) status = errno;
24948 status = pthread_attr_setdetachstate(&attr, detach);
24950 if( status ) return status;
24951 status = pthread_create( &t, &attr, task, NULL );
24952 #if HAVE_PTHREADS < 7
24953 if( status < 0 ) status = errno;
24955 if( status ) return status;
24957 /* Draft 4 pthreads */
24958 status = pthread_create( &t, pthread_attr_default, task, NULL );
24959 if( status ) return errno;
24961 /* give thread a chance to complete */
24962 /* it should remain joinable and hence detachable */
24965 status = pthread_detach( &t );
24966 if( status ) return errno;
24969 #ifdef HAVE_LINUX_THREADS
24970 pthread_kill_other_threads_np();
24979 if ac_fn_c_try_link "$LINENO"; then :
24980 ol_cv_pthread_lib_lpthread_woff=yes
24982 ol_cv_pthread_lib_lpthread_woff=no
24984 rm -f core conftest.err conftest.$ac_objext \
24985 conftest$ac_exeext conftest.$ac_ext
24987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24988 /* end confdefs.h. */
24991 /* pthread test headers */
24992 #include <pthread.h>
24993 #if HAVE_PTHREADS < 7
24997 #define NULL (void*)0
25000 static void *task(p)
25003 return (void *) (p == NULL);
25007 int main(argc, argv)
25012 /* pthread test function */
25013 #ifndef PTHREAD_CREATE_DETACHED
25014 #define PTHREAD_CREATE_DETACHED 1
25018 int detach = PTHREAD_CREATE_DETACHED;
25020 #if HAVE_PTHREADS > 4
25021 /* Final pthreads */
25022 pthread_attr_t attr;
25024 status = pthread_attr_init(&attr);
25025 if( status ) return status;
25027 #if HAVE_PTHREADS < 7
25028 status = pthread_attr_setdetachstate(&attr, &detach);
25029 if( status < 0 ) status = errno;
25031 status = pthread_attr_setdetachstate(&attr, detach);
25033 if( status ) return status;
25034 status = pthread_create( &t, &attr, task, NULL );
25035 #if HAVE_PTHREADS < 7
25036 if( status < 0 ) status = errno;
25038 if( status ) return status;
25040 /* Draft 4 pthreads */
25041 status = pthread_create( &t, pthread_attr_default, task, NULL );
25042 if( status ) return errno;
25044 /* give thread a chance to complete */
25045 /* it should remain joinable and hence detachable */
25048 status = pthread_detach( &t );
25049 if( status ) return errno;
25052 #ifdef HAVE_LINUX_THREADS
25053 pthread_kill_other_threads_np();
25061 if ac_fn_c_try_run "$LINENO"; then :
25062 ol_cv_pthread_lib_lpthread_woff=yes
25064 ol_cv_pthread_lib_lpthread_woff=no
25066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25067 conftest.$ac_objext conftest.beam conftest.$ac_ext
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
25076 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
25078 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
25079 ol_link_pthreads="-lpthread -Wl,-woff,85"
25080 ol_link_threads=posix
25085 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
25086 if test "$ol_link_threads" = no ; then
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
25089 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
25090 if ${ol_cv_pthread_lpthread+:} false; then :
25091 $as_echo_n "(cached) " >&6
25096 LIBS="-lpthread $LIBS"
25098 if test "$cross_compiling" = yes; then :
25099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25100 /* end confdefs.h. */
25102 /* pthread test headers */
25103 #include <pthread.h>
25104 #if HAVE_PTHREADS < 7
25108 #define NULL (void*)0
25111 static void *task(p)
25114 return (void *) (p == NULL);
25121 /* pthread test function */
25122 #ifndef PTHREAD_CREATE_DETACHED
25123 #define PTHREAD_CREATE_DETACHED 1
25127 int detach = PTHREAD_CREATE_DETACHED;
25129 #if HAVE_PTHREADS > 4
25130 /* Final pthreads */
25131 pthread_attr_t attr;
25133 status = pthread_attr_init(&attr);
25134 if( status ) return status;
25136 #if HAVE_PTHREADS < 7
25137 status = pthread_attr_setdetachstate(&attr, &detach);
25138 if( status < 0 ) status = errno;
25140 status = pthread_attr_setdetachstate(&attr, detach);
25142 if( status ) return status;
25143 status = pthread_create( &t, &attr, task, NULL );
25144 #if HAVE_PTHREADS < 7
25145 if( status < 0 ) status = errno;
25147 if( status ) return status;
25149 /* Draft 4 pthreads */
25150 status = pthread_create( &t, pthread_attr_default, task, NULL );
25151 if( status ) return errno;
25153 /* give thread a chance to complete */
25154 /* it should remain joinable and hence detachable */
25157 status = pthread_detach( &t );
25158 if( status ) return errno;
25161 #ifdef HAVE_LINUX_THREADS
25162 pthread_kill_other_threads_np();
25171 if ac_fn_c_try_link "$LINENO"; then :
25172 ol_cv_pthread_lpthread=yes
25174 ol_cv_pthread_lpthread=no
25176 rm -f core conftest.err conftest.$ac_objext \
25177 conftest$ac_exeext conftest.$ac_ext
25179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25180 /* end confdefs.h. */
25183 /* pthread test headers */
25184 #include <pthread.h>
25185 #if HAVE_PTHREADS < 7
25189 #define NULL (void*)0
25192 static void *task(p)
25195 return (void *) (p == NULL);
25199 int main(argc, argv)
25204 /* pthread test function */
25205 #ifndef PTHREAD_CREATE_DETACHED
25206 #define PTHREAD_CREATE_DETACHED 1
25210 int detach = PTHREAD_CREATE_DETACHED;
25212 #if HAVE_PTHREADS > 4
25213 /* Final pthreads */
25214 pthread_attr_t attr;
25216 status = pthread_attr_init(&attr);
25217 if( status ) return status;
25219 #if HAVE_PTHREADS < 7
25220 status = pthread_attr_setdetachstate(&attr, &detach);
25221 if( status < 0 ) status = errno;
25223 status = pthread_attr_setdetachstate(&attr, detach);
25225 if( status ) return status;
25226 status = pthread_create( &t, &attr, task, NULL );
25227 #if HAVE_PTHREADS < 7
25228 if( status < 0 ) status = errno;
25230 if( status ) return status;
25232 /* Draft 4 pthreads */
25233 status = pthread_create( &t, pthread_attr_default, task, NULL );
25234 if( status ) return errno;
25236 /* give thread a chance to complete */
25237 /* it should remain joinable and hence detachable */
25240 status = pthread_detach( &t );
25241 if( status ) return errno;
25244 #ifdef HAVE_LINUX_THREADS
25245 pthread_kill_other_threads_np();
25253 if ac_fn_c_try_run "$LINENO"; then :
25254 ol_cv_pthread_lpthread=yes
25256 ol_cv_pthread_lpthread=no
25258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25259 conftest.$ac_objext conftest.beam conftest.$ac_ext
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
25268 $as_echo "$ol_cv_pthread_lpthread" >&6; }
25270 if test $ol_cv_pthread_lpthread = yes ; then
25271 ol_link_pthreads="-lpthread"
25272 ol_link_threads=posix
25276 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
25277 if test "$ol_link_threads" = no ; then
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
25280 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
25281 if ${ol_cv_pthread_lc_r+:} false; then :
25282 $as_echo_n "(cached) " >&6
25289 if test "$cross_compiling" = yes; then :
25290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25291 /* end confdefs.h. */
25293 /* pthread test headers */
25294 #include <pthread.h>
25295 #if HAVE_PTHREADS < 7
25299 #define NULL (void*)0
25302 static void *task(p)
25305 return (void *) (p == NULL);
25312 /* pthread test function */
25313 #ifndef PTHREAD_CREATE_DETACHED
25314 #define PTHREAD_CREATE_DETACHED 1
25318 int detach = PTHREAD_CREATE_DETACHED;
25320 #if HAVE_PTHREADS > 4
25321 /* Final pthreads */
25322 pthread_attr_t attr;
25324 status = pthread_attr_init(&attr);
25325 if( status ) return status;
25327 #if HAVE_PTHREADS < 7
25328 status = pthread_attr_setdetachstate(&attr, &detach);
25329 if( status < 0 ) status = errno;
25331 status = pthread_attr_setdetachstate(&attr, detach);
25333 if( status ) return status;
25334 status = pthread_create( &t, &attr, task, NULL );
25335 #if HAVE_PTHREADS < 7
25336 if( status < 0 ) status = errno;
25338 if( status ) return status;
25340 /* Draft 4 pthreads */
25341 status = pthread_create( &t, pthread_attr_default, task, NULL );
25342 if( status ) return errno;
25344 /* give thread a chance to complete */
25345 /* it should remain joinable and hence detachable */
25348 status = pthread_detach( &t );
25349 if( status ) return errno;
25352 #ifdef HAVE_LINUX_THREADS
25353 pthread_kill_other_threads_np();
25362 if ac_fn_c_try_link "$LINENO"; then :
25363 ol_cv_pthread_lc_r=yes
25365 ol_cv_pthread_lc_r=no
25367 rm -f core conftest.err conftest.$ac_objext \
25368 conftest$ac_exeext conftest.$ac_ext
25370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25371 /* end confdefs.h. */
25374 /* pthread test headers */
25375 #include <pthread.h>
25376 #if HAVE_PTHREADS < 7
25380 #define NULL (void*)0
25383 static void *task(p)
25386 return (void *) (p == NULL);
25390 int main(argc, argv)
25395 /* pthread test function */
25396 #ifndef PTHREAD_CREATE_DETACHED
25397 #define PTHREAD_CREATE_DETACHED 1
25401 int detach = PTHREAD_CREATE_DETACHED;
25403 #if HAVE_PTHREADS > 4
25404 /* Final pthreads */
25405 pthread_attr_t attr;
25407 status = pthread_attr_init(&attr);
25408 if( status ) return status;
25410 #if HAVE_PTHREADS < 7
25411 status = pthread_attr_setdetachstate(&attr, &detach);
25412 if( status < 0 ) status = errno;
25414 status = pthread_attr_setdetachstate(&attr, detach);
25416 if( status ) return status;
25417 status = pthread_create( &t, &attr, task, NULL );
25418 #if HAVE_PTHREADS < 7
25419 if( status < 0 ) status = errno;
25421 if( status ) return status;
25423 /* Draft 4 pthreads */
25424 status = pthread_create( &t, pthread_attr_default, task, NULL );
25425 if( status ) return errno;
25427 /* give thread a chance to complete */
25428 /* it should remain joinable and hence detachable */
25431 status = pthread_detach( &t );
25432 if( status ) return errno;
25435 #ifdef HAVE_LINUX_THREADS
25436 pthread_kill_other_threads_np();
25444 if ac_fn_c_try_run "$LINENO"; then :
25445 ol_cv_pthread_lc_r=yes
25447 ol_cv_pthread_lc_r=no
25449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25450 conftest.$ac_objext conftest.beam conftest.$ac_ext
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
25459 $as_echo "$ol_cv_pthread_lc_r" >&6; }
25461 if test $ol_cv_pthread_lc_r = yes ; then
25462 ol_link_pthreads="-lc_r"
25463 ol_link_threads=posix
25468 # Pthread try link: -threads (ol_cv_pthread_threads)
25469 if test "$ol_link_threads" = no ; then
25471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
25472 $as_echo_n "checking for pthread link with -threads... " >&6; }
25473 if ${ol_cv_pthread_threads+:} false; then :
25474 $as_echo_n "(cached) " >&6
25479 LIBS="-threads $LIBS"
25481 if test "$cross_compiling" = yes; then :
25482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25483 /* end confdefs.h. */
25485 /* pthread test headers */
25486 #include <pthread.h>
25487 #if HAVE_PTHREADS < 7
25491 #define NULL (void*)0
25494 static void *task(p)
25497 return (void *) (p == NULL);
25504 /* pthread test function */
25505 #ifndef PTHREAD_CREATE_DETACHED
25506 #define PTHREAD_CREATE_DETACHED 1
25510 int detach = PTHREAD_CREATE_DETACHED;
25512 #if HAVE_PTHREADS > 4
25513 /* Final pthreads */
25514 pthread_attr_t attr;
25516 status = pthread_attr_init(&attr);
25517 if( status ) return status;
25519 #if HAVE_PTHREADS < 7
25520 status = pthread_attr_setdetachstate(&attr, &detach);
25521 if( status < 0 ) status = errno;
25523 status = pthread_attr_setdetachstate(&attr, detach);
25525 if( status ) return status;
25526 status = pthread_create( &t, &attr, task, NULL );
25527 #if HAVE_PTHREADS < 7
25528 if( status < 0 ) status = errno;
25530 if( status ) return status;
25532 /* Draft 4 pthreads */
25533 status = pthread_create( &t, pthread_attr_default, task, NULL );
25534 if( status ) return errno;
25536 /* give thread a chance to complete */
25537 /* it should remain joinable and hence detachable */
25540 status = pthread_detach( &t );
25541 if( status ) return errno;
25544 #ifdef HAVE_LINUX_THREADS
25545 pthread_kill_other_threads_np();
25554 if ac_fn_c_try_link "$LINENO"; then :
25555 ol_cv_pthread_threads=yes
25557 ol_cv_pthread_threads=no
25559 rm -f core conftest.err conftest.$ac_objext \
25560 conftest$ac_exeext conftest.$ac_ext
25562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25563 /* end confdefs.h. */
25566 /* pthread test headers */
25567 #include <pthread.h>
25568 #if HAVE_PTHREADS < 7
25572 #define NULL (void*)0
25575 static void *task(p)
25578 return (void *) (p == NULL);
25582 int main(argc, argv)
25587 /* pthread test function */
25588 #ifndef PTHREAD_CREATE_DETACHED
25589 #define PTHREAD_CREATE_DETACHED 1
25593 int detach = PTHREAD_CREATE_DETACHED;
25595 #if HAVE_PTHREADS > 4
25596 /* Final pthreads */
25597 pthread_attr_t attr;
25599 status = pthread_attr_init(&attr);
25600 if( status ) return status;
25602 #if HAVE_PTHREADS < 7
25603 status = pthread_attr_setdetachstate(&attr, &detach);
25604 if( status < 0 ) status = errno;
25606 status = pthread_attr_setdetachstate(&attr, detach);
25608 if( status ) return status;
25609 status = pthread_create( &t, &attr, task, NULL );
25610 #if HAVE_PTHREADS < 7
25611 if( status < 0 ) status = errno;
25613 if( status ) return status;
25615 /* Draft 4 pthreads */
25616 status = pthread_create( &t, pthread_attr_default, task, NULL );
25617 if( status ) return errno;
25619 /* give thread a chance to complete */
25620 /* it should remain joinable and hence detachable */
25623 status = pthread_detach( &t );
25624 if( status ) return errno;
25627 #ifdef HAVE_LINUX_THREADS
25628 pthread_kill_other_threads_np();
25636 if ac_fn_c_try_run "$LINENO"; then :
25637 ol_cv_pthread_threads=yes
25639 ol_cv_pthread_threads=no
25641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25642 conftest.$ac_objext conftest.beam conftest.$ac_ext
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
25651 $as_echo "$ol_cv_pthread_threads" >&6; }
25653 if test $ol_cv_pthread_threads = yes ; then
25654 ol_link_pthreads="-threads"
25655 ol_link_threads=posix
25660 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
25661 if test "$ol_link_threads" = no ; then
25662 # try -lpthreads -lmach -lexc -lc_r
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
25664 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
25665 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
25666 $as_echo_n "(cached) " >&6
25671 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
25673 if test "$cross_compiling" = yes; then :
25674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25675 /* end confdefs.h. */
25677 /* pthread test headers */
25678 #include <pthread.h>
25679 #if HAVE_PTHREADS < 7
25683 #define NULL (void*)0
25686 static void *task(p)
25689 return (void *) (p == NULL);
25696 /* pthread test function */
25697 #ifndef PTHREAD_CREATE_DETACHED
25698 #define PTHREAD_CREATE_DETACHED 1
25702 int detach = PTHREAD_CREATE_DETACHED;
25704 #if HAVE_PTHREADS > 4
25705 /* Final pthreads */
25706 pthread_attr_t attr;
25708 status = pthread_attr_init(&attr);
25709 if( status ) return status;
25711 #if HAVE_PTHREADS < 7
25712 status = pthread_attr_setdetachstate(&attr, &detach);
25713 if( status < 0 ) status = errno;
25715 status = pthread_attr_setdetachstate(&attr, detach);
25717 if( status ) return status;
25718 status = pthread_create( &t, &attr, task, NULL );
25719 #if HAVE_PTHREADS < 7
25720 if( status < 0 ) status = errno;
25722 if( status ) return status;
25724 /* Draft 4 pthreads */
25725 status = pthread_create( &t, pthread_attr_default, task, NULL );
25726 if( status ) return errno;
25728 /* give thread a chance to complete */
25729 /* it should remain joinable and hence detachable */
25732 status = pthread_detach( &t );
25733 if( status ) return errno;
25736 #ifdef HAVE_LINUX_THREADS
25737 pthread_kill_other_threads_np();
25746 if ac_fn_c_try_link "$LINENO"; then :
25747 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
25749 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
25751 rm -f core conftest.err conftest.$ac_objext \
25752 conftest$ac_exeext conftest.$ac_ext
25754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25755 /* end confdefs.h. */
25758 /* pthread test headers */
25759 #include <pthread.h>
25760 #if HAVE_PTHREADS < 7
25764 #define NULL (void*)0
25767 static void *task(p)
25770 return (void *) (p == NULL);
25774 int main(argc, argv)
25779 /* pthread test function */
25780 #ifndef PTHREAD_CREATE_DETACHED
25781 #define PTHREAD_CREATE_DETACHED 1
25785 int detach = PTHREAD_CREATE_DETACHED;
25787 #if HAVE_PTHREADS > 4
25788 /* Final pthreads */
25789 pthread_attr_t attr;
25791 status = pthread_attr_init(&attr);
25792 if( status ) return status;
25794 #if HAVE_PTHREADS < 7
25795 status = pthread_attr_setdetachstate(&attr, &detach);
25796 if( status < 0 ) status = errno;
25798 status = pthread_attr_setdetachstate(&attr, detach);
25800 if( status ) return status;
25801 status = pthread_create( &t, &attr, task, NULL );
25802 #if HAVE_PTHREADS < 7
25803 if( status < 0 ) status = errno;
25805 if( status ) return status;
25807 /* Draft 4 pthreads */
25808 status = pthread_create( &t, pthread_attr_default, task, NULL );
25809 if( status ) return errno;
25811 /* give thread a chance to complete */
25812 /* it should remain joinable and hence detachable */
25815 status = pthread_detach( &t );
25816 if( status ) return errno;
25819 #ifdef HAVE_LINUX_THREADS
25820 pthread_kill_other_threads_np();
25828 if ac_fn_c_try_run "$LINENO"; then :
25829 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
25831 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
25833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25834 conftest.$ac_objext conftest.beam conftest.$ac_ext
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
25843 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
25845 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
25846 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
25847 ol_link_threads=posix
25851 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
25852 if test "$ol_link_threads" = no ; then
25853 # try -lpthreads -lmach -lexc
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
25855 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
25856 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
25857 $as_echo_n "(cached) " >&6
25862 LIBS="-lpthreads -lmach -lexc $LIBS"
25864 if test "$cross_compiling" = yes; then :
25865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25866 /* end confdefs.h. */
25868 /* pthread test headers */
25869 #include <pthread.h>
25870 #if HAVE_PTHREADS < 7
25874 #define NULL (void*)0
25877 static void *task(p)
25880 return (void *) (p == NULL);
25887 /* pthread test function */
25888 #ifndef PTHREAD_CREATE_DETACHED
25889 #define PTHREAD_CREATE_DETACHED 1
25893 int detach = PTHREAD_CREATE_DETACHED;
25895 #if HAVE_PTHREADS > 4
25896 /* Final pthreads */
25897 pthread_attr_t attr;
25899 status = pthread_attr_init(&attr);
25900 if( status ) return status;
25902 #if HAVE_PTHREADS < 7
25903 status = pthread_attr_setdetachstate(&attr, &detach);
25904 if( status < 0 ) status = errno;
25906 status = pthread_attr_setdetachstate(&attr, detach);
25908 if( status ) return status;
25909 status = pthread_create( &t, &attr, task, NULL );
25910 #if HAVE_PTHREADS < 7
25911 if( status < 0 ) status = errno;
25913 if( status ) return status;
25915 /* Draft 4 pthreads */
25916 status = pthread_create( &t, pthread_attr_default, task, NULL );
25917 if( status ) return errno;
25919 /* give thread a chance to complete */
25920 /* it should remain joinable and hence detachable */
25923 status = pthread_detach( &t );
25924 if( status ) return errno;
25927 #ifdef HAVE_LINUX_THREADS
25928 pthread_kill_other_threads_np();
25937 if ac_fn_c_try_link "$LINENO"; then :
25938 ol_cv_pthread_lpthreads_lmach_lexc=yes
25940 ol_cv_pthread_lpthreads_lmach_lexc=no
25942 rm -f core conftest.err conftest.$ac_objext \
25943 conftest$ac_exeext conftest.$ac_ext
25945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25946 /* end confdefs.h. */
25949 /* pthread test headers */
25950 #include <pthread.h>
25951 #if HAVE_PTHREADS < 7
25955 #define NULL (void*)0
25958 static void *task(p)
25961 return (void *) (p == NULL);
25965 int main(argc, argv)
25970 /* pthread test function */
25971 #ifndef PTHREAD_CREATE_DETACHED
25972 #define PTHREAD_CREATE_DETACHED 1
25976 int detach = PTHREAD_CREATE_DETACHED;
25978 #if HAVE_PTHREADS > 4
25979 /* Final pthreads */
25980 pthread_attr_t attr;
25982 status = pthread_attr_init(&attr);
25983 if( status ) return status;
25985 #if HAVE_PTHREADS < 7
25986 status = pthread_attr_setdetachstate(&attr, &detach);
25987 if( status < 0 ) status = errno;
25989 status = pthread_attr_setdetachstate(&attr, detach);
25991 if( status ) return status;
25992 status = pthread_create( &t, &attr, task, NULL );
25993 #if HAVE_PTHREADS < 7
25994 if( status < 0 ) status = errno;
25996 if( status ) return status;
25998 /* Draft 4 pthreads */
25999 status = pthread_create( &t, pthread_attr_default, task, NULL );
26000 if( status ) return errno;
26002 /* give thread a chance to complete */
26003 /* it should remain joinable and hence detachable */
26006 status = pthread_detach( &t );
26007 if( status ) return errno;
26010 #ifdef HAVE_LINUX_THREADS
26011 pthread_kill_other_threads_np();
26019 if ac_fn_c_try_run "$LINENO"; then :
26020 ol_cv_pthread_lpthreads_lmach_lexc=yes
26022 ol_cv_pthread_lpthreads_lmach_lexc=no
26024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26025 conftest.$ac_objext conftest.beam conftest.$ac_ext
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
26034 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
26036 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
26037 ol_link_pthreads="-lpthreads -lmach -lexc"
26038 ol_link_threads=posix
26042 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
26043 if test "$ol_link_threads" = no ; then
26044 # try -lpthreads -lexc
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
26046 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
26047 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
26048 $as_echo_n "(cached) " >&6
26053 LIBS="-lpthreads -lexc $LIBS"
26055 if test "$cross_compiling" = yes; then :
26056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26057 /* end confdefs.h. */
26059 /* pthread test headers */
26060 #include <pthread.h>
26061 #if HAVE_PTHREADS < 7
26065 #define NULL (void*)0
26068 static void *task(p)
26071 return (void *) (p == NULL);
26078 /* pthread test function */
26079 #ifndef PTHREAD_CREATE_DETACHED
26080 #define PTHREAD_CREATE_DETACHED 1
26084 int detach = PTHREAD_CREATE_DETACHED;
26086 #if HAVE_PTHREADS > 4
26087 /* Final pthreads */
26088 pthread_attr_t attr;
26090 status = pthread_attr_init(&attr);
26091 if( status ) return status;
26093 #if HAVE_PTHREADS < 7
26094 status = pthread_attr_setdetachstate(&attr, &detach);
26095 if( status < 0 ) status = errno;
26097 status = pthread_attr_setdetachstate(&attr, detach);
26099 if( status ) return status;
26100 status = pthread_create( &t, &attr, task, NULL );
26101 #if HAVE_PTHREADS < 7
26102 if( status < 0 ) status = errno;
26104 if( status ) return status;
26106 /* Draft 4 pthreads */
26107 status = pthread_create( &t, pthread_attr_default, task, NULL );
26108 if( status ) return errno;
26110 /* give thread a chance to complete */
26111 /* it should remain joinable and hence detachable */
26114 status = pthread_detach( &t );
26115 if( status ) return errno;
26118 #ifdef HAVE_LINUX_THREADS
26119 pthread_kill_other_threads_np();
26128 if ac_fn_c_try_link "$LINENO"; then :
26129 ol_cv_pthread_lpthreads_lexc=yes
26131 ol_cv_pthread_lpthreads_lexc=no
26133 rm -f core conftest.err conftest.$ac_objext \
26134 conftest$ac_exeext conftest.$ac_ext
26136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26137 /* end confdefs.h. */
26140 /* pthread test headers */
26141 #include <pthread.h>
26142 #if HAVE_PTHREADS < 7
26146 #define NULL (void*)0
26149 static void *task(p)
26152 return (void *) (p == NULL);
26156 int main(argc, argv)
26161 /* pthread test function */
26162 #ifndef PTHREAD_CREATE_DETACHED
26163 #define PTHREAD_CREATE_DETACHED 1
26167 int detach = PTHREAD_CREATE_DETACHED;
26169 #if HAVE_PTHREADS > 4
26170 /* Final pthreads */
26171 pthread_attr_t attr;
26173 status = pthread_attr_init(&attr);
26174 if( status ) return status;
26176 #if HAVE_PTHREADS < 7
26177 status = pthread_attr_setdetachstate(&attr, &detach);
26178 if( status < 0 ) status = errno;
26180 status = pthread_attr_setdetachstate(&attr, detach);
26182 if( status ) return status;
26183 status = pthread_create( &t, &attr, task, NULL );
26184 #if HAVE_PTHREADS < 7
26185 if( status < 0 ) status = errno;
26187 if( status ) return status;
26189 /* Draft 4 pthreads */
26190 status = pthread_create( &t, pthread_attr_default, task, NULL );
26191 if( status ) return errno;
26193 /* give thread a chance to complete */
26194 /* it should remain joinable and hence detachable */
26197 status = pthread_detach( &t );
26198 if( status ) return errno;
26201 #ifdef HAVE_LINUX_THREADS
26202 pthread_kill_other_threads_np();
26210 if ac_fn_c_try_run "$LINENO"; then :
26211 ol_cv_pthread_lpthreads_lexc=yes
26213 ol_cv_pthread_lpthreads_lexc=no
26215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26216 conftest.$ac_objext conftest.beam conftest.$ac_ext
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
26225 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
26227 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
26228 ol_link_pthreads="-lpthreads -lexc"
26229 ol_link_threads=posix
26234 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
26235 if test "$ol_link_threads" = no ; then
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
26238 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
26239 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
26240 $as_echo_n "(cached) " >&6
26245 LIBS="-lpthreads $LIBS"
26247 if test "$cross_compiling" = yes; then :
26248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26249 /* end confdefs.h. */
26251 /* pthread test headers */
26252 #include <pthread.h>
26253 #if HAVE_PTHREADS < 7
26257 #define NULL (void*)0
26260 static void *task(p)
26263 return (void *) (p == NULL);
26270 /* pthread test function */
26271 #ifndef PTHREAD_CREATE_DETACHED
26272 #define PTHREAD_CREATE_DETACHED 1
26276 int detach = PTHREAD_CREATE_DETACHED;
26278 #if HAVE_PTHREADS > 4
26279 /* Final pthreads */
26280 pthread_attr_t attr;
26282 status = pthread_attr_init(&attr);
26283 if( status ) return status;
26285 #if HAVE_PTHREADS < 7
26286 status = pthread_attr_setdetachstate(&attr, &detach);
26287 if( status < 0 ) status = errno;
26289 status = pthread_attr_setdetachstate(&attr, detach);
26291 if( status ) return status;
26292 status = pthread_create( &t, &attr, task, NULL );
26293 #if HAVE_PTHREADS < 7
26294 if( status < 0 ) status = errno;
26296 if( status ) return status;
26298 /* Draft 4 pthreads */
26299 status = pthread_create( &t, pthread_attr_default, task, NULL );
26300 if( status ) return errno;
26302 /* give thread a chance to complete */
26303 /* it should remain joinable and hence detachable */
26306 status = pthread_detach( &t );
26307 if( status ) return errno;
26310 #ifdef HAVE_LINUX_THREADS
26311 pthread_kill_other_threads_np();
26320 if ac_fn_c_try_link "$LINENO"; then :
26321 ol_cv_pthread_lib_lpthreads=yes
26323 ol_cv_pthread_lib_lpthreads=no
26325 rm -f core conftest.err conftest.$ac_objext \
26326 conftest$ac_exeext conftest.$ac_ext
26328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26329 /* end confdefs.h. */
26332 /* pthread test headers */
26333 #include <pthread.h>
26334 #if HAVE_PTHREADS < 7
26338 #define NULL (void*)0
26341 static void *task(p)
26344 return (void *) (p == NULL);
26348 int main(argc, argv)
26353 /* pthread test function */
26354 #ifndef PTHREAD_CREATE_DETACHED
26355 #define PTHREAD_CREATE_DETACHED 1
26359 int detach = PTHREAD_CREATE_DETACHED;
26361 #if HAVE_PTHREADS > 4
26362 /* Final pthreads */
26363 pthread_attr_t attr;
26365 status = pthread_attr_init(&attr);
26366 if( status ) return status;
26368 #if HAVE_PTHREADS < 7
26369 status = pthread_attr_setdetachstate(&attr, &detach);
26370 if( status < 0 ) status = errno;
26372 status = pthread_attr_setdetachstate(&attr, detach);
26374 if( status ) return status;
26375 status = pthread_create( &t, &attr, task, NULL );
26376 #if HAVE_PTHREADS < 7
26377 if( status < 0 ) status = errno;
26379 if( status ) return status;
26381 /* Draft 4 pthreads */
26382 status = pthread_create( &t, pthread_attr_default, task, NULL );
26383 if( status ) return errno;
26385 /* give thread a chance to complete */
26386 /* it should remain joinable and hence detachable */
26389 status = pthread_detach( &t );
26390 if( status ) return errno;
26393 #ifdef HAVE_LINUX_THREADS
26394 pthread_kill_other_threads_np();
26402 if ac_fn_c_try_run "$LINENO"; then :
26403 ol_cv_pthread_lib_lpthreads=yes
26405 ol_cv_pthread_lib_lpthreads=no
26407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26408 conftest.$ac_objext conftest.beam conftest.$ac_ext
26416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
26417 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
26419 if test $ol_cv_pthread_lib_lpthreads = yes ; then
26420 ol_link_pthreads="-lpthreads"
26421 ol_link_threads=posix
26426 { $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
26427 $as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
26429 if test $ol_link_threads != no ; then
26430 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
26432 save_CPPFLAGS="$CPPFLAGS"
26434 LIBS="$LTHREAD_LIBS $LIBS"
26436 for ac_func in sched_yield pthread_yield thr_yield
26438 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26439 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26440 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26441 cat >>confdefs.h <<_ACEOF
26442 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26449 if test $ac_cv_func_sched_yield = no &&
26450 test $ac_cv_func_pthread_yield = no &&
26451 test $ac_cv_func_thr_yield = no ; then
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
26453 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
26454 if ${ac_cv_lib_rt_sched_yield+:} false; then :
26455 $as_echo_n "(cached) " >&6
26457 ac_check_lib_save_LIBS=$LIBS
26459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26460 /* end confdefs.h. */
26462 /* Override any GCC internal prototype to avoid an error.
26463 Use char because int might match the return type of a GCC
26464 builtin and then its argument prototype would still apply. */
26468 char sched_yield ();
26472 return sched_yield ();
26477 if ac_fn_c_try_link "$LINENO"; then :
26478 ac_cv_lib_rt_sched_yield=yes
26480 ac_cv_lib_rt_sched_yield=no
26482 rm -f core conftest.err conftest.$ac_objext \
26483 conftest$ac_exeext conftest.$ac_ext
26484 LIBS=$ac_check_lib_save_LIBS
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
26487 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
26488 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
26489 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
26491 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
26493 ac_cv_func_sched_yield=yes
26495 ac_cv_func_sched_yield=no
26499 if test $ac_cv_func_sched_yield = no &&
26500 test $ac_cv_func_pthread_yield = no &&
26501 test "$ac_cv_func_thr_yield" = no ; then
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
26503 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
26506 for ac_func in pthread_kill
26508 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
26509 if test "x$ac_cv_func_pthread_kill" = xyes; then :
26510 cat >>confdefs.h <<_ACEOF
26511 #define HAVE_PTHREAD_KILL 1
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
26519 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
26520 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
26521 $as_echo_n "(cached) " >&6
26524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26525 /* end confdefs.h. */
26527 #include <pthread.h>
26528 pthread_rwlock_t rwlock;
26533 pthread_rwlock_destroy(&rwlock);
26538 if ac_fn_c_try_link "$LINENO"; then :
26539 ol_cv_func_pthread_rwlock_destroy=yes
26541 ol_cv_func_pthread_rwlock_destroy=no
26543 rm -f core conftest.err conftest.$ac_objext \
26544 conftest$ac_exeext conftest.$ac_ext
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
26548 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
26549 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
26551 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
26555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
26556 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
26557 if ${ol_cv_func_pthread_detach+:} false; then :
26558 $as_echo_n "(cached) " >&6
26561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26562 /* end confdefs.h. */
26564 #include <pthread.h>
26566 #define NULL (void*)0
26572 pthread_detach(NULL);
26577 if ac_fn_c_try_link "$LINENO"; then :
26578 ol_cv_func_pthread_detach=yes
26580 ol_cv_func_pthread_detach=no
26582 rm -f core conftest.err conftest.$ac_objext \
26583 conftest$ac_exeext conftest.$ac_ext
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
26587 $as_echo "$ol_cv_func_pthread_detach" >&6; }
26589 if test $ol_cv_func_pthread_detach = no ; then
26590 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
26594 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
26598 pthread_setconcurrency \
26599 pthread_getconcurrency \
26600 thr_setconcurrency \
26601 thr_getconcurrency \
26604 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26605 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26606 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26607 cat >>confdefs.h <<_ACEOF
26608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26616 for ac_func in pthread_kill_other_threads_np
26618 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
26619 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
26620 cat >>confdefs.h <<_ACEOF
26621 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
26628 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
26629 if ${ol_cv_sys_linux_threads+:} false; then :
26630 $as_echo_n "(cached) " >&6
26632 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
26634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
26635 $as_echo "$ol_cv_sys_linux_threads" >&6; }
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
26641 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
26642 if ${ol_cv_linux_threads+:} false; then :
26643 $as_echo_n "(cached) " >&6
26646 if test $ol_cv_header_linux_threads = yes &&
26647 test $ol_cv_sys_linux_threads = yes; then
26648 ol_cv_linux_threads=yes
26649 elif test $ol_cv_header_linux_threads = no &&
26650 test $ol_cv_sys_linux_threads = no; then
26651 ol_cv_linux_threads=no
26653 ol_cv_linux_threads=error
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
26658 $as_echo "$ol_cv_linux_threads" >&6; }
26661 if test $ol_cv_linux_threads = error; then
26662 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
26666 $as_echo_n "checking if pthread_create() works... " >&6; }
26667 if ${ol_cv_pthread_create_works+:} false; then :
26668 $as_echo_n "(cached) " >&6
26671 if test "$cross_compiling" = yes; then :
26672 ol_cv_pthread_create_works=yes
26674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26675 /* end confdefs.h. */
26678 /* pthread test headers */
26679 #include <pthread.h>
26680 #if HAVE_PTHREADS < 7
26684 #define NULL (void*)0
26687 static void *task(p)
26690 return (void *) (p == NULL);
26694 int main(argc, argv)
26699 /* pthread test function */
26700 #ifndef PTHREAD_CREATE_DETACHED
26701 #define PTHREAD_CREATE_DETACHED 1
26705 int detach = PTHREAD_CREATE_DETACHED;
26707 #if HAVE_PTHREADS > 4
26708 /* Final pthreads */
26709 pthread_attr_t attr;
26711 status = pthread_attr_init(&attr);
26712 if( status ) return status;
26714 #if HAVE_PTHREADS < 7
26715 status = pthread_attr_setdetachstate(&attr, &detach);
26716 if( status < 0 ) status = errno;
26718 status = pthread_attr_setdetachstate(&attr, detach);
26720 if( status ) return status;
26721 status = pthread_create( &t, &attr, task, NULL );
26722 #if HAVE_PTHREADS < 7
26723 if( status < 0 ) status = errno;
26725 if( status ) return status;
26727 /* Draft 4 pthreads */
26728 status = pthread_create( &t, pthread_attr_default, task, NULL );
26729 if( status ) return errno;
26731 /* give thread a chance to complete */
26732 /* it should remain joinable and hence detachable */
26735 status = pthread_detach( &t );
26736 if( status ) return errno;
26739 #ifdef HAVE_LINUX_THREADS
26740 pthread_kill_other_threads_np();
26748 if ac_fn_c_try_run "$LINENO"; then :
26749 ol_cv_pthread_create_works=yes
26751 ol_cv_pthread_create_works=no
26753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26754 conftest.$ac_objext conftest.beam conftest.$ac_ext
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
26759 $as_echo "$ol_cv_pthread_create_works" >&6; }
26761 if test $ol_cv_pthread_create_works = no ; then
26762 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
26765 ol_replace_broken_yield=no
26767 if test $ol_replace_broken_yield = yes ; then
26769 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
26773 if test x$ol_with_yielding_select = xauto ; then
26774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
26775 $as_echo_n "checking if select yields when using pthreads... " >&6; }
26776 if ${ol_cv_pthread_select_yields+:} false; then :
26777 $as_echo_n "(cached) " >&6
26780 if test "$cross_compiling" = yes; then :
26781 ol_cv_pthread_select_yields=cross
26783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26784 /* end confdefs.h. */
26786 #include <sys/types.h>
26787 #include <sys/time.h>
26788 #include <unistd.h>
26789 #include <pthread.h>
26791 #define NULL (void*) 0
26794 static int fildes[2];
26796 static void *task(p)
26808 FD_SET(fildes[0], &rfds);
26810 /* we're not interested in any fds */
26811 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
26818 exit(0); /* if we exit here, the select blocked the whole process */
26821 int main(argc, argv)
26827 /* create a pipe to select */
26828 if(pipe(&fildes[0])) {
26833 #ifdef HAVE_PTHREAD_SETCONCURRENCY
26834 (void) pthread_setconcurrency(2);
26836 #ifdef HAVE_THR_SETCONCURRENCY
26837 /* Set Solaris LWP concurrency to 2 */
26838 thr_setconcurrency(2);
26842 #if HAVE_PTHREADS < 6
26843 pthread_create(&t, pthread_attr_default, task, NULL);
26845 pthread_create(&t, NULL, task, NULL);
26848 /* make sure task runs first */
26849 #ifdef HAVE_THR_YIELD
26851 #elif defined( HAVE_SCHED_YIELD )
26853 #elif defined( HAVE_PTHREAD_YIELD )
26860 if ac_fn_c_try_run "$LINENO"; then :
26861 ol_cv_pthread_select_yields=no
26863 ol_cv_pthread_select_yields=yes
26865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26866 conftest.$ac_objext conftest.beam conftest.$ac_ext
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
26871 $as_echo "$ol_cv_pthread_select_yields" >&6; }
26873 if test $ol_cv_pthread_select_yields = cross ; then
26874 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
26877 if test $ol_cv_pthread_select_yields = yes ; then
26878 ol_with_yielding_select=yes
26882 CPPFLAGS="$save_CPPFLAGS"
26885 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
26889 if test $ol_with_threads = posix ; then
26890 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
26895 case $ol_with_threads in auto | yes | mach)
26897 for ac_header in mach/cthreads.h cthreads.h
26899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26900 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26901 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26902 cat >>confdefs.h <<_ACEOF
26903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26910 if test $ac_cv_header_mach_cthreads_h = yes ; then
26911 ol_with_threads=found
26913 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
26914 if test "x$ac_cv_func_cthread_fork" = xyes; then :
26915 ol_link_threads=yes
26919 if test $ol_link_threads = no ; then
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
26921 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
26922 if ${ol_cv_cthread_all_load+:} false; then :
26923 $as_echo_n "(cached) " >&6
26927 LIBS="-all_load $LIBS"
26928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26929 /* end confdefs.h. */
26930 #include <mach/cthreads.h>
26935 cthread_fork((void *)0, (void *)0);
26941 if ac_fn_c_try_link "$LINENO"; then :
26942 ol_cv_cthread_all_load=yes
26944 ol_cv_cthread_all_load=no
26946 rm -f core conftest.err conftest.$ac_objext \
26947 conftest$ac_exeext conftest.$ac_ext
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
26952 $as_echo "$ol_cv_cthread_all_load" >&6; }
26954 if test $ol_cv_cthread_all_load = yes ; then
26955 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
26956 ol_link_threads=mach
26957 ol_with_threads=found
26961 elif test $ac_cv_header_cthreads_h = yes ; then
26963 ol_with_threads=found
26966 LIBS="$LIBS -lthreads"
26967 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
26968 if test "x$ac_cv_func_cthread_fork" = xyes; then :
26969 ol_link_threads=yes
26974 if test $ol_link_threads = yes ; then
26975 LTHREAD_LIBS="-lthreads"
26976 ol_link_threads=mach
26977 ol_with_threads=found
26979 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
26982 elif test $ol_with_threads = mach ; then
26983 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
26986 if test $ol_link_threads = mach ; then
26988 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
26990 elif test $ol_with_threads = found ; then
26991 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
26996 case $ol_with_threads in auto | yes | pth)
26998 for ac_header in pth.h
27000 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
27001 if test "x$ac_cv_header_pth_h" = xyes; then :
27002 cat >>confdefs.h <<_ACEOF
27003 #define HAVE_PTH_H 1
27011 if test $ac_cv_header_pth_h = yes ; then
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
27013 $as_echo_n "checking for pth_version in -lpth... " >&6; }
27014 if ${ac_cv_lib_pth_pth_version+:} false; then :
27015 $as_echo_n "(cached) " >&6
27017 ac_check_lib_save_LIBS=$LIBS
27019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27020 /* end confdefs.h. */
27022 /* Override any GCC internal prototype to avoid an error.
27023 Use char because int might match the return type of a GCC
27024 builtin and then its argument prototype would still apply. */
27028 char pth_version ();
27032 return pth_version ();
27037 if ac_fn_c_try_link "$LINENO"; then :
27038 ac_cv_lib_pth_pth_version=yes
27040 ac_cv_lib_pth_pth_version=no
27042 rm -f core conftest.err conftest.$ac_objext \
27043 conftest$ac_exeext conftest.$ac_ext
27044 LIBS=$ac_check_lib_save_LIBS
27046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
27047 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
27048 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
27055 if test $have_pth = yes ; then
27057 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
27059 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
27060 ol_link_threads=pth
27061 ol_with_threads=found
27063 if test x$ol_with_yielding_select = xauto ; then
27064 ol_with_yielding_select=yes
27071 case $ol_with_threads in auto | yes | lwp)
27073 for ac_header in thread.h synch.h
27075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27076 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27077 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27078 cat >>confdefs.h <<_ACEOF
27079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27086 if test $ac_cv_header_thread_h = yes &&
27087 test $ac_cv_header_synch_h = yes ; then
27088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
27089 $as_echo_n "checking for thr_create in -lthread... " >&6; }
27090 if ${ac_cv_lib_thread_thr_create+:} false; then :
27091 $as_echo_n "(cached) " >&6
27093 ac_check_lib_save_LIBS=$LIBS
27094 LIBS="-lthread $LIBS"
27095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27096 /* end confdefs.h. */
27098 /* Override any GCC internal prototype to avoid an error.
27099 Use char because int might match the return type of a GCC
27100 builtin and then its argument prototype would still apply. */
27104 char thr_create ();
27108 return thr_create ();
27113 if ac_fn_c_try_link "$LINENO"; then :
27114 ac_cv_lib_thread_thr_create=yes
27116 ac_cv_lib_thread_thr_create=no
27118 rm -f core conftest.err conftest.$ac_objext \
27119 conftest$ac_exeext conftest.$ac_ext
27120 LIBS=$ac_check_lib_save_LIBS
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
27123 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
27124 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
27131 if test $have_thr = yes ; then
27133 $as_echo "#define HAVE_THR 1" >>confdefs.h
27135 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
27136 ol_link_threads=thr
27138 if test x$ol_with_yielding_select = xauto ; then
27139 ol_with_yielding_select=yes
27143 thr_setconcurrency \
27144 thr_getconcurrency \
27147 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27148 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27149 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27150 cat >>confdefs.h <<_ACEOF
27151 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27160 for ac_header in lwp/lwp.h
27162 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
27163 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
27164 cat >>confdefs.h <<_ACEOF
27165 #define HAVE_LWP_LWP_H 1
27172 if test $ac_cv_header_lwp_lwp_h = yes ; then
27173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
27174 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
27175 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
27176 $as_echo_n "(cached) " >&6
27178 ac_check_lib_save_LIBS=$LIBS
27180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27181 /* end confdefs.h. */
27183 /* Override any GCC internal prototype to avoid an error.
27184 Use char because int might match the return type of a GCC
27185 builtin and then its argument prototype would still apply. */
27189 char lwp_create ();
27193 return lwp_create ();
27198 if ac_fn_c_try_link "$LINENO"; then :
27199 ac_cv_lib_lwp_lwp_create=yes
27201 ac_cv_lib_lwp_lwp_create=no
27203 rm -f core conftest.err conftest.$ac_objext \
27204 conftest$ac_exeext conftest.$ac_ext
27205 LIBS=$ac_check_lib_save_LIBS
27207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
27208 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
27209 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
27216 if test $have_lwp = yes ; then
27218 $as_echo "#define HAVE_LWP 1" >>confdefs.h
27220 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
27221 ol_link_threads=lwp
27223 if test x$ol_with_yielding_select = xauto ; then
27224 ol_with_yielding_select=no
27231 if test $ol_with_yielding_select = yes ; then
27233 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
27237 if test $ol_with_threads = manual ; then
27238 ol_link_threads=yes
27240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
27241 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
27243 for ac_header in pthread.h sched.h
27245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27246 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27247 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27248 cat >>confdefs.h <<_ACEOF
27249 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27256 for ac_func in sched_yield pthread_yield
27258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27259 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27260 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27261 cat >>confdefs.h <<_ACEOF
27262 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
27270 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
27271 if ${ol_cv_header_linux_threads+:} false; then :
27272 $as_echo_n "(cached) " >&6
27274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27275 /* end confdefs.h. */
27276 #include <pthread.h>
27278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27279 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
27280 ol_cv_header_linux_threads=yes
27282 ol_cv_header_linux_threads=no
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
27289 $as_echo "$ol_cv_header_linux_threads" >&6; }
27290 if test $ol_cv_header_linux_threads = yes; then
27292 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
27297 for ac_header in mach/cthreads.h
27299 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
27300 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
27301 cat >>confdefs.h <<_ACEOF
27302 #define HAVE_MACH_CTHREADS_H 1
27309 for ac_header in lwp/lwp.h
27311 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
27312 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
27313 cat >>confdefs.h <<_ACEOF
27314 #define HAVE_LWP_LWP_H 1
27321 for ac_header in thread.h synch.h
27323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27324 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27325 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27326 cat >>confdefs.h <<_ACEOF
27327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27336 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27338 $as_echo "#define REENTRANT 1" >>confdefs.h
27341 $as_echo "#define _REENTRANT 1" >>confdefs.h
27344 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
27347 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
27350 $as_echo "#define THREADSAFE 1" >>confdefs.h
27353 $as_echo "#define _THREADSAFE 1" >>confdefs.h
27356 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
27360 $as_echo_n "checking for thread specific errno... " >&6; }
27361 if ${ol_cv_errno_thread_specific+:} false; then :
27362 $as_echo_n "(cached) " >&6
27365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27366 /* end confdefs.h. */
27376 if ac_fn_c_try_link "$LINENO"; then :
27377 ol_cv_errno_thread_specific=yes
27379 ol_cv_errno_thread_specific=no
27381 rm -f core conftest.err conftest.$ac_objext \
27382 conftest$ac_exeext conftest.$ac_ext
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
27386 $as_echo "$ol_cv_errno_thread_specific" >&6; }
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
27389 $as_echo_n "checking for thread specific h_errno... " >&6; }
27390 if ${ol_cv_h_errno_thread_specific+:} false; then :
27391 $as_echo_n "(cached) " >&6
27394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27395 /* end confdefs.h. */
27405 if ac_fn_c_try_link "$LINENO"; then :
27406 ol_cv_h_errno_thread_specific=yes
27408 ol_cv_h_errno_thread_specific=no
27410 rm -f core conftest.err conftest.$ac_objext \
27411 conftest$ac_exeext conftest.$ac_ext
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
27415 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
27417 if test $ol_cv_errno_thread_specific != yes ||
27418 test $ol_cv_h_errno_thread_specific != yes ; then
27419 LIBS="$LTHREAD_LIBS $LIBS"
27425 if test $ol_link_threads = no ; then
27426 if test $ol_with_threads = yes ; then
27427 as_fn_error $? "no suitable thread support" "$LINENO" 5
27430 if test $ol_with_threads = auto ; then
27431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
27432 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27437 $as_echo "#define NO_THREADS 1" >>confdefs.h
27445 if test $ol_link_threads != no ; then
27447 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
27451 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
27452 case "$ol_with_threads" in
27458 ol_found_pthreads=yes
27463 ac_cpp='$CPP $CPPFLAGS'
27464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27473 case "$ol_found_pthreads" in
27476 LIBS="$LTHREAD_LIBS $LIBS"
27477 saved_CFLAGS="$CFLAGS"
27478 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
27479 for ac_func in sem_timedwait
27481 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
27482 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
27483 cat >>confdefs.h <<_ACEOF
27484 #define HAVE_SEM_TIMEDWAIT 1
27491 { saved_LIBS=; unset saved_LIBS;}
27492 CFLAGS="$saved_CFLAGS"
27493 { saved_CFLAGS=; unset saved_CFLAGS;}
27494 case "$ac_cv_func_sem_timedwait" in
27496 PTHREAD_LIBS="$LTHREAD_LIBS"
27502 case "$have_pthreads" in
27504 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
27506 LIBS="$LTHREAD_LIBS $LIBS"
27507 saved_CFLAGS="$CFLAGS"
27508 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
27509 # The cast to long int works around a bug in the HP C Compiler
27510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27512 # This bug is HP SR number 8606223364.
27513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
27514 $as_echo_n "checking size of pthread_t... " >&6; }
27515 if ${ac_cv_sizeof_pthread_t+:} false; then :
27516 $as_echo_n "(cached) " >&6
27518 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
27519 $ac_includes_default
27520 #include <pthread.h>
27526 if test "$ac_cv_type_pthread_t" = yes; then
27527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27529 as_fn_error 77 "cannot compute sizeof (pthread_t)
27530 See \`config.log' for more details" "$LINENO" 5; }
27532 ac_cv_sizeof_pthread_t=0
27537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
27538 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
27542 cat >>confdefs.h <<_ACEOF
27543 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
27547 LIBISC_PTHREADS_NOTHREADS=pthreads
27549 $as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
27552 # We'd like to use sigwait() too
27554 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
27555 if test "x$ac_cv_func_sigwait" = xyes; then :
27558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
27559 $as_echo_n "checking for sigwait in -lc... " >&6; }
27560 if ${ac_cv_lib_c_sigwait+:} false; then :
27561 $as_echo_n "(cached) " >&6
27563 ac_check_lib_save_LIBS=$LIBS
27565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27566 /* end confdefs.h. */
27568 /* Override any GCC internal prototype to avoid an error.
27569 Use char because int might match the return type of a GCC
27570 builtin and then its argument prototype would still apply. */
27583 if ac_fn_c_try_link "$LINENO"; then :
27584 ac_cv_lib_c_sigwait=yes
27586 ac_cv_lib_c_sigwait=no
27588 rm -f core conftest.err conftest.$ac_objext \
27589 conftest$ac_exeext conftest.$ac_ext
27590 LIBS=$ac_check_lib_save_LIBS
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
27593 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
27594 if test "x$ac_cv_lib_c_sigwait" = xyes; then :
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
27598 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
27599 if ${ac_cv_lib_pthread_sigwait+:} false; then :
27600 $as_echo_n "(cached) " >&6
27602 ac_check_lib_save_LIBS=$LIBS
27603 LIBS="-lpthread $LIBS"
27604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27605 /* end confdefs.h. */
27607 /* Override any GCC internal prototype to avoid an error.
27608 Use char because int might match the return type of a GCC
27609 builtin and then its argument prototype would still apply. */
27622 if ac_fn_c_try_link "$LINENO"; then :
27623 ac_cv_lib_pthread_sigwait=yes
27625 ac_cv_lib_pthread_sigwait=no
27627 rm -f core conftest.err conftest.$ac_objext \
27628 conftest$ac_exeext conftest.$ac_ext
27629 LIBS=$ac_check_lib_save_LIBS
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
27632 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
27633 if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
27636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
27637 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
27638 if ${ac_cv_lib_pthread__Psigwait+:} false; then :
27639 $as_echo_n "(cached) " >&6
27641 ac_check_lib_save_LIBS=$LIBS
27642 LIBS="-lpthread $LIBS"
27643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27644 /* end confdefs.h. */
27646 /* Override any GCC internal prototype to avoid an error.
27647 Use char because int might match the return type of a GCC
27648 builtin and then its argument prototype would still apply. */
27656 return _Psigwait ();
27661 if ac_fn_c_try_link "$LINENO"; then :
27662 ac_cv_lib_pthread__Psigwait=yes
27664 ac_cv_lib_pthread__Psigwait=no
27666 rm -f core conftest.err conftest.$ac_objext \
27667 conftest$ac_exeext conftest.$ac_ext
27668 LIBS=$ac_check_lib_save_LIBS
27670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
27671 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
27672 if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
27688 case "$host:$have_sigwait" in
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
27691 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
27692 if ${ac_cv_lib_c_r_sigwait+:} false; then :
27693 $as_echo_n "(cached) " >&6
27695 ac_check_lib_save_LIBS=$LIBS
27697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27698 /* end confdefs.h. */
27700 /* Override any GCC internal prototype to avoid an error.
27701 Use char because int might match the return type of a GCC
27702 builtin and then its argument prototype would still apply. */
27715 if ac_fn_c_try_link "$LINENO"; then :
27716 ac_cv_lib_c_r_sigwait=yes
27718 ac_cv_lib_c_r_sigwait=no
27720 rm -f core conftest.err conftest.$ac_objext \
27721 conftest$ac_exeext conftest.$ac_ext
27722 LIBS=$ac_check_lib_save_LIBS
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
27725 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
27726 if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
27732 case "$have_sigwait" in
27734 ac_cv_func_sigwait=yes
27736 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
27740 for ac_func in pthread_attr_getstacksize
27742 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
27743 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
27744 cat >>confdefs.h <<_ACEOF
27745 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
27751 for ac_func in pthread_attr_setstacksize sysconf
27753 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27754 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27755 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27756 cat >>confdefs.h <<_ACEOF
27757 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27765 *-freebsd5.[012]|*-freebsd5.[012].*)
27767 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
27769 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
27772 *-bsdi3.*|*-bsdi4.0*)
27774 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
27779 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
27783 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
27785 for ac_func in pthread_setconcurrency
27787 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
27788 if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
27789 cat >>confdefs.h <<_ACEOF
27790 #define HAVE_PTHREAD_SETCONCURRENCY 1
27796 case "$ac_cv_func_pthread_setconcurrency" in
27799 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
27803 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
27805 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
27809 hack_shutup_pthreadonceinit=no
27812 hack_shutup_pthreadonceinit=yes
27815 hack_shutup_pthreadonceinit=yes
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
27819 $as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
27820 if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
27821 $as_echo_n "(cached) " >&6
27823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27824 /* end confdefs.h. */
27826 #include <pthread.h>
27832 static pthread_once_t once_test =
27840 if ac_fn_c_try_compile "$LINENO"; then :
27841 ntp_cv_braces_around_pthread_once_init=no
27843 ntp_cv_braces_around_pthread_once_init=yes
27846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
27850 $as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
27851 case "$ntp_cv_braces_around_pthread_once_init" in
27853 hack_shutup_pthreadonceinit=yes
27857 case "$hack_shutup_pthreadonceinit" in
27860 $as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
27864 { saved_LIBS=; unset saved_LIBS;}
27865 CFLAGS="$saved_CFLAGS"
27866 { saved_CFLAGS=; unset saved_CFLAGS;}
27869 LIBISC_PTHREADS_NOTHREADS=nothreads
27873 if test "$have_pthreads" != "no"; then
27887 case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
27889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
27890 $as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
27891 if ${ntp_cv_vsnprintf_percent_m+:} false; then :
27892 $as_echo_n "(cached) " >&6
27894 if test "$cross_compiling" = yes; then :
27895 ntp_cv_vsnprintf_percent_m=no
27898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27899 /* end confdefs.h. */
27901 #include <stdarg.h>
27904 #include <string.h>
27906 int call_vsnprintf(
27913 int call_vsnprintf(
27924 rc = vsnprintf(dst, sz, fmt, ap);
27938 strcpy(sbuf, strerror(ENOENT));
27940 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
27942 return strcmp(sbuf, pbuf);
27949 if ac_fn_c_try_run "$LINENO"; then :
27950 ntp_cv_vsnprintf_percent_m=yes
27952 ntp_cv_vsnprintf_percent_m=no
27954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27955 conftest.$ac_objext conftest.beam conftest.$ac_ext
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
27961 $as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
27962 case "$ntp_cv_vsnprintf_percent_m" in
27965 $as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
27970 for ac_header in sys/clockctl.h
27972 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
27973 if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
27974 cat >>confdefs.h <<_ACEOF
27975 #define HAVE_SYS_CLOCKCTL_H 1
27983 # Check whether --enable-clockctl was given.
27984 if test "${enable_clockctl+set}" = set; then :
27985 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
27987 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
27992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
27993 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
27994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
27995 $as_echo "$ntp_use_dev_clockctl" >&6; }
27998 for ac_header in sys/capability.h sys/prctl.h
28000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28001 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28002 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28003 cat >>confdefs.h <<_ACEOF
28004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
28013 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
28015 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
28019 ntp_have_linuxcaps=no
28021 *) ntp_have_linuxcaps=yes
28026 ntp_have_linuxcaps=no
28030 # Check whether --enable-linuxcaps was given.
28031 if test "${enable_linuxcaps+set}" = set; then :
28032 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
28038 $as_echo "$ntp_have_linuxcaps" >&6; }
28040 case "$ntp_have_linuxcaps" in
28043 $as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
28050 for ac_header in priv.h
28052 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
28053 if test "x$ac_cv_header_priv_h" = xyes; then :
28054 cat >>confdefs.h <<_ACEOF
28055 #define HAVE_PRIV_H 1
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
28064 $as_echo_n "checking if we have solaris privileges... " >&6; }
28066 case "$ac_cv_header_priv_h" in
28070 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
28071 if test "x$ac_cv_func_setppriv" = xyes; then :
28072 ntp_have_solarisprivs=yes
28074 ntp_have_solarisprivs=no
28082 # Check whether --enable-solarisprivs was given.
28083 if test "${enable_solarisprivs+set}" = set; then :
28084 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
28090 case "$ntp_have_solarisprivs" in
28093 $as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
28097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
28098 $as_echo "$ntp_have_solarisprivs" >&6; }
28100 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
28103 $as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
28109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
28110 $as_echo_n "checking for library containing res_9_init... " >&6; }
28111 if ${ac_cv_search_res_9_init+:} false; then :
28112 $as_echo_n "(cached) " >&6
28114 ac_func_search_save_LIBS=$LIBS
28115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28116 /* end confdefs.h. */
28118 /* Override any GCC internal prototype to avoid an error.
28119 Use char because int might match the return type of a GCC
28120 builtin and then its argument prototype would still apply. */
28124 char res_9_init ();
28128 return res_9_init ();
28133 for ac_lib in '' resolv; do
28134 if test -z "$ac_lib"; then
28135 ac_res="none required"
28138 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28140 if ac_fn_c_try_link "$LINENO"; then :
28141 ac_cv_search_res_9_init=$ac_res
28143 rm -f core conftest.err conftest.$ac_objext \
28145 if ${ac_cv_search_res_9_init+:} false; then :
28149 if ${ac_cv_search_res_9_init+:} false; then :
28152 ac_cv_search_res_9_init=no
28154 rm conftest.$ac_ext
28155 LIBS=$ac_func_search_save_LIBS
28157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
28158 $as_echo "$ac_cv_search_res_9_init" >&6; }
28159 ac_res=$ac_cv_search_res_9_init
28160 if test "$ac_res" != no; then :
28161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28166 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
28167 $as_echo_n "checking for library containing res_init... " >&6; }
28168 if ${ac_cv_search_res_init+:} false; then :
28169 $as_echo_n "(cached) " >&6
28171 ac_func_search_save_LIBS=$LIBS
28172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28173 /* end confdefs.h. */
28175 /* Override any GCC internal prototype to avoid an error.
28176 Use char because int might match the return type of a GCC
28177 builtin and then its argument prototype would still apply. */
28185 return res_init ();
28190 for ac_lib in '' resolv; do
28191 if test -z "$ac_lib"; then
28192 ac_res="none required"
28195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28197 if ac_fn_c_try_link "$LINENO"; then :
28198 ac_cv_search_res_init=$ac_res
28200 rm -f core conftest.err conftest.$ac_objext \
28202 if ${ac_cv_search_res_init+:} false; then :
28206 if ${ac_cv_search_res_init+:} false; then :
28209 ac_cv_search_res_init=no
28211 rm conftest.$ac_ext
28212 LIBS=$ac_func_search_save_LIBS
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
28215 $as_echo "$ac_cv_search_res_init" >&6; }
28216 ac_res=$ac_cv_search_res_init
28217 if test "$ac_res" != no; then :
28218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28224 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
28226 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28227 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
28228 # include <sys/types.h>
28230 #ifdef HAVE_NETINET_IN_H
28231 # include <netinet/in.h> /* inet_ functions / structs */
28233 #ifdef HAVE_ARPA_NAMESER_H
28234 # include <arpa/nameser.h> /* DNS HEADER struct */
28236 #ifdef HAVE_NETDB_H
28237 # include <netdb.h>
28240 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28241 cat >>confdefs.h <<_ACEOF
28242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28250 #HMS: Why do we do this check so "early"?
28251 for ac_func in res_init
28253 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
28254 if test "x$ac_cv_func_res_init" = xyes; then :
28255 cat >>confdefs.h <<_ACEOF
28256 #define HAVE_RES_INIT 1
28260 for ac_func in __res_init
28262 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
28263 if test "x$ac_cv_func___res_init" = xyes; then :
28264 cat >>confdefs.h <<_ACEOF
28265 #define HAVE___RES_INIT 1
28275 # We also need -lsocket, but we have tested for that already.
28276 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28277 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28281 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
28285 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28286 if test "x$ac_cv_func_inet_pton" = xyes; then :
28290 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
28295 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
28296 if test "x$ac_cv_type_uintptr_t" = xyes; then :
28298 cat >>confdefs.h <<_ACEOF
28299 #define HAVE_UINTPTR_T 1
28304 ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
28305 if test "x$ac_cv_type_int32" = xyes; then :
28307 cat >>confdefs.h <<_ACEOF
28308 #define HAVE_INT32 1
28313 ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
28314 if test "x$ac_cv_type_u_int32" = xyes; then :
28316 cat >>confdefs.h <<_ACEOF
28317 #define HAVE_U_INT32 1
28326 case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
28328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
28329 $as_echo_n "checking for int32 with DNS headers included... " >&6; }
28330 if ${ntp_cv_type_int32_with_dns+:} false; then :
28331 $as_echo_n "(cached) " >&6
28333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28334 /* end confdefs.h. */
28336 #ifdef HAVE_ARPA_NAMESER_H
28337 # include <arpa/nameser.h>
28339 #include <resolv.h>
28345 size_t cb = sizeof(int32);
28352 if ac_fn_c_try_compile "$LINENO"; then :
28353 ntp_cv_type_int32_with_dns=yes
28355 ntp_cv_type_int32_with_dns=no
28358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
28362 $as_echo "$ntp_cv_type_int32_with_dns" >&6; }
28363 case "$ntp_cv_type_int32_with_dns" in
28366 $as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
28371 case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
28373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
28374 $as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
28375 if ${ntp_cv_type_u_int32_with_dns+:} false; then :
28376 $as_echo_n "(cached) " >&6
28378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28379 /* end confdefs.h. */
28381 #ifdef HAVE_ARPA_NAMESER_H
28382 # include <arpa/nameser.h>
28384 #include <resolv.h>
28390 size_t cb = sizeof(u_int32);
28397 if ac_fn_c_try_compile "$LINENO"; then :
28398 ntp_cv_type_u_int32_with_dns=yes
28400 ntp_cv_type_u_int32_with_dns=no
28403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
28407 $as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
28408 case "$ntp_cv_type_u_int32_with_dns" in
28411 $as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
28416 for ac_header in sys/timepps.h
28418 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
28419 #ifdef HAVE_SYS_TIME_H
28420 # include <sys/time.h>
28422 #ifdef HAVE_ERRNO_H
28423 # include <errno.h>
28428 if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
28429 cat >>confdefs.h <<_ACEOF
28430 #define HAVE_SYS_TIMEPPS_H 1
28438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
28439 $as_echo_n "checking for struct timespec... " >&6; }
28440 if ${ntp_cv_struct_timespec+:} false; then :
28441 $as_echo_n "(cached) " >&6
28443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28444 /* end confdefs.h. */
28446 #include <sys/time.h>
28447 /* Under SunOS, timespec is in sys/timepps.h,
28448 which needs errno.h and FRAC */
28449 #ifdef HAVE_ERRNO_H
28450 # include <errno.h>
28452 #ifdef HAVE_SYS_TIMEPPS_H
28453 # define FRAC 4294967296
28454 # include <sys/timepps.h>
28468 if ac_fn_c_try_compile "$LINENO"; then :
28469 ntp_cv_struct_timespec=yes
28471 ntp_cv_struct_timespec=no
28474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
28478 $as_echo "$ntp_cv_struct_timespec" >&6; }
28479 case "$ntp_cv_struct_timespec" in
28482 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
28486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
28487 $as_echo_n "checking for struct ntptimeval... " >&6; }
28488 if ${ntp_cv_struct_ntptimeval+:} false; then :
28489 $as_echo_n "(cached) " >&6
28491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28492 /* end confdefs.h. */
28494 #include <sys/time.h>
28495 #include <sys/timex.h>
28501 struct ntptimeval n;
28508 if ac_fn_c_try_compile "$LINENO"; then :
28509 ntp_cv_struct_ntptimeval=yes
28511 ntp_cv_struct_ntptimeval=no
28514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
28518 $as_echo "$ntp_cv_struct_ntptimeval" >&6; }
28519 case "$ntp_cv_struct_ntptimeval" in
28522 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
28526 for ac_header in md5.h
28528 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
28529 #ifdef HAVE_SYS_TYPES_H
28530 # include <sys/types.h>
28535 if test "x$ac_cv_header_md5_h" = xyes; then :
28536 cat >>confdefs.h <<_ACEOF
28537 #define HAVE_MD5_H 1
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
28546 $as_echo_n "checking for library containing MD5Init... " >&6; }
28547 if ${ac_cv_search_MD5Init+:} false; then :
28548 $as_echo_n "(cached) " >&6
28550 ac_func_search_save_LIBS=$LIBS
28551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28552 /* end confdefs.h. */
28554 /* Override any GCC internal prototype to avoid an error.
28555 Use char because int might match the return type of a GCC
28556 builtin and then its argument prototype would still apply. */
28569 for ac_lib in '' md5 md; do
28570 if test -z "$ac_lib"; then
28571 ac_res="none required"
28574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28576 if ac_fn_c_try_link "$LINENO"; then :
28577 ac_cv_search_MD5Init=$ac_res
28579 rm -f core conftest.err conftest.$ac_objext \
28581 if ${ac_cv_search_MD5Init+:} false; then :
28585 if ${ac_cv_search_MD5Init+:} false; then :
28588 ac_cv_search_MD5Init=no
28590 rm conftest.$ac_ext
28591 LIBS=$ac_func_search_save_LIBS
28593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
28594 $as_echo "$ac_cv_search_MD5Init" >&6; }
28595 ac_res=$ac_cv_search_MD5Init
28596 if test "$ac_res" != no; then :
28597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28601 for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
28603 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28604 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28605 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28606 cat >>confdefs.h <<_ACEOF
28607 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
28615 $as_echo_n "checking for SIGIO... " >&6; }
28616 if ${ntp_cv_hdr_def_sigio+:} false; then :
28617 $as_echo_n "(cached) " >&6
28619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28620 /* end confdefs.h. */
28622 #include <signal.h>
28629 if ac_fn_c_try_cpp "$LINENO"; then :
28630 ntp_cv_hdr_def_sigio=yes
28632 ntp_cv_hdr_def_sigio=no
28635 rm -f conftest.err conftest.i conftest.$ac_ext
28638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
28639 $as_echo "$ntp_cv_hdr_def_sigio" >&6; }
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
28642 $as_echo_n "checking if we want to use SIGIO... " >&6; }
28644 case "$ntp_cv_hdr_def_sigio" in
28648 alpha*-dec-osf4*|alpha*-dec-osf5*)
28693 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
28696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28697 $as_echo "$ans" >&6; }
28699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
28700 $as_echo_n "checking for SIGPOLL... " >&6; }
28701 if ${ntp_cv_hdr_def_sigpoll+:} false; then :
28702 $as_echo_n "(cached) " >&6
28704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28705 /* end confdefs.h. */
28707 #include <signal.h>
28714 if ac_fn_c_try_cpp "$LINENO"; then :
28715 ntp_cv_hdr_def_sigpoll=yes
28717 ntp_cv_hdr_def_sigpoll=no
28720 rm -f conftest.err conftest.i conftest.$ac_ext
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
28724 $as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
28726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
28727 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
28729 case "$ntp_cv_hdr_def_sigpoll" in
28748 # XXX Only verified thru AIX6
28786 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
28789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28790 $as_echo "$ans" >&6; }
28792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
28793 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
28795 case "$ntp_cv_hdr_def_sigpoll" in
28814 # XXX Only verified thru AIX6
28849 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
28852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28853 $as_echo "$ans" >&6; }
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
28856 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
28857 if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
28858 $as_echo_n "(cached) " >&6
28860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28861 /* end confdefs.h. */
28863 #include <sys/time.h>
28869 gettimeofday(0, 0);
28870 settimeofday(0, 0);
28877 if ac_fn_c_try_compile "$LINENO"; then :
28878 ntp_cv_func_Xettimeofday_nargs=2
28880 ntp_cv_func_Xettimeofday_nargs=1
28883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
28887 $as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
28888 case "$ntp_cv_func_Xettimeofday_nargs" in
28891 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
28895 for ac_func in settimeofday
28897 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
28898 if test "x$ac_cv_func_settimeofday" = xyes; then :
28899 cat >>confdefs.h <<_ACEOF
28900 #define HAVE_SETTIMEOFDAY 1
28906 *-*-mpeix*) ac_cv_func_settimeofday=yes
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
28914 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
28915 ntp_warning='GRONK'
28917 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
28920 ans='clock_settime()'
28923 ntp_warning='But clock_settime() would be better (if we had it)'
28924 ans='settimeofday()'
28927 ntp_warning='Which is the worst of the three'
28933 ntp_warning='Which leaves us with nothing to use!'
28936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28937 $as_echo "$ans" >&6; }
28938 case "$ntp_warning" in
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
28943 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
28948 LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
28950 { __LIBS=; unset __LIBS;}
28954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
28955 $as_echo_n "checking for deprecated --with-arlib... " >&6; }
28957 # Check whether --with-arlib was given.
28958 if test "${with_arlib+set}" = set; then :
28959 withval=$with_arlib; ans=$withval
28964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28965 $as_echo "$ans" >&6; }
28969 { $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
28970 $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;}
28974 for ac_prog in gawk mawk nawk awk
28976 # Extract the first word of "$ac_prog", so it can be a program name with args.
28977 set dummy $ac_prog; ac_word=$2
28978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28979 $as_echo_n "checking for $ac_word... " >&6; }
28980 if ${ac_cv_prog_AWK+:} false; then :
28981 $as_echo_n "(cached) " >&6
28983 if test -n "$AWK"; then
28984 ac_cv_prog_AWK="$AWK" # Let the user override the test.
28986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28987 for as_dir in $PATH
28990 test -z "$as_dir" && as_dir=.
28991 for ac_exec_ext in '' $ac_executable_extensions; do
28992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28993 ac_cv_prog_AWK="$ac_prog"
28994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29003 AWK=$ac_cv_prog_AWK
29004 if test -n "$AWK"; then
29005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
29006 $as_echo "$AWK" >&6; }
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29009 $as_echo "no" >&6; }
29013 test -n "$AWK" && break
29016 { ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
29017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
29018 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
29020 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
29021 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
29022 $as_echo_n "(cached) " >&6
29024 cat >conftest.make <<\_ACEOF
29027 @echo '@@@%%%=$(MAKE)=@@@%%%'
29029 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29030 case `${MAKE-make} -f conftest.make 2>/dev/null` in
29031 *@@@%%%=?*=@@@%%%*)
29032 eval ac_cv_prog_make_${ac_make}_set=yes;;
29034 eval ac_cv_prog_make_${ac_make}_set=no;;
29036 rm -f conftest.make
29038 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
29039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29040 $as_echo "yes" >&6; }
29043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29044 $as_echo "no" >&6; }
29045 SET_MAKE="MAKE=${MAKE-make}"
29052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
29053 $as_echo_n "checking whether ln -s works... " >&6; }
29055 if test "$LN_S" = "ln -s"; then
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29057 $as_echo "yes" >&6; }
29059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
29060 $as_echo "no, using $LN_S" >&6; }
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
29064 $as_echo_n "checking for library containing strerror... " >&6; }
29065 if ${ac_cv_search_strerror+:} false; then :
29066 $as_echo_n "(cached) " >&6
29068 ac_func_search_save_LIBS=$LIBS
29069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29070 /* end confdefs.h. */
29072 /* Override any GCC internal prototype to avoid an error.
29073 Use char because int might match the return type of a GCC
29074 builtin and then its argument prototype would still apply. */
29082 return strerror ();
29087 for ac_lib in '' cposix; do
29088 if test -z "$ac_lib"; then
29089 ac_res="none required"
29092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29094 if ac_fn_c_try_link "$LINENO"; then :
29095 ac_cv_search_strerror=$ac_res
29097 rm -f core conftest.err conftest.$ac_objext \
29099 if ${ac_cv_search_strerror+:} false; then :
29103 if ${ac_cv_search_strerror+:} false; then :
29106 ac_cv_search_strerror=no
29108 rm conftest.$ac_ext
29109 LIBS=$ac_func_search_save_LIBS
29111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
29112 $as_echo "$ac_cv_search_strerror" >&6; }
29113 ac_res=$ac_cv_search_strerror
29114 if test "$ac_res" != no; then :
29115 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29121 # Extract the first word of "perl", so it can be a program name with args.
29122 set dummy perl; ac_word=$2
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29124 $as_echo_n "checking for $ac_word... " >&6; }
29125 if ${ac_cv_path_PATH_PERL+:} false; then :
29126 $as_echo_n "(cached) " >&6
29130 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
29133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29134 for as_dir in $PATH
29137 test -z "$as_dir" && as_dir=.
29138 for ac_exec_ext in '' $ac_executable_extensions; do
29139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29140 ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
29141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29151 PATH_PERL=$ac_cv_path_PATH_PERL
29152 if test -n "$PATH_PERL"; then
29153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
29154 $as_echo "$PATH_PERL" >&6; }
29156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29157 $as_echo "no" >&6; }
29161 { ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
29162 # Extract the first word of "test", so it can be a program name with args.
29163 set dummy test; ac_word=$2
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29165 $as_echo_n "checking for $ac_word... " >&6; }
29166 if ${ac_cv_path_PATH_TEST+:} false; then :
29167 $as_echo_n "(cached) " >&6
29171 ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
29174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29175 for as_dir in $PATH
29178 test -z "$as_dir" && as_dir=.
29179 for ac_exec_ext in '' $ac_executable_extensions; do
29180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29181 ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
29182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29192 PATH_TEST=$ac_cv_path_PATH_TEST
29193 if test -n "$PATH_TEST"; then
29194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
29195 $as_echo "$PATH_TEST" >&6; }
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29198 $as_echo "no" >&6; }
29202 { ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
29203 test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
29206 # Check whether --with-net-snmp-config was given.
29207 if test "${with_net_snmp_config+set}" = set; then :
29208 withval=$with_net_snmp_config; ans=$withval
29218 ans=net-snmp-config
29223 as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
29228 PROG_NET_SNMP_CONFIG=$ans
29229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
29230 $as_echo_n "checking for net-snmp-config path... " >&6; }
29231 case "$PROG_NET_SNMP_CONFIG" in
29234 PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
29237 # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
29238 set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
29239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29240 $as_echo_n "checking for $ac_word... " >&6; }
29241 if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
29242 $as_echo_n "(cached) " >&6
29244 case $PATH_NET_SNMP_CONFIG in
29246 ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
29249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29250 for as_dir in $PATH
29253 test -z "$as_dir" && as_dir=.
29254 for ac_exec_ext in '' $ac_executable_extensions; do
29255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29256 ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29267 PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
29268 if test -n "$PATH_NET_SNMP_CONFIG"; then
29269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
29270 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
29272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29273 $as_echo "no" >&6; }
29277 { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
29280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
29281 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
29283 case "$PATH_NET_SNMP_CONFIG" in
29284 /*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
29285 $as_echo_n "checking for net-snmp version... " >&6; }
29286 if ${ntp_cv_net_snmp_version+:} false; then :
29287 $as_echo_n "(cached) " >&6
29289 ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version`
29292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
29293 $as_echo "$ntp_cv_net_snmp_version" >&6; }
29299 ac_link="$ac_link $VX_KERNEL"
29303 # HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
29304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
29305 $as_echo_n "checking for library containing openlog... " >&6; }
29306 if ${ac_cv_search_openlog+:} false; then :
29307 $as_echo_n "(cached) " >&6
29309 ac_func_search_save_LIBS=$LIBS
29310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29311 /* end confdefs.h. */
29313 /* Override any GCC internal prototype to avoid an error.
29314 Use char because int might match the return type of a GCC
29315 builtin and then its argument prototype would still apply. */
29328 for ac_lib in '' gen syslog; do
29329 if test -z "$ac_lib"; then
29330 ac_res="none required"
29333 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29335 if ac_fn_c_try_link "$LINENO"; then :
29336 ac_cv_search_openlog=$ac_res
29338 rm -f core conftest.err conftest.$ac_objext \
29340 if ${ac_cv_search_openlog+:} false; then :
29344 if ${ac_cv_search_openlog+:} false; then :
29347 ac_cv_search_openlog=no
29349 rm conftest.$ac_ext
29350 LIBS=$ac_func_search_save_LIBS
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
29353 $as_echo "$ac_cv_search_openlog" >&6; }
29354 ac_res=$ac_cv_search_openlog
29355 if test "$ac_res" != no; then :
29356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29360 # XXX library list will be in ac_cv_search_openlog
29362 # LIBSECCOMP is off by default -- needs testing with all the features
29363 # Please send bug reports to loganaden@gmail.com
29364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
29365 $as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
29366 # Check whether --enable-libseccomp was given.
29367 if test "${enable_libseccomp+set}" = set; then :
29368 enableval=$enable_libseccomp; ntp_ok=$enableval
29374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29375 $as_echo "$ntp_ok" >&6; }
29378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
29379 $as_echo_n "checking for library containing seccomp_init... " >&6; }
29380 if ${ac_cv_search_seccomp_init+:} false; then :
29381 $as_echo_n "(cached) " >&6
29383 ac_func_search_save_LIBS=$LIBS
29384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29385 /* end confdefs.h. */
29387 /* Override any GCC internal prototype to avoid an error.
29388 Use char because int might match the return type of a GCC
29389 builtin and then its argument prototype would still apply. */
29393 char seccomp_init ();
29397 return seccomp_init ();
29402 for ac_lib in '' seccomp; do
29403 if test -z "$ac_lib"; then
29404 ac_res="none required"
29407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29409 if ac_fn_c_try_link "$LINENO"; then :
29410 ac_cv_search_seccomp_init=$ac_res
29412 rm -f core conftest.err conftest.$ac_objext \
29414 if ${ac_cv_search_seccomp_init+:} false; then :
29418 if ${ac_cv_search_seccomp_init+:} false; then :
29421 ac_cv_search_seccomp_init=no
29423 rm conftest.$ac_ext
29424 LIBS=$ac_func_search_save_LIBS
29426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
29427 $as_echo "$ac_cv_search_seccomp_init" >&6; }
29428 ac_res=$ac_cv_search_seccomp_init
29429 if test "$ac_res" != no; then :
29430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29432 $as_echo "#define LIBSECCOMP 1" >>confdefs.h
29437 if test "$cross_compiling" = yes; then :
29438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29440 as_fn_error $? "cannot run test program while cross compiling
29441 See \`config.log' for more details" "$LINENO" 5; }
29443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29444 /* end confdefs.h. */
29447 #include <stdlib.h>
29449 #include <sys/prctl.h>
29450 #include <linux/seccomp.h>
29455 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
29467 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
29483 if ac_fn_c_try_run "$LINENO"; then :
29485 $as_echo "#define KERN_SECCOMP 1" >>confdefs.h
29489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29490 conftest.$ac_objext conftest.beam conftest.$ac_ext
29497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
29498 $as_echo_n "checking for facilitynames in syslog.h... " >&6; }
29499 if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
29500 $as_echo_n "(cached) " >&6
29503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29504 /* end confdefs.h. */
29506 #define SYSLOG_NAMES
29507 #include <stdlib.h>
29508 #include <syslog.h>
29513 void *fnames; fnames = facilitynames;
29518 if ac_fn_c_try_compile "$LINENO"; then :
29519 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
29521 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
29523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
29526 $as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
29527 case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
29530 $as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
29534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
29535 $as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
29538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
29539 $as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
29550 # HMS: Make sure we check for -lrt for clock_* before this...
29551 case "$ac_cv_search_clock_gettime" in
29552 '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
29554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
29555 $as_echo_n "checking for library containing sched_setscheduler... " >&6; }
29556 if ${ac_cv_search_sched_setscheduler+:} false; then :
29557 $as_echo_n "(cached) " >&6
29559 ac_func_search_save_LIBS=$LIBS
29560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29561 /* end confdefs.h. */
29563 /* Override any GCC internal prototype to avoid an error.
29564 Use char because int might match the return type of a GCC
29565 builtin and then its argument prototype would still apply. */
29569 char sched_setscheduler ();
29573 return sched_setscheduler ();
29578 for ac_lib in '' rt posix4; do
29579 if test -z "$ac_lib"; then
29580 ac_res="none required"
29583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29585 if ac_fn_c_try_link "$LINENO"; then :
29586 ac_cv_search_sched_setscheduler=$ac_res
29588 rm -f core conftest.err conftest.$ac_objext \
29590 if ${ac_cv_search_sched_setscheduler+:} false; then :
29594 if ${ac_cv_search_sched_setscheduler+:} false; then :
29597 ac_cv_search_sched_setscheduler=no
29599 rm conftest.$ac_ext
29600 LIBS=$ac_func_search_save_LIBS
29602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
29603 $as_echo "$ac_cv_search_sched_setscheduler" >&6; }
29604 ac_res=$ac_cv_search_sched_setscheduler
29605 if test "$ac_res" != no; then :
29606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29613 for ac_header in bstring.h
29615 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
29616 if test "x$ac_cv_header_bstring_h" = xyes; then :
29617 cat >>confdefs.h <<_ACEOF
29618 #define HAVE_BSTRING_H 1
29625 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
29626 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
29627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
29628 $as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
29629 if ${ac_cv_search_DNSServiceRegister+:} false; then :
29630 $as_echo_n "(cached) " >&6
29632 ac_func_search_save_LIBS=$LIBS
29633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29634 /* end confdefs.h. */
29636 /* Override any GCC internal prototype to avoid an error.
29637 Use char because int might match the return type of a GCC
29638 builtin and then its argument prototype would still apply. */
29642 char DNSServiceRegister ();
29646 return DNSServiceRegister ();
29651 for ac_lib in '' dns_sd; do
29652 if test -z "$ac_lib"; then
29653 ac_res="none required"
29656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29658 if ac_fn_c_try_link "$LINENO"; then :
29659 ac_cv_search_DNSServiceRegister=$ac_res
29661 rm -f core conftest.err conftest.$ac_objext \
29663 if ${ac_cv_search_DNSServiceRegister+:} false; then :
29667 if ${ac_cv_search_DNSServiceRegister+:} false; then :
29670 ac_cv_search_DNSServiceRegister=no
29672 rm conftest.$ac_ext
29673 LIBS=$ac_func_search_save_LIBS
29675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
29676 $as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
29677 ac_res=$ac_cv_search_DNSServiceRegister
29678 if test "$ac_res" != no; then :
29679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29681 $as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
29690 for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
29692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29693 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29694 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29695 cat >>confdefs.h <<_ACEOF
29696 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29704 for ac_header in memory.h netdb.h poll.h
29706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29707 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29708 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29709 cat >>confdefs.h <<_ACEOF
29710 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29717 for ac_header in sgtty.h stdatomic.h
29719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29720 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29721 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29722 cat >>confdefs.h <<_ACEOF
29723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
29731 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
29732 if ${ac_cv_header_stdbool_h+:} false; then :
29733 $as_echo_n "(cached) " >&6
29735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29736 /* end confdefs.h. */
29738 #include <stdbool.h>
29740 "error: bool is not defined"
29743 "error: false is not defined"
29746 "error: false is not 0"
29749 "error: true is not defined"
29752 "error: true is not 1"
29754 #ifndef __bool_true_false_are_defined
29755 "error: __bool_true_false_are_defined is not defined"
29758 struct s { _Bool s: 1; _Bool t; } s;
29760 char a[true == 1 ? 1 : -1];
29761 char b[false == 0 ? 1 : -1];
29762 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
29763 char d[(bool) 0.5 == true ? 1 : -1];
29764 /* See body of main program for 'e'. */
29765 char f[(_Bool) 0.0 == false ? 1 : -1];
29767 char h[sizeof (_Bool)];
29768 char i[sizeof s.t];
29769 enum { j = false, k = true, l = false * true, m = true * 256 };
29770 /* The following fails for
29771 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
29773 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
29774 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
29775 /* Catch a bug in an HP-UX C compiler. See
29776 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
29777 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
29789 /* Refer to every declared value, to avoid compiler optimizations. */
29790 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
29791 + !m + !n + !o + !p + !q + !pq);
29797 if ac_fn_c_try_compile "$LINENO"; then :
29798 ac_cv_header_stdbool_h=yes
29800 ac_cv_header_stdbool_h=no
29802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
29805 $as_echo "$ac_cv_header_stdbool_h" >&6; }
29806 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
29807 if test "x$ac_cv_type__Bool" = xyes; then :
29809 cat >>confdefs.h <<_ACEOF
29810 #define HAVE__BOOL 1
29817 if test $ac_cv_header_stdbool_h = yes; then
29819 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
29823 for ac_header in stdlib.h string.h termio.h
29825 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29826 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29827 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29828 cat >>confdefs.h <<_ACEOF
29829 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29836 for ac_header in termios.h timepps.h timex.h unistd.h
29838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29839 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29840 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29841 cat >>confdefs.h <<_ACEOF
29842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29852 for ac_header in utmpx.h
29854 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
29855 if test "x$ac_cv_header_utmpx_h" = xyes; then :
29856 cat >>confdefs.h <<_ACEOF
29857 #define HAVE_UTMPX_H 1
29864 case "$ac_cv_header_utmpx_h" in
29868 for ac_header in utmp.h
29870 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
29871 if test "x$ac_cv_header_utmp_h" = xyes; then :
29872 cat >>confdefs.h <<_ACEOF
29873 #define HAVE_UTMP_H 1
29884 for ac_header in utmp.h utmpx.h
29886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29887 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29888 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29889 cat >>confdefs.h <<_ACEOF
29890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29901 # On Suns only (so far) getpass() truncates the typed password to 8
29902 # characters, but getpassphrase() allows up to 257. Most systems'
29903 # getpass() does not truncate, at least not so as to affect ntpq and
29904 # ntpdc password prompts.
29906 # So check for getpassphrase(), but only on Sun operating systems.
29909 *-*-sunos*|*-*-solaris*)
29910 for ac_func in getpassphrase
29912 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
29913 if test "x$ac_cv_func_getpassphrase" = xyes; then :
29914 cat >>confdefs.h <<_ACEOF
29915 #define HAVE_GETPASSPHRASE 1
29924 for ac_header in net/if6.h
29926 ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
29927 if test "x$ac_cv_header_net_if6_h" = xyes; then :
29928 cat >>confdefs.h <<_ACEOF
29929 #define HAVE_NET_IF6_H 1
29936 for ac_header in net/route.h
29938 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
29939 #include <sys/types.h>
29940 #include <sys/socket.h>
29941 #include <net/if.h>
29944 if test "x$ac_cv_header_net_route_h" = xyes; then :
29945 cat >>confdefs.h <<_ACEOF
29946 #define HAVE_NET_ROUTE_H 1
29954 for ac_header in netinfo/ni.h
29956 ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
29957 if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
29958 cat >>confdefs.h <<_ACEOF
29959 #define HAVE_NETINFO_NI_H 1
29966 case "$ac_cv_header_netinfo_ni_h" in
29969 $as_echo "#define HAVE_NETINFO 1" >>confdefs.h
29972 for ac_header in sun/audioio.h sys/audioio.h sys/file.h
29974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29975 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29976 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29977 cat >>confdefs.h <<_ACEOF
29978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29989 for ac_header in sys/ioctl.h
29991 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
29992 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
29993 cat >>confdefs.h <<_ACEOF
29994 #define HAVE_SYS_IOCTL_H 1
30003 for ac_header in sys/ipc.h sys/lock.h sys/mman.h
30005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30006 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30007 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30008 cat >>confdefs.h <<_ACEOF
30009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30016 # HMS: Check sys/proc.h and sys/resource.h after some others
30017 for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
30019 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30020 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30021 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30022 cat >>confdefs.h <<_ACEOF
30023 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30030 case "$ac_cv_header_sched_h" in
30034 for ac_header in sys/sched.h
30036 ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
30037 if test "x$ac_cv_header_sys_sched_h" = xyes; then :
30038 cat >>confdefs.h <<_ACEOF
30039 #define HAVE_SYS_SCHED_H 1
30048 # HMS: Check sys/shm.h after some others
30049 for ac_header in sys/select.h sys/signal.h sys/sockio.h
30051 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30052 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30053 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30054 cat >>confdefs.h <<_ACEOF
30055 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30062 # HMS: Checked sys/socket.h earlier
30067 for ac_header in machine/soundcard.h sys/soundcard.h
30069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30070 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30071 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30072 cat >>confdefs.h <<_ACEOF
30073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30082 for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
30084 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30085 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30086 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30087 cat >>confdefs.h <<_ACEOF
30088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30095 for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
30097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30098 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30099 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30100 cat >>confdefs.h <<_ACEOF
30101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30110 for ac_header in /sys/sync/queue.h /sys/sync/sema.h
30112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30113 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30114 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30115 cat >>confdefs.h <<_ACEOF
30116 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30125 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
30127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30128 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30129 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30130 cat >>confdefs.h <<_ACEOF
30131 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30141 case "$ac_cv_header_stdatomic_h" in
30143 for ac_func in atomic_thread_fence
30145 ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
30146 if test "x$ac_cv_func_atomic_thread_fence" = xyes; then :
30147 cat >>confdefs.h <<_ACEOF
30148 #define HAVE_ATOMIC_THREAD_FENCE 1
30154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
30155 $as_echo_n "checking for atomic_thread_fence()... " >&6; }
30156 if ${ntp_cv_func_atomic_thread_fence+:} false; then :
30157 $as_echo_n "(cached) " >&6
30159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30160 /* end confdefs.h. */
30162 #include <stdatomic.h>
30168 atomic_thread_fence(memory_order_seq_cst);
30174 ntp_cv_func_atomic_thread_fence=yes
30176 if ac_fn_c_try_compile "$LINENO"; then :
30177 ntp_cv_func_atomic_thread_fence=no
30180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
30184 $as_echo "$ntp_cv_func_atomic_thread_fence" >&6; }
30193 for ac_func in ntp_adjtime ntp_gettime
30195 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30196 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30197 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30198 cat >>confdefs.h <<_ACEOF
30199 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30210 case "$ac_cv_func_ntp_gettime" in
30214 for ac_func in __ntp_gettime
30216 ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
30217 if test "x$ac_cv_func___ntp_gettime" = xyes; then :
30218 cat >>confdefs.h <<_ACEOF
30219 #define HAVE___NTP_GETTIME 1
30225 case "$ac_cv_func___ntp_gettime" in
30228 $as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
30231 $as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h
30236 for ac_func in adjtimex
30238 ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
30239 if test "x$ac_cv_func_adjtimex" = xyes; then :
30240 cat >>confdefs.h <<_ACEOF
30241 #define HAVE_ADJTIMEX 1
30247 case "$ac_cv_func_adjtimex" in
30250 $as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
30253 $as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
30258 for ac_func in __adjtimex
30260 ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
30261 if test "x$ac_cv_func___adjtimex" = xyes; then :
30262 cat >>confdefs.h <<_ACEOF
30263 #define HAVE___ADJTIMEX 1
30269 case "$ac_cv_func___adjtimex" in
30272 $as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
30275 $as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
30278 $as_echo "#define adjtimex __adjtimex" >>confdefs.h
30281 $as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h
30288 case "$have_adjtimex" in
30290 # nlist stuff is only needed for tickadj.
30293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
30294 $as_echo_n "checking for library containing nlist... " >&6; }
30295 if ${ac_cv_search_nlist+:} false; then :
30296 $as_echo_n "(cached) " >&6
30298 ac_func_search_save_LIBS=$LIBS
30299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30300 /* end confdefs.h. */
30302 /* Override any GCC internal prototype to avoid an error.
30303 Use char because int might match the return type of a GCC
30304 builtin and then its argument prototype would still apply. */
30317 for ac_lib in '' elf ld mld; do
30318 if test -z "$ac_lib"; then
30319 ac_res="none required"
30322 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30324 if ac_fn_c_try_link "$LINENO"; then :
30325 ac_cv_search_nlist=$ac_res
30327 rm -f core conftest.err conftest.$ac_objext \
30329 if ${ac_cv_search_nlist+:} false; then :
30333 if ${ac_cv_search_nlist+:} false; then :
30336 ac_cv_search_nlist=no
30338 rm conftest.$ac_ext
30339 LIBS=$ac_func_search_save_LIBS
30341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
30342 $as_echo "$ac_cv_search_nlist" >&6; }
30343 ac_res=$ac_cv_search_nlist
30344 if test "$ac_res" != no; then :
30345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30349 # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
30350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
30351 $as_echo_n "checking for library containing kvm_open... " >&6; }
30352 if ${ac_cv_search_kvm_open+:} false; then :
30353 $as_echo_n "(cached) " >&6
30355 ac_func_search_save_LIBS=$LIBS
30356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30357 /* end confdefs.h. */
30359 /* Override any GCC internal prototype to avoid an error.
30360 Use char because int might match the return type of a GCC
30361 builtin and then its argument prototype would still apply. */
30369 return kvm_open ();
30374 for ac_lib in '' kvm; do
30375 if test -z "$ac_lib"; then
30376 ac_res="none required"
30379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30381 if ac_fn_c_try_link "$LINENO"; then :
30382 ac_cv_search_kvm_open=$ac_res
30384 rm -f core conftest.err conftest.$ac_objext \
30386 if ${ac_cv_search_kvm_open+:} false; then :
30390 if ${ac_cv_search_kvm_open+:} false; then :
30393 ac_cv_search_kvm_open=no
30395 rm conftest.$ac_ext
30396 LIBS=$ac_func_search_save_LIBS
30398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
30399 $as_echo "$ac_cv_search_kvm_open" >&6; }
30400 ac_res=$ac_cv_search_kvm_open
30401 if test "$ac_res" != no; then :
30402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30405 # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
30406 for ac_header in nlist.h sys/var.h
30408 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30409 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30410 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30411 cat >>confdefs.h <<_ACEOF
30412 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30419 case "$ac_cv_header_nlist_h" in
30422 $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
30424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
30425 $as_echo_n "checking for n_un in struct nlist... " >&6; }
30426 if ${ntp_cv_struct_nlist_n_un+:} false; then :
30427 $as_echo_n "(cached) " >&6
30429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30430 /* end confdefs.h. */
30445 ntp_cv_struct_nlist_n_un=yes
30447 if ac_fn_c_try_compile "$LINENO"; then :
30448 ntp_cv_struct_nlist_n_un=no
30451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
30455 $as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
30456 case "$ntp_cv_struct_nlist_n_un" in
30459 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
30464 LDADD_NLIST="$LIBS"
30466 { saved_LIBS=; unset saved_LIBS;}
30469 for ac_header in sys/proc.h
30471 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
30472 #ifdef HAVE_SYS_TYPES_H
30473 # include <sys/types.h>
30475 #ifdef HAVE_SYS_TIME_H
30476 # include <sys/time.h>
30480 if test "x$ac_cv_header_sys_proc_h" = xyes; then :
30481 cat >>confdefs.h <<_ACEOF
30482 #define HAVE_SYS_PROC_H 1
30490 for ac_header in sys/resource.h
30492 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
30493 #ifdef HAVE_SYS_TIME_H
30494 # include <sys/time.h>
30498 if test "x$ac_cv_header_sys_resource_h" = xyes; then :
30499 cat >>confdefs.h <<_ACEOF
30500 #define HAVE_SYS_RESOURCE_H 1
30508 for ac_header in sys/shm.h
30510 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
30511 #ifdef HAVE_SYS_TYPES_H
30512 # include <sys/types.h>
30514 #ifdef HAVE_SYS_IPC_H
30515 # include <sys/ipc.h>
30519 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
30520 cat >>confdefs.h <<_ACEOF
30521 #define HAVE_SYS_SHM_H 1
30529 for ac_header in sys/timex.h
30531 ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
30532 #ifdef HAVE_SYS_TIME_H
30533 # include <sys/time.h>
30537 if test "x$ac_cv_header_sys_timex_h" = xyes; then :
30538 cat >>confdefs.h <<_ACEOF
30539 #define HAVE_SYS_TIMEX_H 1
30547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
30548 $as_echo_n "checking return type of signal handlers... " >&6; }
30549 if ${ac_cv_type_signal+:} false; then :
30550 $as_echo_n "(cached) " >&6
30552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30553 /* end confdefs.h. */
30554 #include <sys/types.h>
30555 #include <signal.h>
30560 return *(signal (0, 0)) (0) == 1;
30565 if ac_fn_c_try_compile "$LINENO"; then :
30566 ac_cv_type_signal=int
30568 ac_cv_type_signal=void
30570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
30573 $as_echo "$ac_cv_type_signal" >&6; }
30575 cat >>confdefs.h <<_ACEOF
30576 #define RETSIGTYPE $ac_cv_type_signal
30580 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
30581 if test "x$ac_cv_type_off_t" = xyes; then :
30585 cat >>confdefs.h <<_ACEOF
30586 #define off_t long int
30591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
30592 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
30593 if ${ac_cv_struct_tm+:} false; then :
30594 $as_echo_n "(cached) " >&6
30596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30597 /* end confdefs.h. */
30598 #include <sys/types.h>
30605 int *p = &tm.tm_sec;
30611 if ac_fn_c_try_compile "$LINENO"; then :
30612 ac_cv_struct_tm=time.h
30614 ac_cv_struct_tm=sys/time.h
30616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
30619 $as_echo "$ac_cv_struct_tm" >&6; }
30620 if test $ac_cv_struct_tm = sys/time.h; then
30622 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
30626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
30627 $as_echo_n "checking for a fallback value for HZ... " >&6; }
30628 if ${ntp_cv_default_hz+:} false; then :
30629 $as_echo_n "(cached) " >&6
30632 ntp_cv_default_hz=100
30634 alpha*-dec-osf4*|alpha*-dec-osf5*)
30635 ntp_cv_default_hz=1024
30638 ntp_cv_default_hz=256
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
30645 $as_echo "$ntp_cv_default_hz" >&6; }
30647 cat >>confdefs.h <<_ACEOF
30648 #define DEFAULT_HZ $ntp_cv_default_hz
30652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
30653 $as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
30654 if ${ntp_cv_override_hz+:} false; then :
30655 $as_echo_n "(cached) " >&6
30658 ntp_cv_override_hz=no
30660 alpha*-dec-osf4*|alpha*-dec-osf5*)
30661 ntp_cv_override_hz=yes
30664 ntp_cv_override_hz=yes
30667 ntp_cv_override_hz=yes
30670 ntp_cv_override_hz=yes
30673 ntp_cv_override_hz=yes
30679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
30680 $as_echo "$ntp_cv_override_hz" >&6; }
30681 case "$ntp_cv_override_hz" in
30684 $as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
30690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
30691 $as_echo_n "checking for struct rt_msghdr... " >&6; }
30692 if ${ntp_cv_struct_rt_msghdr+:} false; then :
30693 $as_echo_n "(cached) " >&6
30695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30696 /* end confdefs.h. */
30698 #include <sys/types.h>
30699 #include <sys/socket.h>
30700 #include <net/if.h>
30701 #include <net/route.h>
30707 struct rt_msghdr p;
30714 if ac_fn_c_try_compile "$LINENO"; then :
30715 ntp_cv_struct_rt_msghdr=yes
30717 ntp_cv_struct_rt_msghdr=no
30720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
30724 $as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
30726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
30727 $as_echo_n "checking for struct rtattr... " >&6; }
30728 if ${ntp_cv_rtattr+:} false; then :
30729 $as_echo_n "(cached) " >&6
30731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30732 /* end confdefs.h. */
30734 #include <stddef.h>
30735 #include <sys/socket.h>
30736 #include <linux/rtnetlink.h>
30749 if ac_fn_c_try_compile "$LINENO"; then :
30755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
30759 $as_echo "$ntp_cv_rtattr" >&6; }
30761 case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
30764 $as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
30766 case "$ntp_cv_rtattr" in
30769 $as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
30775 $as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
30776 if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
30777 $as_echo_n "(cached) " >&6
30779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30780 /* end confdefs.h. */
30782 #include <signal.h>
30788 struct sigaction act;
30789 act.sa_sigaction = 0;
30796 if ac_fn_c_try_compile "$LINENO"; then :
30797 ntp_cv_struct_sigaction_has_sa_sigaction=yes
30799 ntp_cv_struct_sigaction_has_sa_sigaction=no
30802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
30806 $as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
30807 case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
30810 $as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
30814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
30815 $as_echo_n "checking for struct ppsclockev... " >&6; }
30816 if ${ntp_cv_struct_ppsclockev+:} false; then :
30817 $as_echo_n "(cached) " >&6
30819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30820 /* end confdefs.h. */
30822 #ifdef HAVE_SYS_TYPES_H
30823 # include <sys/types.h>
30825 #ifdef HAVE_SYS_TERMIOS_H
30826 # include <sys/termios.h>
30828 #ifdef HAVE_SYS_TIME_H
30829 # include <sys/time.h>
30831 #ifdef HAVE_SYS_PPSCLOCK_H
30832 # include <sys/ppsclock.h>
30839 extern struct ppsclockev *pce;
30840 return pce->serial;
30847 if ac_fn_c_try_compile "$LINENO"; then :
30848 ntp_cv_struct_ppsclockev=yes
30850 ntp_cv_struct_ppsclockev=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_ppsclockev" >&5
30857 $as_echo "$ntp_cv_struct_ppsclockev" >&6; }
30858 case "$ntp_cv_struct_ppsclockev" in
30861 $as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
30865 case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
30867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
30868 $as_echo_n "checking for struct snd_size... " >&6; }
30869 if ${ntp_cv_struct_snd_size+:} false; then :
30870 $as_echo_n "(cached) " >&6
30872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30873 /* end confdefs.h. */
30875 #ifdef HAVE_MACHINE_SOUNDCARD_H
30876 # include <machine/soundcard.h>
30878 #ifdef HAVE_SYS_SOUNDCARD_H
30879 # include <sys/soundcard.h>
30886 extern struct snd_size *ss;
30887 return ss->rec_size;
30894 if ac_fn_c_try_compile "$LINENO"; then :
30895 ntp_cv_struct_snd_size=yes
30897 ntp_cv_struct_snd_size=no
30900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
30904 $as_echo "$ntp_cv_struct_snd_size" >&6; }
30905 case "$ntp_cv_struct_snd_size" in
30908 $as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
30913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
30914 $as_echo_n "checking struct clockinfo for hz... " >&6; }
30915 if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
30916 $as_echo_n "(cached) " >&6
30918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30919 /* end confdefs.h. */
30921 #include <sys/time.h>
30927 extern struct clockinfo *pc;
30935 if ac_fn_c_try_compile "$LINENO"; then :
30936 ntp_cv_struct_clockinfo_has_hz=yes
30938 ntp_cv_struct_clockinfo_has_hz=no
30941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
30945 $as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
30946 case "$ntp_cv_struct_clockinfo_has_hz" in
30949 $as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
30953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
30954 $as_echo_n "checking struct clockinfo for tickadj... " >&6; }
30955 if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
30956 $as_echo_n "(cached) " >&6
30958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30959 /* end confdefs.h. */
30961 #include <sys/time.h>
30967 extern struct clockinfo *pc;
30968 return pc->tickadj;
30975 if ac_fn_c_try_compile "$LINENO"; then :
30976 ntp_cv_struct_clockinfo_has_hz=yes
30978 ntp_cv_struct_clockinfo_has_hz=no
30981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
30985 $as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
30986 case "$ntp_cv_struct_clockinfo_has_hz" in
30989 $as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
30993 case "$ntp_cv_struct_ntptimeval" in
30995 ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
30996 #ifdef HAVE_SYS_TIME_H
30997 # include <sys/time.h>
30999 # ifdef HAVE_TIME_H
31003 #ifdef HAVE_SYS_TIMEX_H
31004 # include <sys/timex.h>
31006 # ifdef HAVE_TIMEX_H
31007 # include <timex.h>
31013 if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :
31015 cat >>confdefs.h <<_ACEOF
31016 #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
31026 for ac_func in arc4random_buf
31028 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
31029 if test "x$ac_cv_func_arc4random_buf" = xyes; then :
31030 cat >>confdefs.h <<_ACEOF
31031 #define HAVE_ARC4RANDOM_BUF 1
31041 LIBS="$LIBS $LDADD_LIBNTP"
31042 for ac_func in daemon
31044 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
31045 if test "x$ac_cv_func_daemon" = xyes; then :
31046 cat >>confdefs.h <<_ACEOF
31047 #define HAVE_DAEMON 1
31053 # XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
31055 { saved_LIBS=; unset saved_LIBS;}
31057 for ac_func in finite
31059 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
31060 if test "x$ac_cv_func_finite" = xyes; then :
31061 cat >>confdefs.h <<_ACEOF
31062 #define HAVE_FINITE 1
31066 for ac_func in isfinite
31068 ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
31069 if test "x$ac_cv_func_isfinite" = xyes; then :
31070 cat >>confdefs.h <<_ACEOF
31071 #define HAVE_ISFINITE 1
31076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
31077 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
31081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31082 /* end confdefs.h. */
31098 if ac_fn_c_try_link "$LINENO"; then :
31104 rm -f core conftest.err conftest.$ac_objext \
31105 conftest$ac_exeext conftest.$ac_ext
31107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31108 $as_echo "$ans" >&6; }
31111 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
31124 for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
31126 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31127 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31128 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31129 cat >>confdefs.h <<_ACEOF
31130 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31137 # kvm_open() is only used by tickadj. Also see above.
31138 case "$ac_cv_header_kvm_h" in
31140 for ac_func in kvm_open
31142 ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
31143 if test "x$ac_cv_func_kvm_open" = xyes; then :
31144 cat >>confdefs.h <<_ACEOF
31145 #define HAVE_KVM_OPEN 1
31156 # Just stubs. Sigh.
31158 *) for ac_func in mkstemp
31160 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
31161 if test "x$ac_cv_func_mkstemp" = xyes; then :
31162 cat >>confdefs.h <<_ACEOF
31163 #define HAVE_MKSTEMP 1
31171 for ac_func in mktime
31173 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
31174 if test "x$ac_cv_func_mktime" = xyes; then :
31175 cat >>confdefs.h <<_ACEOF
31176 #define HAVE_MKTIME 1
31184 # XXX only verified thru AIX6.
31185 # Just a stub. Sigh.
31188 # Just a stub in "old" Irix. Sigh.
31190 # In the belief that the fix for bug 1223 fixes mlockall() under linux...
31192 # # there, but more trouble than it is worth for now (resolver problems)
31195 # Apparently there but not working in QNX. Sigh?
31198 # Just a stub. Sigh.
31200 alpha*-dec-osf4*|alpha*-dec-osf5*)
31201 # mlockall is there, as a #define calling memlk via <sys/mman.h>
31202 # Not easy to test for - cheat.
31203 for ac_func in memlk
31205 ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
31206 if test "x$ac_cv_func_memlk" = xyes; then :
31207 cat >>confdefs.h <<_ACEOF
31208 #define HAVE_MEMLK 1
31210 ac_cv_func_mlockall=yes
31214 for ac_func in mlockall
31216 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
31217 if test "x$ac_cv_func_mlockall" = xyes; then :
31218 cat >>confdefs.h <<_ACEOF
31219 #define HAVE_MLOCKALL 1
31226 *) for ac_func in mlockall
31228 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
31229 if test "x$ac_cv_func_mlockall" = xyes; then :
31230 cat >>confdefs.h <<_ACEOF
31231 #define HAVE_MLOCKALL 1
31239 for ac_func in nice plock pututline pututxline readlink rtprio
31241 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31242 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31243 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31244 cat >>confdefs.h <<_ACEOF
31245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31253 # XXX only verified thru AIX6.
31254 # Just a stub in AIX 4. Sigh.
31257 # Just stubs in solaris2.5. Sigh.
31259 *) for ac_func in sched_setscheduler
31261 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
31262 if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
31263 cat >>confdefs.h <<_ACEOF
31264 #define HAVE_SCHED_SETSCHEDULER 1
31272 for ac_func in setlinebuf setpgid setpriority setsid setvbuf
31274 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31275 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31276 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31277 cat >>confdefs.h <<_ACEOF
31278 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31284 for ac_func in strdup strerror setrlimit strchr
31286 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31287 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31288 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31289 cat >>confdefs.h <<_ACEOF
31290 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31298 # XXX only verified thru AIX6.
31299 # Just stubs. Sigh.
31302 # Just stubs. Sigh.
31305 # Just stubs. Sigh.
31308 # Just stubs. Sigh.
31311 for ac_func in timer_create
31313 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
31314 if test "x$ac_cv_func_timer_create" = xyes; then :
31315 cat >>confdefs.h <<_ACEOF
31316 #define HAVE_TIMER_CREATE 1
31327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
31328 $as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
31329 if ${ntp_cv_rlimit_memlock+:} false; then :
31330 $as_echo_n "(cached) " >&6
31332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31333 /* end confdefs.h. */
31335 #ifdef HAVE_SYS_TYPES_H
31336 # include <sys/types.h>
31338 #ifdef HAVE_SYS_TIME_H
31339 # include <sys/time.h>
31341 #ifdef HAVE_SYS_RESOURCE_H
31342 # include <sys/resource.h>
31349 getrlimit(RLIMIT_MEMLOCK, 0);
31356 if ac_fn_c_try_compile "$LINENO"; then :
31357 ntp_cv_rlimit_memlock=yes
31359 ntp_cv_rlimit_memlock=no
31362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
31366 $as_echo "$ntp_cv_rlimit_memlock" >&6; }
31369 ntp_dflt_rlimit_memlock="-1" ;;
31370 *) ntp_dflt_rlimit_memlock="32" ;;
31372 case "$ntp_cv_rlimit_memlock" in
31375 HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock" ;;
31378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
31379 $as_echo_n "checking for RLIMIT_STACK... " >&6; }
31380 if ${ntp_cv_rlimit_stack+:} false; then :
31381 $as_echo_n "(cached) " >&6
31383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31384 /* end confdefs.h. */
31386 #ifdef HAVE_SYS_TYPES_H
31387 # include <sys/types.h>
31389 #ifdef HAVE_SYS_TIME_H
31390 # include <sys/time.h>
31392 #ifdef HAVE_SYS_RESOURCE_H
31393 # include <sys/resource.h>
31400 getrlimit(RLIMIT_STACK, 0);
31407 if ac_fn_c_try_compile "$LINENO"; then :
31408 ntp_cv_rlimit_stack=yes
31410 ntp_cv_rlimit_stack=no
31413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
31417 $as_echo "$ntp_cv_rlimit_stack" >&6; }
31418 case "$ntp_cv_rlimit_stack" in
31421 HAVE_RLIMIT_STACK=" stacksize 50"
31424 # HMS: Only if we are doing the MLOCKALL stuff...
31425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
31426 $as_echo_n "checking for the default number of 4k stack pages... " >&6; }
31428 # Check whether --with-stack-limit was given.
31429 if test "${with_stack_limit+set}" = set; then :
31430 withval=$with_stack_limit; ans=$withval
31448 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
31451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31452 $as_echo "$ans" >&6; }
31454 cat >>confdefs.h <<_ACEOF
31455 #define DFLT_RLIMIT_STACK $ans
31459 # HMS: only if we have RLIMIT_MEMLOCK
31460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
31461 $as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }
31463 # Check whether --with-memlock was given.
31464 if test "${with_memlock+set}" = set; then :
31465 withval=$with_memlock; ans=$withval
31473 ans=$ntp_dflt_rlimit_memlock
31476 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
31479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31480 $as_echo "$ans" >&6; }
31482 cat >>confdefs.h <<_ACEOF
31483 #define DFLT_RLIMIT_MEMLOCK $ans
31489 # some OSes prefer _exit() in forked children to exit()
31490 for ac_func in _exit
31492 ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
31493 if test "x$ac_cv_func__exit" = xyes; then :
31494 cat >>confdefs.h <<_ACEOF
31495 #define HAVE__EXIT 1
31501 ntp_worker_child_exit=exit
31502 case "$ac_cv_func__exit::$host_os" in
31504 ntp_worker_child_exit=_exit
31507 ntp_worker_child_exit=_exit
31511 cat >>confdefs.h <<_ACEOF
31512 #define WORKER_CHILD_EXIT $ntp_worker_child_exit
31516 for ac_func in umask uname updwtmp updwtmpx
31518 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31519 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31520 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31521 cat >>confdefs.h <<_ACEOF
31522 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31531 # http://bugs.ntp.org/737
31532 case "$ac_cv_func_recvmsg" in
31534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
31535 $as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
31536 if ${ntp_cv_struct_iovec_help+:} false; then :
31537 $as_echo_n "(cached) " >&6
31541 for ntp_cv_struct_iovec_help in '0' '1'; do
31542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31543 /* end confdefs.h. */
31545 #ifdef HAVE_SYS_TYPES_H
31546 # include <sys/types.h>
31548 #ifdef HAVE_SYS_SOCKET_H
31549 # include <sys/socket.h>
31551 #if $ntp_cv_struct_iovec_help
31552 # include <sys/uio.h>
31567 x = recvmsg(s, &mh, flags);
31575 if ac_fn_c_try_compile "$LINENO"; then :
31576 compiled=yes ; break 1
31578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31580 case "$compiled" in
31582 ntp_cv_struct_iovec_help=0
31584 { compiled=; unset compiled;}
31588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
31589 $as_echo "$ntp_cv_struct_iovec_help" >&6; }
31590 case "$ntp_cv_struct_iovec_help" in
31593 $as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
31598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
31599 $as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
31600 if ${ntp_cv_func_setpgrp_nargs+:} false; then :
31601 $as_echo_n "(cached) " >&6
31603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31604 /* end confdefs.h. */
31606 #ifdef HAVE_SYS_TYPES_H
31607 # include <sys/types.h>
31609 #ifdef HAVE_UNISTD_H
31610 # include <unistd.h>
31624 if ac_fn_c_try_compile "$LINENO"; then :
31625 ntp_cv_func_setpgrp_nargs=2
31627 ntp_cv_func_setpgrp_nargs=0
31630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
31634 $as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
31635 case "$ntp_cv_func_setpgrp_nargs" in
31638 $as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
31642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
31643 $as_echo_n "checking if we need to declare 'errno'... " >&6; }
31644 if ${ntp_cv_decl_errno+:} false; then :
31645 $as_echo_n "(cached) " >&6
31647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31648 /* end confdefs.h. */
31650 #ifdef HAVE_ERRNO_H
31651 # include <errno.h>
31665 if ac_fn_c_try_compile "$LINENO"; then :
31666 ntp_cv_decl_errno=no
31668 ntp_cv_decl_errno=yes
31671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
31675 $as_echo "$ntp_cv_decl_errno" >&6; }
31676 case "$ntp_cv_decl_errno" in
31679 $as_echo "#define DECL_ERRNO 1" >>confdefs.h
31683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
31684 $as_echo_n "checking if we may declare 'h_errno'... " >&6; }
31685 if ${ntp_cv_decl_h_errno+:} false; then :
31686 $as_echo_n "(cached) " >&6
31688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31689 /* end confdefs.h. */
31691 #include <sys/types.h>
31692 #ifdef HAVE_NETINET_IN_H
31693 # include <netinet/in.h>
31695 #ifdef HAVE_ARPA_NAMESER_H
31696 # include <arpa/nameser.h>
31698 #ifdef HAVE_NETDB_H
31699 # include <netdb.h>
31701 #ifdef HAVE_RESOLV_H
31702 # include <resolv.h>
31709 extern int h_errno;
31716 if ac_fn_c_try_compile "$LINENO"; then :
31717 ntp_cv_decl_h_errno=yes
31719 ntp_cv_decl_h_errno=no
31722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
31726 $as_echo "$ntp_cv_decl_h_errno" >&6; }
31727 case "$ntp_cv_decl_h_errno" in
31730 $as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
31734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
31735 $as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
31736 if ${ntp_cv_decl_syscall+:} false; then :
31737 $as_echo_n "(cached) " >&6
31739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31740 /* end confdefs.h. */
31742 #ifdef HAVE_SYS_TYPES_H
31743 # include <sys/types.h>
31745 #ifdef HAVE_UNISTD_H
31746 # include <unistd.h>
31753 extern int syscall (int, ...);
31759 ntp_cv_decl_syscall=yes
31761 if ac_fn_c_try_compile "$LINENO"; then :
31762 ntp_cv_decl_syscall=no
31765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
31769 $as_echo "$ntp_cv_decl_syscall" >&6; }
31770 case "$ntp_cv_decl_syscall" in
31773 $as_echo "#define DECL_SYSCALL 1" >>confdefs.h
31780 $as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
31781 # Needed for XLC under AIX 4.3.2
31785 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31788 $as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
31791 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31794 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31797 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31800 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31803 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31808 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
31811 $as_echo "#define DECL_STIME_1 1" >>confdefs.h
31816 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31821 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31824 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31827 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31830 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
31833 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
31836 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31839 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
31842 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31845 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31848 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31851 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
31854 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
31857 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31860 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
31863 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31866 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
31871 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
31874 $as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
31879 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31886 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31889 $as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
31892 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31895 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31898 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
31901 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
31904 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31907 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
31910 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
31913 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31916 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31919 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31922 $as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
31924 case "`basename $ac_cv_prog_CC`" in
31927 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
31932 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
31935 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31938 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
31941 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31944 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
31947 $as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
31950 $as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
31955 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31958 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31961 $as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
31964 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31967 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
31970 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31973 $as_echo "#define DECL_NLIST_0 1" >>confdefs.h
31976 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
31979 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31982 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31985 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31988 $as_echo "#define DECL_STIME_0 1" >>confdefs.h
31991 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31994 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
32002 $as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
32010 $as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
32014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
32015 $as_echo_n "checking if we will open the broadcast socket... " >&6; }
32016 if ${ntp_cv_var_open_bcast_socket+:} false; then :
32017 $as_echo_n "(cached) " >&6
32025 ntp_cv_var_open_bcast_socket=$ans
32029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
32030 $as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
32031 case "$ntp_cv_var_open_bcast_socket" in
32034 $as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
32041 $as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
32045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
32046 $as_echo_n "checking if process groups are set with -pid... " >&6; }
32047 if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
32048 $as_echo_n "(cached) " >&6
32071 ntp_cv_arg_setpgrp_negpid=$ans
32075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
32076 $as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
32077 case "$ntp_cv_arg_setpgrp_negpid" in
32080 $as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
32084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
32085 $as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
32086 if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
32087 $as_echo_n "(cached) " >&6
32097 # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
32098 # while later versions will fail a ioctl(TIOCSCTTY, 0) call in
32099 # some cases and so should not have USE_FSETOWNCTTY. "netbsd"
32100 # in $host may be followed by "aout", "ecoff", or "elf".
32101 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
32104 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
32120 ntp_cv_func_ctty_for_f_setown=$ans
32124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
32125 $as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
32126 case "$ntp_cv_func_ctty_for_f_setown" in
32129 $as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
32133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
32134 $as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
32135 if ${ntp_cv_os_routeupdates+:} false; then :
32136 $as_echo_n "(cached) " >&6
32147 ntp_cv_os_routeupdates=$ans
32151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
32152 $as_echo "$ntp_cv_os_routeupdates" >&6; }
32153 case "$ntp_cv_os_routeupdates" in
32156 $as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
32160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
32161 $as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
32162 if ${ntp_cv_os_wildcardreuse+:} false; then :
32163 $as_echo_n "(cached) " >&6
32173 ntp_cv_os_wildcardreuse=$ans
32177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
32178 $as_echo "$ntp_cv_os_wildcardreuse" >&6; }
32179 case "$ntp_cv_os_wildcardreuse" in
32182 $as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
32189 $as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
32193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
32194 $as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
32195 if ${ntp_cv_var_min_rec_tickadj+:} false; then :
32196 $as_echo_n "(cached) " >&6
32205 ntp_cv_var_min_rec_tickadj=$ans
32209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
32210 $as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
32211 case "$ntp_cv_var_min_rec_tickadj" in
32216 cat >>confdefs.h <<_ACEOF
32217 #define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
32222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
32223 $as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
32224 if ${ntp_cv_no_parenb_ignpar+:} false; then :
32225 $as_echo_n "(cached) " >&6
32236 i?86-*-freebsd[123].*)
32245 ntp_cv_no_parenb_ignpar=$ans
32249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
32250 $as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
32251 case "$ntp_cv_no_parenb_ignpar" in
32254 $as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
32258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
32259 $as_echo_n "checking if we're including processing time debugging code... " >&6; }
32260 # Check whether --enable-debug-timing was given.
32261 if test "${enable_debug_timing+set}" = set; then :
32262 enableval=$enable_debug_timing; ntp_ok=$enableval
32271 $as_echo "#define DEBUG_TIMING 1" >>confdefs.h
32274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32275 $as_echo "$ntp_ok" >&6; }
32277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
32278 $as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
32279 # Check whether --enable-dst-minutes was given.
32280 if test "${enable_dst_minutes+set}" = set; then :
32281 enableval=$enable_dst_minutes; ans=$enableval
32288 cat >>confdefs.h <<_ACEOF
32289 #define DSTMINUTES $ans
32292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32293 $as_echo "$ans" >&6; }
32295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
32296 $as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
32297 # Check whether --enable-ignore-dns-errors was given.
32298 if test "${enable_ignore_dns_errors+set}" = set; then :
32299 enableval=$enable_ignore_dns_errors; ans=$enableval
32308 $as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
32311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32312 $as_echo "$ans" >&6; }
32314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
32315 $as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
32316 if ${ntp_cv_var_ntp_syscalls+:} false; then :
32317 $as_echo_n "(cached) " >&6
32320 ntp_cv_var_ntp_syscalls=no
32321 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
32323 ntp_cv_var_ntp_syscalls=libc
32326 ntp_cv_var_ntp_syscalls=inline
32329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32330 /* end confdefs.h. */
32332 #include <sys/syscall.h>
32333 #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
32338 if ac_fn_c_try_cpp "$LINENO"; then :
32339 ntp_cv_var_ntp_syscalls=kernel
32342 rm -f conftest.err conftest.i conftest.$ac_ext
32348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
32349 $as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
32350 case "$ntp_cv_var_ntp_syscalls" in
32353 $as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
32358 $as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
32363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
32364 $as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
32365 if ${ntp_cv_var_sta_fll+:} false; then :
32366 $as_echo_n "(cached) " >&6
32368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32369 /* end confdefs.h. */
32371 #include <sys/timex.h>
32377 if ac_fn_c_try_cpp "$LINENO"; then :
32378 ntp_cv_var_sta_fll=yes
32380 ntp_cv_var_sta_fll=no
32383 rm -f conftest.err conftest.i conftest.$ac_ext
32386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
32387 $as_echo "$ntp_cv_var_sta_fll" >&6; }
32389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
32390 $as_echo_n "checking if we have kernel PLL support... " >&6; }
32391 if ${ntp_cv_var_kernel_pll+:} false; then :
32392 $as_echo_n "(cached) " >&6
32394 case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
32396 ntp_cv_var_kernel_pll=no
32398 *) ntp_cv_var_kernel_pll=yes
32404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
32405 $as_echo "$ntp_cv_var_kernel_pll" >&6; }
32406 case "$ntp_cv_var_kernel_pll" in
32409 $as_echo "#define KERNEL_PLL 1" >>confdefs.h
32413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
32414 $as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
32415 if ${ntp_cv_size_returned_in_buffer+:} false; then :
32416 $as_echo_n "(cached) " >&6
32431 ntp_cv_size_returned_in_buffer=$ans
32435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
32436 $as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
32437 case "$ntp_cv_size_returned_in_buffer" in
32440 $as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
32444 # Check for ioctls TIOCGPPSEV
32445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
32446 $as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
32447 case "$ac_cv_header_termios_h" in
32449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32450 /* end confdefs.h. */
32452 #include <termios.h>
32458 if ac_fn_c_try_cpp "$LINENO"; then :
32464 rm -f conftest.err conftest.i conftest.$ac_ext
32473 $as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
32476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32477 $as_echo "$ntp_ok" >&6; }
32479 # Check for ioctls TIOCSPPS
32480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
32481 $as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
32482 case "$ac_cv_header_termios_h" in
32484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32485 /* end confdefs.h. */
32487 #include <termios.h>
32493 if ac_fn_c_try_cpp "$LINENO"; then :
32499 rm -f conftest.err conftest.i conftest.$ac_ext
32508 $as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
32511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32512 $as_echo "$ntp_ok" >&6; }
32514 # Check for ioctls CIOGETEV
32515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
32516 $as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
32517 case "$ac_cv_header_sys_ppsclock_h" in
32519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32520 /* end confdefs.h. */
32522 #include <sys/ppsclock.h>
32528 if ac_fn_c_try_cpp "$LINENO"; then :
32534 rm -f conftest.err conftest.i conftest.$ac_ext
32543 $as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
32546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32547 $as_echo "$ntp_ok" >&6; }
32549 # ATOM/PPSAPI stuff.
32553 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
32555 # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
32556 # The PPSAPI needs struct timespec.
32557 # The PPSAPI also needs a timepps header.
32559 case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
32561 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
32562 *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
32564 $as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
32569 ntp_ripe_ncc_ok=yes
32575 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
32576 ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
32577 if test "x$ac_cv_header_linux_serial_h" = xyes; then :
32582 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
32584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
32585 $as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
32586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32587 /* end confdefs.h. */
32589 #include <sys/time.h>
32591 #include <sys/ppsclock.h>
32592 #include <linux/serial.h>
32594 #ifndef TIOCGSERIAL
32597 #ifndef TIOCSSERIAL
32600 #ifndef ASYNC_PPS_CD_POS
32603 #ifndef ASYNC_PPS_CD_NEG
32611 if ac_fn_c_try_cpp "$LINENO"; then :
32617 rm -f conftest.err conftest.i conftest.$ac_ext
32618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32619 $as_echo "$ntp_ok" >&6; }
32628 $as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
32632 # Check for SHMEM_STATUS support
32633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
32634 $as_echo_n "checking SHMEM_STATUS support... " >&6; }
32635 case "$ac_cv_header_sys_mman_h" in
32646 $as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
32649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32650 $as_echo "$ntp_ok" >&6; }
32654 # HPUX only, and by explicit request
32655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
32656 $as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
32657 # Check whether --enable-BANCOMM was given.
32658 if test "${enable_BANCOMM+set}" = set; then :
32659 enableval=$enable_BANCOMM; ntp_ok=$enableval
32669 $as_echo "#define CLOCK_BANC 1" >>confdefs.h
32673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32674 $as_echo "$ntp_ok" >&6; }
32675 case "$ntp_ok$host" in
32677 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32678 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
32681 #HPUX only, and only by explicit request
32682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
32683 $as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
32684 # Check whether --enable-GPSVME was given.
32685 if test "${enable_GPSVME+set}" = set; then :
32686 enableval=$enable_GPSVME; ntp_ok=$enableval
32696 $as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
32700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32701 $as_echo "$ntp_ok" >&6; }
32702 case "$ntp_ok$host" in
32704 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32705 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
32708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
32709 $as_echo_n "checking for PCL720 clock support... " >&6; }
32710 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
32713 $as_echo "#define CLOCK_PPS720 1" >>confdefs.h
32721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32722 $as_echo "$ans" >&6; }
32724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
32725 $as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
32726 # Check whether --enable-all-clocks was given.
32727 if test "${enable_all_clocks+set}" = set; then :
32728 enableval=$enable_all_clocks; ntp_eac=$enableval
32734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
32735 $as_echo "$ntp_eac" >&6; }
32737 # HMS: Should we also require ntp_parse_ok?
32738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
32739 $as_echo_n "checking if we have support for PARSE clocks... " >&6; }
32740 case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
32747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
32748 $as_echo "$ntp_canparse" >&6; }
32750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
32751 $as_echo_n "checking if we have support for audio clocks... " >&6; }
32752 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
32756 $as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
32759 *) ntp_canaudio=no ;;
32761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
32762 $as_echo "$ntp_canaudio" >&6; }
32764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
32765 $as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
32766 case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
32770 *) ntp_canshm=no ;;
32772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
32773 $as_echo "$ntp_canshm" >&6; }
32775 # Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
32776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
32777 $as_echo_n "checking for termios modem control... " >&6; }
32778 if ${ntp_cv_modem_control+:} false; then :
32779 $as_echo_n "(cached) " >&6
32781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32782 /* end confdefs.h. */
32784 #ifdef HAVE_UNISTD_H
32785 # include <unistd.h>
32787 #ifdef HAVE_TERMIOS_H
32788 # include <termios.h>
32790 #ifdef HAVE_SYS_IOCTL_H
32791 # include <sys/ioctl.h>
32798 int dtr = TIOCM_DTR;
32800 ioctl(1, TIOCMBIS, (char *)&dtr);
32807 if ac_fn_c_try_compile "$LINENO"; then :
32808 ntp_cv_modem_control=yes
32810 ntp_cv_modem_control=no
32813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
32817 $as_echo "$ntp_cv_modem_control" >&6; }
32818 case "$ntp_eac::$ntp_cv_modem_control" in
32820 ntp_enable_all_modem_control_clocks=yes
32823 ntp_enable_all_modem_control_clocks=no
32827 # Requires modem control
32828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
32829 $as_echo_n "checking ACTS modem service... " >&6; }
32830 # Check whether --enable-ACTS was given.
32831 if test "${enable_ACTS+set}" = set; then :
32832 enableval=$enable_ACTS; ntp_ok=$enableval
32834 ntp_ok=$ntp_enable_all_modem_control_clocks
32842 $as_echo "#define CLOCK_ACTS 1" >>confdefs.h
32846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32847 $as_echo "$ntp_ok" >&6; }
32849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
32850 $as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
32851 # Check whether --enable-ARBITER was given.
32852 if test "${enable_ARBITER+set}" = set; then :
32853 enableval=$enable_ARBITER; ntp_ok=$enableval
32863 $as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
32867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32868 $as_echo "$ntp_ok" >&6; }
32870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
32871 $as_echo_n "checking Arcron MSF receiver... " >&6; }
32872 # Check whether --enable-ARCRON_MSF was given.
32873 if test "${enable_ARCRON_MSF+set}" = set; then :
32874 enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
32884 $as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
32888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32889 $as_echo "$ntp_ok" >&6; }
32891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
32892 $as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
32893 # Check whether --enable-AS2201 was given.
32894 if test "${enable_AS2201+set}" = set; then :
32895 enableval=$enable_AS2201; ntp_ok=$enableval
32905 $as_echo "#define CLOCK_AS2201 1" >>confdefs.h
32909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32910 $as_echo "$ntp_ok" >&6; }
32912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
32913 $as_echo_n "checking ATOM PPS interface... " >&6; }
32914 # Check whether --enable-ATOM was given.
32915 if test "${enable_ATOM+set}" = set; then :
32916 enableval=$enable_ATOM; ntp_ok=$enableval
32922 case "$ntp_atom_ok" in
32929 $as_echo "#define CLOCK_ATOM 1" >>confdefs.h
32933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32934 $as_echo "$ntp_ok" >&6; }
32936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
32937 $as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
32938 # Check whether --enable-CHRONOLOG was given.
32939 if test "${enable_CHRONOLOG+set}" = set; then :
32940 enableval=$enable_CHRONOLOG; ntp_ok=$enableval
32950 $as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
32954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32955 $as_echo "$ntp_ok" >&6; }
32957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
32958 $as_echo_n "checking CHU modem/decoder... " >&6; }
32959 # Check whether --enable-CHU was given.
32960 if test "${enable_CHU+set}" = set; then :
32961 enableval=$enable_CHU; ntp_ok=$enableval
32971 $as_echo "#define CLOCK_CHU 1" >>confdefs.h
32975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32976 $as_echo "$ntp_ok" >&6; }
32977 ntp_refclock_chu=$ntp_ok
32979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
32980 $as_echo_n "checking CHU audio/decoder... " >&6; }
32981 # Check whether --enable-AUDIO-CHU was given.
32982 if test "${enable_AUDIO_CHU+set}" = set; then :
32983 enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
32986 case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
32994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32995 $as_echo "$ntp_ok" >&6; }
32996 # We used to check for sunos/solaris target...
32997 case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
32998 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
32999 $as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
33003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
33004 $as_echo_n "checking Datum Programmable Time System... " >&6; }
33005 # Check whether --enable-DATUM was given.
33006 if test "${enable_DATUM+set}" = set; then :
33007 enableval=$enable_DATUM; ntp_ok=$enableval
33010 case "$ac_cv_header_termios_h" in
33025 $as_echo "#define CLOCK_DATUM 1" >>confdefs.h
33029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33030 $as_echo "$ntp_ok" >&6; }
33032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
33033 $as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
33034 # Check whether --enable-DUMBCLOCK was given.
33035 if test "${enable_DUMBCLOCK+set}" = set; then :
33036 enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
33046 $as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
33050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33051 $as_echo "$ntp_ok" >&6; }
33053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
33054 $as_echo_n "checking Forum Graphic GPS... " >&6; }
33055 # Check whether --enable-FG was given.
33056 if test "${enable_FG+set}" = set; then :
33057 enableval=$enable_FG; ntp_ok=$enableval
33067 $as_echo "#define CLOCK_FG 1" >>confdefs.h
33071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33072 $as_echo "$ntp_ok" >&6; }
33074 # Requires modem control
33075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
33076 $as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
33077 # Check whether --enable-HEATH was given.
33078 if test "${enable_HEATH+set}" = set; then :
33079 enableval=$enable_HEATH; ntp_ok=$enableval
33081 ntp_ok=$ntp_enable_all_modem_control_clocks
33089 $as_echo "#define CLOCK_HEATH 1" >>confdefs.h
33093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33094 $as_echo "$ntp_ok" >&6; }
33096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
33097 $as_echo_n "checking for hopf serial clock device... " >&6; }
33098 # Check whether --enable-HOPFSERIAL was given.
33099 if test "${enable_HOPFSERIAL+set}" = set; then :
33100 enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
33110 $as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
33114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33115 $as_echo "$ntp_ok" >&6; }
33117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
33118 $as_echo_n "checking for hopf PCI clock 6039... " >&6; }
33119 # Check whether --enable-HOPFPCI was given.
33120 if test "${enable_HOPFPCI+set}" = set; then :
33121 enableval=$enable_HOPFPCI; ntp_ok=$enableval
33131 $as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
33135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33136 $as_echo "$ntp_ok" >&6; }
33138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
33139 $as_echo_n "checking HP 58503A GPS receiver... " >&6; }
33140 # Check whether --enable-HPGPS was given.
33141 if test "${enable_HPGPS+set}" = set; then :
33142 enableval=$enable_HPGPS; ntp_ok=$enableval
33152 $as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
33156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33157 $as_echo "$ntp_ok" >&6; }
33159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
33160 $as_echo_n "checking IRIG audio decoder... " >&6; }
33161 # Check whether --enable-IRIG was given.
33162 if test "${enable_IRIG+set}" = set; then :
33163 enableval=$enable_IRIG; ntp_ok=$enableval
33166 case "$ntp_eac$ntp_canaudio" in
33178 $as_echo "#define CLOCK_IRIG 1" >>confdefs.h
33182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33183 $as_echo "$ntp_ok" >&6; }
33184 case "$ntp_ok$ntp_canaudio" in
33185 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33186 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
33190 $as_echo_n "checking for JJY receiver... " >&6; }
33191 # Check whether --enable-JJY was given.
33192 if test "${enable_JJY+set}" = set; then :
33193 enableval=$enable_JJY; ntp_ok=$enableval
33203 $as_echo "#define CLOCK_JJY 1" >>confdefs.h
33207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33208 $as_echo "$ntp_ok" >&6; }
33210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
33211 $as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
33212 # Check whether --enable-JUPITER was given.
33213 if test "${enable_JUPITER+set}" = set; then :
33214 enableval=$enable_JUPITER; ntp_ok=$enableval
33219 case "$ntp_jupiter_ok" in
33226 $as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
33230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33231 $as_echo "$ntp_ok" >&6; }
33233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
33234 $as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
33235 # Check whether --enable-LEITCH was given.
33236 if test "${enable_LEITCH+set}" = set; then :
33237 enableval=$enable_LEITCH; ntp_ok=$enableval
33247 $as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
33251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33252 $as_echo "$ntp_ok" >&6; }
33254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
33255 $as_echo_n "checking local clock reference... " >&6; }
33256 # Check whether --enable-LOCAL-CLOCK was given.
33257 if test "${enable_LOCAL_CLOCK+set}" = set; then :
33258 enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
33268 $as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
33272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33273 $as_echo "$ntp_ok" >&6; }
33277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
33278 $as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
33279 # Check whether --enable-MX4200 was given.
33280 if test "${enable_MX4200+set}" = set; then :
33281 enableval=$enable_MX4200; ntp_ok=$enableval
33284 case "$ac_cv_var_ppsclock" in
33300 $as_echo "#define CLOCK_MX4200 1" >>confdefs.h
33304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33305 $as_echo "$ntp_ok" >&6; }
33306 case "$ntp_ok$host" in
33307 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33308 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
33312 $as_echo_n "checking for NeoClock4X receiver... " >&6; }
33313 # Check whether --enable-NEOCLOCK4X was given.
33314 if test "${enable_NEOCLOCK4X+set}" = set; then :
33315 enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
33325 $as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
33329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33330 $as_echo "$ntp_ok" >&6; }
33332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
33333 $as_echo_n "checking NMEA GPS receiver... " >&6; }
33334 # Check whether --enable-NMEA was given.
33335 if test "${enable_NMEA+set}" = set; then :
33336 enableval=$enable_NMEA; ntp_ok=$enableval
33346 $as_echo "#define CLOCK_NMEA 1" >>confdefs.h
33350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33351 $as_echo "$ntp_ok" >&6; }
33353 for ac_func in strtoll
33355 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
33356 if test "x$ac_cv_func_strtoll" = xyes; then :
33357 cat >>confdefs.h <<_ACEOF
33358 #define HAVE_STRTOLL 1
33364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
33365 $as_echo_n "checking for GPSD JSON receiver... " >&6; }
33366 # Check whether --enable-GPSD was given.
33367 if test "${enable_GPSD+set}" = set; then :
33368 enableval=$enable_GPSD; ntp_ok=$enableval
33370 case "$ac_cv_func_strtoll" in
33371 yes) ntp_ok=$ntp_eac ;;
33381 $as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h
33385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33386 $as_echo "$ntp_ok" >&6; }
33388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
33389 $as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
33390 # Check whether --enable-ONCORE was given.
33391 if test "${enable_ONCORE+set}" = set; then :
33392 enableval=$enable_ONCORE; ntp_ok=$enableval
33398 case "$ntp_oncore_ok" in
33405 $as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
33409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33410 $as_echo "$ntp_ok" >&6; }
33412 # Requires modem control
33413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
33414 $as_echo_n "checking for Palisade clock... " >&6; }
33415 # Check whether --enable-PALISADE was given.
33416 if test "${enable_PALISADE+set}" = set; then :
33417 enableval=$enable_PALISADE; ntp_ok=$enableval
33419 ntp_ok=$ntp_enable_all_modem_control_clocks
33427 $as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
33431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33432 $as_echo "$ntp_ok" >&6; }
33434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
33435 $as_echo_n "checking Conrad parallel port radio clock... " >&6; }
33436 # Check whether --enable-PCF was given.
33437 if test "${enable_PCF+set}" = set; then :
33438 enableval=$enable_PCF; ntp_ok=$enableval
33448 $as_echo "#define CLOCK_PCF 1" >>confdefs.h
33452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33453 $as_echo "$ntp_ok" >&6; }
33455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
33456 $as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
33457 # Check whether --enable-PST was given.
33458 if test "${enable_PST+set}" = set; then :
33459 enableval=$enable_PST; ntp_ok=$enableval
33469 $as_echo "#define CLOCK_PST 1" >>confdefs.h
33473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33474 $as_echo "$ntp_ok" >&6; }
33476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
33477 $as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
33478 # Check whether --enable-RIPENCC was given.
33479 if test "${enable_RIPENCC+set}" = set; then :
33480 enableval=$enable_RIPENCC; ntp_ok=$enableval
33486 # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
33487 case "$ntp_ripe_ncc_ok" in
33494 $as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
33498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33499 $as_echo "$ntp_ok" >&6; }
33501 # Danny Meyer says SHM compiles (with a few warnings) under Win32.
33502 # For *IX, we need sys/ipc.h and sys/shm.h.
33503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
33504 $as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
33505 # Check whether --enable-SHM was given.
33506 if test "${enable_SHM+set}" = set; then :
33507 enableval=$enable_SHM; ntp_ok=$enableval
33510 case "$ntp_eac$ntp_canshm" in
33522 $as_echo "#define CLOCK_SHM 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 8170/Netclock/2 WWVB receiver" >&5
33530 $as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
33531 # Check whether --enable-SPECTRACOM was given.
33532 if test "${enable_SPECTRACOM+set}" = set; then :
33533 enableval=$enable_SPECTRACOM; ntp_ok=$enableval
33543 $as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
33547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33548 $as_echo "$ntp_ok" >&6; }
33550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
33551 $as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
33552 # Check whether --enable-TPRO was given.
33553 if test "${enable_TPRO+set}" = set; then :
33554 enableval=$enable_TPRO; ntp_ok=$enableval
33557 case "$ac_cv_header_sys_tpro_h" in
33573 $as_echo "#define CLOCK_TPRO 1" >>confdefs.h
33577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33578 $as_echo "$ntp_ok" >&6; }
33579 case "$ntp_ok$ac_cv_header_sys_tpro" in
33580 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33581 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33584 # Not on a vax-dec-bsd
33585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
33586 $as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
33587 # Check whether --enable-TRUETIME was given.
33588 if test "${enable_TRUETIME+set}" = set; then :
33589 enableval=$enable_TRUETIME; ntp_ok=$enableval
33608 $as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
33612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33613 $as_echo "$ntp_ok" >&6; }
33614 case "$ntp_ok$host" in
33615 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33616 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
33620 $as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
33621 # Check whether --enable-TT560 was given.
33622 if test "${enable_TT560+set}" = set; then :
33623 enableval=$enable_TT560; ntp_ok=$enableval
33633 $as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
33637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33638 $as_echo "$ntp_ok" >&6; }
33640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
33641 $as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
33642 # Check whether --enable-ULINK was given.
33643 if test "${enable_ULINK+set}" = set; then :
33644 enableval=$enable_ULINK; ntp_ok=$enableval
33654 $as_echo "#define CLOCK_ULINK 1" >>confdefs.h
33658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33659 $as_echo "$ntp_ok" >&6; }
33661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
33662 $as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
33663 # Check whether --enable-TSYNCPCI was given.
33664 if test "${enable_TSYNCPCI+set}" = set; then :
33665 enableval=$enable_TSYNCPCI; ntp_ok=$enableval
33683 $as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h
33687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33688 $as_echo "$ntp_ok" >&6; }
33690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
33691 $as_echo_n "checking WWV receiver... " >&6; }
33692 # Check whether --enable-WWV was given.
33693 if test "${enable_WWV+set}" = set; then :
33694 enableval=$enable_WWV; ntp_ok=$enableval
33697 case "$ntp_eac$ntp_canaudio" in
33709 $as_echo "#define CLOCK_WWV 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_canaudio" in
33716 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33717 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
33721 $as_echo_n "checking for Zyfer receiver... " >&6; }
33722 # Check whether --enable-ZYFER was given.
33723 if test "${enable_ZYFER+set}" = set; then :
33724 enableval=$enable_ZYFER; ntp_ok=$enableval
33734 $as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
33738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33739 $as_echo "$ntp_ok" >&6; }
33741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
33742 $as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
33743 # Check whether --enable-parse-clocks was given.
33744 if test "${enable_parse_clocks+set}" = set; then :
33745 enableval=$enable_parse_clocks; ntp_eapc=$enableval
33749 yes) ntp_eapc=$ntp_canparse ;;
33752 # Delete the next line one of these days
33758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
33759 $as_echo "$ntp_eapc" >&6; }
33761 case "$ntp_eac$ntp_eapc$ntp_canparse" in
33763 as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
33766 as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
33774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
33775 $as_echo_n "checking Diem Computime Radio Clock... " >&6; }
33776 # Check whether --enable-COMPUTIME was given.
33777 if test "${enable_COMPUTIME+set}" = set; then :
33778 enableval=$enable_COMPUTIME; ntp_ok=$enableval
33789 $as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
33793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33794 $as_echo "$ntp_ok" >&6; }
33795 case "$ntp_ok$ntp_canparse" in
33797 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
33801 $as_echo_n "checking ELV/DCF7000 clock... " >&6; }
33802 # Check whether --enable-DCF7000 was given.
33803 if test "${enable_DCF7000+set}" = set; then :
33804 enableval=$enable_DCF7000; ntp_ok=$enableval
33815 $as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
33819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33820 $as_echo "$ntp_ok" >&6; }
33821 case "$ntp_ok$ntp_canparse" in
33823 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
33827 $as_echo_n "checking HOPF 6021 clock... " >&6; }
33828 # Check whether --enable-HOPF6021 was given.
33829 if test "${enable_HOPF6021+set}" = set; then :
33830 enableval=$enable_HOPF6021; ntp_ok=$enableval
33841 $as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
33845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33846 $as_echo "$ntp_ok" >&6; }
33847 case "$ntp_ok$ntp_canparse" in
33849 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
33853 $as_echo_n "checking Meinberg clocks... " >&6; }
33854 # Check whether --enable-MEINBERG was given.
33855 if test "${enable_MEINBERG+set}" = set; then :
33856 enableval=$enable_MEINBERG; ntp_ok=$enableval
33867 $as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
33871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33872 $as_echo "$ntp_ok" >&6; }
33873 case "$ntp_ok$ntp_canparse" in
33875 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
33879 $as_echo_n "checking DCF77 raw time code... " >&6; }
33880 # Check whether --enable-RAWDCF was given.
33881 if test "${enable_RAWDCF+set}" = set; then :
33882 enableval=$enable_RAWDCF; ntp_ok=$enableval
33895 $as_echo "#define CLOCK_RAWDCF 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 case "$ntp_rawdcf" in
33908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
33909 $as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
33910 if ${ntp_cv_rawdcf_parity+:} false; then :
33911 $as_echo_n "(cached) " >&6
33920 ntp_cv_rawdcf_parity=$ans
33924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
33925 $as_echo "$ntp_cv_rawdcf_parity" >&6; }
33926 case "$ntp_cv_rawdcf_parity" in
33929 $as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
33934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
33935 $as_echo_n "checking RCC 8000 clock... " >&6; }
33936 # Check whether --enable-RCC8000 was given.
33937 if test "${enable_RCC8000+set}" = set; then :
33938 enableval=$enable_RCC8000; ntp_ok=$enableval
33949 $as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
33953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33954 $as_echo "$ntp_ok" >&6; }
33955 case "$ntp_ok$ntp_canparse" in
33957 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
33961 $as_echo_n "checking Schmid DCF77 clock... " >&6; }
33962 # Check whether --enable-SCHMID was given.
33963 if test "${enable_SCHMID+set}" = set; then :
33964 enableval=$enable_SCHMID; ntp_ok=$enableval
33975 $as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
33979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33980 $as_echo "$ntp_ok" >&6; }
33981 case "$ntp_ok$ntp_canparse" in
33983 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
33987 $as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
33988 # Check whether --enable-TRIMTAIP was given.
33989 if test "${enable_TRIMTAIP+set}" = set; then :
33990 enableval=$enable_TRIMTAIP; ntp_ok=$enableval
34001 $as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
34005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
34006 $as_echo "$ntp_ok" >&6; }
34007 case "$ntp_ok$ntp_canparse" in
34009 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
34012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
34013 $as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
34014 # Check whether --enable-TRIMTSIP was given.
34015 if test "${enable_TRIMTSIP+set}" = set; then :
34016 enableval=$enable_TRIMTSIP; ntp_ok=$enableval
34027 $as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
34031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
34032 $as_echo "$ntp_ok" >&6; }
34033 case "$ntp_ok$ntp_canparse" in
34035 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
34038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
34039 $as_echo_n "checking WHARTON 400A Series clock... " >&6; }
34040 # Check whether --enable-WHARTON was given.
34041 if test "${enable_WHARTON+set}" = set; then :
34042 enableval=$enable_WHARTON; ntp_ok=$enableval
34053 $as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
34057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
34058 $as_echo "$ntp_ok" >&6; }
34059 case "$ntp_ok$ntp_canparse" in
34061 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
34064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
34065 $as_echo_n "checking VARITEXT clock... " >&6; }
34066 # Check whether --enable-VARITEXT was given.
34067 if test "${enable_VARITEXT+set}" = set; then :
34068 enableval=$enable_VARITEXT; ntp_ok=$enableval
34079 $as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
34083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
34084 $as_echo "$ntp_ok" >&6; }
34085 case "$ntp_ok$ntp_canparse" in
34087 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
34090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
34091 $as_echo_n "checking SEL240X clock... " >&6; }
34092 # Check whether --enable-SEL240X was given.
34093 if test "${enable_SEL240X+set}" = set; then :
34094 enableval=$enable_SEL240X; ntp_ok=$enableval
34099 if test "$ntp_ok" = "yes"; then
34103 $as_echo "#define CLOCK_SEL240X 1" >>confdefs.h
34106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
34107 $as_echo "$ntp_ok" >&6; }
34108 case "$ntp_ok$ntp_canparse" in
34110 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
34119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
34120 $as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
34122 case "$ntp_libparse" in
34126 $as_echo "#define CLOCK_PARSE 1" >>confdefs.h
34128 LIBPARSE=../libparse/libparse.a
34129 MAKE_LIBPARSE=libparse.a
34130 # HMS: check_y2k trips the 34 year problem now...
34131 false && MAKE_CHECK_Y2K=check_y2k
34133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34134 $as_echo "$ans" >&6; }
34144 # Check whether --with-crypto was given.
34145 if test "${with_crypto+set}" = set; then :
34146 withval=$with_crypto;
34150 # Check whether --with-openssl-libdir was given.
34151 if test "${with_openssl_libdir+set}" = set; then :
34152 withval=$with_openssl_libdir;
34156 # Check whether --with-openssl-incdir was given.
34157 if test "${with_openssl_incdir+set}" = set; then :
34158 withval=$with_openssl_incdir;
34162 # Check whether --with-rpath was given.
34163 if test "${with_rpath+set}" = set; then :
34164 withval=$with_rpath;
34168 ntp_openssl_from_pkg_config=no
34169 with_crypto=${with_crypto:-openssl,libcrypto}
34170 case "$with_crypto" in
34172 with_crypto=openssl,libcrypto
34174 case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
34176 *:notempty:notgiven:notgiven)
34177 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
34178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
34179 $as_echo_n "checking pkg-config for $pkg... " >&6; }
34180 if $PKG_CONFIG --exists $pkg ; then
34181 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
34182 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
34183 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
34184 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
34185 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
34188 ntp_openssl_from_pkg_config=yes
34189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34190 $as_echo "yes" >&6; }
34194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34195 $as_echo "no" >&6; }
34198 case "$with_crypto:$ntp_openssl" in
34203 case "${with_rpath-notgiven}" in
34205 # Lame - what to do if we need -Wl... but not -R?
34211 # This may really only be true for gcc
34212 need_dash_Wlrpath=1
34224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
34225 $as_echo_n "checking for openssl library directory... " >&6; }
34226 with_openssl_libdir=${with_openssl_libdir-notgiven}
34227 case "$with_openssl_libdir" in
34231 with_openssl_libdir=default
34234 with_openssl_libdir=no
34238 case "$with_openssl_libdir" in
34241 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
34242 with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
34243 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
34245 case "$with_openssl_libdir" in
34248 *) # Look for libcrypto.a and libssl.a:
34249 for i in $with_openssl_libdir no
34253 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
34256 test -f $i/libcrypto.so -a -f $i/libssl.so && break
34257 test -f $i/libcrypto.a -a -f $i/libssl.a && break
34264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
34265 $as_echo "$openssl_libdir" >&6; }
34266 case "$openssl_libdir" in
34269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
34270 $as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
34273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
34274 $as_echo_n "checking for openssl include directory... " >&6; }
34275 with_openssl_incdir=${with_openssl_incdir-notgiven}
34276 case "$with_openssl_incdir" in
34279 with_openssl_incdir="/usr/include /usr/sfw/include"
34280 with_openssl_incdir="$with_openssl_incdir /usr/local/include"
34281 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
34283 case "$with_openssl_incdir" in
34286 *) # look for openssl/evp.h:
34287 for i in $with_openssl_incdir no
34289 test -f $i/openssl/evp.h && break
34295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
34296 $as_echo "$openssl_incdir" >&6; }
34297 case "$openssl_incdir" in
34300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
34301 $as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
34303 if test -z "$openssl_libdir" -o -z "$openssl_incdir"
34310 case "$ntp_openssl" in
34312 # We have OpenSSL inc/lib dirs - use them.
34313 case "$openssl_incdir" in
34317 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
34320 case "$openssl_libdir" in
34324 LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
34325 case "$need_dash_r" in
34327 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
34329 case "$need_dash_Wlrpath" in
34331 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
34335 LDADD_NTP="$LDADD_NTP -lcrypto"
34339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
34340 $as_echo_n "checking if we will use crypto... " >&6; }
34341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
34342 $as_echo "$ntp_openssl" >&6; }
34344 case "$ntp_openssl" in
34347 $as_echo "#define OPENSSL /**/" >>confdefs.h
34349 case "$VER_SUFFIX" in
34351 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
34356 NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
34357 CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
34358 NTPO_SAVED_LIBS="$LIBS"
34361 # check for linking with -lcrypto failure, and try -lcrypto -lz.
34362 # Helps m68k-atari-mint
34364 case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
34366 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
34368 $as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
34369 if ${ntp_cv_bare_lcrypto+:} false; then :
34370 $as_echo_n "(cached) " >&6
34372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34373 /* end confdefs.h. */
34375 #include "openssl/err.h"
34376 #include "openssl/evp.h"
34382 ERR_load_crypto_strings();
34383 OpenSSL_add_all_algorithms();
34390 if ac_fn_c_try_link "$LINENO"; then :
34391 ntp_cv_bare_lcrypto=yes
34393 ntp_cv_bare_lcrypto=no
34396 rm -f core conftest.err conftest.$ac_objext \
34397 conftest$ac_exeext conftest.$ac_ext
34400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
34401 $as_echo "$ntp_cv_bare_lcrypto" >&6; }
34402 case "$ntp_cv_bare_lcrypto" in
34404 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
34405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
34406 $as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
34407 if ${ntp_cv_lcrypto_lz+:} false; then :
34408 $as_echo_n "(cached) " >&6
34410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34411 /* end confdefs.h. */
34413 #include "openssl/err.h"
34414 #include "openssl/evp.h"
34420 ERR_load_crypto_strings();
34421 OpenSSL_add_all_algorithms();
34428 if ac_fn_c_try_link "$LINENO"; then :
34429 ntp_cv_lcrypto_lz=yes
34431 ntp_cv_lcrypto_lz=no
34434 rm -f core conftest.err conftest.$ac_objext \
34435 conftest$ac_exeext conftest.$ac_ext
34438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
34439 $as_echo "$ntp_cv_lcrypto_lz" >&6; }
34440 case "$ntp_cv_lcrypto_lz" in
34442 LDADD_NTP="$LDADD_NTP -lz"
34448 # Older OpenSSL headers have a number of callback prototypes inside
34449 # other function prototypes which trigger copious warnings with gcc's
34450 # -Wstrict-prototypes, which is included in -Wall.
34454 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
34455 # int (*cb)(), int sgckey);
34460 openssl_triggers_warnings=unknown
34461 NTPO_SAVED_CFLAGS="$CFLAGS"
34463 case "$ntp_openssl:$GCC" in
34465 CFLAGS="$CFLAGS -Werror"
34466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34467 /* end confdefs.h. */
34474 /* see if -Werror breaks gcc */
34481 if ac_fn_c_try_compile "$LINENO"; then :
34482 gcc_handles_Werror=yes
34484 gcc_handles_Werror=no
34487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34488 case "$gcc_handles_Werror" in
34490 # if this gcc doesn't do -Werror go ahead and use
34491 # -Wstrict-prototypes.
34492 openssl_triggers_warnings=yes
34495 CFLAGS="$CFLAGS -Wstrict-prototypes"
34496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34497 /* end confdefs.h. */
34499 #include "openssl/asn1_mac.h"
34500 #include "openssl/bn.h"
34501 #include "openssl/err.h"
34502 #include "openssl/evp.h"
34503 #include "openssl/pem.h"
34504 #include "openssl/rand.h"
34505 #include "openssl/x509v3.h"
34518 if ac_fn_c_try_compile "$LINENO"; then :
34519 openssl_triggers_warnings=no
34521 openssl_triggers_warnings=yes
34524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34526 case "$openssl_triggers_warnings" in
34528 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
34531 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
34535 # gcc without OpenSSL
34536 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
34539 # Because we don't want -Werror for the EVP_MD_do_all_sorted check
34540 CFLAGS="$NTPO_SAVED_CFLAGS"
34542 case "$ntp_openssl" in
34544 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34545 for ac_func in EVP_MD_do_all_sorted
34547 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
34548 if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
34549 cat >>confdefs.h <<_ACEOF
34550 #define HAVE_EVP_MD_DO_ALL_SORTED 1
34559 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
34560 LIBS="$NTPO_SAVED_LIBS"
34561 { NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
34562 { NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
34563 { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
34564 { openssl_triggers_warnings=; unset openssl_triggers_warnings;}
34565 { ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
34571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
34572 $as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
34573 # Check whether --enable-openssl-random was given.
34574 if test "${enable_openssl_random+set}" = set; then :
34575 enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
34577 ntp_use_openssl_random=yes
34581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
34582 $as_echo "$ntp_use_openssl_random" >&6; }
34584 # The following might need extra libraries
34585 NTPO_SAVED_LIBS="$LIBS"
34586 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34587 for ac_func in RAND_bytes RAND_poll
34589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34590 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
34591 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
34592 cat >>confdefs.h <<_ACEOF
34593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34599 LIBS="$NTPO_SAVED_LIBS"
34600 case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
34603 $as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
34606 *) ntp_use_openssl_random=no ;;
34611 # if we are using OpenSSL (--with-crypto), by default Autokey is enabled
34612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
34613 $as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
34614 # Check whether --enable-autokey was given.
34615 if test "${enable_autokey+set}" = set; then :
34616 enableval=$enable_autokey; ntp_autokey=$enableval
34618 ntp_autokey=$ntp_openssl
34622 case "$ntp_autokey" in
34626 case "$ntp_openssl" in
34628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
34629 $as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
34634 $as_echo "#define AUTOKEY 1" >>confdefs.h
34641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
34642 $as_echo "$ntp_autokey" >&6; }
34645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
34646 $as_echo_n "checking if we want to run check-layout... " >&6; }
34647 case "$cross_compiling$PATH_PERL" in
34649 MAKE_CHECK_LAYOUT=check-layout
34656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34657 $as_echo "$ans" >&6; }
34661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
34662 $as_echo_n "checking if we can make dcf parse utilities... " >&6; }
34664 case "$ntp_parseutil" in
34667 *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
34674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34675 $as_echo "$ans" >&6; }
34678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
34679 $as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
34681 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
34685 case "$ntp_cv_var_kernel_pll" in
34688 $as_echo "#define PPS_SYNC 1" >>confdefs.h
34693 MAKE_PARSEKMODULE=parsestreams.loadable_module.o
34697 MAKE_PARSEKMODULE=parse
34698 for ac_header in strings.h
34700 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
34701 if test "x$ac_cv_header_strings_h" = xyes; then :
34702 cat >>confdefs.h <<_ACEOF
34703 #define HAVE_STRINGS_H 1
34714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34715 $as_echo "$ans" >&6; }
34717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
34718 $as_echo_n "checking if we need basic refclock support... " >&6; }
34719 case "$ntp_refclock" in
34722 $as_echo "#define REFCLOCK 1" >>confdefs.h
34726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
34727 $as_echo "$ntp_refclock" >&6; }
34729 PROPDELAY=propdelay
34733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
34734 $as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
34744 MAKE_ADJTIMED=adjtimed
34746 $as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
34755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34756 $as_echo "$ans" >&6; }
34758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
34759 $as_echo_n "checking if we want QNX adjtime support... " >&6; }
34770 $as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
34774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34775 $as_echo "$ans" >&6; }
34777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
34778 $as_echo_n "checking if we can read kmem... " >&6; }
34780 # the default is to enable it if the system has the capability
34782 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
34791 *-*-domainos) # Won't be found...
34811 # --enable-kmem / --disable-kmem controls if present
34812 # Check whether --enable-kmem was given.
34813 if test "${enable_kmem+set}" = set; then :
34814 enableval=$enable_kmem; ans=$enableval
34819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34820 $as_echo "$ans" >&6; }
34829 $as_echo "#define NOKMEM 1" >>confdefs.h
34834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
34835 $as_echo_n "checking if adjtime is accurate... " >&6; }
34837 # target-dependent defaults
34843 i386-unknown-osf1*)
34846 mips-sgi-irix[456]*)
34853 # XXX only verified thru AIX6.
34872 # --enable-accurate-adjtime / --disable-accurate-adjtime
34873 # override the default
34874 # Check whether --enable-accurate-adjtime was given.
34875 if test "${enable_accurate_adjtime+set}" = set; then :
34876 enableval=$enable_accurate_adjtime; ans=$enableval
34881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34882 $as_echo "$ans" >&6; }
34887 $as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
34889 adjtime_is_accurate=yes
34892 adjtime_is_accurate=no
34896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
34897 $as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
34898 if ${ntp_cv_nlist_tick+:} false; then :
34899 $as_echo_n "(cached) " >&6
34904 m68*-hp-hpux*) # HP9000/300?
34914 # XXX only verified thru AIX6.
34933 ntp_cv_nlist_tick=$ans
34937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
34938 $as_echo "$ntp_cv_nlist_tick" >&6; }
34939 case "$ntp_cv_nlist_tick" in
34941 ;; # HMS: I think we can only get 'no' here...
34944 cat >>confdefs.h <<_ACEOF
34945 #define K_TICK_NAME "$ntp_cv_nlist_tick"
34950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
34951 $as_echo_n "checking for the units of 'tick'... " >&6; }
34952 if ${ntp_cv_tick_nano+:} false; then :
34953 $as_echo_n "(cached) " >&6
34962 ntp_cv_tick_nano=$ans
34966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
34967 $as_echo "$ntp_cv_tick_nano" >&6; }
34968 case "$ntp_cv_tick_nano" in
34971 $as_echo "#define TICK_NANO 1" >>confdefs.h
34975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
34976 $as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
34977 if ${ntp_cv_nlist_tickadj+:} false; then :
34978 $as_echo_n "(cached) " >&6
34983 m68*-hp-hpux*) # HP9000/300?
35014 ans=no # hrestime_adj
35020 ntp_cv_nlist_tickadj=$ans
35024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
35025 $as_echo "$ntp_cv_nlist_tickadj" >&6; }
35026 case "$ntp_cv_nlist_tickadj" in
35028 ;; # HMS: I think we can only get 'no' here...
35031 cat >>confdefs.h <<_ACEOF
35032 #define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
35037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
35038 $as_echo_n "checking for the units of 'tickadj'... " >&6; }
35039 if ${ntp_cv_tickadj_nano+:} false; then :
35040 $as_echo_n "(cached) " >&6
35049 ntp_cv_tickadj_nano=$ans
35053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
35054 $as_echo "$ntp_cv_tickadj_nano" >&6; }
35055 case "$ntp_cv_tickadj_nano" in
35058 $as_echo "#define TICKADJ_NANO 1" >>confdefs.h
35062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
35063 $as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
35064 if ${ntp_cv_nlist_dosynctodr+:} false; then :
35065 $as_echo_n "(cached) " >&6
35109 ntp_cv_nlist_dosynctodr=$ans
35113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
35114 $as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
35115 case "$ntp_cv_nlist_dosynctodr" in
35120 cat >>confdefs.h <<_ACEOF
35121 #define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
35127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
35128 $as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
35129 if ${ntp_cv_nlist_noprintf+:} false; then :
35130 $as_echo_n "(cached) " >&6
35168 ntp_cv_nlist_noprintf=$ans
35172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
35173 $as_echo "$ntp_cv_nlist_noprintf" >&6; }
35174 case "$ntp_cv_nlist_noprintf" in
35179 cat >>confdefs.h <<_ACEOF
35180 #define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
35189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
35190 $as_echo_n "checking for a default value for 'tick'... " >&6; }
35192 # target-dependent default for tick
35196 as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
35221 # Check whether --enable-tick was given.
35222 if test "${enable_tick+set}" = set; then :
35223 enableval=$enable_tick; ans=$enableval
35228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35229 $as_echo "$ans" >&6; }
35233 ;; # HMS: I think we can only get 'no' here...
35236 cat >>confdefs.h <<_ACEOF
35237 #define PRESET_TICK $ans
35242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
35243 $as_echo_n "checking for a default value for 'tickadj'... " >&6; }
35245 # target-specific default
35249 case "$adjtime_is_accurate" in
35258 case "$can_kmem" in
35264 *-*-domainos) # Skippy: won't be found...
35265 case "$can_kmem" in
35272 case "$adjtime_is_accurate" in
35295 # Check whether --enable-tickadj was given.
35296 if test "${enable_tickadj+set}" = set; then :
35297 enableval=$enable_tickadj; ans=$enableval
35302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35303 $as_echo "$ans" >&6; }
35305 default_tickadj=$ans
35307 case "$default_tickadj" in
35309 ;; # HMS: I think we can only get 'no' here...
35312 cat >>confdefs.h <<_ACEOF
35313 #define PRESET_TICKADJ $default_tickadj
35318 # Newer versions of ReliantUNIX round adjtime() values down to
35319 # 1/100s (system tick). Sigh ...
35320 # Unfortunately, there is no easy way to know if particular release
35321 # has this "feature" or any obvious way to test for it.
35325 $as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
35332 $as_echo "#define SCO5_CLOCK 1" >>confdefs.h
35336 ntp_cv_make_tickadj=yes
35337 case "$can_kmem$ac_cv_var_tick$default_tickadj" in
35338 nonono) # Don't read KMEM, no presets. Bogus.
35339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5
35340 $as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;}
35341 ntp_cv_make_tickadj=no
35343 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
35344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5
35345 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;}
35346 ntp_cv_make_tickadj=no
35348 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus.
35349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5
35350 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;}
35351 ntp_cv_make_tickadj=no
35353 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool.
35355 yesnono) # Read KMEM, no presets. Cool.
35357 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
35358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5
35359 $as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;}
35361 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool.
35363 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
35365 *) # Generally bogus.
35366 as_fn_error $? "This shouldn't happen." "$LINENO" 5
35371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
35372 $as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
35373 if ${ac_cv_make_ntptime+:} false; then :
35374 $as_echo_n "(cached) " >&6
35377 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
35387 ac_cv_make_ntptime=$ans
35389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
35390 $as_echo "$ac_cv_make_ntptime" >&6; }
35391 case "$ac_cv_make_ntptime" in
35393 MAKE_NTPTIME=ntptime
35406 # tickadj is pretty useless on newer versions of ReliantUNIX
35408 ntp_cv_make_tickadj=no
35411 ntp_cv_make_tickadj=no
35414 # DLM says tickadj is a no-no starting with solaris2.5
35416 *-*-solaris2.1[0-9]*)
35417 ntp_cv_make_tickadj=no
35419 *-*-solaris2.[0-4]*) ;;
35420 *) ntp_cv_make_tickadj=no ;;
35424 ntp_cv_make_tickadj=no
35429 # Despite all the above, we always make tickadj. Setting
35430 # ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
35431 # report that the configuration variable was cached. It may
35432 # be better to simply remove the hunk above, I did not want
35433 # to remove it if there is hope it will be used again.
35435 { ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}
35437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
35438 $as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
35439 if ${ntp_cv_make_tickadj+:} false; then :
35440 $as_echo_n "(cached) " >&6
35442 ntp_cv_make_tickadj=yes
35445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
35446 $as_echo "$ntp_cv_make_tickadj" >&6; }
35447 case "$ntp_cv_make_tickadj" in
35449 MAKE_TICKADJ=tickadj
35464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
35465 $as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
35466 if ${ntp_cv_make_timetrim+:} false; then :
35467 $as_echo_n "(cached) " >&6
35472 ntp_cv_make_timetrim=yes
35475 ntp_cv_make_timetrim=yes
35478 ntp_cv_make_timetrim=no
35484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
35485 $as_echo "$ntp_cv_make_timetrim" >&6; }
35486 case "$ntp_cv_make_timetrim" in
35488 MAKE_TIMETRIM=timetrim
35500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
35501 $as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
35502 # Check whether --enable-simulator was given.
35503 if test "${enable_simulator+set}" = set; then :
35504 enableval=$enable_simulator; ans=$enableval
35510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35511 $as_echo "$ans" >&6; }
35514 MAKE_NTPDSIM=ntpdsim
35515 MAKE_LIBNTPSIM=libntpsim.a
35530 LDFLAGS="$LDFLAGS -r"
35538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
35539 $as_echo_n "checking if sntp will be built... " >&6; }
35541 # Check whether --with-sntp was given.
35542 if test "${with_sntp+set}" = set; then :
35543 withval=$with_sntp;
35545 with_sntp="${withsntp=yes}"
35549 case "$with_sntp" in
35558 if test -n "$SNTP"; then
35560 BUILD_SNTP_FALSE='#'
35562 BUILD_SNTP_TRUE='#'
35566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
35567 $as_echo "$with_sntp" >&6; }
35571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
35572 $as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
35574 # Check whether --with-ntpsnmpd was given.
35575 if test "${with_ntpsnmpd+set}" = set; then :
35576 withval=$with_ntpsnmpd; ans=$withval
35579 case "$PATH_NET_SNMP_CONFIG" in
35587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35588 $as_echo "$ans" >&6; }
35591 case "$PATH_NET_SNMP_CONFIG" in
35593 SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
35594 # Bug 2815. This is a bit of a hack, but it works...
35595 case "$ntp_cv_net_snmp_version" in
35596 5.3*) SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'`
35600 # HMS: we really want to separate CPPFLAGS and CFLAGS
35601 foo=`$PATH_NET_SNMP_CONFIG --cflags`
35607 SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
35609 *) SNMP_CFLAGS="$SNMP_CFLAGS $i"
35616 save_CFLAGS=$CFLAGS
35617 save_CPPFLAGS=$CPPFLAGS
35619 CFLAGS=$SNMP_CFLAGS
35620 CPPFLAGS=$SNMP_CPPFLAGS
35622 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"
35623 if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
35624 MAKE_NTPSNMPD=ntpsnmpd
35626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
35627 $as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
35633 # Do this last, as we're messing up LIBS.
35634 # check -lnetsnmp for netsnmp_daemonize
35635 LIBS=`$PATH_NET_SNMP_CONFIG --libs`
35636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
35637 $as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
35638 if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
35639 $as_echo_n "(cached) " >&6
35641 ac_check_lib_save_LIBS=$LIBS
35642 LIBS="-lnetsnmp $LIBS"
35643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35644 /* end confdefs.h. */
35646 /* Override any GCC internal prototype to avoid an error.
35647 Use char because int might match the return type of a GCC
35648 builtin and then its argument prototype would still apply. */
35652 char netsnmp_daemonize ();
35656 return netsnmp_daemonize ();
35661 if ac_fn_c_try_link "$LINENO"; then :
35662 ac_cv_lib_netsnmp_netsnmp_daemonize=yes
35664 ac_cv_lib_netsnmp_netsnmp_daemonize=no
35666 rm -f core conftest.err conftest.$ac_objext \
35667 conftest$ac_exeext conftest.$ac_ext
35668 LIBS=$ac_check_lib_save_LIBS
35670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
35671 $as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
35672 if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
35682 $as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
35686 CFLAGS=$save_CFLAGS
35687 { save_CFLAGS=; unset save_CFLAGS;}
35688 CPPFLAGS=$save_CPPFLAGS
35689 { save_CPPFLAGS=; unset save_CPPFLAGS;}
35691 { save_LIBS=; unset save_LIBS;}
35694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
35695 $as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
35702 case "$MAKE_NTPSNMPD" in
35711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
35712 $as_echo_n "checking if we should always slew the time... " >&6; }
35714 # target-specific defaults
35726 *-*-openvms*) # HMS: won't be found
35733 # --enable-slew-always / --disable-slew-always overrides default
35735 # Check whether --enable-slew-always was given.
35736 if test "${enable_slew_always+set}" = set; then :
35737 enableval=$enable_slew_always; ans=$enableval
35742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35743 $as_echo "$ans" >&6; }
35748 $as_echo "#define SLEWALWAYS 1" >>confdefs.h
35752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
35753 $as_echo_n "checking if we should step and slew the time... " >&6; }
35768 *-*-solaris2.1[0-9]*)
35771 *-*-solaris2.[012]*)
35774 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP?
35781 # Check whether --enable-step-slew was given.
35782 if test "${enable_step_slew+set}" = set; then :
35783 enableval=$enable_step_slew; ans=$enableval
35788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35789 $as_echo "$ans" >&6; }
35794 $as_echo "#define STEP_SLEW 1" >>confdefs.h
35798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
35799 $as_echo_n "checking if ntpdate should step the time... " >&6; }
35809 # Check whether --enable-ntpdate-step was given.
35810 if test "${enable_ntpdate_step+set}" = set; then :
35811 enableval=$enable_ntpdate_step; ans=$enableval
35816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35817 $as_echo "$ans" >&6; }
35822 $as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
35827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
35828 $as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
35834 *-*-openvms*) # HMS: won't be found
35842 # Check whether --enable-hourly-todr-sync was given.
35843 if test "${enable_hourly_todr_sync+set}" = set; then :
35844 enableval=$enable_hourly_todr_sync; ans=$enableval
35849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35850 $as_echo "$ans" >&6; }
35852 case "$ac_cv_var_sync_todr" in
35855 $as_echo "#define DOSYNCTODR 1" >>confdefs.h
35860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
35861 $as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
35872 if test "$2" -ge 17
35874 # Generic_105181-17 and higher
35893 if test "$2" -ge 07
35895 # Generic_106541-07 and higher
35911 # Check whether --enable-kernel-fll-bug was given.
35912 if test "${enable_kernel_fll_bug+set}" = set; then :
35913 enableval=$enable_kernel_fll_bug; ans=$enableval
35918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35919 $as_echo "$ans" >&6; }
35924 $as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
35929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
35930 $as_echo_n "checking if we want new session key behavior... " >&6; }
35931 # Check whether --enable-bug1243-fix was given.
35932 if test "${enable_bug1243_fix+set}" = set; then :
35933 enableval=$enable_bug1243_fix; ans=$enableval
35939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35940 $as_echo "$ans" >&6; }
35944 $as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
35949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the explicit 127.0.0.0/8 martian filter" >&5
35950 $as_echo_n "checking if we want the explicit 127.0.0.0/8 martian filter... " >&6; }
35951 # Check whether --enable-bug3020-fix was given.
35952 if test "${enable_bug3020_fix+set}" = set; then :
35953 enableval=$enable_bug3020_fix; ans=$enableval
35959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35960 $as_echo "$ans" >&6; }
35964 $as_echo "#define ENABLE_BUG3020_FIX 1" >>confdefs.h
35969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
35970 $as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
35976 *-*-solaris2.1[0-9]*)
35983 # Check whether --enable-irig-sawtooth was given.
35984 if test "${enable_irig_sawtooth+set}" = set; then :
35985 enableval=$enable_irig_sawtooth; ans=$enableval
35990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35991 $as_echo "$ans" >&6; }
35996 $as_echo "#define IRIG_SUCKS 1" >>confdefs.h
36000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
36001 $as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
36002 # Check whether --enable-nist was given.
36003 if test "${enable_nist+set}" = set; then :
36004 enableval=$enable_nist; ans=$enableval
36011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
36012 $as_echo "$ans" >&6; }
36017 $as_echo "#define LOCKCLOCK 1" >>confdefs.h
36021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
36022 $as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
36023 # Check whether --enable-ntp-signd was given.
36024 if test "${enable_ntp_signd+set}" = set; then :
36025 enableval=$enable_ntp_signd; ans=$enableval
36032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
36033 $as_echo "$ans" >&6; }
36040 ntp_signd_path=/var/run/ntp_signd
36043 ntp_signd_path="$ans"
36046 case "$ntp_signd_path" in
36051 $as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h
36054 cat >>confdefs.h <<_ACEOF
36055 #define NTP_SIGND_PATH "$ntp_signd_path"
36061 for ac_header in libscf.h
36063 ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
36064 if test "x$ac_cv_header_libscf_h" = xyes; then :
36065 cat >>confdefs.h <<_ACEOF
36066 #define HAVE_LIBSCF_H 1
36074 case "$ac_cv_header_libscf_h" in
36082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
36083 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
36084 if ${ntp_cv_sockaddr_storage+:} false; then :
36085 $as_echo_n "(cached) " >&6
36087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36088 /* end confdefs.h. */
36090 #ifdef HAVE_SYS_TYPES_H
36091 # include <sys/types.h>
36093 #ifdef HAVE_SYS_SOCKET_H
36094 # include <sys/socket.h>
36096 #ifdef HAVE_NETINET_IN_H
36097 # include <netinet/in.h>
36104 struct sockaddr_storage n;
36111 if ac_fn_c_try_compile "$LINENO"; then :
36112 ntp_cv_sockaddr_storage=yes
36114 ntp_cv_sockaddr_storage=no
36117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
36121 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
36122 case "$ntp_cv_sockaddr_storage" in
36125 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
36127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
36128 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
36129 if ${ntp_cv_have___ss_family+:} false; then :
36130 $as_echo_n "(cached) " >&6
36132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36133 /* end confdefs.h. */
36135 #ifdef HAVE_SYS_TYPES_H
36136 # include <sys/types.h>
36138 #ifdef HAVE_SYS_SOCKET_H
36139 # include <sys/socket.h>
36141 #ifdef HAVE_NETINET_IN_H
36142 # include <netinet/in.h>
36149 struct sockaddr_storage s;
36157 if ac_fn_c_try_compile "$LINENO"; then :
36158 ntp_cv_have___ss_family=yes
36160 ntp_cv_have___ss_family=no
36163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
36167 $as_echo "$ntp_cv_have___ss_family" >&6; }
36168 case "$ntp_cv_have___ss_family" in
36171 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
36179 # Look for in_port_t.
36181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
36182 $as_echo_n "checking for in_port_t... " >&6; }
36183 if ${isc_cv_have_in_port_t+:} false; then :
36184 $as_echo_n "(cached) " >&6
36186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36187 /* end confdefs.h. */
36189 #include <sys/types.h>
36190 #include <netinet/in.h>
36196 in_port_t port = 25;
36204 if ac_fn_c_try_compile "$LINENO"; then :
36205 isc_cv_have_in_port_t=yes
36207 isc_cv_have_in_port_t=no
36210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
36214 $as_echo "$isc_cv_have_in_port_t" >&6; }
36215 case "$isc_cv_have_in_port_t" in
36218 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
36222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
36223 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
36224 if ${ntp_cv_getsockname_socklen_type+:} false; then :
36225 $as_echo_n "(cached) " >&6
36228 getsockname_socklen_type_found=no
36229 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
36230 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
36231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36232 /* end confdefs.h. */
36234 #ifdef HAVE_SYS_TYPES_H
36235 # include <sys/types.h>
36237 #ifdef HAVE_SYS_SOCKET_H
36238 # include <sys/socket.h>
36246 getsockname(int, $getsockname_arg2,
36247 $ntp_cv_getsockname_socklen_type *);
36254 if ac_fn_c_try_compile "$LINENO"; then :
36255 getsockname_socklen_type_found=yes ; break 2
36257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36260 case "$getsockname_socklen_type_found" in
36262 ntp_cv_getsockname_socklen_type='socklen_t'
36264 { getsockname_arg2=; unset getsockname_arg2;}
36265 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
36269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
36270 $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
36272 cat >>confdefs.h <<_ACEOF
36273 #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
36277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
36278 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
36279 if ${isc_cv_platform_havesalen+:} false; then :
36280 $as_echo_n "(cached) " >&6
36282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36283 /* end confdefs.h. */
36285 #include <sys/types.h>
36286 #include <sys/socket.h>
36292 extern struct sockaddr *ps;
36300 if ac_fn_c_try_compile "$LINENO"; then :
36301 isc_cv_platform_havesalen=yes
36303 isc_cv_platform_havesalen=no
36306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
36310 $as_echo "$isc_cv_platform_havesalen" >&6; }
36311 case "$isc_cv_platform_havesalen" in
36314 $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
36318 # Check whether --enable-ipv6 was given.
36319 if test "${enable_ipv6+set}" = set; then :
36320 enableval=$enable_ipv6;
36324 case "$enable_ipv6" in
36331 $as_echo "#define WANT_IPV6 1" >>confdefs.h
36344 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
36349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
36350 $as_echo_n "checking for IPv6 structures... " >&6; }
36351 if ${isc_cv_found_ipv6+:} false; then :
36352 $as_echo_n "(cached) " >&6
36354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36355 /* end confdefs.h. */
36357 #include <sys/types.h>
36358 #include <sys/socket.h>
36359 #include <netinet/in.h>
36365 struct sockaddr_in6 sin6;
36372 if ac_fn_c_try_compile "$LINENO"; then :
36373 isc_cv_found_ipv6=yes
36375 isc_cv_found_ipv6=no
36378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
36382 $as_echo "$isc_cv_found_ipv6" >&6; }
36385 # See whether IPv6 support is provided via a Kame add-on.
36386 # This is done before other IPv6 linking tests so LIBS is properly set.
36388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
36389 $as_echo_n "checking for Kame IPv6 support... " >&6; }
36391 # Check whether --with-kame was given.
36392 if test "${with_kame+set}" = set; then :
36393 withval=$with_kame; use_kame="$withval"
36399 case "$use_kame" in
36403 kame_path=/usr/local/v6
36406 kame_path="$use_kame"
36409 case "$use_kame" in
36411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36412 $as_echo "no" >&6; }
36415 if test -f $kame_path/lib/libinet6.a; then
36416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
36417 $as_echo "$kame_path/lib/libinet6.a" >&6; }
36418 LIBS="-L$kame_path/lib -linet6 $LIBS"
36420 as_fn_error $? "$kame_path/lib/libinet6.a not found.
36422 Please choose the proper path with the following command:
36424 configure --with-kame=PATH
36431 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
36432 # Including it on Kame-using platforms is very bad, though, because
36433 # Kame uses #error against direct inclusion. So include it on only
36434 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
36435 # This is done before the in6_pktinfo check because that's what
36436 # netinet6/in6.h is needed for.
36441 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
36443 isc_netinet6in6_hack="#include <netinet6/in6.h>"
36446 isc_netinet6in6_hack=""
36451 # This is similar to the netinet6/in6.h issue.
36454 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
36456 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
36458 isc_netinetin6_hack="#include <netinet/in6.h>"
36461 isc_netinetin6_hack=""
36466 case "$isc_cv_found_ipv6" in
36469 $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
36471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
36472 $as_echo_n "checking for in6_pktinfo... " >&6; }
36473 if ${isc_cv_have_in6_pktinfo+:} false; then :
36474 $as_echo_n "(cached) " >&6
36476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36477 /* end confdefs.h. */
36479 #include <sys/types.h>
36480 #include <sys/socket.h>
36481 #include <netinet/in.h>
36482 $isc_netinetin6_hack
36483 $isc_netinet6in6_hack
36489 struct in6_pktinfo xyzzy;
36496 if ac_fn_c_try_compile "$LINENO"; then :
36497 isc_cv_have_in6_pktinfo=yes
36499 isc_cv_have_in6_pktinfo=no
36502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
36506 $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
36507 case "$isc_cv_have_in6_pktinfo" in
36510 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
36515 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
36516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
36517 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
36518 if ${isc_cv_have_sin6_scope_id+:} false; then :
36519 $as_echo_n "(cached) " >&6
36521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36522 /* end confdefs.h. */
36524 #include <sys/types.h>
36525 #include <sys/socket.h>
36526 #include <netinet/in.h>
36527 $isc_netinetin6_hack
36528 $isc_netinet6in6_hack
36534 struct sockaddr_in6 xyzzy;
36535 xyzzy.sin6_scope_id = 0;
36542 if ac_fn_c_try_compile "$LINENO"; then :
36543 isc_cv_have_sin6_scope_id=yes
36545 isc_cv_have_sin6_scope_id=no
36548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
36552 $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
36554 case "$isc_cv_have_sin6_scope_id" in
36557 $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
36563 # We need this check run even without isc_cv_found_ipv6=yes
36565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
36566 $as_echo_n "checking for in6addr_any... " >&6; }
36567 if ${isc_cv_in6addr_any_links+:} false; then :
36568 $as_echo_n "(cached) " >&6
36572 LIBS="$LDADD_LIBNTP $LIBS"
36573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36574 /* end confdefs.h. */
36575 $ac_includes_default
36576 #include <sys/socket.h>
36577 #include <netinet/in.h>
36578 $isc_netinetin6_hack
36579 $isc_netinet6in6_hack
36585 printf("%x", in6addr_any.s6_addr[15]);
36592 if ac_fn_c_try_link "$LINENO"; then :
36593 isc_cv_in6addr_any_links=yes
36595 isc_cv_in6addr_any_links=no
36598 rm -f core conftest.err conftest.$ac_objext \
36599 conftest$ac_exeext conftest.$ac_ext
36601 { SAVED_LIBS=; unset SAVED_LIBS;}
36605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
36606 $as_echo "$isc_cv_in6addr_any_links" >&6; }
36608 case "$isc_cv_in6addr_any_links" in
36611 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
36616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
36617 $as_echo_n "checking for struct if_laddrconf... " >&6; }
36618 if ${isc_cv_struct_if_laddrconf+:} false; then :
36619 $as_echo_n "(cached) " >&6
36621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36622 /* end confdefs.h. */
36624 #include <sys/types.h>
36625 #include <net/if6.h>
36631 struct if_laddrconf a;
36638 if ac_fn_c_try_compile "$LINENO"; then :
36639 isc_cv_struct_if_laddrconf=yes
36641 isc_cv_struct_if_laddrconf=no
36644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
36648 $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
36650 case "$isc_cv_struct_if_laddrconf" in
36653 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
36657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
36658 $as_echo_n "checking for struct if_laddrreq... " >&6; }
36659 if ${isc_cv_struct_if_laddrreq+:} false; then :
36660 $as_echo_n "(cached) " >&6
36662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36663 /* end confdefs.h. */
36665 #include <sys/types.h>
36666 #include <net/if6.h>
36672 struct if_laddrreq a;
36679 if ac_fn_c_try_compile "$LINENO"; then :
36680 isc_cv_struct_if_laddrreq=yes
36682 isc_cv_struct_if_laddrreq=no
36685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
36689 $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
36691 case "$isc_cv_struct_if_laddrreq" in
36694 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
36698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
36699 $as_echo_n "checking for multicast IP support... " >&6; }
36700 if ${ntp_cv_multicast+:} false; then :
36701 $as_echo_n "(cached) " >&6
36704 ntp_cv_multicast=no
36706 i386-sequent-sysv4)
36709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36710 /* end confdefs.h. */
36712 #ifdef HAVE_NETINET_IN_H
36713 # include <netinet/in.h>
36720 struct ip_mreq ipmr;
36721 ipmr.imr_interface.s_addr = 0;
36728 if ac_fn_c_try_compile "$LINENO"; then :
36729 ntp_cv_multicast=yes
36731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
36738 $as_echo "$ntp_cv_multicast" >&6; }
36739 case "$ntp_cv_multicast" in
36742 $as_echo "#define MCAST 1" >>confdefs.h
36744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
36745 $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
36746 if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
36747 $as_echo_n "(cached) " >&6
36751 *-*-netbsd*|*-*-*linux*)
36752 ntp_cv_typeof_ip_multicast_loop=u_int
36755 ntp_cv_typeof_ip_multicast_loop=u_char
36761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
36762 $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
36764 cat >>confdefs.h <<_ACEOF
36765 #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
36770 # Check whether --enable-getifaddrs was given.
36771 if test "${enable_getifaddrs+set}" = set; then :
36772 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
36774 want_getifaddrs="yes"
36779 case $want_getifaddrs in
36781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
36782 $as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
36784 case $want_getifaddrs in
36789 LIBS="$LDADD_LIBNTP $LIBS"
36790 for ac_func in getifaddrs
36792 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
36793 if test "x$ac_cv_func_getifaddrs" = xyes; then :
36794 cat >>confdefs.h <<_ACEOF
36795 #define HAVE_GETIFADDRS 1
36802 { SAVED_LIBS=; unset SAVED_LIBS;}
36807 # Check for if_nametoindex() for IPv6 scoped addresses support
36811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
36812 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
36813 if ${ac_cv_search_if_nametoindex+:} false; then :
36814 $as_echo_n "(cached) " >&6
36816 ac_func_search_save_LIBS=$LIBS
36817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36818 /* end confdefs.h. */
36820 /* Override any GCC internal prototype to avoid an error.
36821 Use char because int might match the return type of a GCC
36822 builtin and then its argument prototype would still apply. */
36826 char if_nametoindex ();
36830 return if_nametoindex ();
36835 for ac_lib in '' ipv6; do
36836 if test -z "$ac_lib"; then
36837 ac_res="none required"
36840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
36842 if ac_fn_c_try_link "$LINENO"; then :
36843 ac_cv_search_if_nametoindex=$ac_res
36845 rm -f core conftest.err conftest.$ac_objext \
36847 if ${ac_cv_search_if_nametoindex+:} false; then :
36851 if ${ac_cv_search_if_nametoindex+:} false; then :
36854 ac_cv_search_if_nametoindex=no
36856 rm conftest.$ac_ext
36857 LIBS=$ac_func_search_save_LIBS
36859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
36860 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
36861 ac_res=$ac_cv_search_if_nametoindex
36862 if test "$ac_res" != no; then :
36863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36869 LIBS="$LDADD_LIBNTP $LIBS"
36870 for ac_func in if_nametoindex
36872 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
36873 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
36874 cat >>confdefs.h <<_ACEOF
36875 #define HAVE_IF_NAMETOINDEX 1
36882 { SAVED_LIBS=; unset SAVED_LIBS;}
36883 case "$ac_cv_func_if_nametoindex" in
36886 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
36894 # Look for a sysctl call to get the list of network interfaces.
36896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
36897 $as_echo_n "checking for interface list sysctl... " >&6; }
36898 if ${ntp_cv_iflist_sysctl+:} false; then :
36899 $as_echo_n "(cached) " >&6
36901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36902 /* end confdefs.h. */
36904 #include <sys/param.h>
36905 #include <sys/sysctl.h>
36906 #include <sys/socket.h>
36907 #ifndef NET_RT_IFLIST
36912 if ac_fn_c_try_cpp "$LINENO"; then :
36913 ntp_cv_iflist_sysctl=yes
36915 ntp_cv_iflist_sysctl=no
36918 rm -f conftest.err conftest.i conftest.$ac_ext
36921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
36922 $as_echo "$ntp_cv_iflist_sysctl" >&6; }
36923 case "$ntp_cv_iflist_sysctl" in
36926 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
36932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
36933 $as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
36934 # Check whether --enable-saveconfig was given.
36935 if test "${enable_saveconfig+set}" = set; then :
36936 enableval=$enable_saveconfig; ntp_ok=$enableval
36942 ntp_saveconfig_enabled=0
36945 ntp_saveconfig_enabled=1
36947 $as_echo "#define SAVECONFIG 1" >>confdefs.h
36951 if test x$ntp_saveconfig_enabled = x1; then
36952 SAVECONFIG_ENABLED_TRUE=
36953 SAVECONFIG_ENABLED_FALSE='#'
36955 SAVECONFIG_ENABLED_TRUE='#'
36956 SAVECONFIG_ENABLED_FALSE=
36959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
36960 $as_echo "$ntp_ok" >&6; }
36964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
36965 $as_echo_n "checking if we want the experimental leap smear code... " >&6; }
36966 # Check whether --enable-leap-smear was given.
36967 if test "${enable_leap_smear+set}" = set; then :
36968 enableval=$enable_leap_smear; ntp_ok=$enableval
36974 ntp_leap_smear_enabled=0
36977 ntp_leap_smear_enabled=1
36979 $as_echo "#define LEAP_SMEAR 1" >>confdefs.h
36982 HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0"
36985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
36986 $as_echo "$ntp_ok" >&6; }
36990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want dynamic interleave support" >&5
36991 $as_echo_n "checking if we want dynamic interleave support... " >&6; }
36992 # Check whether --enable-dynamic-interleave was given.
36993 if test "${enable_dynamic_interleave+set}" = set; then :
36994 enableval=$enable_dynamic_interleave; ntp_ok=$enableval
37000 ntp_dynamic_interleave=0
37003 ntp_dynamic_interleave=1
37007 cat >>confdefs.h <<_ACEOF
37008 #define DYNAMIC_INTERLEAVE $ntp_dynamic_interleave
37011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
37012 $as_echo "$ntp_ok" >&6; }
37015 # We may not need have_unity
37017 # Extract the first word of "ruby", so it can be a program name with args.
37018 set dummy ruby; ac_word=$2
37019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37020 $as_echo_n "checking for $ac_word... " >&6; }
37021 if ${ac_cv_path_PATH_RUBY+:} false; then :
37022 $as_echo_n "(cached) " >&6
37026 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
37029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37030 for as_dir in $PATH
37033 test -z "$as_dir" && as_dir=.
37034 for ac_exec_ext in '' $ac_executable_extensions; do
37035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37036 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
37037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37047 PATH_RUBY=$ac_cv_path_PATH_RUBY
37048 if test -n "$PATH_RUBY"; then
37049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
37050 $as_echo "$PATH_RUBY" >&6; }
37052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37053 $as_echo "no" >&6; }
37057 case "$PATH_RUBY" in
37061 *) PATH_RUBY="false"
37064 # We may not need UNITYBUILD_AVAILABLE
37065 if $have_unity; then
37066 UNITYBUILD_AVAILABLE_TRUE=
37067 UNITYBUILD_AVAILABLE_FALSE='#'
37069 UNITYBUILD_AVAILABLE_TRUE='#'
37070 UNITYBUILD_AVAILABLE_FALSE=
37079 # Check whether --with-gtest was given.
37080 if test "${with_gtest+set}" = set; then :
37081 withval=$with_gtest; try_gtest=$withval
37087 case "$try_gtest" in
37089 # Extract the first word of "gtest-config", so it can be a program name with args.
37090 set dummy gtest-config; ac_word=$2
37091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37092 $as_echo_n "checking for $ac_word... " >&6; }
37093 if ${ac_cv_path_GTEST_CONFIG+:} false; then :
37094 $as_echo_n "(cached) " >&6
37096 case $GTEST_CONFIG in
37098 ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
37101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37102 for as_dir in $PATH
37105 test -z "$as_dir" && as_dir=.
37106 for ac_exec_ext in '' $ac_executable_extensions; do
37107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37108 ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37119 GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
37120 if test -n "$GTEST_CONFIG"; then
37121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
37122 $as_echo "$GTEST_CONFIG" >&6; }
37124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37125 $as_echo "no" >&6; }
37129 { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
37130 case x${GTEST_CONFIG} in
37133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
37134 $as_echo_n "checking gtest version... " >&6; }
37135 gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
37136 case "$gtest_version_test" in
37140 GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
37141 GTEST_LIBS=`$GTEST_CONFIG --libs`
37142 GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
37143 GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`
37151 gtest_version=`$GTEST_CONFIG --version`
37154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
37155 $as_echo "($gtest_version) ok" >&6; }
37157 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
37158 $as_echo "($gtest_version) not ok" >&6; }
37161 { gtest_version_test=; unset gtest_version_test;}
37162 { gtest_version=; unset gtest_version;}
37166 GTEST_AVAILABLE_TRUE=
37167 GTEST_AVAILABLE_FALSE='#'
37169 GTEST_AVAILABLE_TRUE='#'
37170 GTEST_AVAILABLE_FALSE=
37182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
37183 $as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
37184 # Check whether --enable-problem-tests was given.
37185 if test "${enable_problem_tests+set}" = set; then :
37186 enableval=$enable_problem_tests; ntp_ept=$enableval
37192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5
37193 $as_echo "$ntp_ept" >&6; }
37195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5
37196 $as_echo_n "checking if we can run test-ntp_restrict... " >&6; }
37197 ntp_test_ntp_restrict="no"
37198 case "$ntp_ept:$cross:$host" in
37199 no:0:*-*-freebsd6.4) ;;
37200 no:0:*-*-hpux11.23*) ;;
37201 no:0:*-*-solaris*) ;;
37202 *) ntp_test_ntp_restrict="yes" ;;
37204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
37205 $as_echo "$ntp_test_ntp_restrict" >&6; }
37206 if test x$ntp_test_ntp_restrict = xyes; then
37207 BUILD_TEST_NTP_RESTRICT_TRUE=
37208 BUILD_TEST_NTP_RESTRICT_FALSE='#'
37210 BUILD_TEST_NTP_RESTRICT_TRUE='#'
37211 BUILD_TEST_NTP_RESTRICT_FALSE=
37215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5
37216 $as_echo_n "checking if we can run test-ntp_scanner... " >&6; }
37217 ntp_test_ntp_scanner="no"
37218 case "$ntp_ept:$cross:$host" in
37219 no:0:*-*-freebsd6.4) ;;
37220 no:0:*-*-solaris*) ;;
37221 *) ntp_test_ntp_scanner="yes" ;;
37223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
37224 $as_echo "$ntp_test_ntp_scanner" >&6; }
37225 if test x$ntp_test_ntp_scanner = xyes; then
37226 BUILD_TEST_NTP_SCANNER_TRUE=
37227 BUILD_TEST_NTP_SCANNER_FALSE='#'
37229 BUILD_TEST_NTP_SCANNER_TRUE='#'
37230 BUILD_TEST_NTP_SCANNER_FALSE=
37234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5
37235 $as_echo_n "checking if we can run test-ntp_signd... " >&6; }
37236 ntp_test_ntp_signd="no"
37237 case "$ntp_ept:$cross:$host" in
37238 no:0:*-*-freebsd6.4) ;;
37239 no:0:*-*-solaris*) ;;
37240 *) ntp_test_ntp_signd="yes" ;;
37242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
37243 $as_echo "$ntp_test_ntp_signd" >&6; }
37244 if test x$ntp_test_ntp_signd = xyes; then
37245 BUILD_TEST_NTP_SIGND_TRUE=
37246 BUILD_TEST_NTP_SIGND_FALSE='#'
37248 BUILD_TEST_NTP_SIGND_TRUE='#'
37249 BUILD_TEST_NTP_SIGND_FALSE=
37260 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
37261 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
37262 eval ac_define_dir="\"$sysconfdir\""
37263 eval ac_define_dir="\"$ac_define_dir\""
37264 NTP_KEYSDIR="$ac_define_dir"
37267 cat >>confdefs.h <<_ACEOF
37268 #define NTP_KEYSDIR "$ac_define_dir"
37271 test "$prefix_NONE" && prefix=NONE
37272 test "$exec_prefix_NONE" && exec_prefix=NONE
37275 ac_config_files="$ac_config_files Makefile"
37277 ac_config_files="$ac_config_files adjtimed/Makefile"
37279 ac_config_files="$ac_config_files clockstuff/Makefile"
37281 ac_config_files="$ac_config_files include/Makefile"
37283 ac_config_files="$ac_config_files include/isc/Makefile"
37285 ac_config_files="$ac_config_files kernel/Makefile"
37287 ac_config_files="$ac_config_files kernel/sys/Makefile"
37289 ac_config_files="$ac_config_files libntp/Makefile"
37291 ac_config_files="$ac_config_files libparse/Makefile"
37293 ac_config_files="$ac_config_files ntpd/Makefile"
37295 ac_config_files="$ac_config_files ntpd/complete.conf"
37297 ac_config_files="$ac_config_files ntpdate/Makefile"
37299 ac_config_files="$ac_config_files ntpdc/Makefile"
37301 ac_config_files="$ac_config_files ntpdc/nl.pl"
37303 ac_config_files="$ac_config_files ntpq/Makefile"
37305 ac_config_files="$ac_config_files ntpsnmpd/Makefile"
37307 ac_config_files="$ac_config_files parseutil/Makefile"
37309 ac_config_files="$ac_config_files scripts/Makefile"
37311 ac_config_files="$ac_config_files scripts/build/Makefile"
37313 ac_config_files="$ac_config_files scripts/build/genAuthors"
37315 ac_config_files="$ac_config_files scripts/build/mkver"
37317 ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
37319 ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
37321 ac_config_files="$ac_config_files scripts/lib/Makefile"
37323 ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
37325 ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
37327 ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
37329 ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
37331 ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
37333 ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
37335 ac_config_files="$ac_config_files scripts/ntpver"
37337 ac_config_files="$ac_config_files scripts/plot_summary"
37339 ac_config_files="$ac_config_files scripts/summary"
37341 ac_config_files="$ac_config_files scripts/update-leap/Makefile"
37343 ac_config_files="$ac_config_files scripts/update-leap/update-leap"
37345 ac_config_files="$ac_config_files tests/Makefile"
37347 ac_config_files="$ac_config_files tests/bug-2803/Makefile"
37349 ac_config_files="$ac_config_files tests/libntp/Makefile"
37351 ac_config_files="$ac_config_files tests/ntpd/Makefile"
37353 ac_config_files="$ac_config_files tests/ntpq/Makefile"
37355 ac_config_files="$ac_config_files tests/sandbox/Makefile"
37357 ac_config_files="$ac_config_files tests/sec-2853/Makefile"
37359 ac_config_files="$ac_config_files util/Makefile"
37362 perllibdir="${datadir}/ntp/lib"
37366 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
37367 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
37368 eval ac_define_dir="\"$perllibdir\""
37369 eval ac_define_dir="\"$ac_define_dir\""
37370 PERLLIBDIR="$ac_define_dir"
37373 cat >>confdefs.h <<_ACEOF
37374 #define PERLLIBDIR "$ac_define_dir"
37377 test "$prefix_NONE" && prefix=NONE
37378 test "$exec_prefix_NONE" && exec_prefix=NONE
37381 calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"
37383 ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"
37385 ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"
37387 ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"
37389 summary_opts="$srcdir/scripts/summary-opts"
37391 plot_summary_opts="$srcdir/scripts/plot_summary-opts"
37396 subdirs="$subdirs sntp"
37399 cat >confcache <<\_ACEOF
37400 # This file is a shell script that caches the results of configure
37401 # tests run on this system so they can be shared between configure
37402 # scripts and configure runs, see configure's option --config-cache.
37403 # It is not useful on other systems. If it contains results you don't
37404 # want to keep, you may remove or edit it.
37406 # config.status only pays attention to the cache file if you give it
37407 # the --recheck option to rerun configure.
37409 # `ac_cv_env_foo' variables (set or unset) will be overridden when
37410 # loading this file, other *unset* `ac_cv_foo' will be assigned the
37411 # following values.
37415 # The following way of writing the cache mishandles newlines in values,
37416 # but we know of no workaround that is simple, portable, and efficient.
37417 # So, we kill variables containing newlines.
37418 # Ultrix sh set writes to stderr and can't be redirected directly,
37419 # and sets the high bit in the cache file unless we assign to the vars.
37421 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37422 eval ac_val=\$$ac_var
37426 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
37427 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
37430 _ | IFS | as_nl) ;; #(
37431 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
37432 *) { eval $ac_var=; unset $ac_var;} ;;
37438 case $as_nl`(ac_space=' '; set) 2>&1` in #(
37439 *${as_nl}ac_space=\ *)
37440 # `set' does not quote correctly, so add quotes: double-quote
37441 # substitution turns \\\\ into \\, and sed turns \\ into \.
37444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37447 # `set' quotes correctly as required by POSIX, so do not add quotes.
37448 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37457 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37459 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37461 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37462 if test -w "$cache_file"; then
37463 if test "x$cache_file" != "x/dev/null"; then
37464 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
37465 $as_echo "$as_me: updating cache $cache_file" >&6;}
37466 if test ! -f "$cache_file" || test -h "$cache_file"; then
37467 cat confcache >"$cache_file"
37469 case $cache_file in #(
37471 mv -f confcache "$cache_file"$$ &&
37472 mv -f "$cache_file"$$ "$cache_file" ;; #(
37474 mv -f confcache "$cache_file" ;;
37479 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
37480 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37485 test "x$prefix" = xNONE && prefix=$ac_default_prefix
37486 # Let make expand exec_prefix.
37487 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37489 DEFS=-DHAVE_CONFIG_H
37494 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37495 # 1. Remove the extension, and $U if already installed.
37496 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37497 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
37498 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
37499 # will be set to the directory where LIBOBJS objects are built.
37500 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37501 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
37503 LIBOBJS=$ac_libobjs
37505 LTLIBOBJS=$ac_ltlibobjs
37508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
37509 $as_echo_n "checking that generated files are newer than configure... " >&6; }
37510 if test -n "$am_sleep_pid"; then
37511 # Hide warnings about reused PIDs.
37512 wait $am_sleep_pid 2>/dev/null
37514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
37515 $as_echo "done" >&6; }
37516 if test -n "$EXEEXT"; then
37518 am__EXEEXT_FALSE='#'
37520 am__EXEEXT_TRUE='#'
37524 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37525 as_fn_error $? "conditional \"AMDEP\" was never defined.
37526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37528 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37529 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37532 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37533 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37537 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
37538 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
37539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37541 if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
37542 as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
37543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37545 if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
37546 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
37547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37549 if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
37550 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
37551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37553 if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
37554 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
37555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37557 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
37558 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
37559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37561 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
37562 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
37563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37565 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
37566 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
37567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37569 if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
37570 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
37571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37573 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
37574 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
37575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37577 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
37578 as_fn_error $? "conditional \"PTHREADS\" was never defined.
37579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37581 if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
37582 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
37583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37585 if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
37586 as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
37587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37589 if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
37590 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
37591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37593 if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
37594 as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
37595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37597 if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then
37598 as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined.
37599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37601 if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then
37602 as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined.
37603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37605 if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then
37606 as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined.
37607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37610 : "${CONFIG_STATUS=./config.status}"
37612 ac_clean_files_save=$ac_clean_files
37613 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
37615 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
37617 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
37619 # Generated by $as_me.
37620 # Run this file to recreate the current configuration.
37621 # Compiler output produced by configure, useful for debugging
37622 # configure, is in config.log if it exists.
37625 ac_cs_recheck=false
37628 SHELL=\${CONFIG_SHELL-$SHELL}
37631 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
37632 ## -------------------- ##
37633 ## M4sh Initialization. ##
37634 ## -------------------- ##
37636 # Be more Bourne compatible
37637 DUALCASE=1; export DUALCASE # for MKS sh
37638 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
37641 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37642 # is contrary to our usage. Disable this feature.
37643 alias -g '${1+"$@"}'='"$@"'
37644 setopt NO_GLOB_SUBST
37646 case `(set -o) 2>/dev/null` in #(
37658 # Printing a long string crashes Solaris 7 /usr/bin/printf.
37659 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
37660 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37661 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
37662 # Prefer a ksh shell builtin over an external printf program on Solaris,
37663 # but without wasting forks for bash or zsh.
37664 if test -z "$BASH_VERSION$ZSH_VERSION" \
37665 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
37666 as_echo='print -r --'
37667 as_echo_n='print -rn --'
37668 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
37669 as_echo='printf %s\n'
37670 as_echo_n='printf %s'
37672 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
37673 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
37674 as_echo_n='/usr/ucb/echo -n'
37676 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
37677 as_echo_n_body='eval
37681 expr "X$arg" : "X\\(.*\\)$as_nl";
37682 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
37684 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
37686 export as_echo_n_body
37687 as_echo_n='sh -c $as_echo_n_body as_echo'
37689 export as_echo_body
37690 as_echo='sh -c $as_echo_body as_echo'
37693 # The user is always right.
37694 if test "${PATH_SEPARATOR+set}" != set; then
37696 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37697 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37704 # We need space, tab and new line, in precisely that order. Quoting is
37705 # there to prevent editors from complaining about space-tab.
37706 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
37707 # splitting by setting IFS to empty value.)
37710 # Find who we are. Look in the path if we contain no directory separator.
37713 *[\\/]* ) as_myself=$0 ;;
37714 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37715 for as_dir in $PATH
37718 test -z "$as_dir" && as_dir=.
37719 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37725 # We did not find ourselves, most probably we were run as `sh COMMAND'
37726 # in which case we are not to be found in the path.
37727 if test "x$as_myself" = x; then
37730 if test ! -f "$as_myself"; then
37731 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37735 # Unset variables that we do not need and which cause bugs (e.g. in
37736 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
37737 # suppresses any "Segmentation fault" message there. '((' could
37738 # trigger a bug in pdksh 5.2.14.
37739 for as_var in BASH_ENV ENV MAIL MAILPATH
37740 do eval test x\${$as_var+set} = xset \
37741 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
37754 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37757 # as_fn_error STATUS ERROR [LINENO LOG_FD]
37758 # ----------------------------------------
37759 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37760 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37761 # script with STATUS, using 1 if that was 0.
37764 as_status=$1; test $as_status -eq 0 && as_status=1
37766 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37767 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
37769 $as_echo "$as_me: error: $2" >&2
37770 as_fn_exit $as_status
37774 # as_fn_set_status STATUS
37775 # -----------------------
37776 # Set $? to STATUS, without forking.
37777 as_fn_set_status ()
37780 } # as_fn_set_status
37782 # as_fn_exit STATUS
37783 # -----------------
37784 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37788 as_fn_set_status $1
37794 # Portably unset VAR.
37797 { eval $1=; unset $1;}
37799 as_unset=as_fn_unset
37800 # as_fn_append VAR VALUE
37801 # ----------------------
37802 # Append the text in VALUE to the end of the definition contained in VAR. Take
37803 # advantage of any shell optimizations that allow amortized linear growth over
37804 # repeated appends, instead of the typical quadratic growth present in naive
37806 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37807 eval 'as_fn_append ()
37818 # as_fn_arith ARG...
37819 # ------------------
37820 # Perform arithmetic evaluation on the ARGs, and store the result in the
37821 # global $as_val. Take advantage of shells that can avoid forks. The arguments
37822 # must be portable across $(()) and expr.
37823 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37824 eval 'as_fn_arith ()
37831 as_val=`expr "$@" || test $? -eq 1`
37836 if expr a : '\(a\)' >/dev/null 2>&1 &&
37837 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37843 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37844 as_basename=basename
37849 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37855 as_me=`$as_basename -- "$0" ||
37856 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37857 X"$0" : 'X\(//\)$' \| \
37858 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37860 sed '/^.*\/\([^/][^/]*\)\/*$/{
37874 # Avoid depending upon Character Ranges.
37875 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37876 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37877 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37878 as_cr_digits='0123456789'
37879 as_cr_alnum=$as_cr_Letters$as_cr_digits
37881 ECHO_C= ECHO_N= ECHO_T=
37882 case `echo -n x` in #(((((
37884 case `echo 'xy\c'` in
37885 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
37887 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
37894 rm -f conf$$ conf$$.exe conf$$.file
37895 if test -d conf$$.dir; then
37896 rm -f conf$$.dir/conf$$.file
37899 mkdir conf$$.dir 2>/dev/null
37901 if (echo >conf$$.file) 2>/dev/null; then
37902 if ln -s conf$$.file conf$$ 2>/dev/null; then
37904 # ... but there are two gotchas:
37905 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37906 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37907 # In both cases, we have to default to `cp -pR'.
37908 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37910 elif ln conf$$.file conf$$ 2>/dev/null; then
37918 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37919 rmdir conf$$.dir 2>/dev/null
37924 # Create "$as_dir" as a directory, including parents if necessary.
37929 -*) as_dir=./$as_dir;;
37931 test -d "$as_dir" || eval $as_mkdir_p || {
37935 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37936 *) as_qdir=$as_dir;;
37938 as_dirs="'$as_qdir' $as_dirs"
37939 as_dir=`$as_dirname -- "$as_dir" ||
37940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37941 X"$as_dir" : 'X\(//\)[^/]' \| \
37942 X"$as_dir" : 'X\(//\)$' \| \
37943 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37944 $as_echo X"$as_dir" |
37945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37949 /^X\(\/\/\)[^/].*/{
37962 test -d "$as_dir" && break
37964 test -z "$as_dirs" || eval "mkdir $as_dirs"
37965 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
37969 if mkdir -p . 2>/dev/null; then
37970 as_mkdir_p='mkdir -p "$as_dir"'
37972 test -d ./-p && rmdir ./-p
37977 # as_fn_executable_p FILE
37978 # -----------------------
37979 # Test if FILE is an executable regular file.
37980 as_fn_executable_p ()
37982 test -f "$1" && test -x "$1"
37983 } # as_fn_executable_p
37984 as_test_x='test -x'
37985 as_executable_p=as_fn_executable_p
37987 # Sed expression to map a string onto a valid CPP name.
37988 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37990 # Sed expression to map a string onto a valid variable name.
37991 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37995 ## ----------------------------------- ##
37996 ## Main body of $CONFIG_STATUS script. ##
37997 ## ----------------------------------- ##
37999 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
38001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38002 # Save the log message, to keep $0 and so on meaningful, and to
38003 # report actual input values of CONFIG_FILES etc. instead of their
38004 # values after options handling.
38006 This file was extended by ntp $as_me 4.2.8p8, which was
38007 generated by GNU Autoconf 2.69. Invocation command line was
38009 CONFIG_FILES = $CONFIG_FILES
38010 CONFIG_HEADERS = $CONFIG_HEADERS
38011 CONFIG_LINKS = $CONFIG_LINKS
38012 CONFIG_COMMANDS = $CONFIG_COMMANDS
38015 on `(hostname || uname -n) 2>/dev/null | sed 1q`
38020 case $ac_config_files in *"
38021 "*) set x $ac_config_files; shift; ac_config_files=$*;;
38024 case $ac_config_headers in *"
38025 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
38029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38030 # Files that config.status was made for.
38031 config_files="$ac_config_files"
38032 config_headers="$ac_config_headers"
38033 config_commands="$ac_config_commands"
38037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38039 \`$as_me' instantiates files and other configuration actions
38040 from templates according to the current configuration. Unless the files
38041 and actions are specified as TAGs, all are instantiated by default.
38043 Usage: $0 [OPTION]... [TAG]...
38045 -h, --help print this help, then exit
38046 -V, --version print version number and configuration settings, then exit
38047 --config print configuration, then exit
38048 -q, --quiet, --silent
38049 do not print progress messages
38050 -d, --debug don't remove temporary files
38051 --recheck update $as_me by reconfiguring in the same conditions
38052 --file=FILE[:TEMPLATE]
38053 instantiate the configuration file FILE
38054 --header=FILE[:TEMPLATE]
38055 instantiate the configuration header FILE
38057 Configuration files:
38060 Configuration headers:
38063 Configuration commands:
38066 Report bugs to <http://bugs.ntp.org./>.
38067 ntp home page: <http://www.ntp.org./>."
38070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38071 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
38073 ntp config.status 4.2.8p8
38074 configured by $0, generated by GNU Autoconf 2.69,
38075 with options \\"\$ac_cs_config\\"
38077 Copyright (C) 2012 Free Software Foundation, Inc.
38078 This config.status script is free software; the Free Software Foundation
38079 gives unlimited permission to copy, distribute and modify it."
38086 test -n "\$AWK" || AWK=awk
38089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38090 # The default lists apply if the user does not specify any file.
38096 ac_option=`expr "X$1" : 'X\([^=]*\)='`
38097 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
38101 ac_option=`expr "X$1" : 'X\([^=]*\)='`
38113 # Handling of the options.
38114 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
38116 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
38117 $as_echo "$ac_cs_version"; exit ;;
38118 --config | --confi | --conf | --con | --co | --c )
38119 $as_echo "$ac_cs_config"; exit ;;
38120 --debug | --debu | --deb | --de | --d | -d )
38122 --file | --fil | --fi | --f )
38125 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38126 '') as_fn_error $? "missing file argument" ;;
38128 as_fn_append CONFIG_FILES " '$ac_optarg'"
38129 ac_need_defaults=false;;
38130 --header | --heade | --head | --hea )
38133 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38135 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
38136 ac_need_defaults=false;;
38138 # Conflict between --help and --header
38139 as_fn_error $? "ambiguous option: \`$1'
38140 Try \`$0 --help' for more information.";;
38141 --help | --hel | -h )
38142 $as_echo "$ac_cs_usage"; exit ;;
38143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
38144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
38147 # This is an error.
38148 -*) as_fn_error $? "unrecognized option: \`$1'
38149 Try \`$0 --help' for more information." ;;
38151 *) as_fn_append ac_config_targets " $1"
38152 ac_need_defaults=false ;;
38158 ac_configure_extra_args=
38160 if $ac_cs_silent; then
38162 ac_configure_extra_args="$ac_configure_extra_args --silent"
38166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38167 if \$ac_cs_recheck; then
38168 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
38170 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
38171 CONFIG_SHELL='$SHELL'
38172 export CONFIG_SHELL
38177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38182 ## Running $as_me. ##
38188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38192 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38195 # The HP-UX ksh and POSIX shell print the target directory to stdout
38196 # if CDPATH is set.
38197 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38199 sed_quote_subst='$sed_quote_subst'
38200 double_quote_subst='$double_quote_subst'
38201 delay_variable_subst='$delay_variable_subst'
38202 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
38203 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
38204 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
38205 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
38206 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
38207 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
38208 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
38209 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
38210 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
38211 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
38212 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
38213 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
38214 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
38215 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
38216 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
38217 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
38218 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
38219 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
38220 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
38221 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
38222 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
38223 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
38224 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
38225 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
38226 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
38227 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
38228 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
38229 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
38230 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
38231 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
38232 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
38233 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
38234 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
38235 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
38236 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
38237 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
38238 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
38239 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
38240 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
38241 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
38242 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
38243 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
38244 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
38245 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
38246 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38247 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38248 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
38249 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
38250 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
38251 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
38252 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
38253 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
38254 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
38255 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
38256 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
38257 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"`'
38258 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
38259 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
38260 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
38261 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
38262 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
38263 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
38264 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
38265 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
38266 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
38267 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
38268 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
38269 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
38270 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
38271 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
38272 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
38273 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
38274 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
38275 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
38276 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38277 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
38278 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
38279 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
38280 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
38281 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
38282 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
38283 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38284 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
38285 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38286 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
38287 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38288 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
38289 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
38290 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
38291 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
38292 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
38293 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
38294 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
38295 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
38296 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
38297 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
38298 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
38299 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
38300 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
38301 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
38302 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
38303 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
38304 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
38305 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
38306 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
38307 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
38308 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
38309 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
38310 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
38311 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
38312 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
38313 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
38314 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
38315 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
38316 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
38317 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
38318 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
38319 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38320 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38321 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
38322 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
38323 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
38324 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
38325 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
38326 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
38327 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
38328 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
38329 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
38330 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
38331 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
38332 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
38333 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
38334 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
38335 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
38336 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
38337 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
38338 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
38339 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
38340 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38341 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38342 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
38343 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
38344 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
38345 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
38346 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
38347 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
38348 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
38349 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
38350 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
38351 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38352 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38353 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
38354 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38355 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38356 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38357 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38358 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38359 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38360 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
38361 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38362 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38363 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38364 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
38365 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
38366 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
38367 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
38368 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
38369 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
38370 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
38371 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
38372 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
38373 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
38374 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38375 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38376 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38377 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38378 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38379 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
38380 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
38381 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
38382 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38383 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38384 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
38385 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
38386 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
38389 LTCFLAGS='$LTCFLAGS'
38390 compiler='$compiler_DEFAULT'
38392 # A function that is used when there is no print builtin or printf.
38393 func_fallback_echo ()
38395 eval 'cat <<_LTECHO_EOF
38400 # Quote evaled strings.
38414 deplibs_check_method \
38419 sharedlib_from_linklib_cmd \
38422 archiver_list_spec \
38428 lt_cv_sys_global_symbol_pipe \
38429 lt_cv_sys_global_symbol_to_cdecl \
38430 lt_cv_sys_global_symbol_to_c_name_address \
38431 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
38432 nm_file_list_spec \
38433 lt_prog_compiler_no_builtin_flag \
38434 lt_prog_compiler_pic \
38435 lt_prog_compiler_wl \
38436 lt_prog_compiler_static \
38437 lt_cv_prog_compiler_c_o \
38446 export_dynamic_flag_spec \
38447 whole_archive_flag_spec \
38448 compiler_needs_object \
38450 allow_undefined_flag \
38451 no_undefined_flag \
38452 hardcode_libdir_flag_spec \
38453 hardcode_libdir_flag_spec_ld \
38454 hardcode_libdir_separator \
38458 variables_saved_for_relink \
38460 library_names_spec \
38462 install_override_mode \
38466 compiler_lib_search_dirs \
38471 compiler_lib_search_path \
38475 lt_prog_compiler_no_builtin_flag_CXX \
38476 lt_prog_compiler_pic_CXX \
38477 lt_prog_compiler_wl_CXX \
38478 lt_prog_compiler_static_CXX \
38479 lt_cv_prog_compiler_c_o_CXX \
38480 export_dynamic_flag_spec_CXX \
38481 whole_archive_flag_spec_CXX \
38482 compiler_needs_object_CXX \
38484 allow_undefined_flag_CXX \
38485 no_undefined_flag_CXX \
38486 hardcode_libdir_flag_spec_CXX \
38487 hardcode_libdir_flag_spec_ld_CXX \
38488 hardcode_libdir_separator_CXX \
38489 exclude_expsyms_CXX \
38490 include_expsyms_CXX \
38491 file_list_spec_CXX \
38492 compiler_lib_search_dirs_CXX \
38493 predep_objects_CXX \
38494 postdep_objects_CXX \
38497 compiler_lib_search_path_CXX; do
38498 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38499 *[\\\\\\\`\\"\\\$]*)
38500 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
38503 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38508 # Double-quote double-evaled strings.
38509 for var in reload_cmds \
38510 old_postinstall_cmds \
38511 old_postuninstall_cmds \
38513 extract_expsyms_cmds \
38514 old_archive_from_new_cmds \
38515 old_archive_from_expsyms_cmds \
38517 archive_expsym_cmds \
38519 module_expsym_cmds \
38520 export_symbols_cmds \
38524 postuninstall_cmds \
38526 sys_lib_search_path_spec \
38527 sys_lib_dlsearch_path_spec \
38529 old_archive_cmds_CXX \
38530 old_archive_from_new_cmds_CXX \
38531 old_archive_from_expsyms_cmds_CXX \
38533 archive_expsym_cmds_CXX \
38535 module_expsym_cmds_CXX \
38536 export_symbols_cmds_CXX \
38538 postlink_cmds_CXX; do
38539 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38540 *[\\\\\\\`\\"\\\$]*)
38541 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
38544 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38549 ac_aux_dir='$ac_aux_dir'
38550 xsi_shell='$xsi_shell'
38551 lt_shell_append='$lt_shell_append'
38553 # See if we are running on zsh, and set the options which allow our
38554 # commands through without removal of \ escapes INIT.
38555 if test -n "\${ZSH_VERSION+set}" ; then
38556 setopt NO_GLOB_SUBST
38562 TIMESTAMP='$TIMESTAMP'
38573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38575 # Handling of arguments.
38576 for ac_config_target in $ac_config_targets
38578 case $ac_config_target in
38579 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
38580 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38581 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
38582 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
38583 "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
38584 "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
38585 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
38586 "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
38587 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
38588 "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
38589 "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
38590 "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
38591 "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
38592 "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
38593 "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
38594 "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
38595 "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
38596 "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
38597 "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
38598 "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
38599 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
38600 "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
38601 "scripts/build/genAuthors") CONFIG_FILES="$CONFIG_FILES scripts/build/genAuthors" ;;
38602 "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
38603 "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
38604 "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
38605 "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
38606 "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
38607 "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
38608 "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
38609 "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
38610 "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
38611 "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
38612 "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
38613 "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
38614 "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
38615 "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;;
38616 "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;;
38617 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
38618 "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;;
38619 "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
38620 "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
38621 "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;;
38622 "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;;
38623 "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;;
38624 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
38626 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
38631 # If the user did not use the arguments to specify the items to instantiate,
38632 # then the envvar interface is used. Set only those that are not.
38633 # We use the long form for the default assignment because of an extremely
38634 # bizarre bug on SunOS 4.1.3.
38635 if $ac_need_defaults; then
38636 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38637 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38638 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38641 # Have a temporary directory for convenience. Make it in the build tree
38642 # simply because there is no reason against having it here, and in addition,
38643 # creating and moving files from /tmp can sometimes cause problems.
38644 # Hook for its removal unless debugging.
38645 # Note that there is a small window in which the directory will not be cleaned:
38646 # after its creation but before its name has been assigned to `$tmp'.
38650 trap 'exit_status=$?
38651 : "${ac_tmp:=$tmp}"
38652 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
38654 trap 'as_fn_exit 1' 1 2 13 15
38656 # Create a (secure) tmp directory for tmp files.
38659 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38663 tmp=./conf$$-$RANDOM
38664 (umask 077 && mkdir "$tmp")
38665 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
38668 # Set up the scripts for CONFIG_FILES section.
38669 # No need to generate them if there are no CONFIG_FILES.
38670 # This happens for instance with `./config.status config.h'.
38671 if test -n "$CONFIG_FILES"; then
38673 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
38674 ac_cs_awk_getline=:
38675 ac_cs_awk_pipe_init=
38676 ac_cs_awk_read_file='
38677 while ((getline aline < (F[key])) > 0)
38680 ac_cs_awk_pipe_fini=
38682 ac_cs_awk_getline=false
38683 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
38684 ac_cs_awk_read_file='
38686 print "cat " F[key] " &&"
38687 '$ac_cs_awk_pipe_init
38688 # The final `:' finishes the AND list.
38689 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
38691 ac_cr=`echo X | tr X '\015'`
38692 # On cygwin, bash can eat \r inside `` if the user requested igncr.
38693 # But we know of no other shell where ac_cr would be empty at this
38694 # point, so we can use a bashism as a fallback.
38695 if test "x$ac_cr" = x; then
38696 eval ac_cr=\$\'\\r\'
38698 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38699 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
38702 ac_cs_awk_cr=$ac_cr
38705 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
38708 # Create commands to substitute file output variables.
38710 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
38711 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
38712 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
38715 } >conf$$files.sh &&
38716 . ./conf$$files.sh ||
38717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38718 rm -f conf$$files.sh
38721 echo "cat >conf$$subs.awk <<_ACEOF" &&
38722 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38724 } >conf$$subs.sh ||
38725 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38726 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
38728 for ac_last_try in false false false false false :; do
38729 . ./conf$$subs.sh ||
38730 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38732 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38733 if test $ac_delim_n = $ac_delim_num; then
38735 elif $ac_last_try; then
38736 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38738 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38741 rm -f conf$$subs.sh
38743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38744 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
38748 s/^/S["/; s/!.*/"]=/
38758 s/\(.\{148\}\)..*/\1/
38760 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38765 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38772 s/\(.\{148\}\)..*/\1/
38774 s/["\\]/\\&/g; s/^/"/; s/$/"/
38778 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38783 ' <conf$$subs.awk | sed '
38788 ' >>$CONFIG_STATUS || ac_write_fail=1
38789 rm -f conf$$subs.awk
38790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38792 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
38793 for (key in S) S_is_set[key] = 1
38795 \$ac_cs_awk_pipe_init
38799 nfields = split(line, field, "@")
38801 len = length(field[1])
38802 for (i = 2; i < nfields; i++) {
38804 keylen = length(key)
38805 if (S_is_set[key]) {
38807 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38808 len += length(value) + length(field[++i])
38813 if (nfields == 3 && !substed) {
38815 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
38816 \$ac_cs_awk_read_file
38822 \$ac_cs_awk_pipe_fini
38825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38826 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38827 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38830 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
38831 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38834 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38835 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
38836 # trailing colons and then remove the whole line if VPATH becomes empty
38837 # (actually we leave an empty line to preserve line numbers).
38838 if test "x$srcdir" = x.; then
38839 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
38857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38858 fi # test -n "$CONFIG_FILES"
38860 # Set up the scripts for CONFIG_HEADERS section.
38861 # No need to generate them if there are no CONFIG_HEADERS.
38862 # This happens for instance with `./config.status Makefile'.
38863 if test -n "$CONFIG_HEADERS"; then
38864 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
38868 # Transform confdefs.h into an awk script `defines.awk', embedded as
38869 # here-document in config.status, that substitutes the proper values into
38870 # config.h.in to produce config.h.
38872 # Create a delimiter string that does not exist in confdefs.h, to ease
38873 # handling of long lines.
38875 for ac_last_try in false false :; do
38876 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38877 if test -z "$ac_tt"; then
38879 elif $ac_last_try; then
38880 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
38882 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38886 # For the awk script, D is an array of macro values keyed by name,
38887 # likewise P contains macro parameters if any. Preserve backslash
38888 # newline sequences.
38890 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38892 s/.\{148\}/&'"$ac_delim"'/g
38895 s/^[ ]*#[ ]*define[ ][ ]*/ /
38902 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38904 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
38908 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38909 D["\1"]=" \3\\\\\\n"\\/p
38911 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38916 s/.\{148\}/&'"$ac_delim"'/g
38921 s/["\\]/\\&/g; s/^/"/; s/$/"/p
38924 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38926 ' <confdefs.h | sed '
38927 s/'"$ac_delim"'/"\\\
38928 "/g' >>$CONFIG_STATUS || ac_write_fail=1
38930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38931 for (key in D) D_is_set[key] = 1
38934 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38936 split(line, arg, " ")
38937 if (arg[1] == "#") {
38941 defundef = substr(arg[1], 2)
38944 split(mac1, mac2, "(") #)
38946 prefix = substr(line, 1, index(line, defundef) - 1)
38947 if (D_is_set[macro]) {
38948 # Preserve the white space surrounding the "#".
38949 print prefix "define", macro P[macro] D[macro]
38952 # Replace #undef with comments. This is necessary, for example,
38953 # in the case of _POSIX_SOURCE, which is predefined and required
38954 # on some systems where configure will not decide to define it.
38955 if (defundef == "undef") {
38956 print "/*", prefix defundef, macro, "*/"
38964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38965 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
38966 fi # test -n "$CONFIG_HEADERS"
38969 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
38974 :[FHLC]) ac_mode=$ac_tag; continue;;
38976 case $ac_mode$ac_tag in
38978 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
38979 :[FH]-) ac_tag=-:-;;
38980 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38997 -) ac_f="$ac_tmp/stdin";;
38998 *) # Look for the file first in the build tree, then in the source tree
38999 # (if the path is not absolute). The absolute path cannot be DOS-style,
39000 # because $ac_f cannot contain `:'.
39004 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39006 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
39008 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
39009 as_fn_append ac_file_inputs " '$ac_f'"
39012 # Let's still pretend it is `configure' which instantiates (i.e., don't
39013 # use $as_me), people would be surprised to read:
39014 # /* config.h. Generated by config.status. */
39015 configure_input='Generated from '`
39016 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
39018 if test x"$ac_file" != x-; then
39019 configure_input="$ac_file. $configure_input"
39020 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
39021 $as_echo "$as_me: creating $ac_file" >&6;}
39023 # Neutralize special characters interpreted by sed in replacement strings.
39024 case $configure_input in #(
39025 *\&* | *\|* | *\\* )
39026 ac_sed_conf_input=`$as_echo "$configure_input" |
39027 sed 's/[\\\\&|]/\\\\&/g'`;; #(
39028 *) ac_sed_conf_input=$configure_input;;
39032 *:-:* | *:-) cat >"$ac_tmp/stdin" \
39033 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
39038 ac_dir=`$as_dirname -- "$ac_file" ||
39039 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39040 X"$ac_file" : 'X\(//\)[^/]' \| \
39041 X"$ac_file" : 'X\(//\)$' \| \
39042 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39043 $as_echo X"$ac_file" |
39044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39048 /^X\(\/\/\)[^/].*/{
39061 as_dir="$ac_dir"; as_fn_mkdir_p
39065 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39067 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
39068 # A ".." for each directory in $ac_dir_suffix.
39069 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
39070 case $ac_top_builddir_sub in
39071 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39072 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39075 ac_abs_top_builddir=$ac_pwd
39076 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39077 # for backward compatibility:
39078 ac_top_builddir=$ac_top_build_prefix
39081 .) # We are building in place.
39083 ac_top_srcdir=$ac_top_builddir_sub
39084 ac_abs_top_srcdir=$ac_pwd ;;
39085 [\\/]* | ?:[\\/]* ) # Absolute name.
39086 ac_srcdir=$srcdir$ac_dir_suffix;
39087 ac_top_srcdir=$srcdir
39088 ac_abs_top_srcdir=$srcdir ;;
39089 *) # Relative name.
39090 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39091 ac_top_srcdir=$ac_top_build_prefix$srcdir
39092 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39094 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39104 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39105 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39107 ac_MKDIR_P=$MKDIR_P
39109 [\\/$]* | ?:[\\/]* ) ;;
39110 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
39114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39115 # If the template does not know about datarootdir, expand it.
39116 # FIXME: This hack should be removed a few years after 2.60.
39117 ac_datarootdir_hack=; ac_datarootdir_seen=
39128 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
39129 *datarootdir*) ac_datarootdir_seen=yes;;
39130 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39132 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39135 ac_datarootdir_hack='
39136 s&@datadir@&$datadir&g
39137 s&@docdir@&$docdir&g
39138 s&@infodir@&$infodir&g
39139 s&@localedir@&$localedir&g
39140 s&@mandir@&$mandir&g
39141 s&\\\${datarootdir}&$datarootdir&g' ;;
39145 # Neutralize VPATH when `$srcdir' = `.'.
39146 # Shell code in configure.ac might set extrasub.
39147 # FIXME: do we really want to maintain this feature?
39148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39149 ac_sed_extra="$ac_vpsub
39152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39155 s|@configure_input@|$ac_sed_conf_input|;t t
39156 s&@top_builddir@&$ac_top_builddir_sub&;t t
39157 s&@top_build_prefix@&$ac_top_build_prefix&;t t
39158 s&@srcdir@&$ac_srcdir&;t t
39159 s&@abs_srcdir@&$ac_abs_srcdir&;t t
39160 s&@top_srcdir@&$ac_top_srcdir&;t t
39161 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39162 s&@builddir@&$ac_builddir&;t t
39163 s&@abs_builddir@&$ac_abs_builddir&;t t
39164 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39165 s&@INSTALL@&$ac_INSTALL&;t t
39166 s&@MKDIR_P@&$ac_MKDIR_P&;t t
39167 $ac_datarootdir_hack
39169 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
39170 if $ac_cs_awk_getline; then
39171 $AWK -f "$ac_tmp/subs.awk"
39173 $AWK -f "$ac_tmp/subs.awk" | $SHELL
39175 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39177 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39178 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
39179 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
39180 "$ac_tmp/out"`; test -z "$ac_out"; } &&
39181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39182 which seems to be undefined. Please make sure it is defined" >&5
39183 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39184 which seems to be undefined. Please make sure it is defined" >&2;}
39186 rm -f "$ac_tmp/stdin"
39188 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
39189 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39197 if test x"$ac_file" != x-; then
39199 $as_echo "/* $configure_input */" \
39200 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
39201 } >"$ac_tmp/config.h" \
39202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39203 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
39204 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
39205 $as_echo "$as_me: $ac_file is unchanged" >&6;}
39208 mv "$ac_tmp/config.h" "$ac_file" \
39209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39212 $as_echo "/* $configure_input */" \
39213 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
39214 || as_fn_error $? "could not create -" "$LINENO" 5
39216 # Compute "$ac_file"'s index in $config_headers.
39219 for _am_header in $config_headers :; do
39220 case $_am_header in
39221 $_am_arg | $_am_arg:* )
39224 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39227 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
39228 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39229 X"$_am_arg" : 'X\(//\)[^/]' \| \
39230 X"$_am_arg" : 'X\(//\)$' \| \
39231 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
39232 $as_echo X"$_am_arg" |
39233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39237 /^X\(\/\/\)[^/].*/{
39249 s/.*/./; q'`/stamp-h$_am_stamp_count
39252 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39253 $as_echo "$as_me: executing $ac_file commands" >&6;}
39258 case $ac_file$ac_mode in
39259 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
39260 # Older Autoconf quotes --file arguments for eval, but not when files
39261 # are listed without --file. Let's play safe and only enable the eval
39262 # if we detect the quoting.
39263 case $CONFIG_FILES in
39264 *\'*) eval set x "$CONFIG_FILES" ;;
39265 *) set x $CONFIG_FILES ;;
39270 # Strip MF so we end up with the name of the file.
39271 mf=`echo "$mf" | sed -e 's/:.*$//'`
39272 # Check whether this is an Automake generated Makefile or not.
39273 # We used to match only the files named 'Makefile.in', but
39274 # some people rename them; so instead we look at the file content.
39275 # Grep'ing the first line is not enough: some people post-process
39276 # each Makefile.in and add a new line on top of each file to say so.
39277 # Grep'ing the whole file is not good either: AIX grep has a line
39278 # limit of 2048, but all sed's we know have understand at least 4000.
39279 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
39280 dirpart=`$as_dirname -- "$mf" ||
39281 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39282 X"$mf" : 'X\(//\)[^/]' \| \
39283 X"$mf" : 'X\(//\)$' \| \
39284 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39290 /^X\(\/\/\)[^/].*/{
39306 # Extract the definition of DEPDIR, am__include, and am__quote
39307 # from the Makefile without running 'make'.
39308 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39309 test -z "$DEPDIR" && continue
39310 am__include=`sed -n 's/^am__include = //p' < "$mf"`
39311 test -z "$am__include" && continue
39312 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39313 # Find all dependency output files, they are included files with
39314 # $(DEPDIR) in their names. We invoke sed twice because it is the
39315 # simplest approach to changing $(DEPDIR) to its actual value in the
39317 for file in `sed -n "
39318 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39319 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
39320 # Make sure the directory exists.
39321 test -f "$dirpart/$file" && continue
39322 fdir=`$as_dirname -- "$file" ||
39323 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39324 X"$file" : 'X\(//\)[^/]' \| \
39325 X"$file" : 'X\(//\)$' \| \
39326 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39327 $as_echo X"$file" |
39328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39332 /^X\(\/\/\)[^/].*/{
39345 as_dir=$dirpart/$fdir; as_fn_mkdir_p
39346 # echo "creating $dirpart/$file"
39347 echo '# dummy' > "$dirpart/$file"
39354 # See if we are running on zsh, and set the options which allow our
39355 # commands through without removal of \ escapes.
39356 if test -n "${ZSH_VERSION+set}" ; then
39357 setopt NO_GLOB_SUBST
39360 cfgfile="${ofile}T"
39361 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
39364 cat <<_LT_EOF >> "$cfgfile"
39367 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
39368 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
39369 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
39370 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
39372 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
39373 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
39375 # Written by Gordon Matzigkeit, 1996
39377 # This file is part of GNU Libtool.
39379 # GNU Libtool is free software; you can redistribute it and/or
39380 # modify it under the terms of the GNU General Public License as
39381 # published by the Free Software Foundation; either version 2 of
39382 # the License, or (at your option) any later version.
39384 # As a special exception to the GNU General Public License,
39385 # if you distribute this file as part of a program or library that
39386 # is built using GNU Libtool, you may include this file under the
39387 # same distribution terms that you use for the rest of that program.
39389 # GNU Libtool is distributed in the hope that it will be useful,
39390 # but WITHOUT ANY WARRANTY; without even the implied warranty of
39391 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39392 # GNU General Public License for more details.
39394 # You should have received a copy of the GNU General Public License
39395 # along with GNU Libtool; see the file COPYING. If not, a copy
39396 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
39397 # obtained by writing to the Free Software Foundation, Inc.,
39398 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
39401 # The names of the tagged configurations supported by this script.
39402 available_tags="CXX "
39404 # ### BEGIN LIBTOOL CONFIG
39406 # Whether or not to build shared libraries.
39407 build_libtool_libs=$enable_shared
39409 # Which release of libtool.m4 was used?
39410 macro_version=$macro_version
39411 macro_revision=$macro_revision
39413 # Whether or not to build static libraries.
39414 build_old_libs=$enable_static
39416 # What type of objects to build.
39419 # Whether or not to optimize for fast installation.
39420 fast_install=$enable_fast_install
39422 # Shell to use when invoking shell scripts.
39425 # An echo program that protects backslashes.
39429 host_alias=$host_alias
39433 # The build system.
39434 build_alias=$build_alias
39438 # A sed program that does not truncate output.
39441 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
39442 Xsed="\$SED -e 1s/^X//"
39444 # A grep program that handles long lines.
39450 # A literal string matcher.
39453 # A BSD- or MS-compatible name lister.
39456 # Whether we need soft or hard links.
39459 # What is the maximum length of a command?
39460 max_cmd_len=$max_cmd_len
39462 # Object file suffix (normally "o").
39465 # Executable file suffix (normally "").
39468 # whether the shell understands "unset".
39471 # turn spaces into newlines.
39474 # turn newlines into spaces.
39477 # convert \$build file names to \$host format.
39478 to_host_file_cmd=$lt_cv_to_host_file_cmd
39480 # convert \$build files to toolchain format.
39481 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
39483 # An object symbol dumper.
39484 OBJDUMP=$lt_OBJDUMP
39486 # Method to check whether dependent libraries are shared objects.
39487 deplibs_check_method=$lt_deplibs_check_method
39489 # Command to use when deplibs_check_method = "file_magic".
39490 file_magic_cmd=$lt_file_magic_cmd
39492 # How to find potential files when deplibs_check_method = "file_magic".
39493 file_magic_glob=$lt_file_magic_glob
39495 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
39496 want_nocaseglob=$lt_want_nocaseglob
39498 # DLL creation program.
39499 DLLTOOL=$lt_DLLTOOL
39501 # Command to associate shared and link libraries.
39502 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
39507 # Flags to create an archive.
39508 AR_FLAGS=$lt_AR_FLAGS
39510 # How to feed a file listing to the archiver.
39511 archiver_list_spec=$lt_archiver_list_spec
39513 # A symbol stripping program.
39516 # Commands used to install an old-style archive.
39518 old_postinstall_cmds=$lt_old_postinstall_cmds
39519 old_postuninstall_cmds=$lt_old_postuninstall_cmds
39521 # Whether to use a lock for old archive extraction.
39522 lock_old_archive_extraction=$lock_old_archive_extraction
39527 # LTCC compiler flags.
39528 LTCFLAGS=$lt_CFLAGS
39530 # Take the output of nm and produce a listing of raw symbols and C names.
39531 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39533 # Transform the output of nm in a proper C declaration.
39534 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39536 # Transform the output of nm in a C name address pair.
39537 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39539 # Transform the output of nm in a C name address pair when lib prefix is needed.
39540 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
39542 # Specify filename containing input files for \$NM.
39543 nm_file_list_spec=$lt_nm_file_list_spec
39545 # The root where to search for dependent libraries,and in which our libraries should be installed.
39546 lt_sysroot=$lt_sysroot
39548 # The name of the directory that contains temporary libtool files.
39551 # Used to examine libraries when file_magic_cmd begins with "file".
39552 MAGIC_CMD=$MAGIC_CMD
39554 # Must we lock files when doing compilation?
39555 need_locks=$lt_need_locks
39558 MANIFEST_TOOL=$lt_MANIFEST_TOOL
39560 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
39561 DSYMUTIL=$lt_DSYMUTIL
39563 # Tool to change global to local symbols on Mac OS X.
39566 # Tool to manipulate fat objects and archives on Mac OS X.
39569 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
39572 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
39573 OTOOL64=$lt_OTOOL64
39575 # Old archive suffix (normally "a").
39578 # Shared library suffix (normally ".so").
39579 shrext_cmds=$lt_shrext_cmds
39581 # The commands to extract the exported symbol list from a shared archive.
39582 extract_expsyms_cmds=$lt_extract_expsyms_cmds
39584 # Variables whose values should be saved in libtool wrapper scripts and
39585 # restored at link time.
39586 variables_saved_for_relink=$lt_variables_saved_for_relink
39588 # Do we need the "lib" prefix for modules?
39589 need_lib_prefix=$need_lib_prefix
39591 # Do we need a version for libraries?
39592 need_version=$need_version
39594 # Library versioning type.
39595 version_type=$version_type
39597 # Shared library runtime path variable.
39598 runpath_var=$runpath_var
39600 # Shared library path variable.
39601 shlibpath_var=$shlibpath_var
39603 # Is shlibpath searched before the hard-coded library search path?
39604 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39606 # Format of library name prefix.
39607 libname_spec=$lt_libname_spec
39609 # List of archive names. First name is the real one, the rest are links.
39610 # The last name is the one that the linker finds with -lNAME
39611 library_names_spec=$lt_library_names_spec
39613 # The coded name of the library, if different from the real name.
39614 soname_spec=$lt_soname_spec
39616 # Permission mode override for installation of shared libraries.
39617 install_override_mode=$lt_install_override_mode
39619 # Command to use after installation of a shared archive.
39620 postinstall_cmds=$lt_postinstall_cmds
39622 # Command to use after uninstallation of a shared archive.
39623 postuninstall_cmds=$lt_postuninstall_cmds
39625 # Commands used to finish a libtool library installation in a directory.
39626 finish_cmds=$lt_finish_cmds
39628 # As "finish_cmds", except a single script fragment to be evaled but
39630 finish_eval=$lt_finish_eval
39632 # Whether we should hardcode library paths into libraries.
39633 hardcode_into_libs=$hardcode_into_libs
39635 # Compile-time system search path for libraries.
39636 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39638 # Run-time system search path for libraries.
39639 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
39641 # Whether dlopen is supported.
39642 dlopen_support=$enable_dlopen
39644 # Whether dlopen of programs is supported.
39645 dlopen_self=$enable_dlopen_self
39647 # Whether dlopen of statically linked programs is supported.
39648 dlopen_self_static=$enable_dlopen_self_static
39650 # Commands to strip libraries.
39651 old_striplib=$lt_old_striplib
39652 striplib=$lt_striplib
39655 # The linker used to build libraries.
39658 # How to create reloadable object files.
39659 reload_flag=$lt_reload_flag
39660 reload_cmds=$lt_reload_cmds
39662 # Commands used to build an old-style archive.
39663 old_archive_cmds=$lt_old_archive_cmds
39665 # A language specific compiler.
39668 # Is the compiler the GNU compiler?
39671 # Compiler flag to turn off builtin functions.
39672 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39674 # Additional compiler flags for building library objects.
39675 pic_flag=$lt_lt_prog_compiler_pic
39677 # How to pass a linker flag through the compiler.
39678 wl=$lt_lt_prog_compiler_wl
39680 # Compiler flag to prevent dynamic linking.
39681 link_static_flag=$lt_lt_prog_compiler_static
39683 # Does compiler simultaneously support -c and -o options?
39684 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39686 # Whether or not to add -lc for building shared libraries.
39687 build_libtool_need_lc=$archive_cmds_need_lc
39689 # Whether or not to disallow shared libs when runtime libs are static.
39690 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39692 # Compiler flag to allow reflexive dlopens.
39693 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39695 # Compiler flag to generate shared objects directly from archives.
39696 whole_archive_flag_spec=$lt_whole_archive_flag_spec
39698 # Whether the compiler copes with passing no objects directly.
39699 compiler_needs_object=$lt_compiler_needs_object
39701 # Create an old-style archive from a shared archive.
39702 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39704 # Create a temporary old-style archive to link instead of a shared archive.
39705 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39707 # Commands used to build a shared archive.
39708 archive_cmds=$lt_archive_cmds
39709 archive_expsym_cmds=$lt_archive_expsym_cmds
39711 # Commands used to build a loadable module if different from building
39712 # a shared archive.
39713 module_cmds=$lt_module_cmds
39714 module_expsym_cmds=$lt_module_expsym_cmds
39716 # Whether we are building with GNU ld or not.
39717 with_gnu_ld=$lt_with_gnu_ld
39719 # Flag that allows shared libraries with undefined symbols to be built.
39720 allow_undefined_flag=$lt_allow_undefined_flag
39722 # Flag that enforces no undefined symbols.
39723 no_undefined_flag=$lt_no_undefined_flag
39725 # Flag to hardcode \$libdir into a binary during linking.
39726 # This must work even if \$libdir does not exist
39727 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39729 # If ld is used when linking, flag to hardcode \$libdir into a binary
39730 # during linking. This must work even if \$libdir does not exist.
39731 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
39733 # Whether we need a single "-rpath" flag with a separated argument.
39734 hardcode_libdir_separator=$lt_hardcode_libdir_separator
39736 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39737 # DIR into the resulting binary.
39738 hardcode_direct=$hardcode_direct
39740 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39741 # DIR into the resulting binary and the resulting library dependency is
39742 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39743 # library is relocated.
39744 hardcode_direct_absolute=$hardcode_direct_absolute
39746 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39747 # into the resulting binary.
39748 hardcode_minus_L=$hardcode_minus_L
39750 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39751 # into the resulting binary.
39752 hardcode_shlibpath_var=$hardcode_shlibpath_var
39754 # Set to "yes" if building a shared library automatically hardcodes DIR
39755 # into the library and all subsequent libraries and executables linked
39757 hardcode_automatic=$hardcode_automatic
39759 # Set to yes if linker adds runtime paths of dependent libraries
39760 # to runtime path list.
39761 inherit_rpath=$inherit_rpath
39763 # Whether libtool must link a program against all its dependency libraries.
39764 link_all_deplibs=$link_all_deplibs
39766 # Set to "yes" if exported symbols are required.
39767 always_export_symbols=$always_export_symbols
39769 # The commands to list exported symbols.
39770 export_symbols_cmds=$lt_export_symbols_cmds
39772 # Symbols that should not be listed in the preloaded symbols.
39773 exclude_expsyms=$lt_exclude_expsyms
39775 # Symbols that must always be exported.
39776 include_expsyms=$lt_include_expsyms
39778 # Commands necessary for linking programs (against libraries) with templates.
39779 prelink_cmds=$lt_prelink_cmds
39781 # Commands necessary for finishing linking programs.
39782 postlink_cmds=$lt_postlink_cmds
39784 # Specify filename containing input files.
39785 file_list_spec=$lt_file_list_spec
39787 # How to hardcode a shared library path into an executable.
39788 hardcode_action=$hardcode_action
39790 # The directories searched by this compiler when creating a shared library.
39791 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39793 # Dependencies to place before and after the objects being linked to
39794 # create a shared library.
39795 predep_objects=$lt_predep_objects
39796 postdep_objects=$lt_postdep_objects
39797 predeps=$lt_predeps
39798 postdeps=$lt_postdeps
39800 # The library search path used internally by the compiler when linking
39801 # a shared library.
39802 compiler_lib_search_path=$lt_compiler_lib_search_path
39804 # ### END LIBTOOL CONFIG
39810 cat <<\_LT_EOF >> "$cfgfile"
39811 # AIX sometimes has problems with the GCC collect2 program. For some
39812 # reason, if we set the COLLECT_NAMES environment variable, the problems
39813 # vanish in a puff of smoke.
39814 if test "X${COLLECT_NAMES+set}" != Xset; then
39816 export COLLECT_NAMES
39823 ltmain="$ac_aux_dir/ltmain.sh"
39826 # We use sed instead of cat because bash on DJGPP gets confused if
39827 # if finds mixed CR/LF and LF-only lines. Since sed operates in
39828 # text mode, it properly converts lines to CR/LF. This bash problem
39829 # is reportedly fixed, but why not run on old versions too?
39830 sed '$q' "$ltmain" >> "$cfgfile" \
39831 || (rm -f "$cfgfile"; exit 1)
39833 if test x"$xsi_shell" = xyes; then
39834 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
39838 \ */*) func_dirname_result="${1%/*}${2}" ;;\
39839 \ * ) func_dirname_result="${3}" ;;\
39841 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
39842 && mv -f "$cfgfile.tmp" "$cfgfile" \
39843 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39844 test 0 -eq $? || _lt_function_replace_fail=:
39847 sed -e '/^func_basename ()$/,/^} # func_basename /c\
39850 \ func_basename_result="${1##*/}"\
39851 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
39852 && mv -f "$cfgfile.tmp" "$cfgfile" \
39853 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39854 test 0 -eq $? || _lt_function_replace_fail=:
39857 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
39858 func_dirname_and_basename ()\
39861 \ */*) func_dirname_result="${1%/*}${2}" ;;\
39862 \ * ) func_dirname_result="${3}" ;;\
39864 \ func_basename_result="${1##*/}"\
39865 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
39866 && mv -f "$cfgfile.tmp" "$cfgfile" \
39867 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39868 test 0 -eq $? || _lt_function_replace_fail=:
39871 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
39874 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39875 \ # positional parameters, so assign one to ordinary parameter first.\
39876 \ func_stripname_result=${3}\
39877 \ func_stripname_result=${func_stripname_result#"${1}"}\
39878 \ func_stripname_result=${func_stripname_result%"${2}"}\
39879 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39880 && mv -f "$cfgfile.tmp" "$cfgfile" \
39881 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39882 test 0 -eq $? || _lt_function_replace_fail=:
39885 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39886 func_split_long_opt ()\
39888 \ func_split_long_opt_name=${1%%=*}\
39889 \ func_split_long_opt_arg=${1#*=}\
39890 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39891 && mv -f "$cfgfile.tmp" "$cfgfile" \
39892 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39893 test 0 -eq $? || _lt_function_replace_fail=:
39896 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39897 func_split_short_opt ()\
39899 \ func_split_short_opt_arg=${1#??}\
39900 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39901 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39902 && mv -f "$cfgfile.tmp" "$cfgfile" \
39903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39904 test 0 -eq $? || _lt_function_replace_fail=:
39907 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39911 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39912 \ *) func_lo2o_result=${1} ;;\
39914 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39915 && mv -f "$cfgfile.tmp" "$cfgfile" \
39916 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39917 test 0 -eq $? || _lt_function_replace_fail=:
39920 sed -e '/^func_xform ()$/,/^} # func_xform /c\
39923 func_xform_result=${1%.*}.lo\
39924 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39925 && mv -f "$cfgfile.tmp" "$cfgfile" \
39926 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39927 test 0 -eq $? || _lt_function_replace_fail=:
39930 sed -e '/^func_arith ()$/,/^} # func_arith /c\
39933 func_arith_result=$(( $* ))\
39934 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39935 && mv -f "$cfgfile.tmp" "$cfgfile" \
39936 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39937 test 0 -eq $? || _lt_function_replace_fail=:
39940 sed -e '/^func_len ()$/,/^} # func_len /c\
39943 func_len_result=${#1}\
39944 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39945 && mv -f "$cfgfile.tmp" "$cfgfile" \
39946 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39947 test 0 -eq $? || _lt_function_replace_fail=:
39951 if test x"$lt_shell_append" = xyes; then
39952 sed -e '/^func_append ()$/,/^} # func_append /c\
39955 eval "${1}+=\\${2}"\
39956 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39957 && mv -f "$cfgfile.tmp" "$cfgfile" \
39958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39959 test 0 -eq $? || _lt_function_replace_fail=:
39962 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39963 func_append_quoted ()\
39965 \ func_quote_for_eval "${2}"\
39966 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39967 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39968 && mv -f "$cfgfile.tmp" "$cfgfile" \
39969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39970 test 0 -eq $? || _lt_function_replace_fail=:
39973 # Save a `func_append' function call where possible by direct use of '+='
39974 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39975 && mv -f "$cfgfile.tmp" "$cfgfile" \
39976 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39977 test 0 -eq $? || _lt_function_replace_fail=:
39979 # Save a `func_append' function call even when '+=' is not available
39980 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39981 && mv -f "$cfgfile.tmp" "$cfgfile" \
39982 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39983 test 0 -eq $? || _lt_function_replace_fail=:
39986 if test x"$_lt_function_replace_fail" = x":"; then
39987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39988 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39992 mv -f "$cfgfile" "$ofile" ||
39993 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39997 cat <<_LT_EOF >> "$ofile"
39999 # ### BEGIN LIBTOOL TAG CONFIG: CXX
40001 # The linker used to build libraries.
40004 # How to create reloadable object files.
40005 reload_flag=$lt_reload_flag_CXX
40006 reload_cmds=$lt_reload_cmds_CXX
40008 # Commands used to build an old-style archive.
40009 old_archive_cmds=$lt_old_archive_cmds_CXX
40011 # A language specific compiler.
40012 CC=$lt_compiler_CXX
40014 # Is the compiler the GNU compiler?
40017 # Compiler flag to turn off builtin functions.
40018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
40020 # Additional compiler flags for building library objects.
40021 pic_flag=$lt_lt_prog_compiler_pic_CXX
40023 # How to pass a linker flag through the compiler.
40024 wl=$lt_lt_prog_compiler_wl_CXX
40026 # Compiler flag to prevent dynamic linking.
40027 link_static_flag=$lt_lt_prog_compiler_static_CXX
40029 # Does compiler simultaneously support -c and -o options?
40030 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
40032 # Whether or not to add -lc for building shared libraries.
40033 build_libtool_need_lc=$archive_cmds_need_lc_CXX
40035 # Whether or not to disallow shared libs when runtime libs are static.
40036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
40038 # Compiler flag to allow reflexive dlopens.
40039 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
40041 # Compiler flag to generate shared objects directly from archives.
40042 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
40044 # Whether the compiler copes with passing no objects directly.
40045 compiler_needs_object=$lt_compiler_needs_object_CXX
40047 # Create an old-style archive from a shared archive.
40048 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
40050 # Create a temporary old-style archive to link instead of a shared archive.
40051 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
40053 # Commands used to build a shared archive.
40054 archive_cmds=$lt_archive_cmds_CXX
40055 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
40057 # Commands used to build a loadable module if different from building
40058 # a shared archive.
40059 module_cmds=$lt_module_cmds_CXX
40060 module_expsym_cmds=$lt_module_expsym_cmds_CXX
40062 # Whether we are building with GNU ld or not.
40063 with_gnu_ld=$lt_with_gnu_ld_CXX
40065 # Flag that allows shared libraries with undefined symbols to be built.
40066 allow_undefined_flag=$lt_allow_undefined_flag_CXX
40068 # Flag that enforces no undefined symbols.
40069 no_undefined_flag=$lt_no_undefined_flag_CXX
40071 # Flag to hardcode \$libdir into a binary during linking.
40072 # This must work even if \$libdir does not exist
40073 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
40075 # If ld is used when linking, flag to hardcode \$libdir into a binary
40076 # during linking. This must work even if \$libdir does not exist.
40077 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
40079 # Whether we need a single "-rpath" flag with a separated argument.
40080 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
40082 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
40083 # DIR into the resulting binary.
40084 hardcode_direct=$hardcode_direct_CXX
40086 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
40087 # DIR into the resulting binary and the resulting library dependency is
40088 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
40089 # library is relocated.
40090 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
40092 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
40093 # into the resulting binary.
40094 hardcode_minus_L=$hardcode_minus_L_CXX
40096 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
40097 # into the resulting binary.
40098 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
40100 # Set to "yes" if building a shared library automatically hardcodes DIR
40101 # into the library and all subsequent libraries and executables linked
40103 hardcode_automatic=$hardcode_automatic_CXX
40105 # Set to yes if linker adds runtime paths of dependent libraries
40106 # to runtime path list.
40107 inherit_rpath=$inherit_rpath_CXX
40109 # Whether libtool must link a program against all its dependency libraries.
40110 link_all_deplibs=$link_all_deplibs_CXX
40112 # Set to "yes" if exported symbols are required.
40113 always_export_symbols=$always_export_symbols_CXX
40115 # The commands to list exported symbols.
40116 export_symbols_cmds=$lt_export_symbols_cmds_CXX
40118 # Symbols that should not be listed in the preloaded symbols.
40119 exclude_expsyms=$lt_exclude_expsyms_CXX
40121 # Symbols that must always be exported.
40122 include_expsyms=$lt_include_expsyms_CXX
40124 # Commands necessary for linking programs (against libraries) with templates.
40125 prelink_cmds=$lt_prelink_cmds_CXX
40127 # Commands necessary for finishing linking programs.
40128 postlink_cmds=$lt_postlink_cmds_CXX
40130 # Specify filename containing input files.
40131 file_list_spec=$lt_file_list_spec_CXX
40133 # How to hardcode a shared library path into an executable.
40134 hardcode_action=$hardcode_action_CXX
40136 # The directories searched by this compiler when creating a shared library.
40137 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
40139 # Dependencies to place before and after the objects being linked to
40140 # create a shared library.
40141 predep_objects=$lt_predep_objects_CXX
40142 postdep_objects=$lt_postdep_objects_CXX
40143 predeps=$lt_predeps_CXX
40144 postdeps=$lt_postdeps_CXX
40146 # The library search path used internally by the compiler when linking
40147 # a shared library.
40148 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
40150 # ### END LIBTOOL TAG CONFIG: CXX
40154 "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 ;;
40155 "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
40156 "scripts/build/genAuthors":F) chmod +x scripts/build/genAuthors ;;
40157 "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
40158 "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
40159 "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
40160 "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
40161 "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
40162 "scripts/ntpver":F) chmod +x scripts/ntpver ;;
40163 "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
40164 "scripts/summary":F) chmod +x scripts/summary ;;
40165 "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;;
40173 ac_clean_files=$ac_clean_files_save
40175 test $ac_write_fail = 0 ||
40176 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
40179 # configure is writing to config.log, and then calls config.status.
40180 # config.status does its own redirection, appending to config.log.
40181 # Unfortunately, on DOS this fails, as config.log is still kept open
40182 # by configure, so config.status won't be able to write to it; its
40183 # output is simply discarded. So we exec the FD to /dev/null,
40184 # effectively closing config.log, so it can be properly (re)opened and
40185 # appended to by config.status. When coming back to configure, we
40186 # need to make the FD available again.
40187 if test "$no_create" != yes; then
40189 ac_config_status_args=
40190 test "$silent" = yes &&
40191 ac_config_status_args="$ac_config_status_args --quiet"
40193 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40195 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40196 # would make configure fail if this is the last instruction.
40197 $ac_cs_success || as_fn_exit 1
40201 # CONFIG_SUBDIRS section.
40203 if test "$no_recursion" != yes; then
40205 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
40206 # so they do not pile up.
40207 ac_sub_configure_args=
40209 eval "set x $ac_configure_args"
40213 if test -n "$ac_prev"; then
40218 -cache-file | --cache-file | --cache-fil | --cache-fi \
40219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
40220 ac_prev=cache_file ;;
40221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
40222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
40225 --config-cache | -C)
40227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
40229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
40231 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
40233 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
40235 --disable-option-checking)
40239 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
40241 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
40245 # Always prepend --prefix to ensure using the same prefix
40246 # in subdir configurations.
40247 ac_arg="--prefix=$prefix"
40249 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
40251 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
40254 if test "$silent" = yes; then
40255 ac_sub_configure_args="--silent $ac_sub_configure_args"
40258 # Always prepend --disable-option-checking to silence warnings, since
40259 # different subdirs can have different --enable and --with options.
40260 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
40263 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
40265 # Do not complain, so a configure script can configure whichever
40266 # parts of a large source tree are present.
40267 test -d "$srcdir/$ac_dir" || continue
40269 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
40270 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
40271 $as_echo "$ac_msg" >&6
40272 as_dir="$ac_dir"; as_fn_mkdir_p
40276 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40278 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
40279 # A ".." for each directory in $ac_dir_suffix.
40280 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
40281 case $ac_top_builddir_sub in
40282 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40283 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40286 ac_abs_top_builddir=$ac_pwd
40287 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40288 # for backward compatibility:
40289 ac_top_builddir=$ac_top_build_prefix
40292 .) # We are building in place.
40294 ac_top_srcdir=$ac_top_builddir_sub
40295 ac_abs_top_srcdir=$ac_pwd ;;
40296 [\\/]* | ?:[\\/]* ) # Absolute name.
40297 ac_srcdir=$srcdir$ac_dir_suffix;
40298 ac_top_srcdir=$srcdir
40299 ac_abs_top_srcdir=$srcdir ;;
40300 *) # Relative name.
40301 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40302 ac_top_srcdir=$ac_top_build_prefix$srcdir
40303 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40305 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40310 # Check for guested configure; otherwise get Cygnus style configure.
40311 if test -f "$ac_srcdir/configure.gnu"; then
40312 ac_sub_configure=$ac_srcdir/configure.gnu
40313 elif test -f "$ac_srcdir/configure"; then
40314 ac_sub_configure=$ac_srcdir/configure
40315 elif test -f "$ac_srcdir/configure.in"; then
40316 # This should be Cygnus configure.
40317 ac_sub_configure=$ac_aux_dir/configure
40319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
40320 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
40324 # The recursion is here.
40325 if test -n "$ac_sub_configure"; then
40326 # Make the cache file name correct relative to the subdirectory.
40327 case $cache_file in
40328 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
40329 *) # Relative name.
40330 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
40333 { $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
40334 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
40335 # The eval makes quoting arguments work.
40336 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
40337 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
40338 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
40344 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
40345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
40346 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}