2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for ntp 4.2.8p2.
5 # Report bugs to <http://bugs.ntp.org./>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://bugs.ntp.org./ about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
572 PACKAGE_TARNAME='ntp'
573 PACKAGE_VERSION='4.2.8p2'
574 PACKAGE_STRING='ntp 4.2.8p2'
575 PACKAGE_BUGREPORT='http://bugs.ntp.org./'
576 PACKAGE_URL='http://www.ntp.org./'
578 # Factoring default headers for most tests.
579 ac_includes_default="\
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
591 # ifdef HAVE_STDLIB_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
615 enable_option_checking=no
616 ac_subst_vars='am__EXEEXT_FALSE
622 GTEST_AVAILABLE_FALSE
629 SAVECONFIG_ENABLED_FALSE
630 SAVECONFIG_ENABLED_TRUE
666 LIBISC_PTHREADS_NOTHREADS
674 NTP_CROSSCOMPILE_FALSE
675 NTP_CROSSCOMPILE_TRUE
686 INSTALL_LIBOPTS_FALSE
689 GL_GENERATE_STDNORETURN_H_FALSE
690 GL_GENERATE_STDNORETURN_H_TRUE
713 INSTALL_UPDATE_LEAP_FALSE
714 INSTALL_UPDATE_LEAP_TRUE
755 INSTALL_NTPSWEEP_FALSE
756 INSTALL_NTPSWEEP_TRUE
798 WANT_CALC_TICKADJ_MS_FALSE
799 WANT_CALC_TICKADJ_MS_TRUE
851 INSTALL_STRIP_PROGRAM
893 program_transform_name
904 ac_subst_files='calc_tickadj_opts
911 enable_option_checking
913 enable_dependency_tracking
924 enable_libopts_install
926 enable_local_libevent
929 enable_thread_support
943 enable_ignore_dns_errors
1002 enable_openssl_random
1005 enable_accurate_adjtime
1014 enable_hourly_todr_sync
1015 enable_kernel_fll_bug
1017 enable_irig_sawtooth
1026 ac_precious_vars='build_alias
1041 ac_subdirs_all='sntp'
1043 # Initialize some variables set by options.
1045 ac_init_version=false
1046 ac_unrecognized_opts=
1047 ac_unrecognized_sep=
1048 # The variables have the same names as the options, with
1049 # dashes changed to underlines.
1050 cache_file=/dev/null
1057 program_transform_name=s,x,x,
1065 # Installation directory options.
1066 # These are left unexpanded so users can "make install exec_prefix=/foo"
1067 # and all the variables that are supposed to be based on exec_prefix
1068 # by default will actually change.
1069 # Use braces instead of parens because sh, perl, etc. also accept them.
1070 # (The list follows the same order as the GNU Coding Standards.)
1071 bindir='${exec_prefix}/bin'
1072 sbindir='${exec_prefix}/sbin'
1073 libexecdir='${exec_prefix}/libexec'
1074 datarootdir='${prefix}/share'
1075 datadir='${datarootdir}'
1076 sysconfdir='${prefix}/etc'
1077 sharedstatedir='${prefix}/com'
1078 localstatedir='${prefix}/var'
1079 includedir='${prefix}/include'
1080 oldincludedir='/usr/include'
1081 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1082 infodir='${datarootdir}/info'
1087 libdir='${exec_prefix}/lib'
1088 localedir='${datarootdir}/locale'
1089 mandir='${datarootdir}/man'
1095 # If the previous option needs an argument, assign it.
1096 if test -n "$ac_prev"; then
1097 eval $ac_prev=\$ac_option
1103 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1108 # Accept the important Cygnus configure options, so we can diagnose typos.
1110 case $ac_dashdash$ac_option in
1114 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1116 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1117 bindir=$ac_optarg ;;
1119 -build | --build | --buil | --bui | --bu)
1120 ac_prev=build_alias ;;
1121 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1122 build_alias=$ac_optarg ;;
1124 -cache-file | --cache-file | --cache-fil | --cache-fi \
1125 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1126 ac_prev=cache_file ;;
1127 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1128 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1129 cache_file=$ac_optarg ;;
1131 --config-cache | -C)
1132 cache_file=config.cache ;;
1134 -datadir | --datadir | --datadi | --datad)
1136 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1137 datadir=$ac_optarg ;;
1139 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1140 | --dataroo | --dataro | --datar)
1141 ac_prev=datarootdir ;;
1142 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1143 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1144 datarootdir=$ac_optarg ;;
1146 -disable-* | --disable-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid feature name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1155 "enable_$ac_useropt"
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1160 eval enable_$ac_useropt=no ;;
1162 -docdir | --docdir | --docdi | --doc | --do)
1164 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1165 docdir=$ac_optarg ;;
1167 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1169 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1170 dvidir=$ac_optarg ;;
1172 -enable-* | --enable-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid feature name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1181 "enable_$ac_useropt"
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1186 eval enable_$ac_useropt=\$ac_optarg ;;
1188 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1189 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1190 | --exec | --exe | --ex)
1191 ac_prev=exec_prefix ;;
1192 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1193 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1194 | --exec=* | --exe=* | --ex=*)
1195 exec_prefix=$ac_optarg ;;
1197 -gas | --gas | --ga | --g)
1198 # Obsolete; use --with-gas.
1201 -help | --help | --hel | --he | -h)
1202 ac_init_help=long ;;
1203 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1204 ac_init_help=recursive ;;
1205 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1206 ac_init_help=short ;;
1208 -host | --host | --hos | --ho)
1209 ac_prev=host_alias ;;
1210 -host=* | --host=* | --hos=* | --ho=*)
1211 host_alias=$ac_optarg ;;
1213 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1215 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1217 htmldir=$ac_optarg ;;
1219 -includedir | --includedir | --includedi | --included | --include \
1220 | --includ | --inclu | --incl | --inc)
1221 ac_prev=includedir ;;
1222 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1223 | --includ=* | --inclu=* | --incl=* | --inc=*)
1224 includedir=$ac_optarg ;;
1226 -infodir | --infodir | --infodi | --infod | --info | --inf)
1228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1229 infodir=$ac_optarg ;;
1231 -libdir | --libdir | --libdi | --libd)
1233 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1234 libdir=$ac_optarg ;;
1236 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1237 | --libexe | --libex | --libe)
1238 ac_prev=libexecdir ;;
1239 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1240 | --libexe=* | --libex=* | --libe=*)
1241 libexecdir=$ac_optarg ;;
1243 -localedir | --localedir | --localedi | --localed | --locale)
1244 ac_prev=localedir ;;
1245 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1246 localedir=$ac_optarg ;;
1248 -localstatedir | --localstatedir | --localstatedi | --localstated \
1249 | --localstate | --localstat | --localsta | --localst | --locals)
1250 ac_prev=localstatedir ;;
1251 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1252 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1253 localstatedir=$ac_optarg ;;
1255 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1257 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1258 mandir=$ac_optarg ;;
1260 -nfp | --nfp | --nf)
1261 # Obsolete; use --without-fp.
1264 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1265 | --no-cr | --no-c | -n)
1268 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1269 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1272 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1273 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1274 | --oldin | --oldi | --old | --ol | --o)
1275 ac_prev=oldincludedir ;;
1276 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1277 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1278 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1279 oldincludedir=$ac_optarg ;;
1281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1284 prefix=$ac_optarg ;;
1286 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1287 | --program-pre | --program-pr | --program-p)
1288 ac_prev=program_prefix ;;
1289 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1290 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1291 program_prefix=$ac_optarg ;;
1293 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1294 | --program-suf | --program-su | --program-s)
1295 ac_prev=program_suffix ;;
1296 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1297 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1298 program_suffix=$ac_optarg ;;
1300 -program-transform-name | --program-transform-name \
1301 | --program-transform-nam | --program-transform-na \
1302 | --program-transform-n | --program-transform- \
1303 | --program-transform | --program-transfor \
1304 | --program-transfo | --program-transf \
1305 | --program-trans | --program-tran \
1306 | --progr-tra | --program-tr | --program-t)
1307 ac_prev=program_transform_name ;;
1308 -program-transform-name=* | --program-transform-name=* \
1309 | --program-transform-nam=* | --program-transform-na=* \
1310 | --program-transform-n=* | --program-transform-=* \
1311 | --program-transform=* | --program-transfor=* \
1312 | --program-transfo=* | --program-transf=* \
1313 | --program-trans=* | --program-tran=* \
1314 | --progr-tra=* | --program-tr=* | --program-t=*)
1315 program_transform_name=$ac_optarg ;;
1317 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1319 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1320 pdfdir=$ac_optarg ;;
1322 -psdir | --psdir | --psdi | --psd | --ps)
1324 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1328 | -silent | --silent | --silen | --sile | --sil)
1331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1335 sbindir=$ac_optarg ;;
1337 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1339 | --sharedst | --shareds | --shared | --share | --shar \
1341 ac_prev=sharedstatedir ;;
1342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1346 sharedstatedir=$ac_optarg ;;
1348 -site | --site | --sit)
1350 -site=* | --site=* | --sit=*)
1353 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1355 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1356 srcdir=$ac_optarg ;;
1358 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1359 | --syscon | --sysco | --sysc | --sys | --sy)
1360 ac_prev=sysconfdir ;;
1361 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1362 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1363 sysconfdir=$ac_optarg ;;
1365 -target | --target | --targe | --targ | --tar | --ta | --t)
1366 ac_prev=target_alias ;;
1367 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1368 target_alias=$ac_optarg ;;
1370 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1373 -version | --version | --versio | --versi | --vers | -V)
1374 ac_init_version=: ;;
1377 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1378 # Reject names that are not valid shell variable names.
1379 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1380 as_fn_error $? "invalid package name: $ac_useropt"
1381 ac_useropt_orig=$ac_useropt
1382 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1383 case $ac_user_opts in
1387 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1388 ac_unrecognized_sep=', ';;
1390 eval with_$ac_useropt=\$ac_optarg ;;
1392 -without-* | --without-*)
1393 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1394 # Reject names that are not valid shell variable names.
1395 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1396 as_fn_error $? "invalid package name: $ac_useropt"
1397 ac_useropt_orig=$ac_useropt
1398 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1399 case $ac_user_opts in
1403 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1404 ac_unrecognized_sep=', ';;
1406 eval with_$ac_useropt=no ;;
1409 # Obsolete; use --with-x.
1412 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1413 | --x-incl | --x-inc | --x-in | --x-i)
1414 ac_prev=x_includes ;;
1415 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1416 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1417 x_includes=$ac_optarg ;;
1419 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1420 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1421 ac_prev=x_libraries ;;
1422 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1423 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1424 x_libraries=$ac_optarg ;;
1426 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1427 Try \`$0 --help' for more information"
1431 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1432 # Reject names that are not valid shell variable names.
1433 case $ac_envvar in #(
1434 '' | [0-9]* | *[!_$as_cr_alnum]* )
1435 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1437 eval $ac_envvar=\$ac_optarg
1438 export $ac_envvar ;;
1441 # FIXME: should be removed in autoconf 3.0.
1442 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1443 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1444 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1445 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1451 if test -n "$ac_prev"; then
1452 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1453 as_fn_error $? "missing argument to $ac_option"
1456 if test -n "$ac_unrecognized_opts"; then
1457 case $enable_option_checking in
1459 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1460 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1464 # Check all directory arguments for consistency.
1465 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1466 datadir sysconfdir sharedstatedir localstatedir includedir \
1467 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1468 libdir localedir mandir
1470 eval ac_val=\$$ac_var
1471 # Remove trailing slashes.
1474 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1475 eval $ac_var=\$ac_val;;
1477 # Be sure to have absolute directory names.
1479 [\\/$]* | ?:[\\/]* ) continue;;
1480 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1482 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1485 # There might be people who depend on the old broken behavior: `$host'
1486 # used to hold the argument of --host etc.
1487 # FIXME: To remove some day.
1490 target=$target_alias
1492 # FIXME: To remove some day.
1493 if test "x$host_alias" != x; then
1494 if test "x$build_alias" = x; then
1495 cross_compiling=maybe
1496 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1497 If a cross compiler is detected then cross compile mode will be used" >&2
1498 elif test "x$build_alias" != "x$host_alias"; then
1504 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1506 test "$silent" = yes && exec 6>/dev/null
1509 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1510 ac_ls_di=`ls -di .` &&
1511 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1512 as_fn_error $? "working directory cannot be determined"
1513 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1514 as_fn_error $? "pwd does not report name of working directory"
1517 # Find the source files, if location was not specified.
1518 if test -z "$srcdir"; then
1519 ac_srcdir_defaulted=yes
1520 # Try the directory containing this script, then the parent directory.
1521 ac_confdir=`$as_dirname -- "$as_myself" ||
1522 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1523 X"$as_myself" : 'X\(//\)[^/]' \| \
1524 X"$as_myself" : 'X\(//\)$' \| \
1525 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1526 $as_echo X"$as_myself" |
1527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1545 if test ! -r "$srcdir/$ac_unique_file"; then
1549 ac_srcdir_defaulted=no
1551 if test ! -r "$srcdir/$ac_unique_file"; then
1552 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1553 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1555 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1557 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1559 # When building in place, set srcdir=.
1560 if test "$ac_abs_confdir" = "$ac_pwd"; then
1563 # Remove unnecessary trailing slashes from srcdir.
1564 # Double slashes in file names in object file debugging info
1565 # mess up M-x gdb in Emacs.
1567 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1569 for ac_var in $ac_precious_vars; do
1570 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1571 eval ac_env_${ac_var}_value=\$${ac_var}
1572 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1573 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1577 # Report the --help message.
1579 if test "$ac_init_help" = "long"; then
1580 # Omit some internal or obsolete options to make the list less imposing.
1581 # This message is too long to be a string in the A/UX 3.1 sh.
1583 \`configure' configures ntp 4.2.8p2 to adapt to many kinds of systems.
1585 Usage: $0 [OPTION]... [VAR=VALUE]...
1587 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1588 VAR=VALUE. See below for descriptions of some of the useful variables.
1590 Defaults for the options are specified in brackets.
1593 -h, --help display this help and exit
1594 --help=short display options specific to this package
1595 --help=recursive display the short help of all the included packages
1596 -V, --version display version information and exit
1597 -q, --quiet, --silent do not print \`checking ...' messages
1598 --cache-file=FILE cache test results in FILE [disabled]
1599 -C, --config-cache alias for \`--cache-file=config.cache'
1600 -n, --no-create do not create output files
1601 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1603 Installation directories:
1604 --prefix=PREFIX install architecture-independent files in PREFIX
1605 [$ac_default_prefix]
1606 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1609 By default, \`make install' will install all the files in
1610 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1611 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1612 for instance \`--prefix=\$HOME'.
1614 For better control, use the options below.
1616 Fine tuning of the installation directories:
1617 --bindir=DIR user executables [EPREFIX/bin]
1618 --sbindir=DIR system admin executables [EPREFIX/sbin]
1619 --libexecdir=DIR program executables [EPREFIX/libexec]
1620 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1621 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1622 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1623 --libdir=DIR object code libraries [EPREFIX/lib]
1624 --includedir=DIR C header files [PREFIX/include]
1625 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1626 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1627 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1628 --infodir=DIR info documentation [DATAROOTDIR/info]
1629 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1630 --mandir=DIR man documentation [DATAROOTDIR/man]
1631 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp]
1632 --htmldir=DIR html documentation [DOCDIR]
1633 --dvidir=DIR dvi documentation [DOCDIR]
1634 --pdfdir=DIR pdf documentation [DOCDIR]
1635 --psdir=DIR ps documentation [DOCDIR]
1641 --program-prefix=PREFIX prepend PREFIX to installed program names
1642 --program-suffix=SUFFIX append SUFFIX to installed program names
1643 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1646 --build=BUILD configure for building on BUILD [guessed]
1647 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1651 if test -n "$ac_init_help"; then
1652 case $ac_init_help in
1653 short | recursive ) echo "Configuration of ntp 4.2.8p2:";;
1657 Optional Features and Packages:
1658 --disable-option-checking ignore unrecognized --enable/--with options
1659 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1660 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1661 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1662 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1663 --enable-silent-rules less verbose build output (undo: `make V=1')
1664 --disable-silent-rules verbose build output (undo: `make V=0')
1665 --disable-dependency-tracking speeds up one-time build
1666 --enable-dependency-tracking do not reject slow dependency extractors
1667 --with-locfile=XXX os-specific or "legacy"
1668 --enable-shared[=PKGS] build shared libraries [default=no]
1669 --enable-static[=PKGS] build static libraries [default=yes]
1670 --with-pic try to use only PIC/non-PIC objects [default=use
1672 --enable-fast-install[=PKGS]
1673 optimize for fast installation [default=yes]
1674 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1675 --with-sysroot=DIR Search for dependent libraries within DIR
1676 (or the compiler's sysroot if not specified).
1677 --disable-libtool-lock avoid locking (might break parallel builds)
1678 --disable-nls disable nls support in libopts
1679 --enable-local-libopts Use the supplied libopts tearoff code
1680 --enable-libopts-install
1681 Install libopts with client installation
1682 --with-autoopts-config specify the config-info script
1683 --enable-local-libevent Force using the supplied libevent tearoff code
1684 --with-lineeditlibs edit,editline (readline may be specified if desired)
1685 defaults: + yes, - no, s system-specific
1686 --enable-debugging + include ntpd debugging code
1687 --enable-thread-support s use threads (+ if available)
1688 --with-threads with threads [auto]
1689 --with-yielding-select with yielding select [auto]
1690 --enable-c99-snprintf s force replacement
1691 --enable-clockctl s Use /dev/clockctl for non-root clock control
1692 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1693 --enable-solarisprivs + Use Solaris privileges for non-root clock control
1694 --with-arlib - deprecated, arlib not distributed
1695 --with-net-snmp-config + =net-snmp-config
1696 --enable-libseccomp EXPERIMENTAL: enable support for libseccomp
1697 sandboxing (default is no)
1698 --with-stack-limit ? =50 (200 for openbsd) 4k pages
1699 --with-memlock ? =32 (megabytes)
1700 --enable-debug-timing - include processing time debugging code (costs
1702 --enable-dst-minutes =60 minutes per DST adjustment
1703 --enable-ignore-dns-errors
1704 - retry DNS queries on any error
1705 --enable-BANCOMM - Datum/Bancomm bc635/VME interface
1706 --enable-GPSVME - TrueTime GPS receiver/VME interface
1707 --enable-all-clocks + include all suitable non-PARSE clocks:
1708 --enable-ACTS s ACTS modem service
1709 --enable-ARBITER + Arbiter 1088A/B GPS receiver
1710 --enable-ARCRON-MSF + Arcron MSF receiver
1711 --enable-AS2201 + Austron 2200A/2201A GPS receiver
1712 --enable-ATOM s ATOM PPS interface
1713 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver
1714 --enable-CHU + CHU modem/decoder
1715 --enable-AUDIO-CHU s CHU audio/decoder
1716 --enable-DATUM s Datum Programmable Time System
1717 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock
1718 --enable-FG + Forum Graphic GPS
1719 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver
1720 --enable-HOPFSERIAL + hopf serial clock device
1721 --enable-HOPFPCI + hopf 6039 PCI board
1722 --enable-HPGPS + HP 58503A GPS receiver
1723 --enable-IRIG s IRIG audio decoder
1724 --enable-JJY + JJY receiver
1725 --enable-JUPITER s Rockwell Jupiter GPS receiver
1726 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver
1727 --enable-LOCAL-CLOCK + local clock reference
1728 --enable-MX4200 s Magnavox MX4200 GPS receiver
1729 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver
1730 --enable-NMEA + NMEA GPS receiver
1731 --enable-GPSD + GPSD JSON receiver
1732 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver
1733 --enable-PALISADE s Palisade clock
1734 --enable-PCF + Conrad parallel port radio clock
1735 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver
1736 --enable-RIPENCC - RIPENCC specific Trimble driver
1737 --enable-SHM s SHM clock attached thru shared memory
1738 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver
1739 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1740 --enable-TRUETIME s Kinemetrics/TrueTime receivers
1741 --enable-TT560 - TrueTime 560 IRIG-B decoder
1742 --enable-ULINK + Ultralink WWVB receiver
1743 --enable-TSYNCPCI s Spectracom TSYNC timing board
1744 --enable-WWV s WWV Audio receiver
1745 --enable-ZYFER + Zyfer GPStarplus receiver
1746 --enable-parse-clocks - include all suitable PARSE clocks:
1747 --enable-COMPUTIME s Diem Computime Radio Clock
1748 --enable-DCF7000 s ELV/DCF7000 clock
1749 --enable-HOPF6021 s HOPF 6021 clock
1750 --enable-MEINBERG s Meinberg clocks
1751 --enable-RAWDCF s DCF77 raw time code
1752 --enable-RCC8000 s RCC 8000 clock
1753 --enable-SCHMID s Schmid DCF77 clock
1754 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol
1755 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol
1756 --enable-WHARTON s WHARTON 400A Series clock
1757 --enable-VARITEXT s VARITEXT clock
1758 --enable-SEL240X s SEL240X clock
1759 --with-crypto + =openssl,libcrypto
1761 --with-openssl-libdir + =/something/reasonable
1763 --with-openssl-incdir + =/something/reasonable
1765 --without-rpath s Disable auto-added -R linker paths
1767 --enable-openssl-random Use OpenSSL's crypto random number functions, if
1768 available (default is yes)
1769 --enable-autokey + support NTP Autokey protocol
1770 --enable-kmem s read /dev/kmem for tick and/or tickadj
1771 --enable-accurate-adjtime
1772 s the adjtime() call is accurate
1773 --enable-tick=VALUE s force a value for 'tick'
1774 --enable-tickadj=VALUE s force a value for 'tickadj'
1775 --enable-simulator - build/install the NTPD simulator?
1776 --without-sntp - disable building sntp and sntp/tests
1777 --with-ntpsnmpd s Build ntpsnmpd MIB agent?
1778 --enable-slew-always s always slew the time
1779 --enable-step-slew s step and slew the time
1780 --enable-ntpdate-step s if ntpdate should step the time
1781 --enable-hourly-todr-sync
1782 s if we should sync TODR hourly
1783 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1784 --enable-bug1243-fix + use unmodified autokey session keys
1785 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter
1786 --enable-nist - if we should enable the NIST lockclock scheme
1787 --enable-ntp-signd - Provide support for Samba's signing daemon,
1789 --enable-ipv6 s use IPv6?
1791 --with-kame - =/usr/local/v6
1792 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]].
1793 --enable-saveconfig + saveconfig mechanism
1794 --with-gtest Use the gtest framework (Default: if it's available)
1796 Some influential environment variables:
1797 CC C compiler command
1798 CFLAGS C compiler flags
1799 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1800 nonstandard directory <lib dir>
1801 LIBS libraries to pass to the linker, e.g. -l<library>
1802 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1803 you have headers in a nonstandard directory <include dir>
1805 CXX C++ compiler command
1806 CXXFLAGS C++ compiler flags
1807 YACC The `Yet Another Compiler Compiler' implementation to use.
1808 Defaults to the first program found out of: `bison -y', `byacc',
1810 YFLAGS The list of arguments that will be passed by default to $YACC.
1811 This script will default YFLAGS to the empty string to avoid a
1812 default value of `-d' given by some make applications.
1813 CXXCPP C++ preprocessor
1815 Use these variables to override the choices made by `configure' or to help
1816 it to find libraries and programs with nonstandard names/locations.
1818 Report bugs to <http://bugs.ntp.org./>.
1819 ntp home page: <http://www.ntp.org./>.
1824 if test "$ac_init_help" = "recursive"; then
1825 # If there are subdirs, report their specific --help.
1826 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1827 test -d "$ac_dir" ||
1828 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1833 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1835 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1836 # A ".." for each directory in $ac_dir_suffix.
1837 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1838 case $ac_top_builddir_sub in
1839 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1840 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1843 ac_abs_top_builddir=$ac_pwd
1844 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1845 # for backward compatibility:
1846 ac_top_builddir=$ac_top_build_prefix
1849 .) # We are building in place.
1851 ac_top_srcdir=$ac_top_builddir_sub
1852 ac_abs_top_srcdir=$ac_pwd ;;
1853 [\\/]* | ?:[\\/]* ) # Absolute name.
1854 ac_srcdir=$srcdir$ac_dir_suffix;
1855 ac_top_srcdir=$srcdir
1856 ac_abs_top_srcdir=$srcdir ;;
1858 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1859 ac_top_srcdir=$ac_top_build_prefix$srcdir
1860 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1862 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1864 cd "$ac_dir" || { ac_status=$?; continue; }
1865 # Check for guested configure.
1866 if test -f "$ac_srcdir/configure.gnu"; then
1868 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1869 elif test -f "$ac_srcdir/configure"; then
1871 $SHELL "$ac_srcdir/configure" --help=recursive
1873 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1875 cd "$ac_pwd" || { ac_status=$?; break; }
1879 test -n "$ac_init_help" && exit $ac_status
1880 if $ac_init_version; then
1882 ntp configure 4.2.8p2
1883 generated by GNU Autoconf 2.68
1885 Copyright (C) 2010 Free Software Foundation, Inc.
1886 This configure script is free software; the Free Software Foundation
1887 gives unlimited permission to copy, distribute and modify it.
1892 ## ------------------------ ##
1893 ## Autoconf initialization. ##
1894 ## ------------------------ ##
1896 # ac_fn_c_try_compile LINENO
1897 # --------------------------
1898 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1899 ac_fn_c_try_compile ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 rm -f conftest.$ac_objext
1903 if { { ac_try="$ac_compile"
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_compile") 2>conftest.err
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && {
1919 test -z "$ac_c_werror_flag" ||
1920 test ! -s conftest.err
1921 } && test -s conftest.$ac_objext; then :
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 as_fn_set_status $ac_retval
1932 } # ac_fn_c_try_compile
1934 # ac_fn_c_try_cpp LINENO
1935 # ----------------------
1936 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 if { { ac_try="$ac_cpp conftest.$ac_ext"
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1949 if test -s conftest.err; then
1950 grep -v '^ *+' conftest.err >conftest.er1
1951 cat conftest.er1 >&5
1952 mv -f conftest.er1 conftest.err
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; } > conftest.i && {
1956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1957 test ! -s conftest.err
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 as_fn_set_status $ac_retval
1971 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1972 # -------------------------------------------------------
1973 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1974 # the include files in INCLUDES and setting the cache variable VAR
1976 ac_fn_c_check_header_mongrel ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if eval \${$3+:} false; then :
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1989 # Is the header compilable?
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1991 $as_echo_n "checking $2 usability... " >&6; }
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_header_compiler=yes
2000 ac_header_compiler=no
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2004 $as_echo "$ac_header_compiler" >&6; }
2006 # Is the header present?
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2008 $as_echo_n "checking $2 presence... " >&6; }
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2013 if ac_fn_c_try_cpp "$LINENO"; then :
2014 ac_header_preproc=yes
2016 ac_header_preproc=no
2018 rm -f conftest.err conftest.i conftest.$ac_ext
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2020 $as_echo "$ac_header_preproc" >&6; }
2022 # So? What about this header?
2023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2026 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2028 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2032 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2034 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2036 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2038 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2040 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2041 ( $as_echo "## ------------------------------------ ##
2042 ## Report this to http://bugs.ntp.org./ ##
2043 ## ------------------------------------ ##"
2044 ) | sed "s/^/$as_me: WARNING: /" >&2
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if eval \${$3+:} false; then :
2050 $as_echo_n "(cached) " >&6
2052 eval "$3=\$ac_header_compiler"
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 } # ac_fn_c_check_header_mongrel
2062 # ac_fn_c_try_run LINENO
2063 # ----------------------
2064 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2065 # that executables *can* be run.
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 if { { ac_try="$ac_link"
2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076 (eval "$ac_link") 2>&5
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2080 { { case "(($ac_try" in
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_try") 2>&5
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; }; }; then :
2092 $as_echo "$as_me: program exited with status $ac_status" >&5
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2096 ac_retval=$ac_status
2098 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status $ac_retval
2104 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2105 # -------------------------------------------------------
2106 # Tests whether HEADER exists and can be compiled using the include files in
2107 # INCLUDES, setting the cache variable VAR accordingly.
2108 ac_fn_c_check_header_compile ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112 $as_echo_n "checking for $2... " >&6; }
2113 if eval \${$3+:} false; then :
2114 $as_echo_n "(cached) " >&6
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2121 if ac_fn_c_try_compile "$LINENO"; then :
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_header_compile
2135 # ac_fn_c_try_link LINENO
2136 # -----------------------
2137 # Try to link conftest.$ac_ext, and return whether this succeeded.
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 rm -f conftest.$ac_objext conftest$ac_exeext
2142 if { { ac_try="$ac_link"
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148 $as_echo "$ac_try_echo"; } >&5
2149 (eval "$ac_link") 2>conftest.err
2151 if test -s conftest.err; then
2152 grep -v '^ *+' conftest.err >conftest.er1
2153 cat conftest.er1 >&5
2154 mv -f conftest.er1 conftest.err
2156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2157 test $ac_status = 0; } && {
2158 test -z "$ac_c_werror_flag" ||
2159 test ! -s conftest.err
2160 } && test -s conftest$ac_exeext && {
2161 test "$cross_compiling" = yes ||
2162 $as_test_x conftest$ac_exeext
2166 $as_echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2171 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2172 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2173 # interfere with the next link command; also delete a directory that is
2174 # left behind by Apple's compiler. We do this before executing the actions.
2175 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177 as_fn_set_status $ac_retval
2179 } # ac_fn_c_try_link
2181 # ac_fn_cxx_try_compile LINENO
2182 # ----------------------------
2183 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2184 ac_fn_cxx_try_compile ()
2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187 rm -f conftest.$ac_objext
2188 if { { ac_try="$ac_compile"
2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2194 $as_echo "$ac_try_echo"; } >&5
2195 (eval "$ac_compile") 2>conftest.err
2197 if test -s conftest.err; then
2198 grep -v '^ *+' conftest.err >conftest.er1
2199 cat conftest.er1 >&5
2200 mv -f conftest.er1 conftest.err
2202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2203 test $ac_status = 0; } && {
2204 test -z "$ac_cxx_werror_flag" ||
2205 test ! -s conftest.err
2206 } && test -s conftest.$ac_objext; then :
2209 $as_echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2214 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215 as_fn_set_status $ac_retval
2217 } # ac_fn_cxx_try_compile
2219 # ac_fn_c_check_func LINENO FUNC VAR
2220 # ----------------------------------
2221 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2222 ac_fn_c_check_func ()
2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if eval \${$3+:} false; then :
2228 $as_echo_n "(cached) " >&6
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2232 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2234 #define $2 innocuous_$2
2236 /* System header to define __stub macros and hopefully few prototypes,
2237 which can conflict with char $2 (); below.
2238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2239 <limits.h> exists even on freestanding compilers. */
2242 # include <limits.h>
2244 # include <assert.h>
2249 /* Override any GCC internal prototype to avoid an error.
2250 Use char because int might match the return type of a GCC
2251 builtin and then its argument prototype would still apply. */
2256 /* The GNU C library defines this for functions which it implements
2257 to always fail with ENOSYS. Some functions are actually named
2258 something starting with __ and the normal name is an alias. */
2259 #if defined __stub_$2 || defined __stub___$2
2271 if ac_fn_c_try_link "$LINENO"; then :
2276 rm -f core conftest.err conftest.$ac_objext \
2277 conftest$ac_exeext conftest.$ac_ext
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281 $as_echo "$ac_res" >&6; }
2282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2284 } # ac_fn_c_check_func
2286 # ac_fn_cxx_try_cpp LINENO
2287 # ------------------------
2288 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2289 ac_fn_cxx_try_cpp ()
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 if { { ac_try="$ac_cpp conftest.$ac_ext"
2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2298 $as_echo "$ac_try_echo"; } >&5
2299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2301 if test -s conftest.err; then
2302 grep -v '^ *+' conftest.err >conftest.er1
2303 cat conftest.er1 >&5
2304 mv -f conftest.er1 conftest.err
2306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2307 test $ac_status = 0; } > conftest.i && {
2308 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2309 test ! -s conftest.err
2313 $as_echo "$as_me: failed program was:" >&5
2314 sed 's/^/| /' conftest.$ac_ext >&5
2318 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319 as_fn_set_status $ac_retval
2321 } # ac_fn_cxx_try_cpp
2323 # ac_fn_cxx_try_link LINENO
2324 # -------------------------
2325 # Try to link conftest.$ac_ext, and return whether this succeeded.
2326 ac_fn_cxx_try_link ()
2328 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2329 rm -f conftest.$ac_objext conftest$ac_exeext
2330 if { { ac_try="$ac_link"
2332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333 *) ac_try_echo=$ac_try;;
2335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2336 $as_echo "$ac_try_echo"; } >&5
2337 (eval "$ac_link") 2>conftest.err
2339 if test -s conftest.err; then
2340 grep -v '^ *+' conftest.err >conftest.er1
2341 cat conftest.er1 >&5
2342 mv -f conftest.er1 conftest.err
2344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2345 test $ac_status = 0; } && {
2346 test -z "$ac_cxx_werror_flag" ||
2347 test ! -s conftest.err
2348 } && test -s conftest$ac_exeext && {
2349 test "$cross_compiling" = yes ||
2350 $as_test_x conftest$ac_exeext
2354 $as_echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2359 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2360 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2361 # interfere with the next link command; also delete a directory that is
2362 # left behind by Apple's compiler. We do this before executing the actions.
2363 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2364 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2365 as_fn_set_status $ac_retval
2367 } # ac_fn_cxx_try_link
2369 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2370 # -------------------------------------------
2371 # Tests whether TYPE exists after having included INCLUDES, setting cache
2372 # variable VAR accordingly.
2373 ac_fn_c_check_type ()
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2377 $as_echo_n "checking for $2... " >&6; }
2378 if eval \${$3+:} false; then :
2379 $as_echo_n "(cached) " >&6
2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h. */
2394 if ac_fn_c_try_compile "$LINENO"; then :
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2407 if ac_fn_c_try_compile "$LINENO"; then :
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2421 } # ac_fn_c_check_type
2423 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2424 # --------------------------------------------
2425 # Tries to find the compile-time value of EXPR in a program that includes
2426 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2428 ac_fn_c_compute_int ()
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 if test "$cross_compiling" = yes; then
2432 # Depending upon the size, compute the lo and hi bounds.
2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h. */
2439 static int test_array [1 - 2 * !(($2) >= 0)];
2446 if ac_fn_c_try_compile "$LINENO"; then :
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h. */
2455 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2462 if ac_fn_c_try_compile "$LINENO"; then :
2463 ac_hi=$ac_mid; break
2465 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2466 if test $ac_lo -le $ac_mid; then
2470 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2481 static int test_array [1 - 2 * !(($2) < 0)];
2488 if ac_fn_c_try_compile "$LINENO"; then :
2491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h. */
2497 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2504 if ac_fn_c_try_compile "$LINENO"; then :
2505 ac_lo=$ac_mid; break
2507 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2508 if test $ac_mid -le $ac_hi; then
2512 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522 # Binary search between lo and hi bounds.
2523 while test "x$ac_lo" != "x$ac_hi"; do
2524 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2531 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2538 if ac_fn_c_try_compile "$LINENO"; then :
2541 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2553 static long int longval () { return $2; }
2554 static unsigned long int ulongval () { return $2; }
2561 FILE *f = fopen ("conftest.val", "w");
2566 long int i = longval ();
2569 fprintf (f, "%ld", i);
2573 unsigned long int i = ulongval ();
2576 fprintf (f, "%lu", i);
2578 /* Do not output a trailing newline, as this causes \r\n confusion
2579 on some platforms. */
2580 return ferror (f) || fclose (f) != 0;
2586 if ac_fn_c_try_run "$LINENO"; then :
2587 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2592 conftest.$ac_objext conftest.beam conftest.$ac_ext
2596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2597 as_fn_set_status $ac_retval
2599 } # ac_fn_c_compute_int
2601 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2602 # ---------------------------------------------
2603 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2605 ac_fn_c_check_decl ()
2607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2608 as_decl_name=`echo $2|sed 's/ *(.*//'`
2609 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2611 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2612 if eval \${$3+:} false; then :
2613 $as_echo_n "(cached) " >&6
2615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2616 /* end confdefs.h. */
2621 #ifndef $as_decl_name
2623 (void) $as_decl_use;
2625 (void) $as_decl_name;
2633 if ac_fn_c_try_compile "$LINENO"; then :
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642 $as_echo "$ac_res" >&6; }
2643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2645 } # ac_fn_c_check_decl
2647 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2648 # ----------------------------------------------------
2649 # Tries to find if the field MEMBER exists in type AGGR, after including
2650 # INCLUDES, setting cache variable VAR accordingly.
2651 ac_fn_c_check_member ()
2653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2655 $as_echo_n "checking for $2.$3... " >&6; }
2656 if eval \${$4+:} false; then :
2657 $as_echo_n "(cached) " >&6
2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660 /* end confdefs.h. */
2672 if ac_fn_c_try_compile "$LINENO"; then :
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2682 if (sizeof ac_aggr.$3)
2688 if ac_fn_c_try_compile "$LINENO"; then :
2693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2699 $as_echo "$ac_res" >&6; }
2700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2702 } # ac_fn_c_check_member
2703 cat >config.log <<_ACEOF
2704 This file contains any messages produced by compilers while
2705 running configure, to aid debugging if configure makes a mistake.
2707 It was created by ntp $as_me 4.2.8p2, which was
2708 generated by GNU Autoconf 2.68. Invocation command line was
2720 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2721 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2722 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2723 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2724 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2726 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2727 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2729 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2730 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2731 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2732 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2733 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2734 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2735 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 test -z "$as_dir" && as_dir=.
2744 $as_echo "PATH: $as_dir"
2760 # Keep a trace of the command line.
2761 # Strip out --no-create and --no-recursion so they do not pile up.
2762 # Strip out --silent because we don't want to record it for future runs.
2763 # Also quote any args containing shell meta-characters.
2764 # Make two passes to allow for proper duplicate-argument suppression.
2768 ac_must_keep_next=false
2774 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2776 | -silent | --silent | --silen | --sile | --sil)
2779 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2782 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2784 as_fn_append ac_configure_args1 " '$ac_arg'"
2785 if test $ac_must_keep_next = true; then
2786 ac_must_keep_next=false # Got value, back to normal.
2789 *=* | --config-cache | -C | -disable-* | --disable-* \
2790 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2791 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2792 | -with-* | --with-* | -without-* | --without-* | --x)
2793 case "$ac_configure_args0 " in
2794 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2797 -* ) ac_must_keep_next=true ;;
2800 as_fn_append ac_configure_args " '$ac_arg'"
2805 { ac_configure_args0=; unset ac_configure_args0;}
2806 { ac_configure_args1=; unset ac_configure_args1;}
2808 # When interrupted or exit'd, cleanup temporary files, and complete
2809 # config.log. We remove comments because anyway the quotes in there
2810 # would cause problems or look ugly.
2811 # WARNING: Use '\'' to represent an apostrophe within the trap.
2812 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2813 trap 'exit_status=$?
2814 # Save into config.log some information that might help in debugging.
2818 $as_echo "## ---------------- ##
2819 ## Cache variables. ##
2820 ## ---------------- ##"
2822 # The following way of writing the cache mishandles newlines in values,
2824 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2825 eval ac_val=\$$ac_var
2829 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2830 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2833 _ | IFS | as_nl) ;; #(
2834 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2835 *) { eval $ac_var=; unset $ac_var;} ;;
2840 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2841 *${as_nl}ac_space=\ *)
2843 "s/'\''/'\''\\\\'\'''\''/g;
2844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2854 $as_echo "## ----------------- ##
2855 ## Output variables. ##
2856 ## ----------------- ##"
2858 for ac_var in $ac_subst_vars
2860 eval ac_val=\$$ac_var
2862 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2864 $as_echo "$ac_var='\''$ac_val'\''"
2868 if test -n "$ac_subst_files"; then
2869 $as_echo "## ------------------- ##
2870 ## File substitutions. ##
2871 ## ------------------- ##"
2873 for ac_var in $ac_subst_files
2875 eval ac_val=\$$ac_var
2877 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2879 $as_echo "$ac_var='\''$ac_val'\''"
2884 if test -s confdefs.h; then
2885 $as_echo "## ----------- ##
2892 test "$ac_signal" != 0 &&
2893 $as_echo "$as_me: caught signal $ac_signal"
2894 $as_echo "$as_me: exit $exit_status"
2896 rm -f core *.core core.conftest.* &&
2897 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2900 for ac_signal in 1 2 13 15; do
2901 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2905 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2906 rm -f -r conftest* confdefs.h
2908 $as_echo "/* confdefs.h */" > confdefs.h
2910 # Predefined preprocessor variables.
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE_NAME "$PACKAGE_NAME"
2916 cat >>confdefs.h <<_ACEOF
2917 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2920 cat >>confdefs.h <<_ACEOF
2921 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2924 cat >>confdefs.h <<_ACEOF
2925 #define PACKAGE_STRING "$PACKAGE_STRING"
2928 cat >>confdefs.h <<_ACEOF
2929 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2932 cat >>confdefs.h <<_ACEOF
2933 #define PACKAGE_URL "$PACKAGE_URL"
2937 # Let the site file select an alternate cache file if it wants to.
2938 # Prefer an explicitly selected file to automatically selected ones.
2941 if test -n "$CONFIG_SITE"; then
2942 # We do not want a PATH search for config.site.
2943 case $CONFIG_SITE in #((
2944 -*) ac_site_file1=./$CONFIG_SITE;;
2945 */*) ac_site_file1=$CONFIG_SITE;;
2946 *) ac_site_file1=./$CONFIG_SITE;;
2948 elif test "x$prefix" != xNONE; then
2949 ac_site_file1=$prefix/share/config.site
2950 ac_site_file2=$prefix/etc/config.site
2952 ac_site_file1=$ac_default_prefix/share/config.site
2953 ac_site_file2=$ac_default_prefix/etc/config.site
2955 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2957 test "x$ac_site_file" = xNONE && continue
2958 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2960 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2961 sed 's/^/| /' "$ac_site_file" >&5
2963 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2965 as_fn_error $? "failed to load site script $ac_site_file
2966 See \`config.log' for more details" "$LINENO" 5; }
2970 if test -r "$cache_file"; then
2971 # Some versions of bash will fail to source /dev/null (special files
2972 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2973 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2975 $as_echo "$as_me: loading cache $cache_file" >&6;}
2977 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2978 *) . "./$cache_file";;
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2983 $as_echo "$as_me: creating cache $cache_file" >&6;}
2987 as_fn_append ac_header_list " stdarg.h"
2988 # Check that the precious variables saved in the cache have kept the same
2990 ac_cache_corrupted=false
2991 for ac_var in $ac_precious_vars; do
2992 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2993 eval ac_new_set=\$ac_env_${ac_var}_set
2994 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2995 eval ac_new_val=\$ac_env_${ac_var}_value
2996 case $ac_old_set,$ac_new_set in
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2999 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3000 ac_cache_corrupted=: ;;
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3003 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3004 ac_cache_corrupted=: ;;
3007 if test "x$ac_old_val" != "x$ac_new_val"; then
3008 # differences in whitespace do not lead to failure.
3009 ac_old_val_w=`echo x $ac_old_val`
3010 ac_new_val_w=`echo x $ac_new_val`
3011 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3013 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3014 ac_cache_corrupted=:
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3017 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3018 eval $ac_var=\$ac_old_val
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3021 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3023 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3026 # Pass precious variables to config.status.
3027 if test "$ac_new_set" = set; then
3029 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3030 *) ac_arg=$ac_var=$ac_new_val ;;
3032 case " $ac_configure_args " in
3033 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3034 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3038 if $ac_cache_corrupted; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3042 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3043 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3045 ## -------------------- ##
3046 ## Main body of script. ##
3047 ## -------------------- ##
3050 ac_cpp='$CPP $CPPFLAGS'
3051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058 for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
3059 if test -f "$ac_dir/install-sh"; then
3061 ac_install_sh="$ac_aux_dir/install-sh -c"
3063 elif test -f "$ac_dir/install.sh"; then
3065 ac_install_sh="$ac_aux_dir/install.sh -c"
3067 elif test -f "$ac_dir/shtool"; then
3069 ac_install_sh="$ac_aux_dir/shtool install -c"
3073 if test -z "$ac_aux_dir"; then
3074 as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
3077 # These three variables are undocumented and unsupported,
3078 # and are intended to be withdrawn in a future Autoconf release.
3079 # They can cause serious problems if a builder's source tree is in a directory
3080 # whose full name contains unusual characters.
3081 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3082 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3083 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3091 # Bump ntp_configure_cache_version for each change to configure.ac or
3092 # .m4 files which invalidates cached values from previous configure
3095 # If the change affects cache variables used only by the main NTP
3096 # configure.ac, then only its version number should be bumped, while
3097 # the subdir configure.ac version numbers should be unchanged. The
3098 # same is true for a test/variable that is used only by one subdir
3099 # being changed incompatibly; only that subdir's cache version needs
3102 # If a change affects variables shared by all NTP configure scripts,
3103 # please bump the version numbers of each. If you are not sure, the
3104 # safe choice is to bump all on any cache-invalidating change.
3106 # In order to avoid the risk of version stamp collision between -stable
3107 # and -dev branches, do not simply increment the version, instead use
3108 # the date YYYYMMDD optionally with -HHMM if there is more than one
3111 ntp_configure_cache_version=20120806
3113 # When the cache version of config.cache and configure do not
3114 # match, NTP_CACHEVERSION will flush the cache.
3120 case "$ntp_cv_main_cache_version" in
3121 $ntp_configure_cache_version)
3122 # same version, good
3126 # No cache, predates ntp_cv_main_cache_version, or is empty.
3127 case "$cache_file" in
3132 case "$NTP_CACHEVERSION_PARENT" in
3134 # Do not clear the cache immediately after it is created
3135 # empty as it is noisy. Differentiate a newly-created
3136 # config.cache from one predating the cache version
3137 # mechanism by looking for the first cached variable set
3139 case "$ac_cv_path_install" in
3141 # empty config.cache file
3146 # Parent configure just created cache from empty,
3147 # flushing would be counterproductive.
3154 # configure cache version mismatches config.cache version
3158 case "$ntp_cache_flush" in
3160 c_version="${ntp_cv_main_cache_version:-(no version found)}"
3162 # Do we flush all variables or exclude others' version stamps?
3164 case "$NTP_CACHEVERSION_PARENT" in
3166 # Clear all *_cv_* variables including our child subdirs'
3167 # ntp_cv_*_cache_version variables. This prevents subdir
3168 # configure scripts from noticing a version mismatch just
3169 # after the top configure in the invocation cleared and
3170 # recreated the cache.
3172 c_varname_list=`set |
3173 sed -n -e 's/=.*$//' \
3178 # This is not the top configure this particular invocation.
3179 # Clear all *_cv_* variables sparing the version stamps
3180 # of other configure scripts, so we don't trigger
3181 # useless repeated clearings.
3183 c_varname_list=`set |
3184 sed -n -e 's/=.*$//' \
3185 -e '/ntp_cv_.*_cache_version/d' \
3190 for c_varname in $c_varname_list
3192 { eval $c_varname=; unset $c_varname; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3196 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
3198 $as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3200 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
3201 { c_varname=; unset c_varname;}
3202 { c_varname_list=; unset c_varname_list;}
3203 { c_version=; unset c_version;}
3206 { ntp_cache_flush=; unset ntp_cache_flush;}
3208 # save configure version in config.cache for next time
3209 ntp_cv_main_cache_version="$ntp_configure_cache_version"
3211 # let any subdir configure.ac NTP_CACHEVERSION invocations
3212 # know they are not the top level.
3213 NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT
3216 am__api_version='1.11'
3218 # Find a good install program. We prefer a C program (faster),
3219 # so one script is as good as another. But avoid the broken or
3220 # incompatible versions:
3221 # SysV /etc/install, /usr/sbin/install
3222 # SunOS /usr/etc/install
3223 # IRIX /sbin/install
3225 # AmigaOS /C/install, which installs bootblocks on floppy discs
3226 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3227 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3228 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3229 # OS/2's system install, which has a completely different semantic
3230 # ./install, which can be erroneously created by make from ./install.sh.
3231 # Reject install programs that cannot install multiple files.
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3233 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3234 if test -z "$INSTALL"; then
3235 if ${ac_cv_path_install+:} false; then :
3236 $as_echo_n "(cached) " >&6
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 test -z "$as_dir" && as_dir=.
3243 # Account for people who put trailing slashes in PATH elements.
3244 case $as_dir/ in #((
3245 ./ | .// | /[cC]/* | \
3246 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3247 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3250 # OSF1 and SCO ODT 3.0 have their own names for install.
3251 # Don't use installbsd from OSF since it installs stuff as root
3253 for ac_prog in ginstall scoinst install; do
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3256 if test $ac_prog = install &&
3257 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3258 # AIX install. It has an incompatible calling convention.
3260 elif test $ac_prog = install &&
3261 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3262 # program-specific install script used by HP pwplus--don't use.
3265 rm -rf conftest.one conftest.two conftest.dir
3266 echo one > conftest.one
3267 echo two > conftest.two
3269 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3270 test -s conftest.one && test -s conftest.two &&
3271 test -s conftest.dir/conftest.one &&
3272 test -s conftest.dir/conftest.two
3274 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3287 rm -rf conftest.one conftest.two conftest.dir
3290 if test "${ac_cv_path_install+set}" = set; then
3291 INSTALL=$ac_cv_path_install
3293 # As a last resort, use the slow shell script. Don't cache a
3294 # value for INSTALL within a source directory, because that will
3295 # break other packages using the cache if that directory is
3296 # removed, or if the value is a relative name.
3297 INSTALL=$ac_install_sh
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3301 $as_echo "$INSTALL" >&6; }
3303 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3304 # It thinks the first close brace ends the variable substitution.
3305 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3307 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3309 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3312 $as_echo_n "checking whether build environment is sane... " >&6; }
3315 echo timestamp > conftest.file
3316 # Reject unsafe characters in $srcdir or the absolute working directory
3317 # name. Accept space and tab only in the latter.
3321 *[\\\"\#\$\&\'\`$am_lf]*)
3322 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3325 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3326 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3329 # Do `set' in a subshell so we don't clobber the current shell's
3330 # arguments. Must try -L first in case configure is actually a
3331 # symlink; some systems play weird games with the mod time of symlinks
3332 # (eg FreeBSD returns the mod time of the symlink's containing
3335 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3336 if test "$*" = "X"; then
3338 set X `ls -t "$srcdir/configure" conftest.file`
3341 if test "$*" != "X $srcdir/configure conftest.file" \
3342 && test "$*" != "X conftest.file $srcdir/configure"; then
3344 # If neither matched, then we have a broken ls. This can happen
3345 # if, for instance, CONFIG_SHELL is bash and it inherits a
3346 # broken ls alias from the environment. This has actually
3347 # happened. Such a system could not be considered "sane".
3348 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3349 alias in your environment" "$LINENO" 5
3352 test "$2" = conftest.file
3358 as_fn_error $? "newly created file is older than distributed files!
3359 Check your system clock" "$LINENO" 5
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3362 $as_echo "yes" >&6; }
3363 test "$program_prefix" != NONE &&
3364 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3365 # Use a double $ so make ignores it.
3366 test "$program_suffix" != NONE &&
3367 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3368 # Double any \ or $.
3369 # By default was `s,x,x', remove it if useless.
3370 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3371 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3373 # expand $ac_aux_dir to an absolute path
3374 am_aux_dir=`cd $ac_aux_dir && pwd`
3376 if test x"${MISSING+set}" != xset; then
3379 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3381 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3384 # Use eval to expand $SHELL
3385 if eval "$MISSING --run true"; then
3386 am_missing_run="$MISSING --run "
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3390 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3393 if test x"${install_sh}" != xset; then
3396 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3398 install_sh="\${SHELL} $am_aux_dir/install-sh"
3402 # Installed binaries are usually stripped using `strip' when the user
3403 # run `make install-strip'. However `strip' might not be the right
3404 # tool to use in cross-compilation environments, therefore Automake
3405 # will honor the `STRIP' environment variable to overrule this program.
3406 if test "$cross_compiling" != no; then
3407 if test -n "$ac_tool_prefix"; then
3408 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3409 set dummy ${ac_tool_prefix}strip; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_STRIP+:} false; then :
3413 $as_echo_n "(cached) " >&6
3415 if test -n "$STRIP"; then
3416 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 STRIP=$ac_cv_prog_STRIP
3436 if test -n "$STRIP"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3438 $as_echo "$STRIP" >&6; }
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3446 if test -z "$ac_cv_prog_STRIP"; then
3448 # Extract the first word of "strip", so it can be a program name with args.
3449 set dummy strip; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3453 $as_echo_n "(cached) " >&6
3455 if test -n "$ac_ct_STRIP"; then
3456 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3465 ac_cv_prog_ac_ct_STRIP="strip"
3466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3476 if test -n "$ac_ct_STRIP"; then
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3478 $as_echo "$ac_ct_STRIP" >&6; }
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3484 if test "x$ac_ct_STRIP" = x; then
3487 case $cross_compiling:$ac_tool_warned in
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3491 ac_tool_warned=yes ;;
3496 STRIP="$ac_cv_prog_STRIP"
3500 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3503 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3504 if test -z "$MKDIR_P"; then
3505 if ${ac_cv_path_mkdir+:} false; then :
3506 $as_echo_n "(cached) " >&6
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3512 test -z "$as_dir" && as_dir=.
3513 for ac_prog in mkdir gmkdir; do
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3516 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3517 'mkdir (GNU coreutils) '* | \
3518 'mkdir (coreutils) '* | \
3519 'mkdir (fileutils) '4.1*)
3520 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3530 test -d ./--version && rmdir ./--version
3531 if test "${ac_cv_path_mkdir+set}" = set; then
3532 MKDIR_P="$ac_cv_path_mkdir -p"
3534 # As a last resort, use the slow shell script. Don't cache a
3535 # value for MKDIR_P within a source directory, because that will
3536 # break other packages using the cache if that directory is
3537 # removed, or if the value is a relative name.
3538 MKDIR_P="$ac_install_sh -d"
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3542 $as_echo "$MKDIR_P" >&6; }
3546 [\\/$]* | ?:[\\/]*) ;;
3547 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3550 for ac_prog in gawk mawk nawk awk
3552 # Extract the first word of "$ac_prog", so it can be a program name with args.
3553 set dummy $ac_prog; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if ${ac_cv_prog_AWK+:} false; then :
3557 $as_echo_n "(cached) " >&6
3559 if test -n "$AWK"; then
3560 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569 ac_cv_prog_AWK="$ac_prog"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 if test -n "$AWK"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3582 $as_echo "$AWK" >&6; }
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3589 test -n "$AWK" && break
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3593 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3595 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3596 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3597 $as_echo_n "(cached) " >&6
3599 cat >conftest.make <<\_ACEOF
3602 @echo '@@@%%%=$(MAKE)=@@@%%%'
3604 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3605 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3607 eval ac_cv_prog_make_${ac_make}_set=yes;;
3609 eval ac_cv_prog_make_${ac_make}_set=no;;
3613 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3615 $as_echo "yes" >&6; }
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3620 SET_MAKE="MAKE=${MAKE-make}"
3623 rm -rf .tst 2>/dev/null
3624 mkdir .tst 2>/dev/null
3625 if test -d .tst; then
3630 rmdir .tst 2>/dev/null
3632 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3633 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3634 # is not polluted with repeated "-I."
3635 am__isrc=' -I$(srcdir)'
3636 # test to see if srcdir already configured
3637 if test -f $srcdir/config.status; then
3638 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3642 # test whether we have cygpath
3643 if test -z "$CYGPATH_W"; then
3644 if (cygpath --version) >/dev/null 2>/dev/null; then
3645 CYGPATH_W='cygpath -w'
3652 # Define the identity of the package.
3657 cat >>confdefs.h <<_ACEOF
3658 #define PACKAGE "$PACKAGE"
3662 cat >>confdefs.h <<_ACEOF
3663 #define VERSION "$VERSION"
3666 # Some tools Automake needs.
3668 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3671 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3674 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3677 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3680 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3682 # We need awk for the "check" target. The system "awk" is bad on
3684 # Always define AMTAR for backward compatibility.
3686 AMTAR=${AMTAR-"${am_missing_run}tar"}
3688 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3695 # Check whether --enable-silent-rules was given.
3696 if test "${enable_silent_rules+set}" = set; then :
3697 enableval=$enable_silent_rules;
3700 case $enable_silent_rules in
3701 yes) AM_DEFAULT_VERBOSITY=0;;
3702 no) AM_DEFAULT_VERBOSITY=1;;
3703 *) AM_DEFAULT_VERBOSITY=0;;
3708 # Make sure we can run config.sub.
3709 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3710 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3713 $as_echo_n "checking build system type... " >&6; }
3714 if ${ac_cv_build+:} false; then :
3715 $as_echo_n "(cached) " >&6
3717 ac_build_alias=$build_alias
3718 test "x$ac_build_alias" = x &&
3719 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3720 test "x$ac_build_alias" = x &&
3721 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3722 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3723 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3727 $as_echo "$ac_cv_build" >&6; }
3728 case $ac_cv_build in
3730 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3733 ac_save_IFS=$IFS; IFS='-'
3739 # Remember, the first character of IFS is used to create $*,
3740 # except with old shells:
3743 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3747 $as_echo_n "checking host system type... " >&6; }
3748 if ${ac_cv_host+:} false; then :
3749 $as_echo_n "(cached) " >&6
3751 if test "x$host_alias" = x; then
3752 ac_cv_host=$ac_cv_build
3754 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3755 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3760 $as_echo "$ac_cv_host" >&6; }
3763 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3766 ac_save_IFS=$IFS; IFS='-'
3772 # Remember, the first character of IFS is used to create $*,
3773 # except with old shells:
3776 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3780 cat >>confdefs.h <<_ACEOF
3781 #define STR_SYSTEM "$host"
3784 ac_config_headers="$ac_config_headers config.h"
3787 ntp_atom_ok=${ntp_atom_ok=no}
3788 ntp_oncore_ok=${ntp_oncore_ok=no}
3789 ntp_parse_ok=${ntp_parse_ok=no}
3790 ntp_ripe_ncc_ok=${ntp_parse_ok=no}
3791 ntp_jupiter_ok=${ntp_jupiter_ok=no}
3793 DEPDIR="${am__leading_dot}deps"
3795 ac_config_commands="$ac_config_commands depfiles"
3798 am_make=${MAKE-make}
3799 cat > confinc << 'END'
3801 @echo this is the am__doit target
3804 # If we don't find an include directive, just comment out the code.
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3806 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3810 # First try GNU make style include.
3811 echo "include confinc" > confmf
3812 # Ignore all kinds of additional output from `make'.
3813 case `$am_make -s -f confmf 2> /dev/null` in #(
3814 *the\ am__doit\ target*)
3820 # Now try BSD make style include.
3821 if test "$am__include" = "#"; then
3822 echo '.include "confinc"' > confmf
3823 case `$am_make -s -f confmf 2> /dev/null` in #(
3824 *the\ am__doit\ target*)
3825 am__include=.include
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3834 $as_echo "$_am_result" >&6; }
3835 rm -f confinc confmf
3837 # Check whether --enable-dependency-tracking was given.
3838 if test "${enable_dependency_tracking+set}" = set; then :
3839 enableval=$enable_dependency_tracking;
3842 if test "x$enable_dependency_tracking" != xno; then
3843 am_depcomp="$ac_aux_dir/depcomp"
3846 if test "x$enable_dependency_tracking" != xno; then
3856 ac_cpp='$CPP $CPPFLAGS'
3857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3860 if test -n "$ac_tool_prefix"; then
3861 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3862 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864 $as_echo_n "checking for $ac_word... " >&6; }
3865 if ${ac_cv_prog_CC+:} false; then :
3866 $as_echo_n "(cached) " >&6
3868 if test -n "$CC"; then
3869 ac_cv_prog_CC="$CC" # Let the user override the test.
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 test -z "$as_dir" && as_dir=.
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3878 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3889 if test -n "$CC"; then
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3891 $as_echo "$CC" >&6; }
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894 $as_echo "no" >&6; }
3899 if test -z "$ac_cv_prog_CC"; then
3901 # Extract the first word of "gcc", so it can be a program name with args.
3902 set dummy gcc; ac_word=$2
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904 $as_echo_n "checking for $ac_word... " >&6; }
3905 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3906 $as_echo_n "(cached) " >&6
3908 if test -n "$ac_ct_CC"; then
3909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3918 ac_cv_prog_ac_ct_CC="gcc"
3919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3929 if test -n "$ac_ct_CC"; then
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3931 $as_echo "$ac_ct_CC" >&6; }
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934 $as_echo "no" >&6; }
3937 if test "x$ac_ct_CC" = x; then
3940 case $cross_compiling:$ac_tool_warned in
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3944 ac_tool_warned=yes ;;
3952 if test -z "$CC"; then
3953 if test -n "$ac_tool_prefix"; then
3954 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3955 set dummy ${ac_tool_prefix}cc; ac_word=$2
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 $as_echo_n "checking for $ac_word... " >&6; }
3958 if ${ac_cv_prog_CC+:} false; then :
3959 $as_echo_n "(cached) " >&6
3961 if test -n "$CC"; then
3962 ac_cv_prog_CC="$CC" # Let the user override the test.
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3971 ac_cv_prog_CC="${ac_tool_prefix}cc"
3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 if test -n "$CC"; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3984 $as_echo "$CC" >&6; }
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987 $as_echo "no" >&6; }
3993 if test -z "$CC"; then
3994 # Extract the first word of "cc", so it can be a program name with args.
3995 set dummy cc; ac_word=$2
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997 $as_echo_n "checking for $ac_word... " >&6; }
3998 if ${ac_cv_prog_CC+:} false; then :
3999 $as_echo_n "(cached) " >&6
4001 if test -n "$CC"; then
4002 ac_cv_prog_CC="$CC" # Let the user override the test.
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4013 ac_prog_rejected=yes
4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 if test $ac_prog_rejected = yes; then
4025 # We found a bogon in the path, so make sure we never use it.
4026 set dummy $ac_cv_prog_CC
4028 if test $# != 0; then
4029 # We chose a different compiler from the bogus one.
4030 # However, it has the same basename, so the bogon will be chosen
4031 # first if we set CC to just the basename; use the full file name.
4033 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4039 if test -n "$CC"; then
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4041 $as_echo "$CC" >&6; }
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044 $as_echo "no" >&6; }
4049 if test -z "$CC"; then
4050 if test -n "$ac_tool_prefix"; then
4051 for ac_prog in cl.exe
4053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if ${ac_cv_prog_CC+:} false; then :
4058 $as_echo_n "(cached) " >&6
4060 if test -n "$CC"; then
4061 ac_cv_prog_CC="$CC" # Let the user override the test.
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4070 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 if test -n "$CC"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4083 $as_echo "$CC" >&6; }
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4090 test -n "$CC" && break
4093 if test -z "$CC"; then
4095 for ac_prog in cl.exe
4097 # Extract the first word of "$ac_prog", so it can be a program name with args.
4098 set dummy $ac_prog; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4102 $as_echo_n "(cached) " >&6
4104 if test -n "$ac_ct_CC"; then
4105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114 ac_cv_prog_ac_ct_CC="$ac_prog"
4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4125 if test -n "$ac_ct_CC"; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4127 $as_echo "$ac_ct_CC" >&6; }
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4134 test -n "$ac_ct_CC" && break
4137 if test "x$ac_ct_CC" = x; then
4140 case $cross_compiling:$ac_tool_warned in
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4144 ac_tool_warned=yes ;;
4153 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4155 as_fn_error $? "no acceptable C compiler found in \$PATH
4156 See \`config.log' for more details" "$LINENO" 5; }
4158 # Provide some information about the compiler.
4159 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4162 for ac_option in --version -v -V -qversion; do
4163 { { ac_try="$ac_compiler $ac_option >&5"
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4169 $as_echo "$ac_try_echo"; } >&5
4170 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4172 if test -s conftest.err; then
4174 ... rest of stderr output deleted ...
4175 10q' conftest.err >conftest.er1
4176 cat conftest.er1 >&5
4178 rm -f conftest.er1 conftest.err
4179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4180 test $ac_status = 0; }
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4194 ac_clean_files_save=$ac_clean_files
4195 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4196 # Try to create an executable without -o first, disregard a.out.
4197 # It will help us diagnose broken compilers, and finding out an intuition
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4200 $as_echo_n "checking whether the C compiler works... " >&6; }
4201 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4203 # The possible output files:
4204 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4207 for ac_file in $ac_files
4210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4211 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4216 if { { ac_try="$ac_link_default"
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4222 $as_echo "$ac_try_echo"; } >&5
4223 (eval "$ac_link_default") 2>&5
4225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4226 test $ac_status = 0; }; then :
4227 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4228 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4229 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4230 # so that the user can short-circuit this test for compilers unknown to
4232 for ac_file in $ac_files ''
4234 test -f "$ac_file" || continue
4236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4239 # We found the default executable, but exeext='' is most
4243 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4245 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4247 # We set ac_cv_exeext here because the later test for it is not
4248 # safe: cross compilers may not add the suffix if given an `-o'
4249 # argument, so we may need to know it at that point already.
4250 # Even if this section looks crufty: it has the advantage of
4257 test "$ac_cv_exeext" = no && ac_cv_exeext=
4262 if test -z "$ac_file"; then :
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264 $as_echo "no" >&6; }
4265 $as_echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4270 as_fn_error 77 "C compiler cannot create executables
4271 See \`config.log' for more details" "$LINENO" 5; }
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4274 $as_echo "yes" >&6; }
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4277 $as_echo_n "checking for C compiler default output file name... " >&6; }
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4279 $as_echo "$ac_file" >&6; }
4280 ac_exeext=$ac_cv_exeext
4282 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4283 ac_clean_files=$ac_clean_files_save
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4285 $as_echo_n "checking for suffix of executables... " >&6; }
4286 if { { ac_try="$ac_link"
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4292 $as_echo "$ac_try_echo"; } >&5
4293 (eval "$ac_link") 2>&5
4295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296 test $ac_status = 0; }; then :
4297 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4298 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4299 # work properly (i.e., refer to `conftest.exe'), while it won't with
4301 for ac_file in conftest.exe conftest conftest.*; do
4302 test -f "$ac_file" || continue
4304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4305 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4313 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4314 See \`config.log' for more details" "$LINENO" 5; }
4316 rm -f conftest conftest$ac_cv_exeext
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4318 $as_echo "$ac_cv_exeext" >&6; }
4320 rm -f conftest.$ac_ext
4321 EXEEXT=$ac_cv_exeext
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4329 FILE *f = fopen ("conftest.out", "w");
4330 return ferror (f) || fclose (f) != 0;
4336 ac_clean_files="$ac_clean_files conftest.out"
4337 # Check that the compiler produces executables we can run. If not, either
4338 # the compiler is broken, or we cross compile.
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4340 $as_echo_n "checking whether we are cross compiling... " >&6; }
4341 if test "$cross_compiling" != yes; then
4342 { { ac_try="$ac_link"
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4348 $as_echo "$ac_try_echo"; } >&5
4349 (eval "$ac_link") 2>&5
4351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4352 test $ac_status = 0; }
4353 if { ac_try='./conftest$ac_cv_exeext'
4354 { { case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4359 $as_echo "$ac_try_echo"; } >&5
4360 (eval "$ac_try") 2>&5
4362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363 test $ac_status = 0; }; }; then
4366 if test "$cross_compiling" = maybe; then
4369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4371 as_fn_error $? "cannot run C compiled programs.
4372 If you meant to cross compile, use \`--host'.
4373 See \`config.log' for more details" "$LINENO" 5; }
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4378 $as_echo "$cross_compiling" >&6; }
4380 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4381 ac_clean_files=$ac_clean_files_save
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4383 $as_echo_n "checking for suffix of object files... " >&6; }
4384 if ${ac_cv_objext+:} false; then :
4385 $as_echo_n "(cached) " >&6
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4398 rm -f conftest.o conftest.obj
4399 if { { ac_try="$ac_compile"
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4405 $as_echo "$ac_try_echo"; } >&5
4406 (eval "$ac_compile") 2>&5
4408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4409 test $ac_status = 0; }; then :
4410 for ac_file in conftest.o conftest.obj conftest.*; do
4411 test -f "$ac_file" || continue;
4413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4414 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4419 $as_echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4424 as_fn_error $? "cannot compute suffix of object files: cannot compile
4425 See \`config.log' for more details" "$LINENO" 5; }
4427 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4430 $as_echo "$ac_cv_objext" >&6; }
4431 OBJEXT=$ac_cv_objext
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4434 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4435 if ${ac_cv_c_compiler_gnu+:} false; then :
4436 $as_echo_n "(cached) " >&6
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4452 if ac_fn_c_try_compile "$LINENO"; then :
4457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4462 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4463 if test $ac_compiler_gnu = yes; then
4468 ac_test_CFLAGS=${CFLAGS+set}
4469 ac_save_CFLAGS=$CFLAGS
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4471 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4472 if ${ac_cv_prog_cc_g+:} false; then :
4473 $as_echo_n "(cached) " >&6
4475 ac_save_c_werror_flag=$ac_c_werror_flag
4476 ac_c_werror_flag=yes
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4490 if ac_fn_c_try_compile "$LINENO"; then :
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4505 if ac_fn_c_try_compile "$LINENO"; then :
4508 ac_c_werror_flag=$ac_save_c_werror_flag
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4521 if ac_fn_c_try_compile "$LINENO"; then :
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 ac_c_werror_flag=$ac_save_c_werror_flag
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4532 $as_echo "$ac_cv_prog_cc_g" >&6; }
4533 if test "$ac_test_CFLAGS" = set; then
4534 CFLAGS=$ac_save_CFLAGS
4535 elif test $ac_cv_prog_cc_g = yes; then
4536 if test "$GCC" = yes; then
4542 if test "$GCC" = yes; then
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4549 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4550 if ${ac_cv_prog_cc_c89+:} false; then :
4551 $as_echo_n "(cached) " >&6
4553 ac_cv_prog_cc_c89=no
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4559 #include <sys/types.h>
4560 #include <sys/stat.h>
4561 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4562 struct buf { int x; };
4563 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4564 static char *e (p, i)
4570 static char *f (char * (*g) (char **, int), char **p, ...)
4575 s = g (p, va_arg (v,int));
4580 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4581 function prototypes and stuff, but not '\xHH' hex character constants.
4582 These don't provoke an error unfortunately, instead are silently treated
4583 as 'x'. The following induces an error, until -std is added to get
4584 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4585 array size at least. It's necessary to write '\x00'==0 to get something
4586 that's true only with -std. */
4587 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4589 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4590 inside strings and character constants. */
4592 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4594 int test (int i, double x);
4595 struct s1 {int (*f) (int a);};
4596 struct s2 {int (*f) (double a);};
4597 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4603 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4608 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4609 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4611 CC="$ac_save_CC $ac_arg"
4612 if ac_fn_c_try_compile "$LINENO"; then :
4613 ac_cv_prog_cc_c89=$ac_arg
4615 rm -f core conftest.err conftest.$ac_objext
4616 test "x$ac_cv_prog_cc_c89" != "xno" && break
4618 rm -f conftest.$ac_ext
4623 case "x$ac_cv_prog_cc_c89" in
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4626 $as_echo "none needed" >&6; } ;;
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4629 $as_echo "unsupported" >&6; } ;;
4631 CC="$CC $ac_cv_prog_cc_c89"
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4633 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4635 if test "x$ac_cv_prog_cc_c89" != xno; then :
4640 ac_cpp='$CPP $CPPFLAGS'
4641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4645 depcc="$CC" am_compiler_list=
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4648 $as_echo_n "checking dependency style of $depcc... " >&6; }
4649 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4650 $as_echo_n "(cached) " >&6
4652 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4653 # We make a subdir and do the tests there. Otherwise we can end up
4654 # making bogus files that we don't know about and never remove. For
4655 # instance it was reported that on HP-UX the gcc test will end up
4656 # making a dummy file named `D' -- because `-MD' means `put the output
4659 # Copy depcomp to subdir because otherwise we won't find it if we're
4660 # using a relative directory.
4661 cp "$am_depcomp" conftest.dir
4663 # We will build objects and dependencies in a subdirectory because
4664 # it helps to detect inapplicable dependency modes. For instance
4665 # both Tru64's cc and ICC support -MD to output dependencies as a
4666 # side effect of compilation, but ICC will put the dependencies in
4667 # the current directory while Tru64 will put them in the object
4671 am_cv_CC_dependencies_compiler_type=none
4672 if test "$am_compiler_list" = ""; then
4673 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4676 case " $depcc " in #(
4677 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4680 for depmode in $am_compiler_list; do
4681 # Setup a source with many dependencies, because some compilers
4682 # like to wrap large dependency lists on column 80 (with \), and
4683 # we should not choose a depcomp mode which is confused by this.
4685 # We need to recreate these files for each test, as the compiler may
4686 # overwrite some of them when testing with obscure command lines.
4687 # This happens at least with the AIX C compiler.
4689 for i in 1 2 3 4 5 6; do
4690 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4691 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4692 # Solaris 8's {/usr,}/bin/sh.
4693 touch sub/conftst$i.h
4695 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4697 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4698 # mode. It turns out that the SunPro C++ compiler does not properly
4699 # handle `-M -o', and we need to detect this. Also, some Intel
4700 # versions had trouble with output in subdirs
4701 am__obj=sub/conftest.${OBJEXT-o}
4702 am__minus_obj="-o $am__obj"
4705 # This depmode causes a compiler race in universal mode.
4706 test "$am__universal" = false || continue
4709 # after this tag, mechanisms are not by side-effect, so they'll
4710 # only be used when explicitly requested
4711 if test "x$enable_dependency_tracking" = xyes; then
4717 msvisualcpp | msvcmsys)
4718 # This compiler won't grok `-c -o', but also, the minuso test has
4719 # not run yet. These depmodes are late enough in the game, and
4720 # so weak that their functioning should not be impacted.
4721 am__obj=conftest.${OBJEXT-o}
4726 if depmode=$depmode \
4727 source=sub/conftest.c object=$am__obj \
4728 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4729 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4730 >/dev/null 2>conftest.err &&
4731 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4732 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4733 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4734 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4735 # icc doesn't choke on unknown options, it will just issue warnings
4736 # or remarks (even with -Werror). So we grep stderr for any message
4737 # that says an option was ignored or not supported.
4738 # When given -MP, icc 7.0 and 7.1 complain thusly:
4739 # icc: Command line warning: ignoring option '-M'; no argument required
4740 # The diagnosis changed in icc 8.0:
4741 # icc: Command line remark: option '-MP' not supported
4742 if (grep 'ignoring option' conftest.err ||
4743 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4744 am_cv_CC_dependencies_compiler_type=$depmode
4753 am_cv_CC_dependencies_compiler_type=none
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4758 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4759 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4762 test "x$enable_dependency_tracking" != xno \
4763 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4765 am__fastdepCC_FALSE='#'
4767 am__fastdepCC_TRUE='#'
4768 am__fastdepCC_FALSE=
4774 ac_cpp='$CPP $CPPFLAGS'
4775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4779 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4780 # On Suns, sometimes $CPP names a directory.
4781 if test -n "$CPP" && test -d "$CPP"; then
4784 if test -z "$CPP"; then
4785 if ${ac_cv_prog_CPP+:} false; then :
4786 $as_echo_n "(cached) " >&6
4788 # Double quotes because CPP needs to be expanded
4789 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4792 for ac_c_preproc_warn_flag in '' yes
4794 # Use a header file that comes with gcc, so configuring glibc
4795 # with a fresh cross-compiler works.
4796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4797 # <limits.h> exists even on freestanding compilers.
4798 # On the NeXT, cc -E runs the code through the compiler's parser,
4799 # not just through cpp. "Syntax error" is here to catch this case.
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4803 # include <limits.h>
4805 # include <assert.h>
4809 if ac_fn_c_try_cpp "$LINENO"; then :
4812 # Broken: fails on valid input.
4815 rm -f conftest.err conftest.i conftest.$ac_ext
4817 # OK, works on sane cases. Now check whether nonexistent headers
4818 # can be detected and how.
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821 #include <ac_nonexistent.h>
4823 if ac_fn_c_try_cpp "$LINENO"; then :
4824 # Broken: success on invalid input.
4827 # Passes both tests.
4831 rm -f conftest.err conftest.i conftest.$ac_ext
4834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4835 rm -f conftest.i conftest.err conftest.$ac_ext
4836 if $ac_preproc_ok; then :
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4849 $as_echo "$CPP" >&6; }
4851 for ac_c_preproc_warn_flag in '' yes
4853 # Use a header file that comes with gcc, so configuring glibc
4854 # with a fresh cross-compiler works.
4855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4856 # <limits.h> exists even on freestanding compilers.
4857 # On the NeXT, cc -E runs the code through the compiler's parser,
4858 # not just through cpp. "Syntax error" is here to catch this case.
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4862 # include <limits.h>
4864 # include <assert.h>
4868 if ac_fn_c_try_cpp "$LINENO"; then :
4871 # Broken: fails on valid input.
4874 rm -f conftest.err conftest.i conftest.$ac_ext
4876 # OK, works on sane cases. Now check whether nonexistent headers
4877 # can be detected and how.
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 #include <ac_nonexistent.h>
4882 if ac_fn_c_try_cpp "$LINENO"; then :
4883 # Broken: success on invalid input.
4886 # Passes both tests.
4890 rm -f conftest.err conftest.i conftest.$ac_ext
4893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4894 rm -f conftest.i conftest.err conftest.$ac_ext
4895 if $ac_preproc_ok; then :
4898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4900 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4901 See \`config.log' for more details" "$LINENO" 5; }
4905 ac_cpp='$CPP $CPPFLAGS'
4906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4912 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4913 if ${ac_cv_path_GREP+:} false; then :
4914 $as_echo_n "(cached) " >&6
4916 if test -z "$GREP"; then
4917 ac_path_GREP_found=false
4918 # Loop through the user's path and test for each of PROGNAME-LIST
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4923 test -z "$as_dir" && as_dir=.
4924 for ac_prog in grep ggrep; do
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4927 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4928 # Check for GNU ac_path_GREP and select it if it is found.
4929 # Check for GNU $ac_path_GREP
4930 case `"$ac_path_GREP" --version 2>&1` in
4932 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4935 $as_echo_n 0123456789 >"conftest.in"
4938 cat "conftest.in" "conftest.in" >"conftest.tmp"
4939 mv "conftest.tmp" "conftest.in"
4940 cp "conftest.in" "conftest.nl"
4941 $as_echo 'GREP' >> "conftest.nl"
4942 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4944 as_fn_arith $ac_count + 1 && ac_count=$as_val
4945 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4946 # Best one so far, save it but keep looking for a better one
4947 ac_cv_path_GREP="$ac_path_GREP"
4948 ac_path_GREP_max=$ac_count
4950 # 10*(2^10) chars as input seems more than enough
4951 test $ac_count -gt 10 && break
4953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4956 $ac_path_GREP_found && break 3
4961 if test -z "$ac_cv_path_GREP"; then
4962 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4965 ac_cv_path_GREP=$GREP
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4970 $as_echo "$ac_cv_path_GREP" >&6; }
4971 GREP="$ac_cv_path_GREP"
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4975 $as_echo_n "checking for egrep... " >&6; }
4976 if ${ac_cv_path_EGREP+:} false; then :
4977 $as_echo_n "(cached) " >&6
4979 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4980 then ac_cv_path_EGREP="$GREP -E"
4982 if test -z "$EGREP"; then
4983 ac_path_EGREP_found=false
4984 # Loop through the user's path and test for each of PROGNAME-LIST
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4989 test -z "$as_dir" && as_dir=.
4990 for ac_prog in egrep; do
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4993 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4994 # Check for GNU ac_path_EGREP and select it if it is found.
4995 # Check for GNU $ac_path_EGREP
4996 case `"$ac_path_EGREP" --version 2>&1` in
4998 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5001 $as_echo_n 0123456789 >"conftest.in"
5004 cat "conftest.in" "conftest.in" >"conftest.tmp"
5005 mv "conftest.tmp" "conftest.in"
5006 cp "conftest.in" "conftest.nl"
5007 $as_echo 'EGREP' >> "conftest.nl"
5008 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5010 as_fn_arith $ac_count + 1 && ac_count=$as_val
5011 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5012 # Best one so far, save it but keep looking for a better one
5013 ac_cv_path_EGREP="$ac_path_EGREP"
5014 ac_path_EGREP_max=$ac_count
5016 # 10*(2^10) chars as input seems more than enough
5017 test $ac_count -gt 10 && break
5019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5022 $ac_path_EGREP_found && break 3
5027 if test -z "$ac_cv_path_EGREP"; then
5028 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5031 ac_cv_path_EGREP=$EGREP
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5037 $as_echo "$ac_cv_path_EGREP" >&6; }
5038 EGREP="$ac_cv_path_EGREP"
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5042 $as_echo_n "checking for ANSI C header files... " >&6; }
5043 if ${ac_cv_header_stdc+:} false; then :
5044 $as_echo_n "(cached) " >&6
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5061 if ac_fn_c_try_compile "$LINENO"; then :
5062 ac_cv_header_stdc=yes
5064 ac_cv_header_stdc=no
5066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068 if test $ac_cv_header_stdc = yes; then
5069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5076 $EGREP "memchr" >/dev/null 2>&1; then :
5079 ac_cv_header_stdc=no
5085 if test $ac_cv_header_stdc = yes; then
5086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5093 $EGREP "free" >/dev/null 2>&1; then :
5096 ac_cv_header_stdc=no
5102 if test $ac_cv_header_stdc = yes; then
5103 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5104 if test "$cross_compiling" = yes; then :
5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108 /* end confdefs.h. */
5111 #if ((' ' & 0x0FF) == 0x020)
5112 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5113 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5115 # define ISLOWER(c) \
5116 (('a' <= (c) && (c) <= 'i') \
5117 || ('j' <= (c) && (c) <= 'r') \
5118 || ('s' <= (c) && (c) <= 'z'))
5119 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5122 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5127 for (i = 0; i < 256; i++)
5128 if (XOR (islower (i), ISLOWER (i))
5129 || toupper (i) != TOUPPER (i))
5134 if ac_fn_c_try_run "$LINENO"; then :
5137 ac_cv_header_stdc=no
5139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5140 conftest.$ac_objext conftest.beam conftest.$ac_ext
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5146 $as_echo "$ac_cv_header_stdc" >&6; }
5147 if test $ac_cv_header_stdc = yes; then
5149 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5153 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5154 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5155 inttypes.h stdint.h unistd.h
5157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5158 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5160 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5161 cat >>confdefs.h <<_ACEOF
5162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5173 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5174 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5181 if test "$MINIX" = yes; then
5183 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5186 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5189 $as_echo "#define _MINIX 1" >>confdefs.h
5196 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5203 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5204 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5205 $as_echo_n "(cached) " >&6
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5210 # define __EXTENSIONS__ 1
5211 $ac_includes_default
5220 if ac_fn_c_try_compile "$LINENO"; then :
5221 ac_cv_safe_to_define___extensions__=yes
5223 ac_cv_safe_to_define___extensions__=no
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5228 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5229 test $ac_cv_safe_to_define___extensions__ = yes &&
5230 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5232 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5234 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5236 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5238 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5241 if test "x$CC" != xcc; then
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5243 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5246 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5248 set dummy $CC; ac_cc=`$as_echo "$2" |
5249 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5250 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5251 $as_echo_n "(cached) " >&6
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5264 # Make sure it works both with $CC and with simple cc.
5265 # We do the test twice because some compilers refuse to overwrite an
5266 # existing .o file with -o, though they will create one.
5267 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5269 if { { case "(($ac_try" in
5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271 *) ac_try_echo=$ac_try;;
5273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5274 $as_echo "$ac_try_echo"; } >&5
5275 (eval "$ac_try") 2>&5
5277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5278 test $ac_status = 0; } &&
5279 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281 *) ac_try_echo=$ac_try;;
5283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5284 $as_echo "$ac_try_echo"; } >&5
5285 (eval "$ac_try") 2>&5
5287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5288 test $ac_status = 0; };
5290 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5291 if test "x$CC" != xcc; then
5292 # Test first that cc exists at all.
5293 if { ac_try='cc -c conftest.$ac_ext >&5'
5294 { { case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5299 $as_echo "$ac_try_echo"; } >&5
5300 (eval "$ac_try") 2>&5
5302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5303 test $ac_status = 0; }; }; then
5304 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5306 if { { case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5311 $as_echo "$ac_try_echo"; } >&5
5312 (eval "$ac_try") 2>&5
5314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5315 test $ac_status = 0; } &&
5316 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318 *) ac_try_echo=$ac_try;;
5320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5321 $as_echo "$ac_try_echo"; } >&5
5322 (eval "$ac_try") 2>&5
5324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5325 test $ac_status = 0; };
5330 # cc exists but doesn't like -o.
5331 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5336 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5338 rm -f core conftest*
5341 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5343 $as_echo "yes" >&6; }
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5348 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5353 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5354 if ${ac_cv_prog_cc_c89+:} false; then :
5355 $as_echo_n "(cached) " >&6
5357 ac_cv_prog_cc_c89=no
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5363 #include <sys/types.h>
5364 #include <sys/stat.h>
5365 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5366 struct buf { int x; };
5367 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5368 static char *e (p, i)
5374 static char *f (char * (*g) (char **, int), char **p, ...)
5379 s = g (p, va_arg (v,int));
5384 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5385 function prototypes and stuff, but not '\xHH' hex character constants.
5386 These don't provoke an error unfortunately, instead are silently treated
5387 as 'x'. The following induces an error, until -std is added to get
5388 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5389 array size at least. It's necessary to write '\x00'==0 to get something
5390 that's true only with -std. */
5391 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5393 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5394 inside strings and character constants. */
5396 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5398 int test (int i, double x);
5399 struct s1 {int (*f) (int a);};
5400 struct s2 {int (*f) (double a);};
5401 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5407 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5412 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5413 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5415 CC="$ac_save_CC $ac_arg"
5416 if ac_fn_c_try_compile "$LINENO"; then :
5417 ac_cv_prog_cc_c89=$ac_arg
5419 rm -f core conftest.err conftest.$ac_objext
5420 test "x$ac_cv_prog_cc_c89" != "xno" && break
5422 rm -f conftest.$ac_ext
5427 case "x$ac_cv_prog_cc_c89" in
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5430 $as_echo "none needed" >&6; } ;;
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5433 $as_echo "unsupported" >&6; } ;;
5435 CC="$CC $ac_cv_prog_cc_c89"
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5437 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5439 if test "x$ac_cv_prog_cc_c89" != xno; then :
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5445 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5446 if ${ac_cv_prog_cc_c99+:} false; then :
5447 $as_echo_n "(cached) " >&6
5449 ac_cv_prog_cc_c99=no
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5454 #include <stdbool.h>
5459 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5460 #define debug(...) fprintf (stderr, __VA_ARGS__)
5461 #define showlist(...) puts (#__VA_ARGS__)
5462 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5464 test_varargs_macros (void)
5469 debug ("X = %d\n", x);
5470 showlist (The first, second, and third items.);
5471 report (x>y, "x is %d but y is %d", x, y);
5474 // Check long long types.
5475 #define BIG64 18446744073709551615ull
5476 #define BIG32 4294967295ul
5477 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5479 your preprocessor is broken;
5483 your preprocessor is broken;
5485 static long long int bignum = -9223372036854775807LL;
5486 static unsigned long long int ubignum = BIG64;
5488 struct incomplete_array
5496 const wchar_t *name;
5500 typedef const char *ccp;
5503 test_restrict (ccp restrict text)
5505 // See if C++-style comments work.
5506 // Iterate through items via the restricted pointer.
5507 // Also check for declarations in for loops.
5508 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5513 // Check varargs and va_copy.
5515 test_varargs (const char *format, ...)
5518 va_start (args, format);
5520 va_copy (args_copy, args);
5531 str = va_arg (args_copy, const char *);
5534 number = va_arg (args_copy, int);
5537 fnumber = va_arg (args_copy, double);
5552 _Bool success = false;
5555 if (test_restrict ("String literal") == 0)
5557 char *restrict newvar = "Another string";
5560 test_varargs ("s, d' f .", "string", 65, 34.234);
5561 test_varargs_macros ();
5563 // Check flexible array members.
5564 struct incomplete_array *ia =
5565 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5567 for (int i = 0; i < ia->datasize; ++i)
5568 ia->data[i] = i * 1.234;
5570 // Check named initializers.
5571 struct named_init ni = {
5573 .name = L"Test wide string",
5574 .average = 543.34343,
5579 int dynamic_array[ni.number];
5580 dynamic_array[ni.number - 1] = 543;
5582 // work around unused variable warnings
5583 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5584 || dynamic_array[ni.number - 1] != 543);
5590 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5592 CC="$ac_save_CC $ac_arg"
5593 if ac_fn_c_try_compile "$LINENO"; then :
5594 ac_cv_prog_cc_c99=$ac_arg
5596 rm -f core conftest.err conftest.$ac_objext
5597 test "x$ac_cv_prog_cc_c99" != "xno" && break
5599 rm -f conftest.$ac_ext
5604 case "x$ac_cv_prog_cc_c99" in
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5607 $as_echo "none needed" >&6; } ;;
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5610 $as_echo "unsupported" >&6; } ;;
5612 CC="$CC $ac_cv_prog_cc_c99"
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5614 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5616 if test "x$ac_cv_prog_cc_c99" != xno; then :
5626 ac_cpp='$CPP $CPPFLAGS'
5627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5630 if test -n "$ac_tool_prefix"; then
5631 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5632 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if ${ac_cv_prog_CC+:} false; then :
5636 $as_echo_n "(cached) " >&6
5638 if test -n "$CC"; then
5639 ac_cv_prog_CC="$CC" # Let the user override the test.
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5648 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 if test -n "$CC"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5661 $as_echo "$CC" >&6; }
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5669 if test -z "$ac_cv_prog_CC"; then
5671 # Extract the first word of "gcc", so it can be a program name with args.
5672 set dummy gcc; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5676 $as_echo_n "(cached) " >&6
5678 if test -n "$ac_ct_CC"; then
5679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5688 ac_cv_prog_ac_ct_CC="gcc"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5699 if test -n "$ac_ct_CC"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5701 $as_echo "$ac_ct_CC" >&6; }
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5707 if test "x$ac_ct_CC" = x; then
5710 case $cross_compiling:$ac_tool_warned in
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5714 ac_tool_warned=yes ;;
5722 if test -z "$CC"; then
5723 if test -n "$ac_tool_prefix"; then
5724 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5725 set dummy ${ac_tool_prefix}cc; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if ${ac_cv_prog_CC+:} false; then :
5729 $as_echo_n "(cached) " >&6
5731 if test -n "$CC"; then
5732 ac_cv_prog_CC="$CC" # Let the user override the test.
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5741 ac_cv_prog_CC="${ac_tool_prefix}cc"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 if test -n "$CC"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5754 $as_echo "$CC" >&6; }
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5763 if test -z "$CC"; then
5764 # Extract the first word of "cc", so it can be a program name with args.
5765 set dummy cc; 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.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5782 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5783 ac_prog_rejected=yes
5787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 if test $ac_prog_rejected = yes; then
5795 # We found a bogon in the path, so make sure we never use it.
5796 set dummy $ac_cv_prog_CC
5798 if test $# != 0; then
5799 # We chose a different compiler from the bogus one.
5800 # However, it has the same basename, so the bogon will be chosen
5801 # first if we set CC to just the basename; use the full file name.
5803 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5809 if test -n "$CC"; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5811 $as_echo "$CC" >&6; }
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5819 if test -z "$CC"; then
5820 if test -n "$ac_tool_prefix"; then
5821 for ac_prog in cl.exe
5823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826 $as_echo_n "checking for $ac_word... " >&6; }
5827 if ${ac_cv_prog_CC+:} false; then :
5828 $as_echo_n "(cached) " >&6
5830 if test -n "$CC"; then
5831 ac_cv_prog_CC="$CC" # Let the user override the test.
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5840 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 if test -n "$CC"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5853 $as_echo "$CC" >&6; }
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856 $as_echo "no" >&6; }
5860 test -n "$CC" && break
5863 if test -z "$CC"; then
5865 for ac_prog in cl.exe
5867 # Extract the first word of "$ac_prog", so it can be a program name with args.
5868 set dummy $ac_prog; ac_word=$2
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5870 $as_echo_n "checking for $ac_word... " >&6; }
5871 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5872 $as_echo_n "(cached) " >&6
5874 if test -n "$ac_ct_CC"; then
5875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5884 ac_cv_prog_ac_ct_CC="$ac_prog"
5885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5895 if test -n "$ac_ct_CC"; then
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5897 $as_echo "$ac_ct_CC" >&6; }
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 $as_echo "no" >&6; }
5904 test -n "$ac_ct_CC" && break
5907 if test "x$ac_ct_CC" = x; then
5910 case $cross_compiling:$ac_tool_warned in
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5914 ac_tool_warned=yes ;;
5923 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5925 as_fn_error $? "no acceptable C compiler found in \$PATH
5926 See \`config.log' for more details" "$LINENO" 5; }
5928 # Provide some information about the compiler.
5929 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5932 for ac_option in --version -v -V -qversion; do
5933 { { ac_try="$ac_compiler $ac_option >&5"
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5939 $as_echo "$ac_try_echo"; } >&5
5940 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5942 if test -s conftest.err; then
5944 ... rest of stderr output deleted ...
5945 10q' conftest.err >conftest.er1
5946 cat conftest.er1 >&5
5948 rm -f conftest.er1 conftest.err
5949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5950 test $ac_status = 0; }
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5954 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5955 if ${ac_cv_c_compiler_gnu+:} false; then :
5956 $as_echo_n "(cached) " >&6
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5972 if ac_fn_c_try_compile "$LINENO"; then :
5977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5982 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5983 if test $ac_compiler_gnu = yes; then
5988 ac_test_CFLAGS=${CFLAGS+set}
5989 ac_save_CFLAGS=$CFLAGS
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5991 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5992 if ${ac_cv_prog_cc_g+:} false; then :
5993 $as_echo_n "(cached) " >&6
5995 ac_save_c_werror_flag=$ac_c_werror_flag
5996 ac_c_werror_flag=yes
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6010 if ac_fn_c_try_compile "$LINENO"; then :
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6025 if ac_fn_c_try_compile "$LINENO"; then :
6028 ac_c_werror_flag=$ac_save_c_werror_flag
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6041 if ac_fn_c_try_compile "$LINENO"; then :
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 ac_c_werror_flag=$ac_save_c_werror_flag
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6052 $as_echo "$ac_cv_prog_cc_g" >&6; }
6053 if test "$ac_test_CFLAGS" = set; then
6054 CFLAGS=$ac_save_CFLAGS
6055 elif test $ac_cv_prog_cc_g = yes; then
6056 if test "$GCC" = yes; then
6062 if test "$GCC" = yes; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6069 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6070 if ${ac_cv_prog_cc_c89+:} false; then :
6071 $as_echo_n "(cached) " >&6
6073 ac_cv_prog_cc_c89=no
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6079 #include <sys/types.h>
6080 #include <sys/stat.h>
6081 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6082 struct buf { int x; };
6083 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6084 static char *e (p, i)
6090 static char *f (char * (*g) (char **, int), char **p, ...)
6095 s = g (p, va_arg (v,int));
6100 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6101 function prototypes and stuff, but not '\xHH' hex character constants.
6102 These don't provoke an error unfortunately, instead are silently treated
6103 as 'x'. The following induces an error, until -std is added to get
6104 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6105 array size at least. It's necessary to write '\x00'==0 to get something
6106 that's true only with -std. */
6107 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6109 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6110 inside strings and character constants. */
6112 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6114 int test (int i, double x);
6115 struct s1 {int (*f) (int a);};
6116 struct s2 {int (*f) (double a);};
6117 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6123 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6128 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6129 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6131 CC="$ac_save_CC $ac_arg"
6132 if ac_fn_c_try_compile "$LINENO"; then :
6133 ac_cv_prog_cc_c89=$ac_arg
6135 rm -f core conftest.err conftest.$ac_objext
6136 test "x$ac_cv_prog_cc_c89" != "xno" && break
6138 rm -f conftest.$ac_ext
6143 case "x$ac_cv_prog_cc_c89" in
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6146 $as_echo "none needed" >&6; } ;;
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6149 $as_echo "unsupported" >&6; } ;;
6151 CC="$CC $ac_cv_prog_cc_c89"
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6153 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6155 if test "x$ac_cv_prog_cc_c89" != xno; then :
6160 ac_cpp='$CPP $CPPFLAGS'
6161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6165 depcc="$CC" am_compiler_list=
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6168 $as_echo_n "checking dependency style of $depcc... " >&6; }
6169 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6170 $as_echo_n "(cached) " >&6
6172 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6173 # We make a subdir and do the tests there. Otherwise we can end up
6174 # making bogus files that we don't know about and never remove. For
6175 # instance it was reported that on HP-UX the gcc test will end up
6176 # making a dummy file named `D' -- because `-MD' means `put the output
6179 # Copy depcomp to subdir because otherwise we won't find it if we're
6180 # using a relative directory.
6181 cp "$am_depcomp" conftest.dir
6183 # We will build objects and dependencies in a subdirectory because
6184 # it helps to detect inapplicable dependency modes. For instance
6185 # both Tru64's cc and ICC support -MD to output dependencies as a
6186 # side effect of compilation, but ICC will put the dependencies in
6187 # the current directory while Tru64 will put them in the object
6191 am_cv_CC_dependencies_compiler_type=none
6192 if test "$am_compiler_list" = ""; then
6193 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6196 case " $depcc " in #(
6197 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6200 for depmode in $am_compiler_list; do
6201 # Setup a source with many dependencies, because some compilers
6202 # like to wrap large dependency lists on column 80 (with \), and
6203 # we should not choose a depcomp mode which is confused by this.
6205 # We need to recreate these files for each test, as the compiler may
6206 # overwrite some of them when testing with obscure command lines.
6207 # This happens at least with the AIX C compiler.
6209 for i in 1 2 3 4 5 6; do
6210 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6211 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6212 # Solaris 8's {/usr,}/bin/sh.
6213 touch sub/conftst$i.h
6215 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6217 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6218 # mode. It turns out that the SunPro C++ compiler does not properly
6219 # handle `-M -o', and we need to detect this. Also, some Intel
6220 # versions had trouble with output in subdirs
6221 am__obj=sub/conftest.${OBJEXT-o}
6222 am__minus_obj="-o $am__obj"
6225 # This depmode causes a compiler race in universal mode.
6226 test "$am__universal" = false || continue
6229 # after this tag, mechanisms are not by side-effect, so they'll
6230 # only be used when explicitly requested
6231 if test "x$enable_dependency_tracking" = xyes; then
6237 msvisualcpp | msvcmsys)
6238 # This compiler won't grok `-c -o', but also, the minuso test has
6239 # not run yet. These depmodes are late enough in the game, and
6240 # so weak that their functioning should not be impacted.
6241 am__obj=conftest.${OBJEXT-o}
6246 if depmode=$depmode \
6247 source=sub/conftest.c object=$am__obj \
6248 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6249 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6250 >/dev/null 2>conftest.err &&
6251 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6252 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6253 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6254 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6255 # icc doesn't choke on unknown options, it will just issue warnings
6256 # or remarks (even with -Werror). So we grep stderr for any message
6257 # that says an option was ignored or not supported.
6258 # When given -MP, icc 7.0 and 7.1 complain thusly:
6259 # icc: Command line warning: ignoring option '-M'; no argument required
6260 # The diagnosis changed in icc 8.0:
6261 # icc: Command line remark: option '-MP' not supported
6262 if (grep 'ignoring option' conftest.err ||
6263 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6264 am_cv_CC_dependencies_compiler_type=$depmode
6273 am_cv_CC_dependencies_compiler_type=none
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6278 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6279 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6282 test "x$enable_dependency_tracking" != xno \
6283 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6285 am__fastdepCC_FALSE='#'
6287 am__fastdepCC_TRUE='#'
6288 am__fastdepCC_FALSE=
6292 # Ralf Wildenhues: With per-target flags we need CC_C_O
6293 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
6294 # FIXME: we rely on the cache variable name because
6295 # there is no other way.
6297 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6298 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6299 if test "$am_t" != yes; then
6300 # Losing compiler, so override with the script.
6301 # FIXME: It is wrong to rewrite CC.
6302 # But if we don't then we get into trouble of one sort or another.
6303 # A longer-term fix would be to have automake use am__CC in this case,
6304 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6305 CC="$am_aux_dir/compile $CC"
6309 if test $ac_cv_c_compiler_gnu = yes; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6311 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6312 if ${ac_cv_prog_gcc_traditional+:} false; then :
6313 $as_echo_n "(cached) " >&6
6315 ac_pattern="Autoconf.*'x'"
6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h. */
6321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6323 ac_cv_prog_gcc_traditional=yes
6325 ac_cv_prog_gcc_traditional=no
6330 if test $ac_cv_prog_gcc_traditional = no; then
6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332 /* end confdefs.h. */
6336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6337 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6338 ac_cv_prog_gcc_traditional=yes
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6345 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6346 if test $ac_cv_prog_gcc_traditional = yes; then
6347 CC="$CC -traditional"
6364 case "$ac_cv_prog_cc_c89" in
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6367 version 4.2.5 and higher." >&5
6368 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6369 version 4.2.5 and higher." >&2;}
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
6374 $as_echo_n "checking if $CC can handle #warning... " >&6; }
6375 if ${ntp_cv_cpp_warning+:} false; then :
6376 $as_echo_n "(cached) " >&6
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6389 if ac_fn_c_try_compile "$LINENO"; then :
6390 ntp_cv_cpp_warning=yes
6392 ntp_cv_cpp_warning=no
6395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
6399 $as_echo "$ntp_cv_cpp_warning" >&6; }
6400 case "$ntp_cv_cpp_warning" in
6403 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
6408 $as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
6409 if ${ntp_cv_cc_attribute+:} false; then :
6410 $as_echo_n "(cached) " >&6
6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6418 void foo(void) __attribute__((__noreturn__));
6424 if ac_fn_c_try_compile "$LINENO"; then :
6425 ntp_cv_cc_attribute=yes
6427 ntp_cv_cc_attribute=no
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
6434 $as_echo "$ntp_cv_cc_attribute" >&6; }
6435 case "$ntp_cv_cc_attribute" in
6438 $as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
6445 SAVED_CFLAGS="$CFLAGS"
6446 CFLAGS="$CFLAGS -Wstrict-overflow"
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
6448 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
6449 if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
6450 $as_echo_n "(cached) " >&6
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6463 if ac_fn_c_try_compile "$LINENO"; then :
6464 ntp_cv_gcc_Wstrict_overflow=yes
6466 ntp_cv_gcc_Wstrict_overflow=no
6469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
6473 $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
6475 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
6478 CFLAGS="$SAVED_CFLAGS -Winit-self"
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
6480 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
6481 if ${ntp_cv_gcc_Winit_self+:} false; then :
6482 $as_echo_n "(cached) " >&6
6485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486 /* end confdefs.h. */
6496 if ac_fn_c_try_compile "$LINENO"; then :
6497 ntp_cv_gcc_Winit_self=yes
6499 ntp_cv_gcc_Winit_self=no
6502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
6507 $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
6508 CFLAGS="$SAVED_CFLAGS"
6509 { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
6511 # $ntp_cv_gcc_Winit_self is tested later to add the
6512 # flag to CFLAGS_NTP.
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
6515 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
6516 if ${ntp_cv_gc_sections_runs+:} false; then :
6517 $as_echo_n "(cached) " >&6
6520 origCFLAGS="$CFLAGS"
6521 CFLAGS="$CFLAGS -Wl,--gc-sections"
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6535 int read_success_once;
6537 fpC = fopen("conftest.c", "r");
6541 cch = fread(buf, sizeof(buf), 1, fpC);
6542 read_success_once |= (0 != cch);
6544 if (!read_success_once)
6548 if (0 != fclose(fpC))
6558 if ac_fn_c_try_link "$LINENO"; then :
6560 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
6561 ntp_cv_gc_sections_runs=no
6563 ntp_cv_gc_sections_runs=no
6564 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
6568 ntp_cv_gc_sections_runs=no
6571 rm -f core conftest.err conftest.$ac_objext \
6572 conftest$ac_exeext conftest.$ac_ext
6573 CFLAGS="$origCFLAGS"
6574 { origCFLAGS=; unset origCFLAGS;}
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
6579 $as_echo "$ntp_cv_gc_sections_runs" >&6; }
6580 case "$ntp_cv_gc_sections_runs" in
6582 LDADD_LIBNTP="-Wl,--gc-sections"
6583 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
6589 CFLAGS_NTP="$CFLAGS_NTP -Wall"
6590 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
6591 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
6592 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
6593 # CFLAGS_NTP="$CFLAGS_NTP -Werror"
6594 # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
6595 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
6596 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
6597 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
6598 CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
6599 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
6600 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
6601 case "$ntp_cv_gcc_Winit_self" in
6603 CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
6605 case "$ntp_cv_gcc_Wstrict_overflow" in
6607 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
6609 # -W[no-]strict-prototypes might be added by NTP_OPENSSL
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6614 $as_echo_n "checking additional compiler flags... " >&6; }
6615 # allow ntp_os_flags to be preset to skip this stuff
6616 case "${ntp_os_cflags+set}" in
6625 # turn on additional headers
6626 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6629 # avoid circular dependencies in yp headers, and more
6630 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6631 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
6634 # XXX Only verified thru AIX6.
6635 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
6636 # avoid circular dependencies in yp headers
6637 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
6638 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
6639 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
6640 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
6641 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
6644 ntp_os_cflags="-DSYS_AMIGA"
6646 darwin*|macosx*|rhapsody*)
6647 ntp_os_cflags="-D_P1003_1B_VISIBLE"
6649 hpux10.*) # at least for hppa2.0-hp-hpux10.20
6654 # use Ansi compiler on HPUX, and some -Wp magic
6655 ntp_os_cflags="-Ae -Wp,-H18816"
6658 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
6665 # use Ansi compiler on HPUX
6668 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
6673 # do not use 64-bit compiler
6674 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
6678 ntp_os_cflags="-posix"
6680 solaris1*|solaris2.[0-5]|solaris2.5.*)
6682 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
6685 # turn on 64-bit file offset interface
6686 ntp_os_cflags="-D_LARGEFILE64_SOURCE"
6693 # Quick and dirty sanity check
6694 case "$VX_KERNEL" in
6696 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
6698 ntp_os_cflags="-DSYS_VXWORKS"
6703 case "$ntp_os_flags" in
6705 ntp_os_cflags_msg="none needed"
6708 ntp_os_cflags_msg="$ntp_os_cflags"
6710 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
6712 $as_echo "$ntp_os_cflags_msg" >&6; }
6713 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6718 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6719 if ${ac_cv_c_bigendian+:} false; then :
6720 $as_echo_n "(cached) " >&6
6722 ac_cv_c_bigendian=unknown
6723 # See if we're dealing with a universal compiler.
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6726 #ifndef __APPLE_CC__
6727 not a universal capable compiler
6732 if ac_fn_c_try_compile "$LINENO"; then :
6734 # Check for potential -arch flags. It is not universal unless
6735 # there are at least two -arch flags with different values.
6738 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6739 if test -n "$ac_prev"; then
6741 i?86 | x86_64 | ppc | ppc64)
6742 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6745 ac_cv_c_bigendian=universal
6751 elif test "x$ac_word" = "x-arch"; then
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 if test $ac_cv_c_bigendian = unknown; then
6758 # See if sys/param.h defines the BYTE_ORDER macro.
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6761 #include <sys/types.h>
6762 #include <sys/param.h>
6767 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6768 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6777 if ac_fn_c_try_compile "$LINENO"; then :
6778 # It does; now see whether it defined to BIG_ENDIAN or not.
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781 #include <sys/types.h>
6782 #include <sys/param.h>
6787 #if BYTE_ORDER != BIG_ENDIAN
6795 if ac_fn_c_try_compile "$LINENO"; then :
6796 ac_cv_c_bigendian=yes
6798 ac_cv_c_bigendian=no
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804 if test $ac_cv_c_bigendian = unknown; then
6805 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6813 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6821 if ac_fn_c_try_compile "$LINENO"; then :
6822 # It does; now see whether it defined to _BIG_ENDIAN or not.
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6838 if ac_fn_c_try_compile "$LINENO"; then :
6839 ac_cv_c_bigendian=yes
6841 ac_cv_c_bigendian=no
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 if test $ac_cv_c_bigendian = unknown; then
6848 # Compile a test program.
6849 if test "$cross_compiling" = yes; then :
6850 # Try to guess by grepping values from an object file.
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 short int ascii_mm[] =
6854 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6855 short int ascii_ii[] =
6856 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6857 int use_ascii (int i) {
6858 return ascii_mm[i] + ascii_ii[i];
6860 short int ebcdic_ii[] =
6861 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6862 short int ebcdic_mm[] =
6863 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6864 int use_ebcdic (int i) {
6865 return ebcdic_mm[i] + ebcdic_ii[i];
6872 return use_ascii (foo) == use_ebcdic (foo);
6877 if ac_fn_c_try_compile "$LINENO"; then :
6878 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6879 ac_cv_c_bigendian=yes
6881 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6882 if test "$ac_cv_c_bigendian" = unknown; then
6883 ac_cv_c_bigendian=no
6885 # finding both strings is unlikely to happen, but who knows?
6886 ac_cv_c_bigendian=unknown
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894 $ac_includes_default
6899 /* Are we little or big endian? From Harbison&Steele. */
6903 char c[sizeof (long int)];
6906 return u.c[sizeof (long int) - 1] == 1;
6912 if ac_fn_c_try_run "$LINENO"; then :
6913 ac_cv_c_bigendian=no
6915 ac_cv_c_bigendian=yes
6917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6918 conftest.$ac_objext conftest.beam conftest.$ac_ext
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6924 $as_echo "$ac_cv_c_bigendian" >&6; }
6925 case $ac_cv_c_bigendian in #(
6927 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6933 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6937 as_fn_error $? "unknown endianness
6938 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6942 $as_echo_n "checking for working volatile... " >&6; }
6943 if ${ac_cv_c_volatile+:} false; then :
6944 $as_echo_n "(cached) " >&6
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h. */
6954 int * volatile y = (int *) 0;
6960 if ac_fn_c_try_compile "$LINENO"; then :
6961 ac_cv_c_volatile=yes
6965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6968 $as_echo "$ac_cv_c_volatile" >&6; }
6969 if test $ac_cv_c_volatile = no; then
6971 $as_echo "#define volatile /**/" >>confdefs.h
6976 ac_cpp='$CPP $CPPFLAGS'
6977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6981 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6982 # On Suns, sometimes $CPP names a directory.
6983 if test -n "$CPP" && test -d "$CPP"; then
6986 if test -z "$CPP"; then
6987 if ${ac_cv_prog_CPP+:} false; then :
6988 $as_echo_n "(cached) " >&6
6990 # Double quotes because CPP needs to be expanded
6991 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6994 for ac_c_preproc_warn_flag in '' yes
6996 # Use a header file that comes with gcc, so configuring glibc
6997 # with a fresh cross-compiler works.
6998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6999 # <limits.h> exists even on freestanding compilers.
7000 # On the NeXT, cc -E runs the code through the compiler's parser,
7001 # not just through cpp. "Syntax error" is here to catch this case.
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7005 # include <limits.h>
7007 # include <assert.h>
7011 if ac_fn_c_try_cpp "$LINENO"; then :
7014 # Broken: fails on valid input.
7017 rm -f conftest.err conftest.i conftest.$ac_ext
7019 # OK, works on sane cases. Now check whether nonexistent headers
7020 # can be detected and how.
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7023 #include <ac_nonexistent.h>
7025 if ac_fn_c_try_cpp "$LINENO"; then :
7026 # Broken: success on invalid input.
7029 # Passes both tests.
7033 rm -f conftest.err conftest.i conftest.$ac_ext
7036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7037 rm -f conftest.i conftest.err conftest.$ac_ext
7038 if $ac_preproc_ok; then :
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7051 $as_echo "$CPP" >&6; }
7053 for ac_c_preproc_warn_flag in '' yes
7055 # Use a header file that comes with gcc, so configuring glibc
7056 # with a fresh cross-compiler works.
7057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7058 # <limits.h> exists even on freestanding compilers.
7059 # On the NeXT, cc -E runs the code through the compiler's parser,
7060 # not just through cpp. "Syntax error" is here to catch this case.
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7064 # include <limits.h>
7066 # include <assert.h>
7070 if ac_fn_c_try_cpp "$LINENO"; then :
7073 # Broken: fails on valid input.
7076 rm -f conftest.err conftest.i conftest.$ac_ext
7078 # OK, works on sane cases. Now check whether nonexistent headers
7079 # can be detected and how.
7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7082 #include <ac_nonexistent.h>
7084 if ac_fn_c_try_cpp "$LINENO"; then :
7085 # Broken: success on invalid input.
7088 # Passes both tests.
7092 rm -f conftest.err conftest.i conftest.$ac_ext
7095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7096 rm -f conftest.i conftest.err conftest.$ac_ext
7097 if $ac_preproc_ok; then :
7100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7102 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7103 See \`config.log' for more details" "$LINENO" 5; }
7107 ac_cpp='$CPP $CPPFLAGS'
7108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7115 ac_cpp='$CPP $CPPFLAGS'
7116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7120 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7121 # On Suns, sometimes $CPP names a directory.
7122 if test -n "$CPP" && test -d "$CPP"; then
7125 if test -z "$CPP"; then
7126 if ${ac_cv_prog_CPP+:} false; then :
7127 $as_echo_n "(cached) " >&6
7129 # Double quotes because CPP needs to be expanded
7130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7133 for ac_c_preproc_warn_flag in '' yes
7135 # Use a header file that comes with gcc, so configuring glibc
7136 # with a fresh cross-compiler works.
7137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7138 # <limits.h> exists even on freestanding compilers.
7139 # On the NeXT, cc -E runs the code through the compiler's parser,
7140 # not just through cpp. "Syntax error" is here to catch this case.
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7144 # include <limits.h>
7146 # include <assert.h>
7150 if ac_fn_c_try_cpp "$LINENO"; then :
7153 # Broken: fails on valid input.
7156 rm -f conftest.err conftest.i conftest.$ac_ext
7158 # OK, works on sane cases. Now check whether nonexistent headers
7159 # can be detected and how.
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7162 #include <ac_nonexistent.h>
7164 if ac_fn_c_try_cpp "$LINENO"; then :
7165 # Broken: success on invalid input.
7168 # Passes both tests.
7172 rm -f conftest.err conftest.i conftest.$ac_ext
7175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7176 rm -f conftest.i conftest.err conftest.$ac_ext
7177 if $ac_preproc_ok; then :
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7190 $as_echo "$CPP" >&6; }
7192 for ac_c_preproc_warn_flag in '' yes
7194 # Use a header file that comes with gcc, so configuring glibc
7195 # with a fresh cross-compiler works.
7196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7197 # <limits.h> exists even on freestanding compilers.
7198 # On the NeXT, cc -E runs the code through the compiler's parser,
7199 # not just through cpp. "Syntax error" is here to catch this case.
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7203 # include <limits.h>
7205 # include <assert.h>
7209 if ac_fn_c_try_cpp "$LINENO"; then :
7212 # Broken: fails on valid input.
7215 rm -f conftest.err conftest.i conftest.$ac_ext
7217 # OK, works on sane cases. Now check whether nonexistent headers
7218 # can be detected and how.
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7221 #include <ac_nonexistent.h>
7223 if ac_fn_c_try_cpp "$LINENO"; then :
7224 # Broken: success on invalid input.
7227 # Passes both tests.
7231 rm -f conftest.err conftest.i conftest.$ac_ext
7234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7235 rm -f conftest.i conftest.err conftest.$ac_ext
7236 if $ac_preproc_ok; then :
7239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7241 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7242 See \`config.log' for more details" "$LINENO" 5; }
7246 ac_cpp='$CPP $CPPFLAGS'
7247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252 ac_cpp='$CXXCPP $CPPFLAGS'
7253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7256 if test -z "$CXX"; then
7257 if test -n "$CCC"; then
7260 if test -n "$ac_tool_prefix"; then
7261 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if ${ac_cv_prog_CXX+:} false; then :
7268 $as_echo_n "(cached) " >&6
7270 if test -n "$CXX"; then
7271 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 if test -n "$CXX"; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7293 $as_echo "$CXX" >&6; }
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7300 test -n "$CXX" && break
7303 if test -z "$CXX"; then
7305 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7307 # Extract the first word of "$ac_prog", so it can be a program name with args.
7308 set dummy $ac_prog; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7312 $as_echo_n "(cached) " >&6
7314 if test -n "$ac_ct_CXX"; then
7315 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7324 ac_cv_prog_ac_ct_CXX="$ac_prog"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7335 if test -n "$ac_ct_CXX"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7337 $as_echo "$ac_ct_CXX" >&6; }
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7344 test -n "$ac_ct_CXX" && break
7347 if test "x$ac_ct_CXX" = x; then
7350 case $cross_compiling:$ac_tool_warned in
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7354 ac_tool_warned=yes ;;
7362 # Provide some information about the compiler.
7363 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7366 for ac_option in --version -v -V -qversion; do
7367 { { ac_try="$ac_compiler $ac_option >&5"
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7373 $as_echo "$ac_try_echo"; } >&5
7374 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7376 if test -s conftest.err; then
7378 ... rest of stderr output deleted ...
7379 10q' conftest.err >conftest.er1
7380 cat conftest.er1 >&5
7382 rm -f conftest.er1 conftest.err
7383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7384 test $ac_status = 0; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7388 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7389 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7390 $as_echo_n "(cached) " >&6
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7406 if ac_fn_cxx_try_compile "$LINENO"; then :
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7416 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7417 if test $ac_compiler_gnu = yes; then
7422 ac_test_CXXFLAGS=${CXXFLAGS+set}
7423 ac_save_CXXFLAGS=$CXXFLAGS
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7425 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7426 if ${ac_cv_prog_cxx_g+:} false; then :
7427 $as_echo_n "(cached) " >&6
7429 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7430 ac_cxx_werror_flag=yes
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7444 if ac_fn_cxx_try_compile "$LINENO"; then :
7445 ac_cv_prog_cxx_g=yes
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7459 if ac_fn_cxx_try_compile "$LINENO"; then :
7462 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7475 if ac_fn_cxx_try_compile "$LINENO"; then :
7476 ac_cv_prog_cxx_g=yes
7478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7486 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7487 if test "$ac_test_CXXFLAGS" = set; then
7488 CXXFLAGS=$ac_save_CXXFLAGS
7489 elif test $ac_cv_prog_cxx_g = yes; then
7490 if test "$GXX" = yes; then
7496 if test "$GXX" = yes; then
7503 ac_cpp='$CPP $CPPFLAGS'
7504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7508 depcc="$CXX" am_compiler_list=
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7511 $as_echo_n "checking dependency style of $depcc... " >&6; }
7512 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7513 $as_echo_n "(cached) " >&6
7515 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7516 # We make a subdir and do the tests there. Otherwise we can end up
7517 # making bogus files that we don't know about and never remove. For
7518 # instance it was reported that on HP-UX the gcc test will end up
7519 # making a dummy file named `D' -- because `-MD' means `put the output
7522 # Copy depcomp to subdir because otherwise we won't find it if we're
7523 # using a relative directory.
7524 cp "$am_depcomp" conftest.dir
7526 # We will build objects and dependencies in a subdirectory because
7527 # it helps to detect inapplicable dependency modes. For instance
7528 # both Tru64's cc and ICC support -MD to output dependencies as a
7529 # side effect of compilation, but ICC will put the dependencies in
7530 # the current directory while Tru64 will put them in the object
7534 am_cv_CXX_dependencies_compiler_type=none
7535 if test "$am_compiler_list" = ""; then
7536 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7539 case " $depcc " in #(
7540 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7543 for depmode in $am_compiler_list; do
7544 # Setup a source with many dependencies, because some compilers
7545 # like to wrap large dependency lists on column 80 (with \), and
7546 # we should not choose a depcomp mode which is confused by this.
7548 # We need to recreate these files for each test, as the compiler may
7549 # overwrite some of them when testing with obscure command lines.
7550 # This happens at least with the AIX C compiler.
7552 for i in 1 2 3 4 5 6; do
7553 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7554 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7555 # Solaris 8's {/usr,}/bin/sh.
7556 touch sub/conftst$i.h
7558 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7560 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7561 # mode. It turns out that the SunPro C++ compiler does not properly
7562 # handle `-M -o', and we need to detect this. Also, some Intel
7563 # versions had trouble with output in subdirs
7564 am__obj=sub/conftest.${OBJEXT-o}
7565 am__minus_obj="-o $am__obj"
7568 # This depmode causes a compiler race in universal mode.
7569 test "$am__universal" = false || continue
7572 # after this tag, mechanisms are not by side-effect, so they'll
7573 # only be used when explicitly requested
7574 if test "x$enable_dependency_tracking" = xyes; then
7580 msvisualcpp | msvcmsys)
7581 # This compiler won't grok `-c -o', but also, the minuso test has
7582 # not run yet. These depmodes are late enough in the game, and
7583 # so weak that their functioning should not be impacted.
7584 am__obj=conftest.${OBJEXT-o}
7589 if depmode=$depmode \
7590 source=sub/conftest.c object=$am__obj \
7591 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7592 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7593 >/dev/null 2>conftest.err &&
7594 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7595 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7596 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7597 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7598 # icc doesn't choke on unknown options, it will just issue warnings
7599 # or remarks (even with -Werror). So we grep stderr for any message
7600 # that says an option was ignored or not supported.
7601 # When given -MP, icc 7.0 and 7.1 complain thusly:
7602 # icc: Command line warning: ignoring option '-M'; no argument required
7603 # The diagnosis changed in icc 8.0:
7604 # icc: Command line remark: option '-MP' not supported
7605 if (grep 'ignoring option' conftest.err ||
7606 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7607 am_cv_CXX_dependencies_compiler_type=$depmode
7616 am_cv_CXX_dependencies_compiler_type=none
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7621 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7622 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7625 test "x$enable_dependency_tracking" != xno \
7626 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7627 am__fastdepCXX_TRUE=
7628 am__fastdepCXX_FALSE='#'
7630 am__fastdepCXX_TRUE='#'
7631 am__fastdepCXX_FALSE=
7635 for ac_prog in 'bison -y' byacc
7637 # Extract the first word of "$ac_prog", so it can be a program name with args.
7638 set dummy $ac_prog; ac_word=$2
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640 $as_echo_n "checking for $ac_word... " >&6; }
7641 if ${ac_cv_prog_YACC+:} false; then :
7642 $as_echo_n "(cached) " >&6
7644 if test -n "$YACC"; then
7645 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7654 ac_cv_prog_YACC="$ac_prog"
7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 YACC=$ac_cv_prog_YACC
7665 if test -n "$YACC"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7667 $as_echo "$YACC" >&6; }
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7674 test -n "$YACC" && break
7676 test -n "$YACC" || YACC="yacc"
7678 if test "x$CC" != xcc; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7680 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7683 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7685 set dummy $CC; ac_cc=`$as_echo "$2" |
7686 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7687 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7688 $as_echo_n "(cached) " >&6
7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h. */
7701 # Make sure it works both with $CC and with simple cc.
7702 # We do the test twice because some compilers refuse to overwrite an
7703 # existing .o file with -o, though they will create one.
7704 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7706 if { { case "(($ac_try" in
7707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7708 *) ac_try_echo=$ac_try;;
7710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7711 $as_echo "$ac_try_echo"; } >&5
7712 (eval "$ac_try") 2>&5
7714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7715 test $ac_status = 0; } &&
7716 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718 *) ac_try_echo=$ac_try;;
7720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7721 $as_echo "$ac_try_echo"; } >&5
7722 (eval "$ac_try") 2>&5
7724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7725 test $ac_status = 0; };
7727 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7728 if test "x$CC" != xcc; then
7729 # Test first that cc exists at all.
7730 if { ac_try='cc -c conftest.$ac_ext >&5'
7731 { { case "(($ac_try" in
7732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7736 $as_echo "$ac_try_echo"; } >&5
7737 (eval "$ac_try") 2>&5
7739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7740 test $ac_status = 0; }; }; then
7741 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7743 if { { case "(($ac_try" in
7744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7745 *) ac_try_echo=$ac_try;;
7747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7748 $as_echo "$ac_try_echo"; } >&5
7749 (eval "$ac_try") 2>&5
7751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7752 test $ac_status = 0; } &&
7753 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755 *) ac_try_echo=$ac_try;;
7757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7758 $as_echo "$ac_try_echo"; } >&5
7759 (eval "$ac_try") 2>&5
7761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7762 test $ac_status = 0; };
7767 # cc exists but doesn't like -o.
7768 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7773 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7775 rm -f core conftest*
7778 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7780 $as_echo "yes" >&6; }
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7785 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
7791 $as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }
7795 ac_cpp='$CPP $CPPFLAGS'
7796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h. */
7804 struct foo_s {int i1; int i2;};
7805 int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
7808 if ac_fn_c_try_compile "$LINENO"; then :
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7810 $as_echo "yes" >&6; }
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7815 $as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821 ac_cpp='$CPP $CPPFLAGS'
7822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
7830 $as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
7832 case "$srcdir::${force_ntp_vpath_hack-no}" in
7834 ;; # VPATH_HACK path is for VPATH builds only.
7836 ntp_vpath_hack="yes"
7839 case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
7841 ntp_vpath_hack="yes"
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
7845 $as_echo "$ntp_vpath_hack" >&6; }
7846 if test x$ntp_vpath_hack = xyes; then
7848 VPATH_HACK_FALSE='#'
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
7858 $as_echo_n "checking for install dir and man conventions... " >&6; }
7861 # Check whether --with-locfile was given.
7862 if test "${with_locfile+set}" = set; then :
7863 withval=$with_locfile;
7871 SENTINEL_DIR="$PWD" && \
7872 cd $srcdir/sntp && \
7873 case "$with_locfile" in \
7875 scripts/genLocInfo -d "$SENTINEL_DIR" \
7878 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \
7881 ) > genLocInfo.i 2> genLocInfo.err
7884 case "$GENLOCINFO" in
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
7887 $as_echo "in file $GENLOCINFOFILE" >&6; }
7888 rm genLocInfo.err genLocInfo.i
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
7892 $as_echo "failed." >&6; }
7893 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
7897 if test "$CALC_TICKADJ_MS" ; then
7898 WANT_CALC_TICKADJ_MS_TRUE=
7899 WANT_CALC_TICKADJ_MS_FALSE='#'
7901 WANT_CALC_TICKADJ_MS_TRUE='#'
7902 WANT_CALC_TICKADJ_MS_FALSE=
7947 if test -z "$NTPSWEEP_NI" ; then
7948 INSTALL_NTPSWEEP_TRUE=
7949 INSTALL_NTPSWEEP_FALSE='#'
7951 INSTALL_NTPSWEEP_TRUE='#'
7952 INSTALL_NTPSWEEP_FALSE=
7995 if test -z "$UPDATE_LEAP_NI" ; then
7996 INSTALL_UPDATE_LEAP_TRUE=
7997 INSTALL_UPDATE_LEAP_FALSE='#'
7999 INSTALL_UPDATE_LEAP_TRUE='#'
8000 INSTALL_UPDATE_LEAP_FALSE=
8007 # So far, the only shared library we might use is libopts.
8008 # It's a small library - we might as well use a static version of it.
8009 # Check whether --enable-shared was given.
8010 if test "${enable_shared+set}" = set; then :
8011 enableval=$enable_shared; p=${PACKAGE-default}
8013 yes) enable_shared=yes ;;
8014 no) enable_shared=no ;;
8017 # Look at the argument we got. We use all the common list separators.
8018 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8019 for pkg in $enableval; do
8021 if test "X$pkg" = "X$p"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8043 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8049 macro_revision='1.3293'
8063 ltmain="$ac_aux_dir/ltmain.sh"
8065 # Backslashify metacharacters that are still active within
8066 # double-quoted strings.
8067 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8069 # Same as above, but do not quote variable references.
8070 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8072 # Sed substitution to delay expansion of an escaped shell variable in a
8073 # double_quote_subst'ed string.
8074 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8076 # Sed substitution to delay expansion of an escaped single quote.
8077 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8079 # Sed substitution to avoid accidental globbing in evaled expressions
8080 no_glob_subst='s/\*/\\\*/g'
8082 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8083 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8084 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8087 $as_echo_n "checking how to print strings... " >&6; }
8088 # Test print first, because it will be a builtin if present.
8089 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8090 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8092 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8095 # Use this function as a fallback that always works.
8096 func_fallback_echo ()
8098 eval 'cat <<_LTECHO_EOF
8102 ECHO='func_fallback_echo'
8105 # func_echo_all arg...
8106 # Invoke $ECHO with all args, space-separated.
8113 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8114 $as_echo "printf" >&6; } ;;
8115 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8116 $as_echo "print -r" >&6; } ;;
8117 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8118 $as_echo "cat" >&6; } ;;
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8135 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8136 if ${ac_cv_path_SED+:} false; then :
8137 $as_echo_n "(cached) " >&6
8139 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8140 for ac_i in 1 2 3 4 5 6 7; do
8141 ac_script="$ac_script$as_nl$ac_script"
8143 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8144 { ac_script=; unset ac_script;}
8145 if test -z "$SED"; then
8146 ac_path_SED_found=false
8147 # Loop through the user's path and test for each of PROGNAME-LIST
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 test -z "$as_dir" && as_dir=.
8153 for ac_prog in sed gsed; do
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8156 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
8157 # Check for GNU ac_path_SED and select it if it is found.
8158 # Check for GNU $ac_path_SED
8159 case `"$ac_path_SED" --version 2>&1` in
8161 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8164 $as_echo_n 0123456789 >"conftest.in"
8167 cat "conftest.in" "conftest.in" >"conftest.tmp"
8168 mv "conftest.tmp" "conftest.in"
8169 cp "conftest.in" "conftest.nl"
8170 $as_echo '' >> "conftest.nl"
8171 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8173 as_fn_arith $ac_count + 1 && ac_count=$as_val
8174 if test $ac_count -gt ${ac_path_SED_max-0}; then
8175 # Best one so far, save it but keep looking for a better one
8176 ac_cv_path_SED="$ac_path_SED"
8177 ac_path_SED_max=$ac_count
8179 # 10*(2^10) chars as input seems more than enough
8180 test $ac_count -gt 10 && break
8182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8185 $ac_path_SED_found && break 3
8190 if test -z "$ac_cv_path_SED"; then
8191 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8199 $as_echo "$ac_cv_path_SED" >&6; }
8200 SED="$ac_cv_path_SED"
8203 test -z "$SED" && SED=sed
8204 Xsed="$SED -e 1s/^X//"
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8217 $as_echo_n "checking for fgrep... " >&6; }
8218 if ${ac_cv_path_FGREP+:} false; then :
8219 $as_echo_n "(cached) " >&6
8221 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8222 then ac_cv_path_FGREP="$GREP -F"
8224 if test -z "$FGREP"; then
8225 ac_path_FGREP_found=false
8226 # Loop through the user's path and test for each of PROGNAME-LIST
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8231 test -z "$as_dir" && as_dir=.
8232 for ac_prog in fgrep; do
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8235 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
8236 # Check for GNU ac_path_FGREP and select it if it is found.
8237 # Check for GNU $ac_path_FGREP
8238 case `"$ac_path_FGREP" --version 2>&1` in
8240 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8243 $as_echo_n 0123456789 >"conftest.in"
8246 cat "conftest.in" "conftest.in" >"conftest.tmp"
8247 mv "conftest.tmp" "conftest.in"
8248 cp "conftest.in" "conftest.nl"
8249 $as_echo 'FGREP' >> "conftest.nl"
8250 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8252 as_fn_arith $ac_count + 1 && ac_count=$as_val
8253 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8254 # Best one so far, save it but keep looking for a better one
8255 ac_cv_path_FGREP="$ac_path_FGREP"
8256 ac_path_FGREP_max=$ac_count
8258 # 10*(2^10) chars as input seems more than enough
8259 test $ac_count -gt 10 && break
8261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8264 $ac_path_FGREP_found && break 3
8269 if test -z "$ac_cv_path_FGREP"; then
8270 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8273 ac_cv_path_FGREP=$FGREP
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8279 $as_echo "$ac_cv_path_FGREP" >&6; }
8280 FGREP="$ac_cv_path_FGREP"
8283 test -z "$GREP" && GREP=grep
8303 # Check whether --with-gnu-ld was given.
8304 if test "${with_gnu_ld+set}" = set; then :
8305 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8311 if test "$GCC" = yes; then
8312 # Check if gcc -print-prog-name=ld gives a path.
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8314 $as_echo_n "checking for ld used by $CC... " >&6; }
8317 # gcc leaves a trailing carriage return which upsets mingw
8318 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8320 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8323 # Accept absolute paths.
8325 re_direlt='/[^/][^/]*/\.\./'
8326 # Canonicalize the pathname of ld
8327 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8328 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8329 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8331 test -z "$LD" && LD="$ac_prog"
8334 # If it fails, then pretend we aren't using GCC.
8338 # If it is relative, then search for the first ld in PATH.
8342 elif test "$with_gnu_ld" = yes; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8344 $as_echo_n "checking for GNU ld... " >&6; }
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8347 $as_echo_n "checking for non-GNU ld... " >&6; }
8349 if ${lt_cv_path_LD+:} false; then :
8350 $as_echo_n "(cached) " >&6
8352 if test -z "$LD"; then
8353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8354 for ac_dir in $PATH; do
8356 test -z "$ac_dir" && ac_dir=.
8357 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8358 lt_cv_path_LD="$ac_dir/$ac_prog"
8359 # Check to see if the program is GNU ld. I'd rather use --version,
8360 # but apparently some variants of GNU ld only accept -v.
8361 # Break only if it was the GNU/non-GNU ld that we prefer.
8362 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8363 *GNU* | *'with BFD'*)
8364 test "$with_gnu_ld" != no && break
8367 test "$with_gnu_ld" != yes && break
8374 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8379 if test -n "$LD"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8381 $as_echo "$LD" >&6; }
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8386 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8388 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8389 if ${lt_cv_prog_gnu_ld+:} false; then :
8390 $as_echo_n "(cached) " >&6
8392 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8393 case `$LD -v 2>&1 </dev/null` in
8394 *GNU* | *'with BFD'*)
8395 lt_cv_prog_gnu_ld=yes
8398 lt_cv_prog_gnu_ld=no
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8403 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8404 with_gnu_ld=$lt_cv_prog_gnu_ld
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8415 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8416 if ${lt_cv_path_NM+:} false; then :
8417 $as_echo_n "(cached) " >&6
8419 if test -n "$NM"; then
8420 # Let the user override the test.
8423 lt_nm_to_check="${ac_tool_prefix}nm"
8424 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8425 lt_nm_to_check="$lt_nm_to_check nm"
8427 for lt_tmp_nm in $lt_nm_to_check; do
8428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8429 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8431 test -z "$ac_dir" && ac_dir=.
8432 tmp_nm="$ac_dir/$lt_tmp_nm"
8433 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8434 # Check to see if the nm accepts a BSD-compat flag.
8435 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8436 # nm: unknown option "B" ignored
8437 # Tru64's nm complains that /dev/null is an invalid object file
8438 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8439 */dev/null* | *'Invalid file or object type'*)
8440 lt_cv_path_NM="$tmp_nm -B"
8444 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8446 lt_cv_path_NM="$tmp_nm -p"
8450 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8451 continue # so that we can try to find one that supports BSD flags
8460 : ${lt_cv_path_NM=no}
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8464 $as_echo "$lt_cv_path_NM" >&6; }
8465 if test "$lt_cv_path_NM" != "no"; then
8468 # Didn't find any BSD compatible name lister, look for dumpbin.
8469 if test -n "$DUMPBIN"; then :
8470 # Let the user override the test.
8472 if test -n "$ac_tool_prefix"; then
8473 for ac_prog in dumpbin "link -dump"
8475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8478 $as_echo_n "checking for $ac_word... " >&6; }
8479 if ${ac_cv_prog_DUMPBIN+:} false; then :
8480 $as_echo_n "(cached) " >&6
8482 if test -n "$DUMPBIN"; then
8483 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 test -z "$as_dir" && as_dir=.
8490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8492 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502 DUMPBIN=$ac_cv_prog_DUMPBIN
8503 if test -n "$DUMPBIN"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8505 $as_echo "$DUMPBIN" >&6; }
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 $as_echo "no" >&6; }
8512 test -n "$DUMPBIN" && break
8515 if test -z "$DUMPBIN"; then
8516 ac_ct_DUMPBIN=$DUMPBIN
8517 for ac_prog in dumpbin "link -dump"
8519 # Extract the first word of "$ac_prog", so it can be a program name with args.
8520 set dummy $ac_prog; ac_word=$2
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8522 $as_echo_n "checking for $ac_word... " >&6; }
8523 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8524 $as_echo_n "(cached) " >&6
8526 if test -n "$ac_ct_DUMPBIN"; then
8527 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 test -z "$as_dir" && as_dir=.
8534 for ac_exec_ext in '' $ac_executable_extensions; do
8535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8536 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8546 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8547 if test -n "$ac_ct_DUMPBIN"; then
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8549 $as_echo "$ac_ct_DUMPBIN" >&6; }
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552 $as_echo "no" >&6; }
8556 test -n "$ac_ct_DUMPBIN" && break
8559 if test "x$ac_ct_DUMPBIN" = x; then
8562 case $cross_compiling:$ac_tool_warned in
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8566 ac_tool_warned=yes ;;
8568 DUMPBIN=$ac_ct_DUMPBIN
8572 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8574 DUMPBIN="$DUMPBIN -symbols"
8582 if test "$DUMPBIN" != ":"; then
8586 test -z "$NM" && NM=nm
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8594 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8595 if ${lt_cv_nm_interface+:} false; then :
8596 $as_echo_n "(cached) " >&6
8598 lt_cv_nm_interface="BSD nm"
8599 echo "int some_variable = 0;" > conftest.$ac_ext
8600 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8601 (eval "$ac_compile" 2>conftest.err)
8602 cat conftest.err >&5
8603 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8604 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8605 cat conftest.err >&5
8606 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8607 cat conftest.out >&5
8608 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8609 lt_cv_nm_interface="MS dumpbin"
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8614 $as_echo "$lt_cv_nm_interface" >&6; }
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8617 $as_echo_n "checking whether ln -s works... " >&6; }
8619 if test "$LN_S" = "ln -s"; then
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8621 $as_echo "yes" >&6; }
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8624 $as_echo "no, using $LN_S" >&6; }
8627 # find the maximum length of command line arguments
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8629 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8630 if ${lt_cv_sys_max_cmd_len+:} false; then :
8631 $as_echo_n "(cached) " >&6
8638 # On DJGPP, this test can blow up pretty badly due to problems in libc
8639 # (any single argument exceeding 2000 bytes causes a buffer overrun
8640 # during glob expansion). Even if it were fixed, the result of this
8641 # check would be larger than it should be.
8642 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8646 # Under GNU Hurd, this test is not required because there is
8647 # no limit to the length of command line arguments.
8648 # Libtool will interpret -1 as no limit whatsoever
8649 lt_cv_sys_max_cmd_len=-1;
8652 cygwin* | mingw* | cegcc*)
8653 # On Win9x/ME, this test blows up -- it succeeds, but takes
8654 # about 5 minutes as the teststring grows exponentially.
8655 # Worse, since 9x/ME are not pre-emptively multitasking,
8656 # you end up with a "frozen" computer, even though with patience
8657 # the test eventually succeeds (with a max line length of 256k).
8658 # Instead, let's just punt: use the minimum linelength reported by
8659 # all of the supported platforms: 8192 (on NT/2K/XP).
8660 lt_cv_sys_max_cmd_len=8192;
8664 # On MiNT this can take a long time and run out of memory.
8665 lt_cv_sys_max_cmd_len=8192;
8669 # On AmigaOS with pdksh, this test takes hours, literally.
8670 # So we just punt and use a minimum line length of 8192.
8671 lt_cv_sys_max_cmd_len=8192;
8674 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8675 # This has been around since 386BSD, at least. Likely further.
8676 if test -x /sbin/sysctl; then
8677 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8678 elif test -x /usr/sbin/sysctl; then
8679 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8681 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8683 # And add a safety zone
8684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8689 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8690 lt_cv_sys_max_cmd_len=196608
8694 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8695 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8696 # nice to cause kernel panics so lets avoid the loop below.
8697 # First set a reasonable default.
8698 lt_cv_sys_max_cmd_len=16384
8700 if test -x /sbin/sysconfig; then
8701 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8702 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8707 lt_cv_sys_max_cmd_len=102400
8709 sysv5* | sco5v6* | sysv4.2uw2*)
8710 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8711 if test -n "$kargmax"; then
8712 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8714 lt_cv_sys_max_cmd_len=32768
8718 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8719 if test -n "$lt_cv_sys_max_cmd_len"; then
8720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8723 # Make teststring a little bigger before we do anything with it.
8724 # a 1K string should be a reasonable start.
8725 for i in 1 2 3 4 5 6 7 8 ; do
8726 teststring=$teststring$teststring
8728 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8729 # If test is not a shell built-in, we'll probably end up computing a
8730 # maximum length that is only half of the actual maximum length, but
8732 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
8733 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8734 test $i != 17 # 1/2 MB should be enough
8737 teststring=$teststring$teststring
8739 # Only check the string length outside the loop.
8740 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8742 # Add a significant safety factor because C++ compilers can tack on
8743 # massive amounts of additional arguments before passing them to the
8744 # linker. It appears as though 1/2 is a usable value.
8745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8752 if test -n $lt_cv_sys_max_cmd_len ; then
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8754 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8757 $as_echo "none" >&6; }
8759 max_cmd_len=$lt_cv_sys_max_cmd_len
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8771 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8772 # Try some XSI features
8775 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8777 && eval 'test $(( 1 + 1 )) -eq 2 \
8778 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8781 $as_echo "$xsi_shell" >&6; }
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8785 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8787 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8789 && lt_shell_append=yes
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8791 $as_echo "$lt_shell_append" >&6; }
8794 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8804 # test EBCDIC or ASCII
8805 case `echo X|tr X '\101'` in
8806 A) # ASCII based system
8807 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8808 lt_SP2NL='tr \040 \012'
8809 lt_NL2SP='tr \015\012 \040\040'
8811 *) # EBCDIC based system
8812 lt_SP2NL='tr \100 \n'
8813 lt_NL2SP='tr \r\n \100\100'
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8826 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8827 if ${lt_cv_to_host_file_cmd+:} false; then :
8828 $as_echo_n "(cached) " >&6
8833 *-*-mingw* ) # actually msys
8834 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8837 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8839 * ) # otherwise, assume *nix
8840 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8846 *-*-mingw* ) # actually msys
8847 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8850 lt_cv_to_host_file_cmd=func_convert_file_noop
8852 * ) # otherwise, assume *nix
8853 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8857 * ) # unhandled hosts (and "normal" native builds)
8858 lt_cv_to_host_file_cmd=func_convert_file_noop
8864 to_host_file_cmd=$lt_cv_to_host_file_cmd
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8866 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8873 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8874 if ${lt_cv_to_tool_file_cmd+:} false; then :
8875 $as_echo_n "(cached) " >&6
8877 #assume ordinary cross tools, or native build.
8878 lt_cv_to_tool_file_cmd=func_convert_file_noop
8882 *-*-mingw* ) # actually msys
8883 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8891 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8893 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8900 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8901 if ${lt_cv_ld_reload_flag+:} false; then :
8902 $as_echo_n "(cached) " >&6
8904 lt_cv_ld_reload_flag='-r'
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8907 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8908 reload_flag=$lt_cv_ld_reload_flag
8909 case $reload_flag in
8911 *) reload_flag=" $reload_flag" ;;
8913 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8915 cygwin* | mingw* | pw32* | cegcc*)
8916 if test "$GCC" != yes; then
8921 if test "$GCC" = yes; then
8922 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8924 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8937 if test -n "$ac_tool_prefix"; then
8938 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8939 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 $as_echo_n "checking for $ac_word... " >&6; }
8942 if ${ac_cv_prog_OBJDUMP+:} false; then :
8943 $as_echo_n "(cached) " >&6
8945 if test -n "$OBJDUMP"; then
8946 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952 test -z "$as_dir" && as_dir=.
8953 for ac_exec_ext in '' $ac_executable_extensions; do
8954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8955 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8965 OBJDUMP=$ac_cv_prog_OBJDUMP
8966 if test -n "$OBJDUMP"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8968 $as_echo "$OBJDUMP" >&6; }
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971 $as_echo "no" >&6; }
8976 if test -z "$ac_cv_prog_OBJDUMP"; then
8977 ac_ct_OBJDUMP=$OBJDUMP
8978 # Extract the first word of "objdump", so it can be a program name with args.
8979 set dummy objdump; ac_word=$2
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8981 $as_echo_n "checking for $ac_word... " >&6; }
8982 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8983 $as_echo_n "(cached) " >&6
8985 if test -n "$ac_ct_OBJDUMP"; then
8986 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992 test -z "$as_dir" && as_dir=.
8993 for ac_exec_ext in '' $ac_executable_extensions; do
8994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8995 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9005 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9006 if test -n "$ac_ct_OBJDUMP"; then
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9008 $as_echo "$ac_ct_OBJDUMP" >&6; }
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9011 $as_echo "no" >&6; }
9014 if test "x$ac_ct_OBJDUMP" = x; then
9017 case $cross_compiling:$ac_tool_warned in
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9021 ac_tool_warned=yes ;;
9023 OBJDUMP=$ac_ct_OBJDUMP
9026 OBJDUMP="$ac_cv_prog_OBJDUMP"
9029 test -z "$OBJDUMP" && OBJDUMP=objdump
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9040 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9041 if ${lt_cv_deplibs_check_method+:} false; then :
9042 $as_echo_n "(cached) " >&6
9044 lt_cv_file_magic_cmd='$MAGIC_CMD'
9045 lt_cv_file_magic_test_file=
9046 lt_cv_deplibs_check_method='unknown'
9047 # Need to set the preceding variable on all platforms that support
9048 # interlibrary dependencies.
9049 # 'none' -- dependencies not supported.
9050 # `unknown' -- same as none, but documents that we really don't know.
9051 # 'pass_all' -- all dependencies passed with no checks.
9052 # 'test_compile' -- check by making test program.
9053 # 'file_magic [[regex]]' -- check by looking for files in library path
9054 # which responds to the $file_magic_cmd with a given extended regex.
9055 # If you have `file' or equivalent on your system and you're not sure
9056 # whether `pass_all' will *always* work, you probably want this one.
9060 lt_cv_deplibs_check_method=pass_all
9064 lt_cv_deplibs_check_method=pass_all
9068 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9069 lt_cv_file_magic_cmd='/usr/bin/file -L'
9070 lt_cv_file_magic_test_file=/shlib/libc.so
9074 # func_win32_libid is a shell function defined in ltmain.sh
9075 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9076 lt_cv_file_magic_cmd='func_win32_libid'
9080 # Base MSYS/MinGW do not provide the 'file' command needed by
9081 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9082 # unless we find 'file', for example because we are cross-compiling.
9083 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
9084 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
9085 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9086 lt_cv_file_magic_cmd='func_win32_libid'
9088 # Keep this pattern in sync with the one in func_win32_libid.
9089 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9090 lt_cv_file_magic_cmd='$OBJDUMP -f'
9095 # use the weaker test based on 'objdump'. See mingw*.
9096 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9097 lt_cv_file_magic_cmd='$OBJDUMP -f'
9100 darwin* | rhapsody*)
9101 lt_cv_deplibs_check_method=pass_all
9104 freebsd* | dragonfly*)
9105 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9108 # Not sure whether the presence of OpenBSD here was a mistake.
9109 # Let's accept both of them until this is cleared up.
9110 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9111 lt_cv_file_magic_cmd=/usr/bin/file
9112 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9116 lt_cv_deplibs_check_method=pass_all
9121 lt_cv_deplibs_check_method=pass_all
9125 lt_cv_deplibs_check_method=pass_all
9128 hpux10.20* | hpux11*)
9129 lt_cv_file_magic_cmd=/usr/bin/file
9132 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9133 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9136 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]'
9137 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9140 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9141 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9147 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9151 irix5* | irix6* | nonstopux*)
9153 *-32|*"-32 ") libmagic=32-bit;;
9154 *-n32|*"-n32 ") libmagic=N32;;
9155 *-64|*"-64 ") libmagic=64-bit;;
9156 *) libmagic=never-match;;
9158 lt_cv_deplibs_check_method=pass_all
9161 # This must be Linux ELF.
9162 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9163 lt_cv_deplibs_check_method=pass_all
9167 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9175 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9176 lt_cv_file_magic_cmd=/usr/bin/file
9177 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9181 lt_cv_deplibs_check_method=pass_all
9185 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9192 osf3* | osf4* | osf5*)
9193 lt_cv_deplibs_check_method=pass_all
9197 lt_cv_deplibs_check_method=pass_all
9201 lt_cv_deplibs_check_method=pass_all
9204 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9205 lt_cv_deplibs_check_method=pass_all
9209 case $host_vendor in
9211 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]'
9212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9215 lt_cv_deplibs_check_method=pass_all
9218 lt_cv_file_magic_cmd='/bin/file'
9219 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9222 lt_cv_file_magic_cmd='/bin/file'
9223 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9224 lt_cv_file_magic_test_file=/lib/libc.so
9227 lt_cv_deplibs_check_method=pass_all
9230 lt_cv_deplibs_check_method=pass_all
9236 lt_cv_deplibs_check_method=pass_all
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9242 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9246 if test "$build" = "$host"; then
9249 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9252 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9258 file_magic_cmd=$lt_cv_file_magic_cmd
9259 deplibs_check_method=$lt_cv_deplibs_check_method
9260 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9283 if test -n "$ac_tool_prefix"; then
9284 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9285 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9287 $as_echo_n "checking for $ac_word... " >&6; }
9288 if ${ac_cv_prog_DLLTOOL+:} false; then :
9289 $as_echo_n "(cached) " >&6
9291 if test -n "$DLLTOOL"; then
9292 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 test -z "$as_dir" && as_dir=.
9299 for ac_exec_ext in '' $ac_executable_extensions; do
9300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9301 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9311 DLLTOOL=$ac_cv_prog_DLLTOOL
9312 if test -n "$DLLTOOL"; then
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9314 $as_echo "$DLLTOOL" >&6; }
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317 $as_echo "no" >&6; }
9322 if test -z "$ac_cv_prog_DLLTOOL"; then
9323 ac_ct_DLLTOOL=$DLLTOOL
9324 # Extract the first word of "dlltool", so it can be a program name with args.
9325 set dummy dlltool; ac_word=$2
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9327 $as_echo_n "checking for $ac_word... " >&6; }
9328 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9329 $as_echo_n "(cached) " >&6
9331 if test -n "$ac_ct_DLLTOOL"; then
9332 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9338 test -z "$as_dir" && as_dir=.
9339 for ac_exec_ext in '' $ac_executable_extensions; do
9340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9341 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9351 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9352 if test -n "$ac_ct_DLLTOOL"; then
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9354 $as_echo "$ac_ct_DLLTOOL" >&6; }
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9357 $as_echo "no" >&6; }
9360 if test "x$ac_ct_DLLTOOL" = x; then
9363 case $cross_compiling:$ac_tool_warned in
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9367 ac_tool_warned=yes ;;
9369 DLLTOOL=$ac_ct_DLLTOOL
9372 DLLTOOL="$ac_cv_prog_DLLTOOL"
9375 test -z "$DLLTOOL" && DLLTOOL=dlltool
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9387 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9388 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9389 $as_echo_n "(cached) " >&6
9391 lt_cv_sharedlib_from_linklib_cmd='unknown'
9394 cygwin* | mingw* | pw32* | cegcc*)
9395 # two different shell functions defined in ltmain.sh
9396 # decide which to use based on capabilities of $DLLTOOL
9397 case `$DLLTOOL --help 2>&1` in
9398 *--identify-strict*)
9399 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9402 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9407 # fallback: assume linklib IS sharedlib
9408 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9414 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9415 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9416 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9424 if test -n "$ac_tool_prefix"; then
9427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9430 $as_echo_n "checking for $ac_word... " >&6; }
9431 if ${ac_cv_prog_AR+:} false; then :
9432 $as_echo_n "(cached) " >&6
9434 if test -n "$AR"; then
9435 ac_cv_prog_AR="$AR" # Let the user override the test.
9437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441 test -z "$as_dir" && as_dir=.
9442 for ac_exec_ext in '' $ac_executable_extensions; do
9443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9444 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9455 if test -n "$AR"; then
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9457 $as_echo "$AR" >&6; }
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460 $as_echo "no" >&6; }
9464 test -n "$AR" && break
9467 if test -z "$AR"; then
9471 # Extract the first word of "$ac_prog", so it can be a program name with args.
9472 set dummy $ac_prog; ac_word=$2
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9474 $as_echo_n "checking for $ac_word... " >&6; }
9475 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9476 $as_echo_n "(cached) " >&6
9478 if test -n "$ac_ct_AR"; then
9479 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9485 test -z "$as_dir" && as_dir=.
9486 for ac_exec_ext in '' $ac_executable_extensions; do
9487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9488 ac_cv_prog_ac_ct_AR="$ac_prog"
9489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9498 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9499 if test -n "$ac_ct_AR"; then
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9501 $as_echo "$ac_ct_AR" >&6; }
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504 $as_echo "no" >&6; }
9508 test -n "$ac_ct_AR" && break
9511 if test "x$ac_ct_AR" = x; then
9514 case $cross_compiling:$ac_tool_warned in
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9518 ac_tool_warned=yes ;;
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9538 $as_echo_n "checking for archiver @FILE support... " >&6; }
9539 if ${lt_cv_ar_at_file+:} false; then :
9540 $as_echo_n "(cached) " >&6
9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h. */
9554 if ac_fn_c_try_compile "$LINENO"; then :
9555 echo conftest.$ac_objext > conftest.lst
9556 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9558 (eval $lt_ar_try) 2>&5
9560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9561 test $ac_status = 0; }
9562 if test "$ac_status" -eq 0; then
9563 # Ensure the archiver fails upon bogus file names.
9564 rm -f conftest.$ac_objext libconftest.a
9565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9566 (eval $lt_ar_try) 2>&5
9568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9569 test $ac_status = 0; }
9570 if test "$ac_status" -ne 0; then
9574 rm -f conftest.* libconftest.a
9577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9581 $as_echo "$lt_cv_ar_at_file" >&6; }
9583 if test "x$lt_cv_ar_at_file" = xno; then
9586 archiver_list_spec=$lt_cv_ar_at_file
9595 if test -n "$ac_tool_prefix"; then
9596 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9597 set dummy ${ac_tool_prefix}strip; ac_word=$2
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9599 $as_echo_n "checking for $ac_word... " >&6; }
9600 if ${ac_cv_prog_STRIP+:} false; then :
9601 $as_echo_n "(cached) " >&6
9603 if test -n "$STRIP"; then
9604 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610 test -z "$as_dir" && as_dir=.
9611 for ac_exec_ext in '' $ac_executable_extensions; do
9612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9613 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9623 STRIP=$ac_cv_prog_STRIP
9624 if test -n "$STRIP"; then
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9626 $as_echo "$STRIP" >&6; }
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9629 $as_echo "no" >&6; }
9634 if test -z "$ac_cv_prog_STRIP"; then
9636 # Extract the first word of "strip", so it can be a program name with args.
9637 set dummy strip; ac_word=$2
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9639 $as_echo_n "checking for $ac_word... " >&6; }
9640 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9641 $as_echo_n "(cached) " >&6
9643 if test -n "$ac_ct_STRIP"; then
9644 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650 test -z "$as_dir" && as_dir=.
9651 for ac_exec_ext in '' $ac_executable_extensions; do
9652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9653 ac_cv_prog_ac_ct_STRIP="strip"
9654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9663 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9664 if test -n "$ac_ct_STRIP"; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9666 $as_echo "$ac_ct_STRIP" >&6; }
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669 $as_echo "no" >&6; }
9672 if test "x$ac_ct_STRIP" = x; then
9675 case $cross_compiling:$ac_tool_warned in
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9679 ac_tool_warned=yes ;;
9684 STRIP="$ac_cv_prog_STRIP"
9687 test -z "$STRIP" && STRIP=:
9694 if test -n "$ac_tool_prefix"; then
9695 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9696 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698 $as_echo_n "checking for $ac_word... " >&6; }
9699 if ${ac_cv_prog_RANLIB+:} false; then :
9700 $as_echo_n "(cached) " >&6
9702 if test -n "$RANLIB"; then
9703 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9709 test -z "$as_dir" && as_dir=.
9710 for ac_exec_ext in '' $ac_executable_extensions; do
9711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9712 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9722 RANLIB=$ac_cv_prog_RANLIB
9723 if test -n "$RANLIB"; then
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9725 $as_echo "$RANLIB" >&6; }
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 $as_echo "no" >&6; }
9733 if test -z "$ac_cv_prog_RANLIB"; then
9734 ac_ct_RANLIB=$RANLIB
9735 # Extract the first word of "ranlib", so it can be a program name with args.
9736 set dummy ranlib; ac_word=$2
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9738 $as_echo_n "checking for $ac_word... " >&6; }
9739 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9740 $as_echo_n "(cached) " >&6
9742 if test -n "$ac_ct_RANLIB"; then
9743 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749 test -z "$as_dir" && as_dir=.
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9752 ac_cv_prog_ac_ct_RANLIB="ranlib"
9753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9762 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9763 if test -n "$ac_ct_RANLIB"; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9765 $as_echo "$ac_ct_RANLIB" >&6; }
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9771 if test "x$ac_ct_RANLIB" = x; then
9774 case $cross_compiling:$ac_tool_warned in
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9778 ac_tool_warned=yes ;;
9780 RANLIB=$ac_ct_RANLIB
9783 RANLIB="$ac_cv_prog_RANLIB"
9786 test -z "$RANLIB" && RANLIB=:
9793 # Determine commands to create old-style static archives.
9794 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9795 old_postinstall_cmds='chmod 644 $oldlib'
9796 old_postuninstall_cmds=
9798 if test -n "$RANLIB"; then
9801 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9804 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9807 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9812 lock_old_archive_extraction=yes ;;
9814 lock_old_archive_extraction=no ;;
9855 # If no C compiler was specified, use CC.
9858 # If no C compiler flags were specified, use CFLAGS.
9859 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9861 # Allow CC to be a program name with arguments.
9865 # Check for command to grab the raw symbol name followed by C symbol from nm.
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9867 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9868 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9869 $as_echo_n "(cached) " >&6
9872 # These are sane defaults that work on at least a few old systems.
9873 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9875 # Character class describing NM global symbol codes.
9876 symcode='[BCDEGRST]'
9878 # Regexp to match symbols that can be accessed directly from C.
9879 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9881 # Define system-specific variables.
9886 cygwin* | mingw* | pw32* | cegcc*)
9887 symcode='[ABCDGISTW]'
9890 if test "$host_cpu" = ia64; then
9891 symcode='[ABCDEGRST]'
9895 symcode='[BCDEGRST]'
9898 symcode='[BCDEGQRST]'
9909 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9917 # If we're using GNU nm, then use its standard symbol codes.
9918 case `$NM -V 2>&1` in
9919 *GNU* | *'with BFD'*)
9920 symcode='[ABCDGIRSTW]' ;;
9923 # Transform an extracted symbol line into a proper C declaration.
9924 # Some systems (esp. on ia64) link data and code symbols differently,
9925 # so use this general approach.
9926 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9928 # Transform an extracted symbol line into symbol name and symbol address
9929 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9930 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'"
9932 # Handle CRLF in mingw tool chain
9936 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9940 # Try without a prefix underscore, then with it.
9941 for ac_symprfx in "" "_"; do
9943 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9944 symxfrm="\\1 $ac_symprfx\\2 \\2"
9946 # Write the raw and C identifiers.
9947 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9948 # Fake it for dumpbin and say T for any non-static function
9949 # and D for any global variable.
9950 # Also find C++ and __fastcall symbols from MSVC++,
9951 # which start with @ or ?.
9952 lt_cv_sys_global_symbol_pipe="$AWK '"\
9953 " {last_section=section; section=\$ 3};"\
9954 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9955 " \$ 0!~/External *\|/{next};"\
9956 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9957 " {if(hide[section]) next};"\
9958 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9959 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9960 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9961 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9962 " ' prfx=^$ac_symprfx"
9964 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9966 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9968 # Check to see that the pipe works correctly.
9972 cat > conftest.$ac_ext <<_LT_EOF
9977 void nm_test_func(void);
9978 void nm_test_func(void){}
9982 int main(){nm_test_var='a';nm_test_func();return(0);}
9985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9986 (eval $ac_compile) 2>&5
9988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9989 test $ac_status = 0; }; then
9990 # Now try to grab the symbols.
9992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9993 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9996 test $ac_status = 0; } && test -s "$nlist"; then
9997 # Try sorting and uniquifying the output.
9998 if sort "$nlist" | uniq > "$nlist"T; then
9999 mv -f "$nlist"T "$nlist"
10004 # Make sure that we snagged all the symbols we need.
10005 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10006 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10007 cat <<_LT_EOF > conftest.$ac_ext
10008 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10009 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
10010 /* DATA imports from DLLs on WIN32 con't be const, because runtime
10011 relocations are performed -- see ld's documentation on pseudo-relocs. */
10012 # define LT_DLSYM_CONST
10013 #elif defined(__osf__)
10014 /* This system does not cope well with relocations in const data. */
10015 # define LT_DLSYM_CONST
10017 # define LT_DLSYM_CONST const
10025 # Now generate the symbol file.
10026 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10028 cat <<_LT_EOF >> conftest.$ac_ext
10030 /* The mapping between symbol names and symbols. */
10031 LT_DLSYM_CONST struct {
10035 lt__PROGRAM__LTX_preloaded_symbols[] =
10037 { "@PROGRAM@", (void *) 0 },
10039 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10040 cat <<\_LT_EOF >> conftest.$ac_ext
10044 /* This works around a problem in FreeBSD linker */
10045 #ifdef FREEBSD_WORKAROUND
10046 static const void *lt_preloaded_setup() {
10047 return lt__PROGRAM__LTX_preloaded_symbols;
10055 # Now try linking the two files.
10056 mv conftest.$ac_objext conftstm.$ac_objext
10057 lt_globsym_save_LIBS=$LIBS
10058 lt_globsym_save_CFLAGS=$CFLAGS
10059 LIBS="conftstm.$ac_objext"
10060 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10062 (eval $ac_link) 2>&5
10064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10065 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10068 LIBS=$lt_globsym_save_LIBS
10069 CFLAGS=$lt_globsym_save_CFLAGS
10071 echo "cannot find nm_test_func in $nlist" >&5
10074 echo "cannot find nm_test_var in $nlist" >&5
10077 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10080 echo "$progname: failed program was:" >&5
10081 cat conftest.$ac_ext >&5
10083 rm -rf conftest* conftst*
10085 # Do not use the global_symbol_pipe unless it works.
10086 if test "$pipe_works" = yes; then
10089 lt_cv_sys_global_symbol_pipe=
10095 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10096 lt_cv_sys_global_symbol_to_cdecl=
10098 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10100 $as_echo "failed" >&6; }
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10103 $as_echo "ok" >&6; }
10106 # Response file support.
10107 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10108 nm_file_list_spec='@'
10109 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10110 nm_file_list_spec='@'
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10140 $as_echo_n "checking for sysroot... " >&6; }
10142 # Check whether --with-sysroot was given.
10143 if test "${with_sysroot+set}" = set; then :
10144 withval=$with_sysroot;
10151 case ${with_sysroot} in #(
10153 if test "$GCC" = yes; then
10154 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10158 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
10164 $as_echo "${with_sysroot}" >&6; }
10165 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10170 $as_echo "${lt_sysroot:-no}" >&6; }
10176 # Check whether --enable-libtool-lock was given.
10177 if test "${enable_libtool_lock+set}" = set; then :
10178 enableval=$enable_libtool_lock;
10181 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10183 # Some flags need to be propagated to the compiler or linker for good
10187 # Find out which ABI we are using.
10188 echo 'int i;' > conftest.$ac_ext
10189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10190 (eval $ac_compile) 2>&5
10192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10193 test $ac_status = 0; }; then
10194 case `/usr/bin/file conftest.$ac_objext` in
10196 HPUX_IA64_MODE="32"
10199 HPUX_IA64_MODE="64"
10206 # Find out which ABI we are using.
10207 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10209 (eval $ac_compile) 2>&5
10211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10212 test $ac_status = 0; }; then
10213 if test "$lt_cv_prog_gnu_ld" = yes; then
10214 case `/usr/bin/file conftest.$ac_objext` in
10216 LD="${LD-ld} -melf32bsmip"
10219 LD="${LD-ld} -melf32bmipn32"
10222 LD="${LD-ld} -melf64bmip"
10226 case `/usr/bin/file conftest.$ac_objext` in
10242 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10243 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10244 # Find out which ABI we are using.
10245 echo 'int i;' > conftest.$ac_ext
10246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10247 (eval $ac_compile) 2>&5
10249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10250 test $ac_status = 0; }; then
10251 case `/usr/bin/file conftest.o` in
10254 x86_64-*kfreebsd*-gnu)
10255 LD="${LD-ld} -m elf_i386_fbsd"
10258 LD="${LD-ld} -m elf_i386"
10260 ppc64-*linux*|powerpc64-*linux*)
10261 LD="${LD-ld} -m elf32ppclinux"
10264 LD="${LD-ld} -m elf_s390"
10267 LD="${LD-ld} -m elf32_sparc"
10273 x86_64-*kfreebsd*-gnu)
10274 LD="${LD-ld} -m elf_x86_64_fbsd"
10277 LD="${LD-ld} -m elf_x86_64"
10279 ppc*-*linux*|powerpc*-*linux*)
10280 LD="${LD-ld} -m elf64ppc"
10282 s390*-*linux*|s390*-*tpf*)
10283 LD="${LD-ld} -m elf64_s390"
10286 LD="${LD-ld} -m elf64_sparc"
10296 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10297 SAVE_CFLAGS="$CFLAGS"
10298 CFLAGS="$CFLAGS -belf"
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10300 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10301 if ${lt_cv_cc_needs_belf+:} false; then :
10302 $as_echo_n "(cached) " >&6
10305 ac_cpp='$CPP $CPPFLAGS'
10306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h. */
10321 if ac_fn_c_try_link "$LINENO"; then :
10322 lt_cv_cc_needs_belf=yes
10324 lt_cv_cc_needs_belf=no
10326 rm -f core conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10329 ac_cpp='$CPP $CPPFLAGS'
10330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10336 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10337 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10338 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10339 CFLAGS="$SAVE_CFLAGS"
10343 # Find out which ABI we are using.
10344 echo 'int i;' > conftest.$ac_ext
10345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10346 (eval $ac_compile) 2>&5
10348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10349 test $ac_status = 0; }; then
10350 case `/usr/bin/file conftest.o` in
10352 case $lt_cv_prog_gnu_ld in
10353 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10355 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10367 need_locks="$enable_libtool_lock"
10369 if test -n "$ac_tool_prefix"; then
10370 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10371 set dummy ${ac_tool_prefix}mt; ac_word=$2
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10373 $as_echo_n "checking for $ac_word... " >&6; }
10374 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10375 $as_echo_n "(cached) " >&6
10377 if test -n "$MANIFEST_TOOL"; then
10378 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381 for as_dir in $PATH
10384 test -z "$as_dir" && as_dir=.
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10387 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10397 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10398 if test -n "$MANIFEST_TOOL"; then
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10400 $as_echo "$MANIFEST_TOOL" >&6; }
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403 $as_echo "no" >&6; }
10408 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10409 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10410 # Extract the first word of "mt", so it can be a program name with args.
10411 set dummy mt; ac_word=$2
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10413 $as_echo_n "checking for $ac_word... " >&6; }
10414 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10415 $as_echo_n "(cached) " >&6
10417 if test -n "$ac_ct_MANIFEST_TOOL"; then
10418 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421 for as_dir in $PATH
10424 test -z "$as_dir" && as_dir=.
10425 for ac_exec_ext in '' $ac_executable_extensions; do
10426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10427 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10437 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10438 if test -n "$ac_ct_MANIFEST_TOOL"; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10440 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443 $as_echo "no" >&6; }
10446 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10449 case $cross_compiling:$ac_tool_warned in
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10453 ac_tool_warned=yes ;;
10455 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10458 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10461 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10463 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10464 if ${lt_cv_path_mainfest_tool+:} false; then :
10465 $as_echo_n "(cached) " >&6
10467 lt_cv_path_mainfest_tool=no
10468 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10469 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10470 cat conftest.err >&5
10471 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10472 lt_cv_path_mainfest_tool=yes
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10477 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10478 if test "x$lt_cv_path_mainfest_tool" != xyes; then
10488 rhapsody* | darwin*)
10489 if test -n "$ac_tool_prefix"; then
10490 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10491 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493 $as_echo_n "checking for $ac_word... " >&6; }
10494 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10495 $as_echo_n "(cached) " >&6
10497 if test -n "$DSYMUTIL"; then
10498 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501 for as_dir in $PATH
10504 test -z "$as_dir" && as_dir=.
10505 for ac_exec_ext in '' $ac_executable_extensions; do
10506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10507 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10518 if test -n "$DSYMUTIL"; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10520 $as_echo "$DSYMUTIL" >&6; }
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523 $as_echo "no" >&6; }
10528 if test -z "$ac_cv_prog_DSYMUTIL"; then
10529 ac_ct_DSYMUTIL=$DSYMUTIL
10530 # Extract the first word of "dsymutil", so it can be a program name with args.
10531 set dummy dsymutil; ac_word=$2
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10533 $as_echo_n "checking for $ac_word... " >&6; }
10534 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10535 $as_echo_n "(cached) " >&6
10537 if test -n "$ac_ct_DSYMUTIL"; then
10538 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10541 for as_dir in $PATH
10544 test -z "$as_dir" && as_dir=.
10545 for ac_exec_ext in '' $ac_executable_extensions; do
10546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10547 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10557 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10558 if test -n "$ac_ct_DSYMUTIL"; then
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10560 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10566 if test "x$ac_ct_DSYMUTIL" = x; then
10569 case $cross_compiling:$ac_tool_warned in
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10573 ac_tool_warned=yes ;;
10575 DSYMUTIL=$ac_ct_DSYMUTIL
10578 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10581 if test -n "$ac_tool_prefix"; then
10582 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10583 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10585 $as_echo_n "checking for $ac_word... " >&6; }
10586 if ${ac_cv_prog_NMEDIT+:} false; then :
10587 $as_echo_n "(cached) " >&6
10589 if test -n "$NMEDIT"; then
10590 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593 for as_dir in $PATH
10596 test -z "$as_dir" && as_dir=.
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10599 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10609 NMEDIT=$ac_cv_prog_NMEDIT
10610 if test -n "$NMEDIT"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10612 $as_echo "$NMEDIT" >&6; }
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10620 if test -z "$ac_cv_prog_NMEDIT"; then
10621 ac_ct_NMEDIT=$NMEDIT
10622 # Extract the first word of "nmedit", so it can be a program name with args.
10623 set dummy nmedit; ac_word=$2
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10625 $as_echo_n "checking for $ac_word... " >&6; }
10626 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10627 $as_echo_n "(cached) " >&6
10629 if test -n "$ac_ct_NMEDIT"; then
10630 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10633 for as_dir in $PATH
10636 test -z "$as_dir" && as_dir=.
10637 for ac_exec_ext in '' $ac_executable_extensions; do
10638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10639 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10649 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10650 if test -n "$ac_ct_NMEDIT"; then
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10652 $as_echo "$ac_ct_NMEDIT" >&6; }
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 $as_echo "no" >&6; }
10658 if test "x$ac_ct_NMEDIT" = x; then
10661 case $cross_compiling:$ac_tool_warned in
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10665 ac_tool_warned=yes ;;
10667 NMEDIT=$ac_ct_NMEDIT
10670 NMEDIT="$ac_cv_prog_NMEDIT"
10673 if test -n "$ac_tool_prefix"; then
10674 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10675 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677 $as_echo_n "checking for $ac_word... " >&6; }
10678 if ${ac_cv_prog_LIPO+:} false; then :
10679 $as_echo_n "(cached) " >&6
10681 if test -n "$LIPO"; then
10682 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685 for as_dir in $PATH
10688 test -z "$as_dir" && as_dir=.
10689 for ac_exec_ext in '' $ac_executable_extensions; do
10690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10691 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10701 LIPO=$ac_cv_prog_LIPO
10702 if test -n "$LIPO"; then
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10704 $as_echo "$LIPO" >&6; }
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707 $as_echo "no" >&6; }
10712 if test -z "$ac_cv_prog_LIPO"; then
10714 # Extract the first word of "lipo", so it can be a program name with args.
10715 set dummy lipo; ac_word=$2
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10717 $as_echo_n "checking for $ac_word... " >&6; }
10718 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10719 $as_echo_n "(cached) " >&6
10721 if test -n "$ac_ct_LIPO"; then
10722 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10725 for as_dir in $PATH
10728 test -z "$as_dir" && as_dir=.
10729 for ac_exec_ext in '' $ac_executable_extensions; do
10730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10731 ac_cv_prog_ac_ct_LIPO="lipo"
10732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10741 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10742 if test -n "$ac_ct_LIPO"; then
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10744 $as_echo "$ac_ct_LIPO" >&6; }
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10747 $as_echo "no" >&6; }
10750 if test "x$ac_ct_LIPO" = x; then
10753 case $cross_compiling:$ac_tool_warned in
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10757 ac_tool_warned=yes ;;
10762 LIPO="$ac_cv_prog_LIPO"
10765 if test -n "$ac_tool_prefix"; then
10766 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10767 set dummy ${ac_tool_prefix}otool; ac_word=$2
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10769 $as_echo_n "checking for $ac_word... " >&6; }
10770 if ${ac_cv_prog_OTOOL+:} false; then :
10771 $as_echo_n "(cached) " >&6
10773 if test -n "$OTOOL"; then
10774 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10777 for as_dir in $PATH
10780 test -z "$as_dir" && as_dir=.
10781 for ac_exec_ext in '' $ac_executable_extensions; do
10782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10783 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10793 OTOOL=$ac_cv_prog_OTOOL
10794 if test -n "$OTOOL"; then
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10796 $as_echo "$OTOOL" >&6; }
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10799 $as_echo "no" >&6; }
10804 if test -z "$ac_cv_prog_OTOOL"; then
10806 # Extract the first word of "otool", so it can be a program name with args.
10807 set dummy otool; ac_word=$2
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10809 $as_echo_n "checking for $ac_word... " >&6; }
10810 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10811 $as_echo_n "(cached) " >&6
10813 if test -n "$ac_ct_OTOOL"; then
10814 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817 for as_dir in $PATH
10820 test -z "$as_dir" && as_dir=.
10821 for ac_exec_ext in '' $ac_executable_extensions; do
10822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10823 ac_cv_prog_ac_ct_OTOOL="otool"
10824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10833 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10834 if test -n "$ac_ct_OTOOL"; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10836 $as_echo "$ac_ct_OTOOL" >&6; }
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839 $as_echo "no" >&6; }
10842 if test "x$ac_ct_OTOOL" = x; then
10845 case $cross_compiling:$ac_tool_warned in
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10849 ac_tool_warned=yes ;;
10854 OTOOL="$ac_cv_prog_OTOOL"
10857 if test -n "$ac_tool_prefix"; then
10858 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10859 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10861 $as_echo_n "checking for $ac_word... " >&6; }
10862 if ${ac_cv_prog_OTOOL64+:} false; then :
10863 $as_echo_n "(cached) " >&6
10865 if test -n "$OTOOL64"; then
10866 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869 for as_dir in $PATH
10872 test -z "$as_dir" && as_dir=.
10873 for ac_exec_ext in '' $ac_executable_extensions; do
10874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10875 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10885 OTOOL64=$ac_cv_prog_OTOOL64
10886 if test -n "$OTOOL64"; then
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10888 $as_echo "$OTOOL64" >&6; }
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891 $as_echo "no" >&6; }
10896 if test -z "$ac_cv_prog_OTOOL64"; then
10897 ac_ct_OTOOL64=$OTOOL64
10898 # Extract the first word of "otool64", so it can be a program name with args.
10899 set dummy otool64; ac_word=$2
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10901 $as_echo_n "checking for $ac_word... " >&6; }
10902 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10903 $as_echo_n "(cached) " >&6
10905 if test -n "$ac_ct_OTOOL64"; then
10906 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10909 for as_dir in $PATH
10912 test -z "$as_dir" && as_dir=.
10913 for ac_exec_ext in '' $ac_executable_extensions; do
10914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10915 ac_cv_prog_ac_ct_OTOOL64="otool64"
10916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10925 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10926 if test -n "$ac_ct_OTOOL64"; then
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10928 $as_echo "$ac_ct_OTOOL64" >&6; }
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931 $as_echo "no" >&6; }
10934 if test "x$ac_ct_OTOOL64" = x; then
10937 case $cross_compiling:$ac_tool_warned in
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10941 ac_tool_warned=yes ;;
10943 OTOOL64=$ac_ct_OTOOL64
10946 OTOOL64="$ac_cv_prog_OTOOL64"
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10976 $as_echo_n "checking for -single_module linker flag... " >&6; }
10977 if ${lt_cv_apple_cc_single_mod+:} false; then :
10978 $as_echo_n "(cached) " >&6
10980 lt_cv_apple_cc_single_mod=no
10981 if test -z "${LT_MULTI_MODULE}"; then
10982 # By default we will add the -single_module flag. You can override
10983 # by either setting the environment variable LT_MULTI_MODULE
10984 # non-empty at configure time, or by adding -multi_module to the
10986 rm -rf libconftest.dylib*
10987 echo "int foo(void){return 1;}" > conftest.c
10988 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10989 -dynamiclib -Wl,-single_module conftest.c" >&5
10990 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10991 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10993 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10994 lt_cv_apple_cc_single_mod=yes
10996 cat conftest.err >&5
10998 rm -rf libconftest.dylib*
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11003 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11005 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11006 if ${lt_cv_ld_exported_symbols_list+:} false; then :
11007 $as_echo_n "(cached) " >&6
11009 lt_cv_ld_exported_symbols_list=no
11010 save_LDFLAGS=$LDFLAGS
11011 echo "_main" > conftest.sym
11012 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11014 /* end confdefs.h. */
11024 if ac_fn_c_try_link "$LINENO"; then :
11025 lt_cv_ld_exported_symbols_list=yes
11027 lt_cv_ld_exported_symbols_list=no
11029 rm -f core conftest.err conftest.$ac_objext \
11030 conftest$ac_exeext conftest.$ac_ext
11031 LDFLAGS="$save_LDFLAGS"
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11035 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11037 $as_echo_n "checking for -force_load linker flag... " >&6; }
11038 if ${lt_cv_ld_force_load+:} false; then :
11039 $as_echo_n "(cached) " >&6
11041 lt_cv_ld_force_load=no
11042 cat > conftest.c << _LT_EOF
11043 int forced_loaded() { return 2;}
11045 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11046 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11047 echo "$AR cru libconftest.a conftest.o" >&5
11048 $AR cru libconftest.a conftest.o 2>&5
11049 echo "$RANLIB libconftest.a" >&5
11050 $RANLIB libconftest.a 2>&5
11051 cat > conftest.c << _LT_EOF
11052 int main() { return 0;}
11054 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11055 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11057 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11058 lt_cv_ld_force_load=yes
11060 cat conftest.err >&5
11062 rm -f conftest.err libconftest.a conftest conftest.c
11063 rm -rf conftest.dSYM
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11067 $as_echo "$lt_cv_ld_force_load" >&6; }
11069 rhapsody* | darwin1.[012])
11070 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11072 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11073 darwin*) # darwin 5.x on
11074 # if running on 10.5 or later, the deployment target defaults
11075 # to the OS version, if on x86, and 10.4, the deployment
11076 # target defaults to 10.4. Don't you love it?
11077 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11078 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11079 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11081 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11083 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11087 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11088 _lt_dar_single_mod='$single_module'
11090 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11091 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11093 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11095 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11096 _lt_dsymutil='~$DSYMUTIL $lib || :'
11103 for ac_header in dlfcn.h
11105 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11107 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11108 cat >>confdefs.h <<_ACEOF
11109 #define HAVE_DLFCN_H 1
11119 func_stripname_cnf ()
11122 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11123 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11125 } # func_stripname_cnf
11138 enable_win32_dll=no
11142 # Check whether --enable-static was given.
11143 if test "${enable_static+set}" = set; then :
11144 enableval=$enable_static; p=${PACKAGE-default}
11146 yes) enable_static=yes ;;
11147 no) enable_static=no ;;
11150 # Look at the argument we got. We use all the common list separators.
11151 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11152 for pkg in $enableval; do
11154 if test "X$pkg" = "X$p"; then
11174 # Check whether --with-pic was given.
11175 if test "${with_pic+set}" = set; then :
11176 withval=$with_pic; pic_mode="$withval"
11182 test -z "$pic_mode" && pic_mode=default
11190 # Check whether --enable-fast-install was given.
11191 if test "${enable_fast_install+set}" = set; then :
11192 enableval=$enable_fast_install; p=${PACKAGE-default}
11194 yes) enable_fast_install=yes ;;
11195 no) enable_fast_install=no ;;
11197 enable_fast_install=no
11198 # Look at the argument we got. We use all the common list separators.
11199 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11200 for pkg in $enableval; do
11202 if test "X$pkg" = "X$p"; then
11203 enable_fast_install=yes
11210 enable_fast_install=yes
11223 # This can be used to rebuild libtool when needed
11224 LIBTOOL_DEPS="$ltmain"
11226 # Always use our own libtool.
11227 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11254 test -z "$LN_S" && LN_S="ln -s"
11269 if test -n "${ZSH_VERSION+set}" ; then
11270 setopt NO_GLOB_SUBST
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11274 $as_echo_n "checking for objdir... " >&6; }
11275 if ${lt_cv_objdir+:} false; then :
11276 $as_echo_n "(cached) " >&6
11278 rm -f .libs 2>/dev/null
11279 mkdir .libs 2>/dev/null
11280 if test -d .libs; then
11283 # MS-DOS does not allow filenames that begin with a dot.
11286 rmdir .libs 2>/dev/null
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11289 $as_echo "$lt_cv_objdir" >&6; }
11290 objdir=$lt_cv_objdir
11296 cat >>confdefs.h <<_ACEOF
11297 #define LT_OBJDIR "$lt_cv_objdir/"
11305 # AIX sometimes has problems with the GCC collect2 program. For some
11306 # reason, if we set the COLLECT_NAMES environment variable, the problems
11307 # vanish in a puff of smoke.
11308 if test "X${COLLECT_NAMES+set}" != Xset; then
11310 export COLLECT_NAMES
11315 # Global variables:
11317 can_build_shared=yes
11319 # All known linkers require a `.a' archive for static linking (except MSVC,
11320 # which needs '.lib').
11323 with_gnu_ld="$lt_cv_prog_gnu_ld"
11326 old_CFLAGS="$CFLAGS"
11328 # Set sane defaults for various variables
11329 test -z "$CC" && CC=cc
11330 test -z "$LTCC" && LTCC=$CC
11331 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11332 test -z "$LD" && LD=ld
11333 test -z "$ac_objext" && ac_objext=o
11335 for cc_temp in $compiler""; do
11337 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11338 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11343 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11346 # Only perform the check for file, if the check method requires it
11347 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11348 case $deplibs_check_method in
11350 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11352 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11353 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11354 $as_echo_n "(cached) " >&6
11358 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11361 lt_save_MAGIC_CMD="$MAGIC_CMD"
11362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11363 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11364 for ac_dir in $ac_dummy; do
11366 test -z "$ac_dir" && ac_dir=.
11367 if test -f $ac_dir/${ac_tool_prefix}file; then
11368 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11369 if test -n "$file_magic_test_file"; then
11370 case $deplibs_check_method in
11372 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11373 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11374 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11375 $EGREP "$file_magic_regex" > /dev/null; then
11380 *** Warning: the command libtool uses to detect shared libraries,
11381 *** $file_magic_cmd, produces output that libtool cannot recognize.
11382 *** The result is that libtool may fail to recognize shared libraries
11383 *** as such. This will affect the creation of libtool libraries that
11384 *** depend on shared libraries, but programs linked with such libtool
11385 *** libraries will work regardless of this problem. Nevertheless, you
11386 *** may want to report the problem to your system manager and/or to
11387 *** bug-libtool@gnu.org
11397 MAGIC_CMD="$lt_save_MAGIC_CMD"
11402 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11403 if test -n "$MAGIC_CMD"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11405 $as_echo "$MAGIC_CMD" >&6; }
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11415 if test -z "$lt_cv_path_MAGIC_CMD"; then
11416 if test -n "$ac_tool_prefix"; then
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11418 $as_echo_n "checking for file... " >&6; }
11419 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11420 $as_echo_n "(cached) " >&6
11424 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11427 lt_save_MAGIC_CMD="$MAGIC_CMD"
11428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11429 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11430 for ac_dir in $ac_dummy; do
11432 test -z "$ac_dir" && ac_dir=.
11433 if test -f $ac_dir/file; then
11434 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11435 if test -n "$file_magic_test_file"; then
11436 case $deplibs_check_method in
11438 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11440 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11441 $EGREP "$file_magic_regex" > /dev/null; then
11446 *** Warning: the command libtool uses to detect shared libraries,
11447 *** $file_magic_cmd, produces output that libtool cannot recognize.
11448 *** The result is that libtool may fail to recognize shared libraries
11449 *** as such. This will affect the creation of libtool libraries that
11450 *** depend on shared libraries, but programs linked with such libtool
11451 *** libraries will work regardless of this problem. Nevertheless, you
11452 *** may want to report the problem to your system manager and/or to
11453 *** bug-libtool@gnu.org
11463 MAGIC_CMD="$lt_save_MAGIC_CMD"
11468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11469 if test -n "$MAGIC_CMD"; then
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11471 $as_echo "$MAGIC_CMD" >&6; }
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474 $as_echo "no" >&6; }
11487 # Use C for the default configuration in the libtool script
11491 ac_cpp='$CPP $CPPFLAGS'
11492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11497 # Source file extension for C test sources.
11500 # Object file extension for compiled C test sources.
11504 # Code to be used in simple compile tests
11505 lt_simple_compile_test_code="int some_variable = 0;"
11507 # Code to be used in simple link tests
11508 lt_simple_link_test_code='int main(){return(0);}'
11516 # If no C compiler was specified, use CC.
11519 # If no C compiler flags were specified, use CFLAGS.
11520 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11522 # Allow CC to be a program name with arguments.
11525 # Save the default compiler, since it gets overwritten when the other
11526 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11527 compiler_DEFAULT=$CC
11529 # save warnings/boilerplate of simple test code
11530 ac_outfile=conftest.$ac_objext
11531 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11532 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11533 _lt_compiler_boilerplate=`cat conftest.err`
11536 ac_outfile=conftest.$ac_objext
11537 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11538 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11539 _lt_linker_boilerplate=`cat conftest.err`
11544 ## There is no encapsulation within the following macros, do not change
11545 ## the running order or otherwise move them around unless you know exactly
11546 ## what you are doing...
11547 if test -n "$compiler"; then
11549 lt_prog_compiler_no_builtin_flag=
11551 if test "$GCC" = yes; then
11552 case $cc_basename in
11554 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11556 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11560 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11561 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11562 $as_echo_n "(cached) " >&6
11564 lt_cv_prog_compiler_rtti_exceptions=no
11565 ac_outfile=conftest.$ac_objext
11566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11567 lt_compiler_flag="-fno-rtti -fno-exceptions"
11568 # Insert the option either (1) after the last *FLAGS variable, or
11569 # (2) before a word containing "conftest.", or (3) at the end.
11570 # Note that $ac_compile itself does not contain backslashes and begins
11571 # with a dollar sign (not a hyphen), so the echo should work correctly.
11572 # The option is referenced via a variable to avoid confusing sed.
11573 lt_compile=`echo "$ac_compile" | $SED \
11574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11576 -e 's:$: $lt_compiler_flag:'`
11577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11578 (eval "$lt_compile" 2>conftest.err)
11580 cat conftest.err >&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 if (exit $ac_status) && test -s "$ac_outfile"; then
11583 # The compiler can only warn and ignore the option if not recognized
11584 # So say no if there are warnings other than the usual output.
11585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11587 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11588 lt_cv_prog_compiler_rtti_exceptions=yes
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11595 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11597 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11598 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11610 lt_prog_compiler_wl=
11611 lt_prog_compiler_pic=
11612 lt_prog_compiler_static=
11615 if test "$GCC" = yes; then
11616 lt_prog_compiler_wl='-Wl,'
11617 lt_prog_compiler_static='-static'
11621 # All AIX code is PIC.
11622 if test "$host_cpu" = ia64; then
11623 # AIX 5 now supports IA64 processor
11624 lt_prog_compiler_static='-Bstatic'
11631 # see comment about AmigaOS4 .so support
11632 lt_prog_compiler_pic='-fPIC'
11635 # FIXME: we need at least 68020 code to build shared libraries, but
11636 # adding the `-m68020' flag to GCC prevents building anything better,
11638 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11643 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11644 # PIC is the default for these OSes.
11647 mingw* | cygwin* | pw32* | os2* | cegcc*)
11648 # This hack is so that the source file can tell whether it is being
11649 # built for inclusion in a dll (and should export symbols for example).
11650 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11651 # (--disable-auto-import) libraries
11652 lt_prog_compiler_pic='-DDLL_EXPORT'
11655 darwin* | rhapsody*)
11656 # PIC is the default on this platform
11657 # Common symbols not allowed in MH_DYLIB files
11658 lt_prog_compiler_pic='-fno-common'
11662 # PIC is the default for Haiku.
11663 # The "-static" flag exists, but is broken.
11664 lt_prog_compiler_static=
11668 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11669 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11670 # sets the default TLS model and affects inlining.
11676 lt_prog_compiler_pic='-fPIC'
11682 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11683 # Instead, we relocate shared libraries at runtime.
11687 # Just because we use GCC doesn't mean we suddenly get shared libraries
11688 # on systems that don't support them.
11689 lt_prog_compiler_can_build_shared=no
11694 # QNX uses GNU C++, but need to define -shared option too, otherwise
11695 # it will coredump.
11696 lt_prog_compiler_pic='-fPIC -shared'
11700 if test -d /usr/nec; then
11701 lt_prog_compiler_pic=-Kconform_pic
11706 lt_prog_compiler_pic='-fPIC'
11710 case $cc_basename in
11711 nvcc*) # Cuda Compiler Driver 2.2
11712 lt_prog_compiler_wl='-Xlinker '
11713 lt_prog_compiler_pic='-Xcompiler -fPIC'
11717 # PORTME Check for flag to pass linker flags through the system compiler.
11720 lt_prog_compiler_wl='-Wl,'
11721 if test "$host_cpu" = ia64; then
11722 # AIX 5 now supports IA64 processor
11723 lt_prog_compiler_static='-Bstatic'
11725 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11729 mingw* | cygwin* | pw32* | os2* | cegcc*)
11730 # This hack is so that the source file can tell whether it is being
11731 # built for inclusion in a dll (and should export symbols for example).
11732 lt_prog_compiler_pic='-DDLL_EXPORT'
11735 hpux9* | hpux10* | hpux11*)
11736 lt_prog_compiler_wl='-Wl,'
11737 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11738 # not for PA HP-UX.
11744 lt_prog_compiler_pic='+Z'
11747 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11748 lt_prog_compiler_static='${wl}-a ${wl}archive'
11751 irix5* | irix6* | nonstopux*)
11752 lt_prog_compiler_wl='-Wl,'
11753 # PIC (with -KPIC) is the default.
11754 lt_prog_compiler_static='-non_shared'
11757 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11758 case $cc_basename in
11759 # old Intel for x86_64 which still supported -KPIC.
11761 lt_prog_compiler_wl='-Wl,'
11762 lt_prog_compiler_pic='-KPIC'
11763 lt_prog_compiler_static='-static'
11765 # icc used to be incompatible with GCC.
11766 # ICC 10 doesn't accept -KPIC any more.
11768 lt_prog_compiler_wl='-Wl,'
11769 lt_prog_compiler_pic='-fPIC'
11770 lt_prog_compiler_static='-static'
11772 # Lahey Fortran 8.1.
11774 lt_prog_compiler_wl='-Wl,'
11775 lt_prog_compiler_pic='--shared'
11776 lt_prog_compiler_static='--static'
11779 # NAG Fortran compiler
11780 lt_prog_compiler_wl='-Wl,-Wl,,'
11781 lt_prog_compiler_pic='-PIC'
11782 lt_prog_compiler_static='-Bstatic'
11784 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11785 # Portland Group compilers (*not* the Pentium gcc compiler,
11786 # which looks to be a dead project)
11787 lt_prog_compiler_wl='-Wl,'
11788 lt_prog_compiler_pic='-fpic'
11789 lt_prog_compiler_static='-Bstatic'
11792 lt_prog_compiler_wl='-Wl,'
11793 # All Alpha code is PIC.
11794 lt_prog_compiler_static='-non_shared'
11796 xl* | bgxl* | bgf* | mpixl*)
11797 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11798 lt_prog_compiler_wl='-Wl,'
11799 lt_prog_compiler_pic='-qpic'
11800 lt_prog_compiler_static='-qstaticlink'
11803 case `$CC -V 2>&1 | sed 5q` in
11804 *Sun\ F* | *Sun*Fortran*)
11805 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11806 lt_prog_compiler_pic='-KPIC'
11807 lt_prog_compiler_static='-Bstatic'
11808 lt_prog_compiler_wl=''
11812 lt_prog_compiler_pic='-KPIC'
11813 lt_prog_compiler_static='-Bstatic'
11814 lt_prog_compiler_wl='-Wl,'
11822 lt_prog_compiler_pic='-KPIC'
11823 lt_prog_compiler_static='-Bstatic'
11827 # QNX uses GNU C++, but need to define -shared option too, otherwise
11828 # it will coredump.
11829 lt_prog_compiler_pic='-fPIC -shared'
11832 osf3* | osf4* | osf5*)
11833 lt_prog_compiler_wl='-Wl,'
11834 # All OSF/1 code is PIC.
11835 lt_prog_compiler_static='-non_shared'
11839 lt_prog_compiler_static='-non_shared'
11843 lt_prog_compiler_pic='-KPIC'
11844 lt_prog_compiler_static='-Bstatic'
11845 case $cc_basename in
11846 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11847 lt_prog_compiler_wl='-Qoption ld ';;
11849 lt_prog_compiler_wl='-Wl,';;
11854 lt_prog_compiler_wl='-Qoption ld '
11855 lt_prog_compiler_pic='-PIC'
11856 lt_prog_compiler_static='-Bstatic'
11859 sysv4 | sysv4.2uw2* | sysv4.3*)
11860 lt_prog_compiler_wl='-Wl,'
11861 lt_prog_compiler_pic='-KPIC'
11862 lt_prog_compiler_static='-Bstatic'
11866 if test -d /usr/nec ;then
11867 lt_prog_compiler_pic='-Kconform_pic'
11868 lt_prog_compiler_static='-Bstatic'
11872 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11873 lt_prog_compiler_wl='-Wl,'
11874 lt_prog_compiler_pic='-KPIC'
11875 lt_prog_compiler_static='-Bstatic'
11879 lt_prog_compiler_wl='-Wl,'
11880 lt_prog_compiler_can_build_shared=no
11884 lt_prog_compiler_pic='-pic'
11885 lt_prog_compiler_static='-Bstatic'
11889 lt_prog_compiler_can_build_shared=no
11895 # For platforms which do not support PIC, -DPIC is meaningless:
11897 lt_prog_compiler_pic=
11900 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11905 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11906 if ${lt_cv_prog_compiler_pic+:} false; then :
11907 $as_echo_n "(cached) " >&6
11909 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11912 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11913 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11916 # Check to make sure the PIC flag actually works.
11918 if test -n "$lt_prog_compiler_pic"; then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11920 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11921 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11922 $as_echo_n "(cached) " >&6
11924 lt_cv_prog_compiler_pic_works=no
11925 ac_outfile=conftest.$ac_objext
11926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11927 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11928 # Insert the option either (1) after the last *FLAGS variable, or
11929 # (2) before a word containing "conftest.", or (3) at the end.
11930 # Note that $ac_compile itself does not contain backslashes and begins
11931 # with a dollar sign (not a hyphen), so the echo should work correctly.
11932 # The option is referenced via a variable to avoid confusing sed.
11933 lt_compile=`echo "$ac_compile" | $SED \
11934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11936 -e 's:$: $lt_compiler_flag:'`
11937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11938 (eval "$lt_compile" 2>conftest.err)
11940 cat conftest.err >&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 if (exit $ac_status) && test -s "$ac_outfile"; then
11943 # The compiler can only warn and ignore the option if not recognized
11944 # So say no if there are warnings other than the usual output.
11945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11948 lt_cv_prog_compiler_pic_works=yes
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11955 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11957 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11958 case $lt_prog_compiler_pic in
11960 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11963 lt_prog_compiler_pic=
11964 lt_prog_compiler_can_build_shared=no
11980 # Check to make sure the static flag actually works.
11982 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11984 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11985 if ${lt_cv_prog_compiler_static_works+:} false; then :
11986 $as_echo_n "(cached) " >&6
11988 lt_cv_prog_compiler_static_works=no
11989 save_LDFLAGS="$LDFLAGS"
11990 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11991 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11992 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11993 # The linker can only warn and ignore the option if not recognized
11994 # So say no if there are warnings
11995 if test -s conftest.err; then
11996 # Append any errors to the config.log.
11997 cat conftest.err 1>&5
11998 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12000 if diff conftest.exp conftest.er2 >/dev/null; then
12001 lt_cv_prog_compiler_static_works=yes
12004 lt_cv_prog_compiler_static_works=yes
12008 LDFLAGS="$save_LDFLAGS"
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12012 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12014 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12017 lt_prog_compiler_static=
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12027 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12028 if ${lt_cv_prog_compiler_c_o+:} false; then :
12029 $as_echo_n "(cached) " >&6
12031 lt_cv_prog_compiler_c_o=no
12032 $RM -r conftest 2>/dev/null
12036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12038 lt_compiler_flag="-o out/conftest2.$ac_objext"
12039 # Insert the option either (1) after the last *FLAGS variable, or
12040 # (2) before a word containing "conftest.", or (3) at the end.
12041 # Note that $ac_compile itself does not contain backslashes and begins
12042 # with a dollar sign (not a hyphen), so the echo should work correctly.
12043 lt_compile=`echo "$ac_compile" | $SED \
12044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12046 -e 's:$: $lt_compiler_flag:'`
12047 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12048 (eval "$lt_compile" 2>out/conftest.err)
12050 cat out/conftest.err >&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12054 # The compiler can only warn and ignore the option if not recognized
12055 # So say no if there are warnings
12056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12057 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12058 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12059 lt_cv_prog_compiler_c_o=yes
12064 # SGI C++ compiler will create directory out/ii_files/ for
12065 # template instantiation
12066 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12067 $RM out/* && rmdir out
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12074 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12082 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12083 if ${lt_cv_prog_compiler_c_o+:} false; then :
12084 $as_echo_n "(cached) " >&6
12086 lt_cv_prog_compiler_c_o=no
12087 $RM -r conftest 2>/dev/null
12091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12093 lt_compiler_flag="-o out/conftest2.$ac_objext"
12094 # Insert the option either (1) after the last *FLAGS variable, or
12095 # (2) before a word containing "conftest.", or (3) at the end.
12096 # Note that $ac_compile itself does not contain backslashes and begins
12097 # with a dollar sign (not a hyphen), so the echo should work correctly.
12098 lt_compile=`echo "$ac_compile" | $SED \
12099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12101 -e 's:$: $lt_compiler_flag:'`
12102 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12103 (eval "$lt_compile" 2>out/conftest.err)
12105 cat out/conftest.err >&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12109 # The compiler can only warn and ignore the option if not recognized
12110 # So say no if there are warnings
12111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12112 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12113 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12114 lt_cv_prog_compiler_c_o=yes
12119 # SGI C++ compiler will create directory out/ii_files/ for
12120 # template instantiation
12121 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12122 $RM out/* && rmdir out
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12129 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12134 hard_links="nottested"
12135 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12136 # do not overwrite the value of need_locks provided by the user
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12138 $as_echo_n "checking if we can lock with hard links... " >&6; }
12141 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12143 ln conftest.a conftest.b 2>&5 || hard_links=no
12144 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12146 $as_echo "$hard_links" >&6; }
12147 if test "$hard_links" = no; then
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12149 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12162 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12165 allow_undefined_flag=
12166 always_export_symbols=no
12168 archive_expsym_cmds=
12169 compiler_needs_object=no
12170 enable_shared_with_static_runtimes=no
12171 export_dynamic_flag_spec=
12172 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12173 hardcode_automatic=no
12175 hardcode_direct_absolute=no
12176 hardcode_libdir_flag_spec=
12177 hardcode_libdir_flag_spec_ld=
12178 hardcode_libdir_separator=
12179 hardcode_minus_L=no
12180 hardcode_shlibpath_var=unsupported
12182 link_all_deplibs=unknown
12184 module_expsym_cmds=
12185 old_archive_from_new_cmds=
12186 old_archive_from_expsyms_cmds=
12187 thread_safe_flag_spec=
12188 whole_archive_flag_spec=
12189 # include_expsyms should be a list of space-separated symbols to be *always*
12190 # included in the symbol list
12192 # exclude_expsyms can be an extended regexp of symbols to exclude
12193 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12194 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12195 # as well as any symbol that contains `d'.
12196 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12197 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12198 # platforms (ab)use it in PIC code, but their linkers get confused if
12199 # the symbol is explicitly referenced. Since portable code cannot
12200 # rely on this symbol name, it's probably fine to never include it in
12201 # preloaded symbol tables.
12202 # Exclude shared library initialization/finalization symbols.
12203 extract_expsyms_cmds=
12206 cygwin* | mingw* | pw32* | cegcc*)
12207 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12208 # When not using gcc, we currently assume that we are using
12209 # Microsoft Visual C++.
12210 if test "$GCC" != yes; then
12215 # we just hope/assume this is gcc and not c89 (= MSVC++)
12225 # On some targets, GNU ld is compatible enough with the native linker
12226 # that we're better off using the native interface for both.
12227 lt_use_gnu_ld_interface=no
12228 if test "$with_gnu_ld" = yes; then
12231 # The AIX port of GNU ld has always aspired to compatibility
12232 # with the native linker. However, as the warning in the GNU ld
12233 # block says, versions before 2.19.5* couldn't really create working
12234 # shared libraries, regardless of the interface used.
12235 case `$LD -v 2>&1` in
12236 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12237 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12238 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12240 lt_use_gnu_ld_interface=yes
12245 lt_use_gnu_ld_interface=yes
12250 if test "$lt_use_gnu_ld_interface" = yes; then
12251 # If archive_cmds runs LD, not CC, wlarc should be empty
12254 # Set some defaults for GNU ld with shared library support. These
12255 # are reset later if shared libraries are not supported. Putting them
12256 # here allows them to be overridden if necessary.
12257 runpath_var=LD_RUN_PATH
12258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12259 export_dynamic_flag_spec='${wl}--export-dynamic'
12260 # ancient GNU ld didn't support --whole-archive et. al.
12261 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12262 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12264 whole_archive_flag_spec=
12266 supports_anon_versioning=no
12267 case `$LD -v 2>&1` in
12268 *GNU\ gold*) supports_anon_versioning=yes ;;
12269 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12270 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12271 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12272 *\ 2.11.*) ;; # other 2.11 versions
12273 *) supports_anon_versioning=yes ;;
12276 # See if GNU ld supports shared libraries.
12279 # On AIX/PPC, the GNU linker is very broken
12280 if test "$host_cpu" != ia64; then
12284 *** Warning: the GNU linker, at least up to release 2.19, is reported
12285 *** to be unable to reliably create shared libraries on AIX.
12286 *** Therefore, libtool is disabling shared libraries support. If you
12287 *** really care for shared libraries, you may want to install binutils
12288 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12289 *** You will then need to restart the configuration process.
12298 # see comment about AmigaOS4 .so support
12299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12300 archive_expsym_cmds=''
12303 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)'
12304 hardcode_libdir_flag_spec='-L$libdir'
12305 hardcode_minus_L=yes
12311 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12312 allow_undefined_flag=unsupported
12313 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12314 # support --undefined. This deserves some investigation. FIXME
12315 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12321 cygwin* | mingw* | pw32* | cegcc*)
12322 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12323 # as there is no search path for DLLs.
12324 hardcode_libdir_flag_spec='-L$libdir'
12325 export_dynamic_flag_spec='${wl}--export-all-symbols'
12326 allow_undefined_flag=unsupported
12327 always_export_symbols=no
12328 enable_shared_with_static_runtimes=yes
12329 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'
12330 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12332 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12334 # If the export-symbols file already is a .def file (1st line
12335 # is EXPORTS), use it as is; otherwise, prepend...
12336 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12337 cp $export_symbols $output_objdir/$soname.def;
12339 echo EXPORTS > $output_objdir/$soname.def;
12340 cat $export_symbols >> $output_objdir/$soname.def;
12342 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12350 link_all_deplibs=yes
12355 hardcode_shlibpath_var=no
12356 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12357 export_dynamic_flag_spec='${wl}-E'
12358 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12359 # Instead, shared libraries are loaded at an image base (0x10000000 by
12360 # default) and relocated if they conflict, which is a slow very memory
12361 # consuming and fragmenting process. To avoid this, we pick a random,
12362 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12363 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12364 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12365 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'
12368 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12370 if test "$host_os" = linux-dietlibc; then
12371 case $cc_basename in
12372 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12375 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12376 && test "$tmp_diet" = no
12378 tmp_addflag=' $pic_flag'
12379 tmp_sharedflag='-shared'
12380 case $cc_basename,$host_cpu in
12381 pgcc*) # Portland Group C compiler
12382 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'
12383 tmp_addflag=' $pic_flag'
12385 pgf77* | pgf90* | pgf95* | pgfortran*)
12386 # Portland Group f77 and f90 compilers
12387 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'
12388 tmp_addflag=' $pic_flag -Mnomain' ;;
12389 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12390 tmp_addflag=' -i_dynamic' ;;
12391 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12392 tmp_addflag=' -i_dynamic -nofor_main' ;;
12393 ifc* | ifort*) # Intel Fortran compiler
12394 tmp_addflag=' -nofor_main' ;;
12395 lf95*) # Lahey Fortran 8.1
12396 whole_archive_flag_spec=
12397 tmp_sharedflag='--shared' ;;
12398 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12399 tmp_sharedflag='-qmkshrobj'
12401 nvcc*) # Cuda Compiler Driver 2.2
12402 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'
12403 compiler_needs_object=yes
12406 case `$CC -V 2>&1 | sed 5q` in
12407 *Sun\ C*) # Sun C 5.9
12408 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'
12409 compiler_needs_object=yes
12410 tmp_sharedflag='-G' ;;
12411 *Sun\ F*) # Sun Fortran 8.3
12412 tmp_sharedflag='-G' ;;
12414 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12416 if test "x$supports_anon_versioning" = xyes; then
12417 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12419 echo "local: *; };" >> $output_objdir/$libname.ver~
12420 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12423 case $cc_basename in
12424 xlf* | bgf* | bgxlf* | mpixlf*)
12425 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12426 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12427 hardcode_libdir_flag_spec=
12428 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12429 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12430 if test "x$supports_anon_versioning" = xyes; then
12431 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12432 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12433 echo "local: *; };" >> $output_objdir/$libname.ver~
12434 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12444 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12445 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12448 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12449 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12454 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12458 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12459 *** create shared libraries on Solaris systems. Therefore, libtool
12460 *** is disabling shared libraries support. We urge you to upgrade GNU
12461 *** binutils to release 2.9.1 or newer. Another option is to modify
12462 *** your PATH or compiler configuration so that the native linker is
12463 *** used, and then restart.
12466 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12467 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12468 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12475 case `$LD -v 2>&1` in
12476 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12480 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12481 *** reliably create shared libraries on SCO systems. Therefore, libtool
12482 *** is disabling shared libraries support. We urge you to upgrade GNU
12483 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12484 *** your PATH or compiler configuration so that the native linker is
12485 *** used, and then restart.
12490 # For security reasons, it is highly recommended that you always
12491 # use absolute paths for naming shared libraries, and exclude the
12492 # DT_RUNPATH tag from executables and libraries. But doing so
12493 # requires that you compile everything twice, which is a pain.
12494 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12506 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12508 hardcode_direct=yes
12509 hardcode_shlibpath_var=no
12513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12514 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12515 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12522 if test "$ld_shlibs" = no; then
12524 hardcode_libdir_flag_spec=
12525 export_dynamic_flag_spec=
12526 whole_archive_flag_spec=
12529 # PORTME fill in a description of your system's linker (not GNU ld)
12532 allow_undefined_flag=unsupported
12533 always_export_symbols=yes
12534 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'
12535 # Note: this linker hardcodes the directories in LIBPATH if there
12536 # are no directories specified by -L.
12537 hardcode_minus_L=yes
12538 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12539 # Neither direct hardcoding nor static linking is supported with a
12541 hardcode_direct=unsupported
12546 if test "$host_cpu" = ia64; then
12547 # On IA64, the linker does run time linking by default, so we don't
12548 # have to do anything special.
12549 aix_use_runtimelinking=no
12550 exp_sym_flag='-Bexport'
12553 # If we're using GNU nm, then we don't want the "-C" option.
12554 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12555 # Also, AIX nm treats weak defined symbols like other global
12556 # defined symbols, whereas GNU nm marks them as "W".
12557 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12558 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'
12560 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'
12562 aix_use_runtimelinking=no
12564 # Test if we are trying to use run time linking or normal
12565 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12566 # need to do runtime linking.
12567 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12568 for ld_flag in $LDFLAGS; do
12569 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12570 aix_use_runtimelinking=yes
12577 exp_sym_flag='-bexport'
12578 no_entry_flag='-bnoentry'
12581 # When large executables or shared objects are built, AIX ld can
12582 # have problems creating the table of contents. If linking a library
12583 # or program results in "error TOC overflow" add -mminimal-toc to
12584 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12585 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12588 hardcode_direct=yes
12589 hardcode_direct_absolute=yes
12590 hardcode_libdir_separator=':'
12591 link_all_deplibs=yes
12592 file_list_spec='${wl}-f,'
12594 if test "$GCC" = yes; then
12595 case $host_os in aix4.[012]|aix4.[012].*)
12596 # We only want to do this on AIX 4.2 and lower, the check
12597 # below for broken collect2 doesn't work under 4.3+
12598 collect2name=`${CC} -print-prog-name=collect2`
12599 if test -f "$collect2name" &&
12600 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12602 # We have reworked collect2
12605 # We have old collect2
12606 hardcode_direct=unsupported
12607 # It fails to find uninstalled libraries when the uninstalled
12608 # path is not listed in the libpath. Setting hardcode_minus_L
12609 # to unsupported forces relinking
12610 hardcode_minus_L=yes
12611 hardcode_libdir_flag_spec='-L$libdir'
12612 hardcode_libdir_separator=
12616 shared_flag='-shared'
12617 if test "$aix_use_runtimelinking" = yes; then
12618 shared_flag="$shared_flag "'${wl}-G'
12622 if test "$host_cpu" = ia64; then
12623 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12624 # chokes on -Wl,-G. The following line is correct:
12627 if test "$aix_use_runtimelinking" = yes; then
12628 shared_flag='${wl}-G'
12630 shared_flag='${wl}-bM:SRE'
12635 export_dynamic_flag_spec='${wl}-bexpall'
12636 # It seems that -bexpall does not export symbols beginning with
12637 # underscore (_), so it is better to generate a list of symbols to export.
12638 always_export_symbols=yes
12639 if test "$aix_use_runtimelinking" = yes; then
12640 # Warning - without using the other runtime loading flags (-brtl),
12641 # -berok will link without error, but may produce a broken library.
12642 allow_undefined_flag='-berok'
12643 # Determine the default libpath from the value encoded in an
12644 # empty executable.
12645 if test "${lt_cv_aix_libpath+set}" = set; then
12646 aix_libpath=$lt_cv_aix_libpath
12648 if ${lt_cv_aix_libpath_+:} false; then :
12649 $as_echo_n "(cached) " >&6
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12662 if ac_fn_c_try_link "$LINENO"; then :
12664 lt_aix_libpath_sed='
12665 /Import File Strings/,/^$/ {
12667 s/^0 *\([^ ]*\) *$/\1/
12671 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12672 # Check for a 64-bit object if we didn't find anything.
12673 if test -z "$lt_cv_aix_libpath_"; then
12674 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12677 rm -f core conftest.err conftest.$ac_objext \
12678 conftest$ac_exeext conftest.$ac_ext
12679 if test -z "$lt_cv_aix_libpath_"; then
12680 lt_cv_aix_libpath_="/usr/lib:/lib"
12685 aix_libpath=$lt_cv_aix_libpath_
12688 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12689 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"
12691 if test "$host_cpu" = ia64; then
12692 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12693 allow_undefined_flag="-z nodefs"
12694 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"
12696 # Determine the default libpath from the value encoded in an
12697 # empty executable.
12698 if test "${lt_cv_aix_libpath+set}" = set; then
12699 aix_libpath=$lt_cv_aix_libpath
12701 if ${lt_cv_aix_libpath_+:} false; then :
12702 $as_echo_n "(cached) " >&6
12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12715 if ac_fn_c_try_link "$LINENO"; then :
12717 lt_aix_libpath_sed='
12718 /Import File Strings/,/^$/ {
12720 s/^0 *\([^ ]*\) *$/\1/
12724 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12725 # Check for a 64-bit object if we didn't find anything.
12726 if test -z "$lt_cv_aix_libpath_"; then
12727 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12730 rm -f core conftest.err conftest.$ac_objext \
12731 conftest$ac_exeext conftest.$ac_ext
12732 if test -z "$lt_cv_aix_libpath_"; then
12733 lt_cv_aix_libpath_="/usr/lib:/lib"
12738 aix_libpath=$lt_cv_aix_libpath_
12741 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12742 # Warning - without using the other run time loading flags,
12743 # -berok will link without error, but may produce a broken library.
12744 no_undefined_flag=' ${wl}-bernotok'
12745 allow_undefined_flag=' ${wl}-berok'
12746 if test "$with_gnu_ld" = yes; then
12747 # We only use this code for GNU lds that support --whole-archive.
12748 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12750 # Exported symbols can be pulled into shared objects from archives
12751 whole_archive_flag_spec='$convenience'
12753 archive_cmds_need_lc=yes
12754 # This is similar to how AIX traditionally builds its shared libraries.
12755 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'
12763 # see comment about AmigaOS4 .so support
12764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12765 archive_expsym_cmds=''
12768 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)'
12769 hardcode_libdir_flag_spec='-L$libdir'
12770 hardcode_minus_L=yes
12776 export_dynamic_flag_spec=-rdynamic
12779 cygwin* | mingw* | pw32* | cegcc*)
12780 # When not using gcc, we currently assume that we are using
12781 # Microsoft Visual C++.
12782 # hardcode_libdir_flag_spec is actually meaningless, as there is
12783 # no search path for DLLs.
12784 case $cc_basename in
12787 hardcode_libdir_flag_spec=' '
12788 allow_undefined_flag=unsupported
12789 always_export_symbols=yes
12791 # Tell ltmain to make .lib files, not .a files.
12793 # Tell ltmain to make .dll files, not .so files.
12795 # FIXME: Setting linknames here is a bad hack.
12796 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12797 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12798 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12800 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12802 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12804 # The linker will not automatically build a static lib if we build a DLL.
12805 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12806 enable_shared_with_static_runtimes=yes
12807 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12809 old_postinstall_cmds='chmod 644 $oldlib'
12810 postlink_cmds='lt_outputfile="@OUTPUT@"~
12811 lt_tool_outputfile="@TOOL_OUTPUT@"~
12812 case $lt_outputfile in
12815 lt_outputfile="$lt_outputfile.exe"
12816 lt_tool_outputfile="$lt_tool_outputfile.exe"
12819 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12820 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12821 $RM "$lt_outputfile.manifest";
12825 # Assume MSVC wrapper
12826 hardcode_libdir_flag_spec=' '
12827 allow_undefined_flag=unsupported
12828 # Tell ltmain to make .lib files, not .a files.
12830 # Tell ltmain to make .dll files, not .so files.
12832 # FIXME: Setting linknames here is a bad hack.
12833 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12834 # The linker will automatically build a .lib file if we build a DLL.
12835 old_archive_from_new_cmds='true'
12836 # FIXME: Should let the user specify the lib program.
12837 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12838 enable_shared_with_static_runtimes=yes
12843 darwin* | rhapsody*)
12846 archive_cmds_need_lc=no
12848 hardcode_automatic=yes
12849 hardcode_shlibpath_var=unsupported
12850 if test "$lt_cv_ld_force_load" = "yes"; then
12851 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\"`'
12853 whole_archive_flag_spec=''
12855 link_all_deplibs=yes
12856 allow_undefined_flag="$_lt_dar_allow_undefined"
12857 case $cc_basename in
12858 ifort*) _lt_dar_can_shared=yes ;;
12859 *) _lt_dar_can_shared=$GCC ;;
12861 if test "$_lt_dar_can_shared" = "yes"; then
12862 output_verbose_link_cmd=func_echo_all
12863 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12864 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12865 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}"
12866 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}"
12875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12876 hardcode_libdir_flag_spec='-L$libdir'
12877 hardcode_shlibpath_var=no
12884 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12885 # support. Future versions do this automatically, but an explicit c++rt0.o
12886 # does not break anything, and helps significantly (at the cost of a little
12889 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12890 hardcode_libdir_flag_spec='-R$libdir'
12891 hardcode_direct=yes
12892 hardcode_shlibpath_var=no
12895 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12897 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12898 hardcode_direct=yes
12899 hardcode_minus_L=yes
12900 hardcode_shlibpath_var=no
12903 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12904 freebsd* | dragonfly*)
12905 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12906 hardcode_libdir_flag_spec='-R$libdir'
12907 hardcode_direct=yes
12908 hardcode_shlibpath_var=no
12912 if test "$GCC" = yes; then
12913 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'
12915 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'
12917 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12918 hardcode_libdir_separator=:
12919 hardcode_direct=yes
12921 # hardcode_minus_L: Not really in the search PATH,
12922 # but as the default location of the library.
12923 hardcode_minus_L=yes
12924 export_dynamic_flag_spec='${wl}-E'
12928 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12929 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12931 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12933 if test "$with_gnu_ld" = no; then
12934 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12935 hardcode_libdir_flag_spec_ld='+b $libdir'
12936 hardcode_libdir_separator=:
12937 hardcode_direct=yes
12938 hardcode_direct_absolute=yes
12939 export_dynamic_flag_spec='${wl}-E'
12940 # hardcode_minus_L: Not really in the search PATH,
12941 # but as the default location of the library.
12942 hardcode_minus_L=yes
12947 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12950 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12953 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12956 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12962 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12965 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12969 # Older versions of the 11.00 compiler do not understand -b yet
12970 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12972 $as_echo_n "checking if $CC understands -b... " >&6; }
12973 if ${lt_cv_prog_compiler__b+:} false; then :
12974 $as_echo_n "(cached) " >&6
12976 lt_cv_prog_compiler__b=no
12977 save_LDFLAGS="$LDFLAGS"
12978 LDFLAGS="$LDFLAGS -b"
12979 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12980 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12981 # The linker can only warn and ignore the option if not recognized
12982 # So say no if there are warnings
12983 if test -s conftest.err; then
12984 # Append any errors to the config.log.
12985 cat conftest.err 1>&5
12986 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12988 if diff conftest.exp conftest.er2 >/dev/null; then
12989 lt_cv_prog_compiler__b=yes
12992 lt_cv_prog_compiler__b=yes
12996 LDFLAGS="$save_LDFLAGS"
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13000 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13002 if test x"$lt_cv_prog_compiler__b" = xyes; then
13003 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13005 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13011 if test "$with_gnu_ld" = no; then
13012 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13013 hardcode_libdir_separator=:
13018 hardcode_shlibpath_var=no
13021 hardcode_direct=yes
13022 hardcode_direct_absolute=yes
13023 export_dynamic_flag_spec='${wl}-E'
13025 # hardcode_minus_L: Not really in the search PATH,
13026 # but as the default location of the library.
13027 hardcode_minus_L=yes
13033 irix5* | irix6* | nonstopux*)
13034 if test "$GCC" = yes; then
13035 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'
13036 # Try to use the -exported_symbol ld option, if it does not
13037 # work, assume that -exports_file does not work either and
13038 # implicitly export all symbols.
13039 # This should be the same for all languages, so no per-tag cache variable.
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13041 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13042 if ${lt_cv_irix_exported_symbol+:} false; then :
13043 $as_echo_n "(cached) " >&6
13045 save_LDFLAGS="$LDFLAGS"
13046 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h. */
13049 int foo (void) { return 0; }
13051 if ac_fn_c_try_link "$LINENO"; then :
13052 lt_cv_irix_exported_symbol=yes
13054 lt_cv_irix_exported_symbol=no
13056 rm -f core conftest.err conftest.$ac_objext \
13057 conftest$ac_exeext conftest.$ac_ext
13058 LDFLAGS="$save_LDFLAGS"
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13061 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13062 if test "$lt_cv_irix_exported_symbol" = yes; then
13063 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'
13066 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'
13067 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'
13069 archive_cmds_need_lc='no'
13070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13071 hardcode_libdir_separator=:
13073 link_all_deplibs=yes
13077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13078 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13080 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13082 hardcode_libdir_flag_spec='-R$libdir'
13083 hardcode_direct=yes
13084 hardcode_shlibpath_var=no
13088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13089 hardcode_direct=yes
13090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13091 hardcode_libdir_separator=:
13092 hardcode_shlibpath_var=no
13099 if test -f /usr/libexec/ld.so; then
13100 hardcode_direct=yes
13101 hardcode_shlibpath_var=no
13102 hardcode_direct_absolute=yes
13103 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13104 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13105 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13106 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13107 export_dynamic_flag_spec='${wl}-E'
13110 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13112 hardcode_libdir_flag_spec='-R$libdir'
13115 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13116 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13126 hardcode_libdir_flag_spec='-L$libdir'
13127 hardcode_minus_L=yes
13128 allow_undefined_flag=unsupported
13129 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'
13130 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13134 if test "$GCC" = yes; then
13135 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13136 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'
13138 allow_undefined_flag=' -expect_unresolved \*'
13139 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'
13141 archive_cmds_need_lc='no'
13142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13143 hardcode_libdir_separator=:
13146 osf4* | osf5*) # as osf3* with the addition of -msym flag
13147 if test "$GCC" = yes; then
13148 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13149 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'
13150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13152 allow_undefined_flag=' -expect_unresolved \*'
13153 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'
13154 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~
13155 $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'
13157 # Both c and cxx compiler support -rpath directly
13158 hardcode_libdir_flag_spec='-rpath $libdir'
13160 archive_cmds_need_lc='no'
13161 hardcode_libdir_separator=:
13165 no_undefined_flag=' -z defs'
13166 if test "$GCC" = yes; then
13168 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13170 $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'
13172 case `$CC -V 2>&1` in
13175 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13176 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13177 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13181 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13182 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13183 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13187 hardcode_libdir_flag_spec='-R$libdir'
13188 hardcode_shlibpath_var=no
13190 solaris2.[0-5] | solaris2.[0-5].*) ;;
13192 # The compiler driver will combine and reorder linker options,
13193 # but understands `-z linker_flag'. GCC discards it without `$wl',
13194 # but is careful enough not to reorder.
13195 # Supported since Solaris 2.6 (maybe 2.5.1?)
13196 if test "$GCC" = yes; then
13197 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13199 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13203 link_all_deplibs=yes
13207 if test "x$host_vendor" = xsequent; then
13208 # Use $CC to link under sequent, because it throws in some extra .o
13209 # files that make .init and .fini sections work.
13210 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13212 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13214 hardcode_libdir_flag_spec='-L$libdir'
13215 hardcode_direct=yes
13216 hardcode_minus_L=yes
13217 hardcode_shlibpath_var=no
13221 case $host_vendor in
13223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13224 hardcode_direct=yes # is this really true???
13227 ## LD is ld it makes a PLAMLIB
13228 ## CC just makes a GrossModule.
13229 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13230 reload_cmds='$CC -r -o $output$reload_objs'
13234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13235 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13238 runpath_var='LD_RUN_PATH'
13239 hardcode_shlibpath_var=no
13243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13244 hardcode_shlibpath_var=no
13245 export_dynamic_flag_spec='-Bexport'
13249 if test -d /usr/nec; then
13250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13251 hardcode_shlibpath_var=no
13252 runpath_var=LD_RUN_PATH
13253 hardcode_runpath_var=yes
13258 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13259 no_undefined_flag='${wl}-z,text'
13260 archive_cmds_need_lc=no
13261 hardcode_shlibpath_var=no
13262 runpath_var='LD_RUN_PATH'
13264 if test "$GCC" = yes; then
13265 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13266 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13268 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13269 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13273 sysv5* | sco3.2v5* | sco5v6*)
13274 # Note: We can NOT use -z defs as we might desire, because we do not
13275 # link with -lc, and that would cause any symbols used from libc to
13276 # always be unresolved, which means just about no library would
13277 # ever link correctly. If we're not using GNU ld we use -z text
13278 # though, which does catch some bad symbols but isn't as heavy-handed
13280 no_undefined_flag='${wl}-z,text'
13281 allow_undefined_flag='${wl}-z,nodefs'
13282 archive_cmds_need_lc=no
13283 hardcode_shlibpath_var=no
13284 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13285 hardcode_libdir_separator=':'
13286 link_all_deplibs=yes
13287 export_dynamic_flag_spec='${wl}-Bexport'
13288 runpath_var='LD_RUN_PATH'
13290 if test "$GCC" = yes; then
13291 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13292 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13294 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13295 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13301 hardcode_libdir_flag_spec='-L$libdir'
13302 hardcode_shlibpath_var=no
13310 if test x$host_vendor = xsni; then
13312 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13313 export_dynamic_flag_spec='${wl}-Blargedynsym'
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13320 $as_echo "$ld_shlibs" >&6; }
13321 test "$ld_shlibs" = no && can_build_shared=no
13323 with_gnu_ld=$with_gnu_ld
13340 # Do we need to explicitly link libc?
13342 case "x$archive_cmds_need_lc" in
13344 # Assume -lc should be added
13345 archive_cmds_need_lc=yes
13347 if test "$enable_shared" = yes && test "$GCC" = yes; then
13348 case $archive_cmds in
13350 # FIXME: we may have to deal with multi-command sequences.
13353 # Test whether the compiler implicitly links with -lc since on some
13354 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13355 # to ld, don't add -lc before -lgcc.
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13357 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13358 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13359 $as_echo_n "(cached) " >&6
13362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13365 (eval $ac_compile) 2>&5
13367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13368 test $ac_status = 0; } 2>conftest.err; then
13371 libobjs=conftest.$ac_objext
13373 wl=$lt_prog_compiler_wl
13374 pic_flag=$lt_prog_compiler_pic
13380 lt_save_allow_undefined_flag=$allow_undefined_flag
13381 allow_undefined_flag=
13382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13383 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13386 test $ac_status = 0; }
13388 lt_cv_archive_cmds_need_lc=no
13390 lt_cv_archive_cmds_need_lc=yes
13392 allow_undefined_flag=$lt_save_allow_undefined_flag
13394 cat conftest.err 1>&5
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13400 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13401 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13565 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13567 if test "$GCC" = yes; then
13569 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13570 *) lt_awk_arg="/^libraries:/" ;;
13573 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13574 *) lt_sed_strip_eq="s,=/,/,g" ;;
13576 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13577 case $lt_search_path_spec in
13579 # if the path contains ";" then we assume it to be the separator
13580 # otherwise default to the standard path separator (i.e. ":") - it is
13581 # assumed that no part of a normal pathname contains ";" but that should
13582 # okay in the real world where ";" in dirpaths is itself problematic.
13583 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13586 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13589 # Ok, now we have the path, separated by spaces, we can step through it
13590 # and add multilib dir if necessary.
13591 lt_tmp_lt_search_path_spec=
13592 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13593 for lt_sys_path in $lt_search_path_spec; do
13594 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13595 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13597 test -d "$lt_sys_path" && \
13598 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13601 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13602 BEGIN {RS=" "; FS="/|\n";} {
13605 for (lt_i = NF; lt_i > 0; lt_i--) {
13606 if ($lt_i != "" && $lt_i != ".") {
13607 if ($lt_i == "..") {
13610 if (lt_count == 0) {
13611 lt_foo="/" $lt_i lt_foo;
13618 if (lt_foo != "") { lt_freq[lt_foo]++; }
13619 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13621 # AWK program above erroneously prepends '/' to C:/dos/paths
13624 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13625 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13627 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13629 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13631 library_names_spec=
13632 libname_spec='lib$name'
13636 postuninstall_cmds=
13640 shlibpath_overrides_runpath=unknown
13642 dynamic_linker="$host_os ld.so"
13643 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13644 need_lib_prefix=unknown
13645 hardcode_into_libs=no
13647 # when you set need_version to no, make sure it does not cause -set_version
13648 # flags to be left without arguments
13649 need_version=unknown
13654 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13655 shlibpath_var=LIBPATH
13657 # AIX 3 has no versioning support, so we append a major version to the name.
13658 soname_spec='${libname}${release}${shared_ext}$major'
13665 hardcode_into_libs=yes
13666 if test "$host_cpu" = ia64; then
13667 # AIX 5 supports IA64
13668 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13669 shlibpath_var=LD_LIBRARY_PATH
13671 # With GCC up to 2.95.x, collect2 would create an import file
13672 # for dependence libraries. The import file would start with
13673 # the line `#! .'. This would cause the generated library to
13674 # depend on `.', always an invalid library. This was fixed in
13675 # development snapshots of GCC prior to 3.0.
13677 aix4 | aix4.[01] | aix4.[01].*)
13678 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13680 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13683 can_build_shared=no
13687 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13688 # soname into executable. Probably we can add versioning support to
13689 # collect2, so additional links can be useful in future.
13690 if test "$aix_use_runtimelinking" = yes; then
13691 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13692 # instead of lib<name>.a to let people know that these are not
13693 # typical AIX shared libraries.
13694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13696 # We preserve .a as extension for shared libraries through AIX4.2
13697 # and later when we are not doing run time linking.
13698 library_names_spec='${libname}${release}.a $libname.a'
13699 soname_spec='${libname}${release}${shared_ext}$major'
13701 shlibpath_var=LIBPATH
13708 # Since July 2007 AmigaOS4 officially supports .so libraries.
13709 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13713 library_names_spec='$libname.ixlibrary $libname.a'
13714 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13715 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'
13721 library_names_spec='${libname}${shared_ext}'
13722 dynamic_linker="$host_os ld.so"
13723 shlibpath_var=LIBRARY_PATH
13729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13730 soname_spec='${libname}${release}${shared_ext}$major'
13731 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13732 shlibpath_var=LD_LIBRARY_PATH
13733 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13734 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13735 # the default ld.so.conf also contains /usr/contrib/lib and
13736 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13737 # libtool to hard-code these into programs
13740 cygwin* | mingw* | pw32* | cegcc*)
13741 version_type=windows
13746 case $GCC,$cc_basename in
13749 library_names_spec='$libname.dll.a'
13750 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13751 postinstall_cmds='base_file=`basename \${file}`~
13752 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13753 dldir=$destdir/`dirname \$dlpath`~
13754 test -d \$dldir || mkdir -p \$dldir~
13755 $install_prog $dir/$dlname \$dldir/$dlname~
13756 chmod a+x \$dldir/$dlname~
13757 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13758 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13760 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13761 dlpath=$dir/\$dldll~
13763 shlibpath_overrides_runpath=yes
13767 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13768 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13770 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13773 # MinGW DLLs use traditional 'lib' prefix
13774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13777 # pw32 DLLs use 'pw' prefix rather than 'lib'
13778 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13781 dynamic_linker='Win32 ld.exe'
13786 libname_spec='$name'
13787 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13788 library_names_spec='${libname}.dll.lib'
13792 sys_lib_search_path_spec=
13795 for lt_path in $LIB
13798 # Let DOS variable expansion print the short 8.3 style file name.
13799 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13800 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13803 # Convert to MSYS style.
13804 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13807 # Convert to unix form, then to dos form, then back to unix form
13808 # but this time dos style (no spaces!) so that the unix form looks
13809 # like /cygdrive/c/PROGRA~1:/cygdr...
13810 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13811 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13812 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13815 sys_lib_search_path_spec="$LIB"
13816 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13817 # It is most probably a Windows format PATH.
13818 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13820 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13822 # FIXME: find the short name or the path components, as spaces are
13823 # common. (e.g. "Program Files" -> "PROGRA~1")
13827 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13828 postinstall_cmds='base_file=`basename \${file}`~
13829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13830 dldir=$destdir/`dirname \$dlpath`~
13831 test -d \$dldir || mkdir -p \$dldir~
13832 $install_prog $dir/$dlname \$dldir/$dlname'
13833 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13834 dlpath=$dir/\$dldll~
13836 shlibpath_overrides_runpath=yes
13837 dynamic_linker='Win32 link.exe'
13841 # Assume MSVC wrapper
13842 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13843 dynamic_linker='Win32 ld.exe'
13846 # FIXME: first we should search . and the directory the executable is in
13850 darwin* | rhapsody*)
13851 dynamic_linker="$host_os dyld"
13852 version_type=darwin
13855 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13856 soname_spec='${libname}${release}${major}$shared_ext'
13857 shlibpath_overrides_runpath=yes
13858 shlibpath_var=DYLD_LIBRARY_PATH
13859 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13861 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13862 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13870 soname_spec='${libname}${release}${shared_ext}$major'
13871 shlibpath_var=LD_LIBRARY_PATH
13878 freebsd* | dragonfly*)
13879 # DragonFly does not have aout. When/if they implement a new
13880 # versioning mechanism, adjust this.
13881 if test -x /usr/bin/objformat; then
13882 objformat=`/usr/bin/objformat`
13885 freebsd[123]*) objformat=aout ;;
13886 *) objformat=elf ;;
13889 version_type=freebsd-$objformat
13890 case $version_type in
13892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13897 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13901 shlibpath_var=LD_LIBRARY_PATH
13904 shlibpath_overrides_runpath=yes
13906 freebsd3.[01]* | freebsdelf3.[01]*)
13907 shlibpath_overrides_runpath=yes
13908 hardcode_into_libs=yes
13910 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13911 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13912 shlibpath_overrides_runpath=no
13913 hardcode_into_libs=yes
13915 *) # from 4.6 on, and DragonFly
13916 shlibpath_overrides_runpath=yes
13917 hardcode_into_libs=yes
13926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13927 soname_spec='${libname}${release}${shared_ext}$major'
13928 shlibpath_var=LD_LIBRARY_PATH
13929 hardcode_into_libs=yes
13936 dynamic_linker="$host_os runtime_loader"
13937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13938 soname_spec='${libname}${release}${shared_ext}$major'
13939 shlibpath_var=LIBRARY_PATH
13940 shlibpath_overrides_runpath=yes
13941 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13942 hardcode_into_libs=yes
13945 hpux9* | hpux10* | hpux11*)
13946 # Give a soname corresponding to the major version so that dld.sl refuses to
13947 # link against other versions.
13954 hardcode_into_libs=yes
13955 dynamic_linker="$host_os dld.so"
13956 shlibpath_var=LD_LIBRARY_PATH
13957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13959 soname_spec='${libname}${release}${shared_ext}$major'
13960 if test "X$HPUX_IA64_MODE" = X32; then
13961 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13963 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13969 hardcode_into_libs=yes
13970 dynamic_linker="$host_os dld.sl"
13971 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13972 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13974 soname_spec='${libname}${release}${shared_ext}$major'
13975 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13980 dynamic_linker="$host_os dld.sl"
13981 shlibpath_var=SHLIB_PATH
13982 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13984 soname_spec='${libname}${release}${shared_ext}$major'
13987 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13988 postinstall_cmds='chmod 555 $lib'
13989 # or fails outright, so override atomically:
13990 install_override_mode=555
13997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13998 soname_spec='${libname}${release}${shared_ext}$major'
13999 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14000 shlibpath_var=LD_LIBRARY_PATH
14001 shlibpath_overrides_runpath=no
14002 hardcode_into_libs=yes
14005 irix5* | irix6* | nonstopux*)
14007 nonstopux*) version_type=nonstopux ;;
14009 if test "$lt_cv_prog_gnu_ld" = yes; then
14017 soname_spec='${libname}${release}${shared_ext}$major'
14018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14020 irix5* | nonstopux*)
14021 libsuff= shlibsuff=
14024 case $LD in # libtool.m4 will add one of these switches to LD
14025 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14026 libsuff= shlibsuff= libmagic=32-bit;;
14027 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14028 libsuff=32 shlibsuff=N32 libmagic=N32;;
14029 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14030 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14031 *) libsuff= shlibsuff= libmagic=never-match;;
14035 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14036 shlibpath_overrides_runpath=no
14037 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14038 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14039 hardcode_into_libs=yes
14042 # No shared lib support for Linux oldld, aout, or coff.
14043 linux*oldld* | linux*aout* | linux*coff*)
14047 # This must be Linux ELF.
14048 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14053 soname_spec='${libname}${release}${shared_ext}$major'
14054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14055 shlibpath_var=LD_LIBRARY_PATH
14056 shlibpath_overrides_runpath=no
14058 # Some binutils ld are patched to set DT_RUNPATH
14059 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14060 $as_echo_n "(cached) " >&6
14062 lt_cv_shlibpath_overrides_runpath=no
14063 save_LDFLAGS=$LDFLAGS
14064 save_libdir=$libdir
14065 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14066 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068 /* end confdefs.h. */
14078 if ac_fn_c_try_link "$LINENO"; then :
14079 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14080 lt_cv_shlibpath_overrides_runpath=yes
14083 rm -f core conftest.err conftest.$ac_objext \
14084 conftest$ac_exeext conftest.$ac_ext
14085 LDFLAGS=$save_LDFLAGS
14086 libdir=$save_libdir
14090 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14092 # This implies no fast_install, which is unacceptable.
14093 # Some rework will be needed to allow for fast_install
14094 # before this can be enabled.
14095 hardcode_into_libs=yes
14097 # Append ld.so.conf contents to the search path
14098 if test -f /etc/ld.so.conf; then
14099 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' ' '`
14100 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14103 # We used to test for /lib/ld.so.1 and disable shared libraries on
14104 # powerpc, because MkLinux only supported shared libraries with the
14105 # GNU dynamic linker. Since this was broken with cross compilers,
14106 # most powerpc-linux boxes support dynamic linking these days and
14107 # people can always --disable-shared, the test was removed, and we
14108 # assume the GNU/Linux dynamic linker is in use.
14109 dynamic_linker='GNU/Linux ld.so'
14116 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14119 dynamic_linker='NetBSD (a.out) ld.so'
14121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14122 soname_spec='${libname}${release}${shared_ext}$major'
14123 dynamic_linker='NetBSD ld.elf_so'
14125 shlibpath_var=LD_LIBRARY_PATH
14126 shlibpath_overrides_runpath=yes
14127 hardcode_into_libs=yes
14132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14133 shlibpath_var=LD_LIBRARY_PATH
14134 shlibpath_overrides_runpath=yes
14141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14142 soname_spec='${libname}${release}${shared_ext}$major'
14143 shlibpath_var=LD_LIBRARY_PATH
14144 shlibpath_overrides_runpath=no
14145 hardcode_into_libs=yes
14146 dynamic_linker='ldqnx.so'
14151 sys_lib_dlsearch_path_spec="/usr/lib"
14153 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14155 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14156 *) need_version=no ;;
14158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14160 shlibpath_var=LD_LIBRARY_PATH
14161 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14163 openbsd2.[89] | openbsd2.[89].*)
14164 shlibpath_overrides_runpath=no
14167 shlibpath_overrides_runpath=yes
14171 shlibpath_overrides_runpath=yes
14176 libname_spec='$name'
14179 library_names_spec='$libname${shared_ext} $libname.a'
14180 dynamic_linker='OS/2 ld.exe'
14181 shlibpath_var=LIBPATH
14184 osf3* | osf4* | osf5*)
14188 soname_spec='${libname}${release}${shared_ext}$major'
14189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14190 shlibpath_var=LD_LIBRARY_PATH
14191 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14192 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14204 soname_spec='${libname}${release}${shared_ext}$major'
14205 shlibpath_var=LD_LIBRARY_PATH
14206 shlibpath_overrides_runpath=yes
14207 hardcode_into_libs=yes
14208 # ldd complains unless libraries are executable
14209 postinstall_cmds='chmod +x $lib'
14214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14215 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14216 shlibpath_var=LD_LIBRARY_PATH
14217 shlibpath_overrides_runpath=yes
14218 if test "$with_gnu_ld" = yes; then
14226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14227 soname_spec='${libname}${release}${shared_ext}$major'
14228 shlibpath_var=LD_LIBRARY_PATH
14229 case $host_vendor in
14231 shlibpath_overrides_runpath=no
14233 runpath_var=LD_RUN_PATH
14241 shlibpath_overrides_runpath=no
14242 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14248 if test -d /usr/nec ;then
14250 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14251 soname_spec='$libname${shared_ext}.$major'
14252 shlibpath_var=LD_LIBRARY_PATH
14256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14257 version_type=freebsd-elf
14260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14261 soname_spec='${libname}${release}${shared_ext}$major'
14262 shlibpath_var=LD_LIBRARY_PATH
14263 shlibpath_overrides_runpath=yes
14264 hardcode_into_libs=yes
14265 if test "$with_gnu_ld" = yes; then
14266 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14268 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14271 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14275 sys_lib_dlsearch_path_spec='/usr/lib'
14279 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14284 shlibpath_var=LD_LIBRARY_PATH
14285 shlibpath_overrides_runpath=no
14286 hardcode_into_libs=yes
14291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14292 soname_spec='${libname}${release}${shared_ext}$major'
14293 shlibpath_var=LD_LIBRARY_PATH
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14301 $as_echo "$dynamic_linker" >&6; }
14302 test "$dynamic_linker" = no && can_build_shared=no
14304 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14305 if test "$GCC" = yes; then
14306 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14309 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14310 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14312 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14313 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14408 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14410 if test -n "$hardcode_libdir_flag_spec" ||
14411 test -n "$runpath_var" ||
14412 test "X$hardcode_automatic" = "Xyes" ; then
14414 # We can hardcode non-existent directories.
14415 if test "$hardcode_direct" != no &&
14416 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14417 # have to relink, otherwise we might link with an installed library
14418 # when we should be linking with a yet-to-be-installed one
14419 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14420 test "$hardcode_minus_L" != no; then
14421 # Linking always hardcodes the temporary library directory.
14422 hardcode_action=relink
14424 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14425 hardcode_action=immediate
14428 # We cannot hardcode anything, or else we can only hardcode existing
14430 hardcode_action=unsupported
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14433 $as_echo "$hardcode_action" >&6; }
14435 if test "$hardcode_action" = relink ||
14436 test "$inherit_rpath" = yes; then
14437 # Fast installation is not supported
14438 enable_fast_install=no
14439 elif test "$shlibpath_overrides_runpath" = yes ||
14440 test "$enable_shared" = no; then
14441 # Fast installation is not necessary
14442 enable_fast_install=needless
14450 if test "x$enable_dlopen" != xyes; then
14451 enable_dlopen=unknown
14452 enable_dlopen_self=unknown
14453 enable_dlopen_self_static=unknown
14460 lt_cv_dlopen="load_add_on"
14462 lt_cv_dlopen_self=yes
14465 mingw* | pw32* | cegcc*)
14466 lt_cv_dlopen="LoadLibrary"
14471 lt_cv_dlopen="dlopen"
14476 # if libdl is installed we need to link against it
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14478 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14479 if ${ac_cv_lib_dl_dlopen+:} false; then :
14480 $as_echo_n "(cached) " >&6
14482 ac_check_lib_save_LIBS=$LIBS
14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14487 /* Override any GCC internal prototype to avoid an error.
14488 Use char because int might match the return type of a GCC
14489 builtin and then its argument prototype would still apply. */
14502 if ac_fn_c_try_link "$LINENO"; then :
14503 ac_cv_lib_dl_dlopen=yes
14505 ac_cv_lib_dl_dlopen=no
14507 rm -f core conftest.err conftest.$ac_objext \
14508 conftest$ac_exeext conftest.$ac_ext
14509 LIBS=$ac_check_lib_save_LIBS
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14512 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14513 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14514 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14517 lt_cv_dlopen="dyld"
14519 lt_cv_dlopen_self=yes
14526 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14527 if test "x$ac_cv_func_shl_load" = xyes; then :
14528 lt_cv_dlopen="shl_load"
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14531 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14532 if ${ac_cv_lib_dld_shl_load+:} false; then :
14533 $as_echo_n "(cached) " >&6
14535 ac_check_lib_save_LIBS=$LIBS
14537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h. */
14540 /* Override any GCC internal prototype to avoid an error.
14541 Use char because int might match the return type of a GCC
14542 builtin and then its argument prototype would still apply. */
14550 return shl_load ();
14555 if ac_fn_c_try_link "$LINENO"; then :
14556 ac_cv_lib_dld_shl_load=yes
14558 ac_cv_lib_dld_shl_load=no
14560 rm -f core conftest.err conftest.$ac_objext \
14561 conftest$ac_exeext conftest.$ac_ext
14562 LIBS=$ac_check_lib_save_LIBS
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14565 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14566 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14567 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14569 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14570 if test "x$ac_cv_func_dlopen" = xyes; then :
14571 lt_cv_dlopen="dlopen"
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14574 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14575 if ${ac_cv_lib_dl_dlopen+:} false; then :
14576 $as_echo_n "(cached) " >&6
14578 ac_check_lib_save_LIBS=$LIBS
14580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14583 /* Override any GCC internal prototype to avoid an error.
14584 Use char because int might match the return type of a GCC
14585 builtin and then its argument prototype would still apply. */
14598 if ac_fn_c_try_link "$LINENO"; then :
14599 ac_cv_lib_dl_dlopen=yes
14601 ac_cv_lib_dl_dlopen=no
14603 rm -f core conftest.err conftest.$ac_objext \
14604 conftest$ac_exeext conftest.$ac_ext
14605 LIBS=$ac_check_lib_save_LIBS
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14608 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14609 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14613 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14614 if ${ac_cv_lib_svld_dlopen+:} false; then :
14615 $as_echo_n "(cached) " >&6
14617 ac_check_lib_save_LIBS=$LIBS
14618 LIBS="-lsvld $LIBS"
14619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14620 /* end confdefs.h. */
14622 /* Override any GCC internal prototype to avoid an error.
14623 Use char because int might match the return type of a GCC
14624 builtin and then its argument prototype would still apply. */
14637 if ac_fn_c_try_link "$LINENO"; then :
14638 ac_cv_lib_svld_dlopen=yes
14640 ac_cv_lib_svld_dlopen=no
14642 rm -f core conftest.err conftest.$ac_objext \
14643 conftest$ac_exeext conftest.$ac_ext
14644 LIBS=$ac_check_lib_save_LIBS
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14647 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14648 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14652 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14653 if ${ac_cv_lib_dld_dld_link+:} false; then :
14654 $as_echo_n "(cached) " >&6
14656 ac_check_lib_save_LIBS=$LIBS
14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14659 /* end confdefs.h. */
14661 /* Override any GCC internal prototype to avoid an error.
14662 Use char because int might match the return type of a GCC
14663 builtin and then its argument prototype would still apply. */
14671 return dld_link ();
14676 if ac_fn_c_try_link "$LINENO"; then :
14677 ac_cv_lib_dld_dld_link=yes
14679 ac_cv_lib_dld_dld_link=no
14681 rm -f core conftest.err conftest.$ac_objext \
14682 conftest$ac_exeext conftest.$ac_ext
14683 LIBS=$ac_check_lib_save_LIBS
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14686 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14687 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14688 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14709 if test "x$lt_cv_dlopen" != xno; then
14715 case $lt_cv_dlopen in
14717 save_CPPFLAGS="$CPPFLAGS"
14718 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14720 save_LDFLAGS="$LDFLAGS"
14721 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14724 LIBS="$lt_cv_dlopen_libs $LIBS"
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14727 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14728 if ${lt_cv_dlopen_self+:} false; then :
14729 $as_echo_n "(cached) " >&6
14731 if test "$cross_compiling" = yes; then :
14732 lt_cv_dlopen_self=cross
14734 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14735 lt_status=$lt_dlunknown
14736 cat > conftest.$ac_ext <<_LT_EOF
14737 #line $LINENO "configure"
14738 #include "confdefs.h"
14747 # define LT_DLGLOBAL RTLD_GLOBAL
14750 # define LT_DLGLOBAL DL_GLOBAL
14752 # define LT_DLGLOBAL 0
14756 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14757 find out it does not work in some platform. */
14758 #ifndef LT_DLLAZY_OR_NOW
14760 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14763 # define LT_DLLAZY_OR_NOW DL_LAZY
14766 # define LT_DLLAZY_OR_NOW RTLD_NOW
14769 # define LT_DLLAZY_OR_NOW DL_NOW
14771 # define LT_DLLAZY_OR_NOW 0
14778 /* When -fvisbility=hidden is used, assume the code has been annotated
14779 correspondingly for the symbols needed. */
14780 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14781 int fnord () __attribute__((visibility("default")));
14784 int fnord () { return 42; }
14787 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14788 int status = $lt_dlunknown;
14792 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14795 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14796 else puts (dlerror ());
14798 /* dlclose (self); */
14806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14807 (eval $ac_link) 2>&5
14809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14810 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14811 (./conftest; exit; ) >&5 2>/dev/null
14813 case x$lt_status in
14814 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14815 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14816 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14819 # compilation failed
14820 lt_cv_dlopen_self=no
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14828 $as_echo "$lt_cv_dlopen_self" >&6; }
14830 if test "x$lt_cv_dlopen_self" = xyes; then
14831 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14833 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14834 if ${lt_cv_dlopen_self_static+:} false; then :
14835 $as_echo_n "(cached) " >&6
14837 if test "$cross_compiling" = yes; then :
14838 lt_cv_dlopen_self_static=cross
14840 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14841 lt_status=$lt_dlunknown
14842 cat > conftest.$ac_ext <<_LT_EOF
14843 #line $LINENO "configure"
14844 #include "confdefs.h"
14853 # define LT_DLGLOBAL RTLD_GLOBAL
14856 # define LT_DLGLOBAL DL_GLOBAL
14858 # define LT_DLGLOBAL 0
14862 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14863 find out it does not work in some platform. */
14864 #ifndef LT_DLLAZY_OR_NOW
14866 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14869 # define LT_DLLAZY_OR_NOW DL_LAZY
14872 # define LT_DLLAZY_OR_NOW RTLD_NOW
14875 # define LT_DLLAZY_OR_NOW DL_NOW
14877 # define LT_DLLAZY_OR_NOW 0
14884 /* When -fvisbility=hidden is used, assume the code has been annotated
14885 correspondingly for the symbols needed. */
14886 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14887 int fnord () __attribute__((visibility("default")));
14890 int fnord () { return 42; }
14893 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14894 int status = $lt_dlunknown;
14898 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14901 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14902 else puts (dlerror ());
14904 /* dlclose (self); */
14912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14913 (eval $ac_link) 2>&5
14915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14916 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14917 (./conftest; exit; ) >&5 2>/dev/null
14919 case x$lt_status in
14920 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14921 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14922 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14925 # compilation failed
14926 lt_cv_dlopen_self_static=no
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14934 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14937 CPPFLAGS="$save_CPPFLAGS"
14938 LDFLAGS="$save_LDFLAGS"
14943 case $lt_cv_dlopen_self in
14944 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14945 *) enable_dlopen_self=unknown ;;
14948 case $lt_cv_dlopen_self_static in
14949 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14950 *) enable_dlopen_self_static=unknown ;;
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14973 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14974 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14975 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14976 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14978 $as_echo "yes" >&6; }
14980 # FIXME - insert some real tests, host_os isn't really good enough
14983 if test -n "$STRIP" ; then
14984 striplib="$STRIP -x"
14985 old_striplib="$STRIP -S"
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14987 $as_echo "yes" >&6; }
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14990 $as_echo "no" >&6; }
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14995 $as_echo "no" >&6; }
15011 # Report which library types will actually be built
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15013 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15015 $as_echo "$can_build_shared" >&6; }
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15018 $as_echo_n "checking whether to build shared libraries... " >&6; }
15019 test "$can_build_shared" = "no" && enable_shared=no
15021 # On AIX, shared libraries and static libraries use the same namespace, and
15022 # are all built from PIC.
15025 test "$enable_shared" = yes && enable_static=no
15026 if test -n "$RANLIB"; then
15027 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15028 postinstall_cmds='$RANLIB $lib'
15033 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15034 test "$enable_shared" = yes && enable_static=no
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15039 $as_echo "$enable_shared" >&6; }
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15042 $as_echo_n "checking whether to build static libraries... " >&6; }
15043 # Make sure either enable_shared or enable_static is yes.
15044 test "$enable_shared" = yes || enable_static=yes
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15046 $as_echo "$enable_static" >&6; }
15053 ac_cpp='$CPP $CPPFLAGS'
15054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15060 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15061 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15062 (test "X$CXX" != "Xg++"))) ; then
15064 ac_cpp='$CXXCPP $CPPFLAGS'
15065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15069 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15070 if test -z "$CXXCPP"; then
15071 if ${ac_cv_prog_CXXCPP+:} false; then :
15072 $as_echo_n "(cached) " >&6
15074 # Double quotes because CXXCPP needs to be expanded
15075 for CXXCPP in "$CXX -E" "/lib/cpp"
15077 ac_preproc_ok=false
15078 for ac_cxx_preproc_warn_flag in '' yes
15080 # Use a header file that comes with gcc, so configuring glibc
15081 # with a fresh cross-compiler works.
15082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15083 # <limits.h> exists even on freestanding compilers.
15084 # On the NeXT, cc -E runs the code through the compiler's parser,
15085 # not just through cpp. "Syntax error" is here to catch this case.
15086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15087 /* end confdefs.h. */
15089 # include <limits.h>
15091 # include <assert.h>
15095 if ac_fn_cxx_try_cpp "$LINENO"; then :
15098 # Broken: fails on valid input.
15101 rm -f conftest.err conftest.i conftest.$ac_ext
15103 # OK, works on sane cases. Now check whether nonexistent headers
15104 # can be detected and how.
15105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15106 /* end confdefs.h. */
15107 #include <ac_nonexistent.h>
15109 if ac_fn_cxx_try_cpp "$LINENO"; then :
15110 # Broken: success on invalid input.
15113 # Passes both tests.
15117 rm -f conftest.err conftest.i conftest.$ac_ext
15120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15121 rm -f conftest.i conftest.err conftest.$ac_ext
15122 if $ac_preproc_ok; then :
15127 ac_cv_prog_CXXCPP=$CXXCPP
15130 CXXCPP=$ac_cv_prog_CXXCPP
15132 ac_cv_prog_CXXCPP=$CXXCPP
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15135 $as_echo "$CXXCPP" >&6; }
15136 ac_preproc_ok=false
15137 for ac_cxx_preproc_warn_flag in '' yes
15139 # Use a header file that comes with gcc, so configuring glibc
15140 # with a fresh cross-compiler works.
15141 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15142 # <limits.h> exists even on freestanding compilers.
15143 # On the NeXT, cc -E runs the code through the compiler's parser,
15144 # not just through cpp. "Syntax error" is here to catch this case.
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h. */
15148 # include <limits.h>
15150 # include <assert.h>
15154 if ac_fn_cxx_try_cpp "$LINENO"; then :
15157 # Broken: fails on valid input.
15160 rm -f conftest.err conftest.i conftest.$ac_ext
15162 # OK, works on sane cases. Now check whether nonexistent headers
15163 # can be detected and how.
15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165 /* end confdefs.h. */
15166 #include <ac_nonexistent.h>
15168 if ac_fn_cxx_try_cpp "$LINENO"; then :
15169 # Broken: success on invalid input.
15172 # Passes both tests.
15176 rm -f conftest.err conftest.i conftest.$ac_ext
15179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15180 rm -f conftest.i conftest.err conftest.$ac_ext
15181 if $ac_preproc_ok; then :
15184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15186 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15187 See \`config.log' for more details" "$LINENO" 5; }
15191 ac_cpp='$CPP $CPPFLAGS'
15192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15197 _lt_caught_CXX_error=yes
15201 ac_cpp='$CXXCPP $CPPFLAGS'
15202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15206 archive_cmds_need_lc_CXX=no
15207 allow_undefined_flag_CXX=
15208 always_export_symbols_CXX=no
15209 archive_expsym_cmds_CXX=
15210 compiler_needs_object_CXX=no
15211 export_dynamic_flag_spec_CXX=
15212 hardcode_direct_CXX=no
15213 hardcode_direct_absolute_CXX=no
15214 hardcode_libdir_flag_spec_CXX=
15215 hardcode_libdir_flag_spec_ld_CXX=
15216 hardcode_libdir_separator_CXX=
15217 hardcode_minus_L_CXX=no
15218 hardcode_shlibpath_var_CXX=unsupported
15219 hardcode_automatic_CXX=no
15220 inherit_rpath_CXX=no
15222 module_expsym_cmds_CXX=
15223 link_all_deplibs_CXX=unknown
15224 old_archive_cmds_CXX=$old_archive_cmds
15225 reload_flag_CXX=$reload_flag
15226 reload_cmds_CXX=$reload_cmds
15227 no_undefined_flag_CXX=
15228 whole_archive_flag_spec_CXX=
15229 enable_shared_with_static_runtimes_CXX=no
15231 # Source file extension for C++ test sources.
15234 # Object file extension for compiled C++ test sources.
15238 # No sense in running all these tests if we already determined that
15239 # the CXX compiler isn't working. Some variables (like enable_shared)
15240 # are currently assumed to apply to all compilers on this platform,
15241 # and will be corrupted by setting them based on a non-working compiler.
15242 if test "$_lt_caught_CXX_error" != yes; then
15243 # Code to be used in simple compile tests
15244 lt_simple_compile_test_code="int some_variable = 0;"
15246 # Code to be used in simple link tests
15247 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15249 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15256 # If no C compiler was specified, use CC.
15259 # If no C compiler flags were specified, use CFLAGS.
15260 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15262 # Allow CC to be a program name with arguments.
15266 # save warnings/boilerplate of simple test code
15267 ac_outfile=conftest.$ac_objext
15268 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15269 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15270 _lt_compiler_boilerplate=`cat conftest.err`
15273 ac_outfile=conftest.$ac_objext
15274 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15275 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15276 _lt_linker_boilerplate=`cat conftest.err`
15280 # Allow CC to be a program name with arguments.
15282 lt_save_CFLAGS=$CFLAGS
15286 lt_save_with_gnu_ld=$with_gnu_ld
15287 lt_save_path_LD=$lt_cv_path_LD
15288 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15289 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15291 $as_unset lt_cv_prog_gnu_ld
15293 if test -n "${lt_cv_path_LDCXX+set}"; then
15294 lt_cv_path_LD=$lt_cv_path_LDCXX
15296 $as_unset lt_cv_path_LD
15298 test -z "${LDCXX+set}" || LD=$LDCXX
15303 for cc_temp in $compiler""; do
15305 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15306 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15311 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15314 if test -n "$compiler"; then
15315 # We don't want -fno-exception when compiling C++ code, so set the
15316 # no_builtin_flag separately
15317 if test "$GXX" = yes; then
15318 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15320 lt_prog_compiler_no_builtin_flag_CXX=
15323 if test "$GXX" = yes; then
15324 # Set up default GNU C++ configuration
15328 # Check whether --with-gnu-ld was given.
15329 if test "${with_gnu_ld+set}" = set; then :
15330 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15336 if test "$GCC" = yes; then
15337 # Check if gcc -print-prog-name=ld gives a path.
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15339 $as_echo_n "checking for ld used by $CC... " >&6; }
15342 # gcc leaves a trailing carriage return which upsets mingw
15343 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15345 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15348 # Accept absolute paths.
15350 re_direlt='/[^/][^/]*/\.\./'
15351 # Canonicalize the pathname of ld
15352 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15353 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15354 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15356 test -z "$LD" && LD="$ac_prog"
15359 # If it fails, then pretend we aren't using GCC.
15363 # If it is relative, then search for the first ld in PATH.
15364 with_gnu_ld=unknown
15367 elif test "$with_gnu_ld" = yes; then
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15369 $as_echo_n "checking for GNU ld... " >&6; }
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15372 $as_echo_n "checking for non-GNU ld... " >&6; }
15374 if ${lt_cv_path_LD+:} false; then :
15375 $as_echo_n "(cached) " >&6
15377 if test -z "$LD"; then
15378 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15379 for ac_dir in $PATH; do
15381 test -z "$ac_dir" && ac_dir=.
15382 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15383 lt_cv_path_LD="$ac_dir/$ac_prog"
15384 # Check to see if the program is GNU ld. I'd rather use --version,
15385 # but apparently some variants of GNU ld only accept -v.
15386 # Break only if it was the GNU/non-GNU ld that we prefer.
15387 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15388 *GNU* | *'with BFD'*)
15389 test "$with_gnu_ld" != no && break
15392 test "$with_gnu_ld" != yes && break
15399 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15403 LD="$lt_cv_path_LD"
15404 if test -n "$LD"; then
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15406 $as_echo "$LD" >&6; }
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15409 $as_echo "no" >&6; }
15411 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15413 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15414 if ${lt_cv_prog_gnu_ld+:} false; then :
15415 $as_echo_n "(cached) " >&6
15417 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15418 case `$LD -v 2>&1 </dev/null` in
15419 *GNU* | *'with BFD'*)
15420 lt_cv_prog_gnu_ld=yes
15423 lt_cv_prog_gnu_ld=no
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15428 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15429 with_gnu_ld=$lt_cv_prog_gnu_ld
15437 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15438 # archiving commands below assume that GNU ld is being used.
15439 if test "$with_gnu_ld" = yes; then
15440 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15441 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'
15443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15444 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15446 # If archive_cmds runs LD, not CC, wlarc should be empty
15447 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15448 # investigate it a little bit more. (MM)
15451 # ancient GNU ld didn't support --whole-archive et. al.
15452 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15453 $GREP 'no-whole-archive' > /dev/null; then
15454 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15456 whole_archive_flag_spec_CXX=
15462 # A generic and very simple default shared library creation
15463 # command for GNU C++ for the case where it uses the native
15464 # linker, instead of GNU ld. If possible, this setting should
15465 # overridden to take advantage of the native linker features on
15466 # the platform it is being used on.
15467 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15470 # Commands to make compiler produce verbose output that lists
15471 # what "hidden" libraries, object files and flags are used when
15472 # linking a shared library.
15473 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15481 # PORTME: fill in a description of your system's C++ link characteristics
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15483 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15487 # FIXME: insert proper C++ library support
15491 if test "$host_cpu" = ia64; then
15492 # On IA64, the linker does run time linking by default, so we don't
15493 # have to do anything special.
15494 aix_use_runtimelinking=no
15495 exp_sym_flag='-Bexport'
15498 aix_use_runtimelinking=no
15500 # Test if we are trying to use run time linking or normal
15501 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15502 # need to do runtime linking.
15503 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15504 for ld_flag in $LDFLAGS; do
15507 aix_use_runtimelinking=yes
15515 exp_sym_flag='-bexport'
15516 no_entry_flag='-bnoentry'
15519 # When large executables or shared objects are built, AIX ld can
15520 # have problems creating the table of contents. If linking a library
15521 # or program results in "error TOC overflow" add -mminimal-toc to
15522 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15523 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15525 archive_cmds_CXX=''
15526 hardcode_direct_CXX=yes
15527 hardcode_direct_absolute_CXX=yes
15528 hardcode_libdir_separator_CXX=':'
15529 link_all_deplibs_CXX=yes
15530 file_list_spec_CXX='${wl}-f,'
15532 if test "$GXX" = yes; then
15533 case $host_os in aix4.[012]|aix4.[012].*)
15534 # We only want to do this on AIX 4.2 and lower, the check
15535 # below for broken collect2 doesn't work under 4.3+
15536 collect2name=`${CC} -print-prog-name=collect2`
15537 if test -f "$collect2name" &&
15538 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15540 # We have reworked collect2
15543 # We have old collect2
15544 hardcode_direct_CXX=unsupported
15545 # It fails to find uninstalled libraries when the uninstalled
15546 # path is not listed in the libpath. Setting hardcode_minus_L
15547 # to unsupported forces relinking
15548 hardcode_minus_L_CXX=yes
15549 hardcode_libdir_flag_spec_CXX='-L$libdir'
15550 hardcode_libdir_separator_CXX=
15553 shared_flag='-shared'
15554 if test "$aix_use_runtimelinking" = yes; then
15555 shared_flag="$shared_flag "'${wl}-G'
15559 if test "$host_cpu" = ia64; then
15560 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15561 # chokes on -Wl,-G. The following line is correct:
15564 if test "$aix_use_runtimelinking" = yes; then
15565 shared_flag='${wl}-G'
15567 shared_flag='${wl}-bM:SRE'
15572 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15573 # It seems that -bexpall does not export symbols beginning with
15574 # underscore (_), so it is better to generate a list of symbols to
15576 always_export_symbols_CXX=yes
15577 if test "$aix_use_runtimelinking" = yes; then
15578 # Warning - without using the other runtime loading flags (-brtl),
15579 # -berok will link without error, but may produce a broken library.
15580 allow_undefined_flag_CXX='-berok'
15581 # Determine the default libpath from the value encoded in an empty
15583 if test "${lt_cv_aix_libpath+set}" = set; then
15584 aix_libpath=$lt_cv_aix_libpath
15586 if ${lt_cv_aix_libpath__CXX+:} false; then :
15587 $as_echo_n "(cached) " >&6
15589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15590 /* end confdefs.h. */
15600 if ac_fn_cxx_try_link "$LINENO"; then :
15602 lt_aix_libpath_sed='
15603 /Import File Strings/,/^$/ {
15605 s/^0 *\([^ ]*\) *$/\1/
15609 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15610 # Check for a 64-bit object if we didn't find anything.
15611 if test -z "$lt_cv_aix_libpath__CXX"; then
15612 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15615 rm -f core conftest.err conftest.$ac_objext \
15616 conftest$ac_exeext conftest.$ac_ext
15617 if test -z "$lt_cv_aix_libpath__CXX"; then
15618 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15623 aix_libpath=$lt_cv_aix_libpath__CXX
15626 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15628 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"
15630 if test "$host_cpu" = ia64; then
15631 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15632 allow_undefined_flag_CXX="-z nodefs"
15633 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"
15635 # Determine the default libpath from the value encoded in an
15636 # empty executable.
15637 if test "${lt_cv_aix_libpath+set}" = set; then
15638 aix_libpath=$lt_cv_aix_libpath
15640 if ${lt_cv_aix_libpath__CXX+:} false; then :
15641 $as_echo_n "(cached) " >&6
15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15644 /* end confdefs.h. */
15654 if ac_fn_cxx_try_link "$LINENO"; then :
15656 lt_aix_libpath_sed='
15657 /Import File Strings/,/^$/ {
15659 s/^0 *\([^ ]*\) *$/\1/
15663 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15664 # Check for a 64-bit object if we didn't find anything.
15665 if test -z "$lt_cv_aix_libpath__CXX"; then
15666 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15669 rm -f core conftest.err conftest.$ac_objext \
15670 conftest$ac_exeext conftest.$ac_ext
15671 if test -z "$lt_cv_aix_libpath__CXX"; then
15672 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15677 aix_libpath=$lt_cv_aix_libpath__CXX
15680 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15681 # Warning - without using the other run time loading flags,
15682 # -berok will link without error, but may produce a broken library.
15683 no_undefined_flag_CXX=' ${wl}-bernotok'
15684 allow_undefined_flag_CXX=' ${wl}-berok'
15685 if test "$with_gnu_ld" = yes; then
15686 # We only use this code for GNU lds that support --whole-archive.
15687 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15689 # Exported symbols can be pulled into shared objects from archives
15690 whole_archive_flag_spec_CXX='$convenience'
15692 archive_cmds_need_lc_CXX=yes
15693 # This is similar to how AIX traditionally builds its shared
15695 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'
15701 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15702 allow_undefined_flag_CXX=unsupported
15703 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15704 # support --undefined. This deserves some investigation. FIXME
15705 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15712 case $cc_basename in
15714 # FIXME: insert proper C++ library support
15720 cygwin* | mingw* | pw32* | cegcc*)
15721 case $GXX,$cc_basename in
15724 # hardcode_libdir_flag_spec is actually meaningless, as there is
15725 # no search path for DLLs.
15726 hardcode_libdir_flag_spec_CXX=' '
15727 allow_undefined_flag_CXX=unsupported
15728 always_export_symbols_CXX=yes
15729 file_list_spec_CXX='@'
15730 # Tell ltmain to make .lib files, not .a files.
15732 # Tell ltmain to make .dll files, not .so files.
15734 # FIXME: Setting linknames here is a bad hack.
15735 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15736 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15737 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15739 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15741 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15743 # The linker will not automatically build a static lib if we build a DLL.
15744 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15745 enable_shared_with_static_runtimes_CXX=yes
15747 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15748 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15749 lt_tool_outputfile="@TOOL_OUTPUT@"~
15750 case $lt_outputfile in
15753 lt_outputfile="$lt_outputfile.exe"
15754 lt_tool_outputfile="$lt_tool_outputfile.exe"
15757 func_to_tool_file "$lt_outputfile"~
15758 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15759 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15760 $RM "$lt_outputfile.manifest";
15765 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15766 # as there is no search path for DLLs.
15767 hardcode_libdir_flag_spec_CXX='-L$libdir'
15768 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15769 allow_undefined_flag_CXX=unsupported
15770 always_export_symbols_CXX=no
15771 enable_shared_with_static_runtimes_CXX=yes
15773 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15774 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'
15775 # If the export-symbols file already is a .def file (1st line
15776 # is EXPORTS), use it as is; otherwise, prepend...
15777 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15778 cp $export_symbols $output_objdir/$soname.def;
15780 echo EXPORTS > $output_objdir/$soname.def;
15781 cat $export_symbols >> $output_objdir/$soname.def;
15783 $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'
15790 darwin* | rhapsody*)
15793 archive_cmds_need_lc_CXX=no
15794 hardcode_direct_CXX=no
15795 hardcode_automatic_CXX=yes
15796 hardcode_shlibpath_var_CXX=unsupported
15797 if test "$lt_cv_ld_force_load" = "yes"; then
15798 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\"`'
15800 whole_archive_flag_spec_CXX=''
15802 link_all_deplibs_CXX=yes
15803 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15804 case $cc_basename in
15805 ifort*) _lt_dar_can_shared=yes ;;
15806 *) _lt_dar_can_shared=$GCC ;;
15808 if test "$_lt_dar_can_shared" = "yes"; then
15809 output_verbose_link_cmd=func_echo_all
15810 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}"
15811 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15812 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}"
15813 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}"
15814 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15815 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}"
15816 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}"
15826 case $cc_basename in
15828 # FIXME: insert proper C++ library support
15832 # Green Hills C++ Compiler
15833 # FIXME: insert proper C++ library support
15837 # FIXME: insert proper C++ library support
15844 # C++ shared libraries reported to be fairly broken before
15850 archive_cmds_need_lc_CXX=no
15853 freebsd* | dragonfly*)
15854 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15863 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15864 link_all_deplibs_CXX=yes
15868 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15869 hardcode_libdir_separator_CXX=:
15870 export_dynamic_flag_spec_CXX='${wl}-E'
15871 hardcode_direct_CXX=yes
15872 hardcode_minus_L_CXX=yes # Not in the search PATH,
15873 # but as the default
15874 # location of the library.
15876 case $cc_basename in
15878 # FIXME: insert proper C++ library support
15882 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'
15883 # Commands to make compiler produce verbose output that lists
15884 # what "hidden" libraries, object files and flags are used when
15885 # linking a shared library.
15887 # There doesn't appear to be a way to prevent this compiler from
15888 # explicitly linking system object files so we need to strip them
15889 # from the output so that they don't get included in the library
15891 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"'
15894 if test "$GXX" = yes; then
15895 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'
15897 # FIXME: insert proper C++ library support
15905 if test $with_gnu_ld = no; then
15906 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15907 hardcode_libdir_separator_CXX=:
15913 export_dynamic_flag_spec_CXX='${wl}-E'
15919 hardcode_direct_CXX=no
15920 hardcode_shlibpath_var_CXX=no
15923 hardcode_direct_CXX=yes
15924 hardcode_direct_absolute_CXX=yes
15925 hardcode_minus_L_CXX=yes # Not in the search PATH,
15926 # but as the default
15927 # location of the library.
15931 case $cc_basename in
15933 # FIXME: insert proper C++ library support
15939 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15942 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15945 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15948 # Commands to make compiler produce verbose output that lists
15949 # what "hidden" libraries, object files and flags are used when
15950 # linking a shared library.
15952 # There doesn't appear to be a way to prevent this compiler from
15953 # explicitly linking system object files so we need to strip them
15954 # from the output so that they don't get included in the library
15956 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"'
15959 if test "$GXX" = yes; then
15960 if test $with_gnu_ld = no; then
15963 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15966 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15969 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'
15974 # FIXME: insert proper C++ library support
15982 hardcode_direct_CXX=no
15983 hardcode_shlibpath_var_CXX=no
15984 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15985 export_dynamic_flag_spec_CXX='${wl}-E'
15986 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15987 # Instead, shared libraries are loaded at an image base (0x10000000 by
15988 # default) and relocated if they conflict, which is a slow very memory
15989 # consuming and fragmenting process. To avoid this, we pick a random,
15990 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15991 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15992 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'
15993 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'
15996 case $cc_basename in
15999 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'
16001 # Archives containing C++ object files must be created using
16002 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16003 # necessary to make sure instantiated templates are included
16005 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16008 if test "$GXX" = yes; then
16009 if test "$with_gnu_ld" = no; then
16010 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'
16012 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'
16015 link_all_deplibs_CXX=yes
16018 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16019 hardcode_libdir_separator_CXX=:
16020 inherit_rpath_CXX=yes
16023 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16024 case $cc_basename in
16026 # Kuck and Associates, Inc. (KAI) C++ Compiler
16028 # KCC will only create a shared library if the output file
16029 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16030 # to its proper name (with version) after linking.
16031 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'
16032 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'
16033 # Commands to make compiler produce verbose output that lists
16034 # what "hidden" libraries, object files and flags are used when
16035 # linking a shared library.
16037 # There doesn't appear to be a way to prevent this compiler from
16038 # explicitly linking system object files so we need to strip them
16039 # from the output so that they don't get included in the library
16041 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"'
16043 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16044 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16046 # Archives containing C++ object files must be created using
16047 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16048 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16053 # version 8.0 and above of icpc choke on multiply defined symbols
16054 # if we add $predep_objects and $postdep_objects, however 7.1 and
16055 # earlier do not add the objects themselves.
16056 case `$CC -V 2>&1` in
16058 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16059 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'
16061 *) # Version 8.0 or newer
16064 ia64*) tmp_idyn=' -i_dynamic';;
16066 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067 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'
16070 archive_cmds_need_lc_CXX=no
16071 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16072 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16073 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16076 # Portland Group C++ compiler
16078 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16079 prelink_cmds_CXX='tpldir=Template.dir~
16081 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16082 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16083 old_archive_cmds_CXX='tpldir=Template.dir~
16085 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16086 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16088 archive_cmds_CXX='tpldir=Template.dir~
16090 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16091 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16092 archive_expsym_cmds_CXX='tpldir=Template.dir~
16094 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16095 $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'
16097 *) # Version 6 and above use weak symbols
16098 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16099 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'
16103 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16104 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16105 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'
16109 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16110 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'
16112 runpath_var=LD_RUN_PATH
16113 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16114 hardcode_libdir_separator_CXX=:
16116 # Commands to make compiler produce verbose output that lists
16117 # what "hidden" libraries, object files and flags are used when
16118 # linking a shared library.
16120 # There doesn't appear to be a way to prevent this compiler from
16121 # explicitly linking system object files so we need to strip them
16122 # from the output so that they don't get included in the library
16124 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'
16126 xl* | mpixl* | bgxl*)
16127 # IBM XL 8.0 on PPC, with GNU ld
16128 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16129 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16130 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16131 if test "x$supports_anon_versioning" = xyes; then
16132 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16134 echo "local: *; };" >> $output_objdir/$libname.ver~
16135 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16139 case `$CC -V 2>&1 | sed 5q` in
16142 no_undefined_flag_CXX=' -zdefs'
16143 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16144 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'
16145 hardcode_libdir_flag_spec_CXX='-R$libdir'
16146 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'
16147 compiler_needs_object_CXX=yes
16149 # Not sure whether something based on
16150 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16152 output_verbose_link_cmd='func_echo_all'
16154 # Archives containing C++ object files must be created using
16155 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16156 # necessary to make sure instantiated templates are included
16158 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16166 # FIXME: insert proper C++ library support
16171 # FIXME: insert proper C++ library support
16176 case $cc_basename in
16178 # FIXME: insert proper C++ library support
16182 # FIXME: insert proper C++ library support
16189 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16190 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16192 hardcode_libdir_flag_spec_CXX='-R$libdir'
16193 hardcode_direct_CXX=yes
16194 hardcode_shlibpath_var_CXX=no
16196 # Workaround some broken pre-1.5 toolchains
16197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16205 # C++ shared libraries are fairly broken
16210 if test -f /usr/libexec/ld.so; then
16211 hardcode_direct_CXX=yes
16212 hardcode_shlibpath_var_CXX=no
16213 hardcode_direct_absolute_CXX=yes
16214 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16215 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16216 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16217 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16218 export_dynamic_flag_spec_CXX='${wl}-E'
16219 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16221 output_verbose_link_cmd=func_echo_all
16227 osf3* | osf4* | osf5*)
16228 case $cc_basename in
16230 # Kuck and Associates, Inc. (KAI) C++ Compiler
16232 # KCC will only create a shared library if the output file
16233 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16234 # to its proper name (with version) after linking.
16235 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'
16237 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16238 hardcode_libdir_separator_CXX=:
16240 # Archives containing C++ object files must be created using
16241 # the KAI C++ compiler.
16243 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16244 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16248 # Rational C++ 2.4.1
16249 # FIXME: insert proper C++ library support
16255 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16256 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'
16257 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16260 allow_undefined_flag_CXX=' -expect_unresolved \*'
16261 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'
16262 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16263 echo "-hidden">> $lib.exp~
16264 $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~
16266 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16270 hardcode_libdir_separator_CXX=:
16272 # Commands to make compiler produce verbose output that lists
16273 # what "hidden" libraries, object files and flags are used when
16274 # linking a shared library.
16276 # There doesn't appear to be a way to prevent this compiler from
16277 # explicitly linking system object files so we need to strip them
16278 # from the output so that they don't get included in the library
16280 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"'
16283 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16284 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16287 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'
16290 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'
16294 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16295 hardcode_libdir_separator_CXX=:
16297 # Commands to make compiler produce verbose output that lists
16298 # what "hidden" libraries, object files and flags are used when
16299 # linking a shared library.
16300 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16303 # FIXME: insert proper C++ library support
16311 # FIXME: insert proper C++ library support
16316 case $cc_basename in
16319 # FIXME: insert proper C++ library support
16324 # FIXME: insert proper C++ library support
16328 # FIXME: insert proper C++ library support
16335 case $cc_basename in
16337 # Sun C++ 4.2, 5.x and Centerline C++
16338 archive_cmds_need_lc_CXX=yes
16339 no_undefined_flag_CXX=' -zdefs'
16340 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16341 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16342 $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'
16344 hardcode_libdir_flag_spec_CXX='-R$libdir'
16345 hardcode_shlibpath_var_CXX=no
16347 solaris2.[0-5] | solaris2.[0-5].*) ;;
16349 # The compiler driver will combine and reorder linker options,
16350 # but understands `-z linker_flag'.
16351 # Supported since Solaris 2.6 (maybe 2.5.1?)
16352 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16355 link_all_deplibs_CXX=yes
16357 output_verbose_link_cmd='func_echo_all'
16359 # Archives containing C++ object files must be created using
16360 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16361 # necessary to make sure instantiated templates are included
16363 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16366 # Green Hills C++ Compiler
16367 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16369 # The C++ compiler must be used to create the archive.
16370 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16373 # GNU C++ compiler with Solaris linker
16374 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16375 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16376 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16377 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16378 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16379 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16381 # Commands to make compiler produce verbose output that lists
16382 # what "hidden" libraries, object files and flags are used when
16383 # linking a shared library.
16384 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16386 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16388 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16389 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16390 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16392 # Commands to make compiler produce verbose output that lists
16393 # what "hidden" libraries, object files and flags are used when
16394 # linking a shared library.
16395 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16398 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16400 solaris2.[0-5] | solaris2.[0-5].*) ;;
16402 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16410 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16411 no_undefined_flag_CXX='${wl}-z,text'
16412 archive_cmds_need_lc_CXX=no
16413 hardcode_shlibpath_var_CXX=no
16414 runpath_var='LD_RUN_PATH'
16416 case $cc_basename in
16418 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16419 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16422 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16423 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16428 sysv5* | sco3.2v5* | sco5v6*)
16429 # Note: We can NOT use -z defs as we might desire, because we do not
16430 # link with -lc, and that would cause any symbols used from libc to
16431 # always be unresolved, which means just about no library would
16432 # ever link correctly. If we're not using GNU ld we use -z text
16433 # though, which does catch some bad symbols but isn't as heavy-handed
16435 no_undefined_flag_CXX='${wl}-z,text'
16436 allow_undefined_flag_CXX='${wl}-z,nodefs'
16437 archive_cmds_need_lc_CXX=no
16438 hardcode_shlibpath_var_CXX=no
16439 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16440 hardcode_libdir_separator_CXX=':'
16441 link_all_deplibs_CXX=yes
16442 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16443 runpath_var='LD_RUN_PATH'
16445 case $cc_basename in
16447 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16448 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16449 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16450 '"$old_archive_cmds_CXX"
16451 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16452 '"$reload_cmds_CXX"
16455 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16456 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16462 case $cc_basename in
16464 # NonStop-UX NCC 3.20
16465 # FIXME: insert proper C++ library support
16469 # FIXME: insert proper C++ library support
16476 # FIXME: insert proper C++ library support
16481 # FIXME: insert proper C++ library support
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16487 $as_echo "$ld_shlibs_CXX" >&6; }
16488 test "$ld_shlibs_CXX" = no && can_build_shared=no
16494 ## There is no encapsulation within the following macros, do not change
16495 ## the running order or otherwise move them around unless you know exactly
16496 ## what you are doing...
16497 # Dependencies to place before and after the object being linked:
16498 predep_objects_CXX=
16499 postdep_objects_CXX=
16502 compiler_lib_search_path_CXX=
16504 cat > conftest.$ac_ext <<_LT_EOF
16508 Foo (void) { a = 0; }
16515 _lt_libdeps_save_CFLAGS=$CFLAGS
16516 case "$CC $CFLAGS " in #(
16517 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16518 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16522 (eval $ac_compile) 2>&5
16524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16525 test $ac_status = 0; }; then
16526 # Parse the compiler output and extract the necessary
16527 # objects, libraries and library flags.
16529 # Sentinel used to keep track of whether or not we are before
16530 # the conftest object file.
16531 pre_test_object_deps_done=no
16533 for p in `eval "$output_verbose_link_cmd"`; do
16534 case ${prev}${p} in
16537 # Some compilers place space between "-{L,R}" and the path.
16538 # Remove the space.
16539 if test $p = "-L" ||
16540 test $p = "-R"; then
16545 # Expand the sysroot to ease extracting the directories later.
16546 if test -z "$prev"; then
16548 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16549 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16550 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16554 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16556 if test "$pre_test_object_deps_done" = no; then
16559 # Internal compiler library paths should come after those
16560 # provided the user. The postdeps already come after the
16561 # user supplied libs so there is no need to process them.
16562 if test -z "$compiler_lib_search_path_CXX"; then
16563 compiler_lib_search_path_CXX="${prev}${p}"
16565 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16568 # The "-l" case would never come before the object being
16569 # linked, so don't bother handling this case.
16572 if test -z "$postdeps_CXX"; then
16573 postdeps_CXX="${prev}${p}"
16575 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16581 *.lto.$objext) ;; # Ignore GCC LTO objects
16583 # This assumes that the test object file only shows up
16584 # once in the compiler output.
16585 if test "$p" = "conftest.$objext"; then
16586 pre_test_object_deps_done=yes
16590 if test "$pre_test_object_deps_done" = no; then
16591 if test -z "$predep_objects_CXX"; then
16592 predep_objects_CXX="$p"
16594 predep_objects_CXX="$predep_objects_CXX $p"
16597 if test -z "$postdep_objects_CXX"; then
16598 postdep_objects_CXX="$p"
16600 postdep_objects_CXX="$postdep_objects_CXX $p"
16605 *) ;; # Ignore the rest.
16613 echo "libtool.m4: error: problem compiling CXX test program"
16616 $RM -f confest.$objext
16617 CFLAGS=$_lt_libdeps_save_CFLAGS
16619 # PORTME: override above test on systems where it is broken
16622 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16623 # hack all around it, let's just trust "g++" to DTRT.
16624 predep_objects_CXX=
16625 postdep_objects_CXX=
16630 case `$CC -V 2>&1 | sed 5q` in
16634 # The more standards-conforming stlport4 library is
16635 # incompatible with the Cstd library. Avoid specifying
16636 # it if it's in CXXFLAGS. Ignore libCrun as
16637 # -library=stlport4 depends on it.
16638 case " $CXX $CXXFLAGS " in
16639 *" -library=stlport4 "*)
16640 solaris_use_stlport4=yes
16644 if test "$solaris_use_stlport4" != yes; then
16645 postdeps_CXX='-library=Cstd -library=Crun'
16652 case $cc_basename in
16654 # The more standards-conforming stlport4 library is
16655 # incompatible with the Cstd library. Avoid specifying
16656 # it if it's in CXXFLAGS. Ignore libCrun as
16657 # -library=stlport4 depends on it.
16658 case " $CXX $CXXFLAGS " in
16659 *" -library=stlport4 "*)
16660 solaris_use_stlport4=yes
16664 # Adding this requires a known-good setup of shared libraries for
16665 # Sun compiler versions before 5.6, else PIC objects from an old
16666 # archive will be linked into the output, leading to subtle bugs.
16667 if test "$solaris_use_stlport4" != yes; then
16668 postdeps_CXX='-library=Cstd -library=Crun'
16676 case " $postdeps_CXX " in
16677 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16679 compiler_lib_search_dirs_CXX=
16680 if test -n "${compiler_lib_search_path_CXX}"; then
16681 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16714 lt_prog_compiler_wl_CXX=
16715 lt_prog_compiler_pic_CXX=
16716 lt_prog_compiler_static_CXX=
16719 # C++ specific cases for pic, static, wl, etc.
16720 if test "$GXX" = yes; then
16721 lt_prog_compiler_wl_CXX='-Wl,'
16722 lt_prog_compiler_static_CXX='-static'
16726 # All AIX code is PIC.
16727 if test "$host_cpu" = ia64; then
16728 # AIX 5 now supports IA64 processor
16729 lt_prog_compiler_static_CXX='-Bstatic'
16736 # see comment about AmigaOS4 .so support
16737 lt_prog_compiler_pic_CXX='-fPIC'
16740 # FIXME: we need at least 68020 code to build shared libraries, but
16741 # adding the `-m68020' flag to GCC prevents building anything better,
16743 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16748 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16749 # PIC is the default for these OSes.
16751 mingw* | cygwin* | os2* | pw32* | cegcc*)
16752 # This hack is so that the source file can tell whether it is being
16753 # built for inclusion in a dll (and should export symbols for example).
16754 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16755 # (--disable-auto-import) libraries
16756 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16758 darwin* | rhapsody*)
16759 # PIC is the default on this platform
16760 # Common symbols not allowed in MH_DYLIB files
16761 lt_prog_compiler_pic_CXX='-fno-common'
16764 # DJGPP does not support shared libraries at all
16765 lt_prog_compiler_pic_CXX=
16768 # PIC is the default for Haiku.
16769 # The "-static" flag exists, but is broken.
16770 lt_prog_compiler_static_CXX=
16773 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16774 # Instead, we relocate shared libraries at runtime.
16777 if test -d /usr/nec; then
16778 lt_prog_compiler_pic_CXX=-Kconform_pic
16782 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16783 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16784 # sets the default TLS model and affects inlining.
16789 lt_prog_compiler_pic_CXX='-fPIC'
16794 # QNX uses GNU C++, but need to define -shared option too, otherwise
16795 # it will coredump.
16796 lt_prog_compiler_pic_CXX='-fPIC -shared'
16799 lt_prog_compiler_pic_CXX='-fPIC'
16805 # All AIX code is PIC.
16806 if test "$host_cpu" = ia64; then
16807 # AIX 5 now supports IA64 processor
16808 lt_prog_compiler_static_CXX='-Bstatic'
16810 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16814 case $cc_basename in
16816 # Green Hills C++ Compiler
16817 # _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"
16821 mingw* | cygwin* | os2* | pw32* | cegcc*)
16822 # This hack is so that the source file can tell whether it is being
16823 # built for inclusion in a dll (and should export symbols for example).
16824 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16827 case $cc_basename in
16829 lt_prog_compiler_pic_CXX='-KPIC'
16832 # Green Hills C++ Compiler
16833 lt_prog_compiler_pic_CXX='-pic'
16839 freebsd* | dragonfly*)
16840 # FreeBSD uses GNU C++
16842 hpux9* | hpux10* | hpux11*)
16843 case $cc_basename in
16845 lt_prog_compiler_wl_CXX='-Wl,'
16846 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16847 if test "$host_cpu" != ia64; then
16848 lt_prog_compiler_pic_CXX='+Z'
16852 lt_prog_compiler_wl_CXX='-Wl,'
16853 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16859 lt_prog_compiler_pic_CXX='+Z'
16868 # This is c89, which is MS Visual C++ (no shared libs)
16869 # Anyone wants to do a port?
16871 irix5* | irix6* | nonstopux*)
16872 case $cc_basename in
16874 lt_prog_compiler_wl_CXX='-Wl,'
16875 lt_prog_compiler_static_CXX='-non_shared'
16876 # CC pic flag -KPIC is the default.
16882 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16883 case $cc_basename in
16886 lt_prog_compiler_wl_CXX='--backend -Wl,'
16887 lt_prog_compiler_pic_CXX='-fPIC'
16890 # old Intel C++ for x86_64 which still supported -KPIC.
16891 lt_prog_compiler_wl_CXX='-Wl,'
16892 lt_prog_compiler_pic_CXX='-KPIC'
16893 lt_prog_compiler_static_CXX='-static'
16896 # Intel C++, used to be incompatible with GCC.
16897 # ICC 10 doesn't accept -KPIC any more.
16898 lt_prog_compiler_wl_CXX='-Wl,'
16899 lt_prog_compiler_pic_CXX='-fPIC'
16900 lt_prog_compiler_static_CXX='-static'
16903 # Portland Group C++ compiler
16904 lt_prog_compiler_wl_CXX='-Wl,'
16905 lt_prog_compiler_pic_CXX='-fpic'
16906 lt_prog_compiler_static_CXX='-Bstatic'
16910 # Make sure the PIC flag is empty. It appears that all Alpha
16911 # Linux and Compaq Tru64 Unix objects are PIC.
16912 lt_prog_compiler_pic_CXX=
16913 lt_prog_compiler_static_CXX='-non_shared'
16915 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16916 # IBM XL 8.0, 9.0 on PPC and BlueGene
16917 lt_prog_compiler_wl_CXX='-Wl,'
16918 lt_prog_compiler_pic_CXX='-qpic'
16919 lt_prog_compiler_static_CXX='-qstaticlink'
16922 case `$CC -V 2>&1 | sed 5q` in
16925 lt_prog_compiler_pic_CXX='-KPIC'
16926 lt_prog_compiler_static_CXX='-Bstatic'
16927 lt_prog_compiler_wl_CXX='-Qoption ld '
16938 case $cc_basename in
16940 lt_prog_compiler_pic_CXX='-W c,exportall'
16949 # QNX uses GNU C++, but need to define -shared option too, otherwise
16950 # it will coredump.
16951 lt_prog_compiler_pic_CXX='-fPIC -shared'
16953 osf3* | osf4* | osf5*)
16954 case $cc_basename in
16956 lt_prog_compiler_wl_CXX='--backend -Wl,'
16959 # Rational C++ 2.4.1
16960 lt_prog_compiler_pic_CXX='-pic'
16963 # Digital/Compaq C++
16964 lt_prog_compiler_wl_CXX='-Wl,'
16965 # Make sure the PIC flag is empty. It appears that all Alpha
16966 # Linux and Compaq Tru64 Unix objects are PIC.
16967 lt_prog_compiler_pic_CXX=
16968 lt_prog_compiler_static_CXX='-non_shared'
16977 case $cc_basename in
16979 # Sun C++ 4.2, 5.x and Centerline C++
16980 lt_prog_compiler_pic_CXX='-KPIC'
16981 lt_prog_compiler_static_CXX='-Bstatic'
16982 lt_prog_compiler_wl_CXX='-Qoption ld '
16985 # Green Hills C++ Compiler
16986 lt_prog_compiler_pic_CXX='-PIC'
16993 case $cc_basename in
16996 lt_prog_compiler_pic_CXX='-pic'
16997 lt_prog_compiler_static_CXX='-Bstatic'
17001 lt_prog_compiler_pic_CXX='-pic'
17007 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17008 case $cc_basename in
17010 lt_prog_compiler_wl_CXX='-Wl,'
17011 lt_prog_compiler_pic_CXX='-KPIC'
17012 lt_prog_compiler_static_CXX='-Bstatic'
17017 case $cc_basename in
17019 # NonStop-UX NCC 3.20
17020 lt_prog_compiler_pic_CXX='-KPIC'
17029 lt_prog_compiler_can_build_shared_CXX=no
17035 # For platforms which do not support PIC, -DPIC is meaningless:
17037 lt_prog_compiler_pic_CXX=
17040 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17045 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17046 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17047 $as_echo_n "(cached) " >&6
17049 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17052 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17053 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17056 # Check to make sure the PIC flag actually works.
17058 if test -n "$lt_prog_compiler_pic_CXX"; then
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17060 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17061 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17062 $as_echo_n "(cached) " >&6
17064 lt_cv_prog_compiler_pic_works_CXX=no
17065 ac_outfile=conftest.$ac_objext
17066 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17067 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17068 # Insert the option either (1) after the last *FLAGS variable, or
17069 # (2) before a word containing "conftest.", or (3) at the end.
17070 # Note that $ac_compile itself does not contain backslashes and begins
17071 # with a dollar sign (not a hyphen), so the echo should work correctly.
17072 # The option is referenced via a variable to avoid confusing sed.
17073 lt_compile=`echo "$ac_compile" | $SED \
17074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17076 -e 's:$: $lt_compiler_flag:'`
17077 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17078 (eval "$lt_compile" 2>conftest.err)
17080 cat conftest.err >&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 if (exit $ac_status) && test -s "$ac_outfile"; then
17083 # The compiler can only warn and ignore the option if not recognized
17084 # So say no if there are warnings other than the usual output.
17085 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17087 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17088 lt_cv_prog_compiler_pic_works_CXX=yes
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17095 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17097 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17098 case $lt_prog_compiler_pic_CXX in
17100 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17103 lt_prog_compiler_pic_CXX=
17104 lt_prog_compiler_can_build_shared_CXX=no
17114 # Check to make sure the static flag actually works.
17116 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17118 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17119 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17120 $as_echo_n "(cached) " >&6
17122 lt_cv_prog_compiler_static_works_CXX=no
17123 save_LDFLAGS="$LDFLAGS"
17124 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17125 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17126 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17127 # The linker can only warn and ignore the option if not recognized
17128 # So say no if there are warnings
17129 if test -s conftest.err; then
17130 # Append any errors to the config.log.
17131 cat conftest.err 1>&5
17132 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17134 if diff conftest.exp conftest.er2 >/dev/null; then
17135 lt_cv_prog_compiler_static_works_CXX=yes
17138 lt_cv_prog_compiler_static_works_CXX=yes
17142 LDFLAGS="$save_LDFLAGS"
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17146 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17148 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17151 lt_prog_compiler_static_CXX=
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17158 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17159 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17160 $as_echo_n "(cached) " >&6
17162 lt_cv_prog_compiler_c_o_CXX=no
17163 $RM -r conftest 2>/dev/null
17167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17169 lt_compiler_flag="-o out/conftest2.$ac_objext"
17170 # Insert the option either (1) after the last *FLAGS variable, or
17171 # (2) before a word containing "conftest.", or (3) at the end.
17172 # Note that $ac_compile itself does not contain backslashes and begins
17173 # with a dollar sign (not a hyphen), so the echo should work correctly.
17174 lt_compile=`echo "$ac_compile" | $SED \
17175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17177 -e 's:$: $lt_compiler_flag:'`
17178 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17179 (eval "$lt_compile" 2>out/conftest.err)
17181 cat out/conftest.err >&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17185 # The compiler can only warn and ignore the option if not recognized
17186 # So say no if there are warnings
17187 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17190 lt_cv_prog_compiler_c_o_CXX=yes
17195 # SGI C++ compiler will create directory out/ii_files/ for
17196 # template instantiation
17197 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17198 $RM out/* && rmdir out
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17205 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17210 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17211 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17212 $as_echo_n "(cached) " >&6
17214 lt_cv_prog_compiler_c_o_CXX=no
17215 $RM -r conftest 2>/dev/null
17219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17221 lt_compiler_flag="-o out/conftest2.$ac_objext"
17222 # Insert the option either (1) after the last *FLAGS variable, or
17223 # (2) before a word containing "conftest.", or (3) at the end.
17224 # Note that $ac_compile itself does not contain backslashes and begins
17225 # with a dollar sign (not a hyphen), so the echo should work correctly.
17226 lt_compile=`echo "$ac_compile" | $SED \
17227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17229 -e 's:$: $lt_compiler_flag:'`
17230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17231 (eval "$lt_compile" 2>out/conftest.err)
17233 cat out/conftest.err >&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17237 # The compiler can only warn and ignore the option if not recognized
17238 # So say no if there are warnings
17239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17240 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17241 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17242 lt_cv_prog_compiler_c_o_CXX=yes
17247 # SGI C++ compiler will create directory out/ii_files/ for
17248 # template instantiation
17249 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17250 $RM out/* && rmdir out
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17257 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17262 hard_links="nottested"
17263 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17264 # do not overwrite the value of need_locks provided by the user
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17266 $as_echo_n "checking if we can lock with hard links... " >&6; }
17269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17271 ln conftest.a conftest.b 2>&5 || hard_links=no
17272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17274 $as_echo "$hard_links" >&6; }
17275 if test "$hard_links" = no; then
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17277 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17287 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17289 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17290 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17293 # If we're using GNU nm, then we don't want the "-C" option.
17294 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17295 # Also, AIX nm treats weak defined symbols like other global defined
17296 # symbols, whereas GNU nm marks them as "W".
17297 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17298 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'
17300 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'
17304 export_symbols_cmds_CXX="$ltdll_cmds"
17306 cygwin* | mingw* | cegcc*)
17307 case $cc_basename in
17310 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'
17311 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17316 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17321 $as_echo "$ld_shlibs_CXX" >&6; }
17322 test "$ld_shlibs_CXX" = no && can_build_shared=no
17324 with_gnu_ld_CXX=$with_gnu_ld
17332 # Do we need to explicitly link libc?
17334 case "x$archive_cmds_need_lc_CXX" in
17336 # Assume -lc should be added
17337 archive_cmds_need_lc_CXX=yes
17339 if test "$enable_shared" = yes && test "$GCC" = yes; then
17340 case $archive_cmds_CXX in
17342 # FIXME: we may have to deal with multi-command sequences.
17345 # Test whether the compiler implicitly links with -lc since on some
17346 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17347 # to ld, don't add -lc before -lgcc.
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17349 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17350 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17351 $as_echo_n "(cached) " >&6
17354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17357 (eval $ac_compile) 2>&5
17359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17360 test $ac_status = 0; } 2>conftest.err; then
17363 libobjs=conftest.$ac_objext
17365 wl=$lt_prog_compiler_wl_CXX
17366 pic_flag=$lt_prog_compiler_pic_CXX
17372 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17373 allow_undefined_flag_CXX=
17374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17375 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17378 test $ac_status = 0; }
17380 lt_cv_archive_cmds_need_lc_CXX=no
17382 lt_cv_archive_cmds_need_lc_CXX=yes
17384 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17386 cat conftest.err 1>&5
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17392 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17393 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17464 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17466 library_names_spec=
17467 libname_spec='lib$name'
17471 postuninstall_cmds=
17475 shlibpath_overrides_runpath=unknown
17477 dynamic_linker="$host_os ld.so"
17478 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17479 need_lib_prefix=unknown
17480 hardcode_into_libs=no
17482 # when you set need_version to no, make sure it does not cause -set_version
17483 # flags to be left without arguments
17484 need_version=unknown
17489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17490 shlibpath_var=LIBPATH
17492 # AIX 3 has no versioning support, so we append a major version to the name.
17493 soname_spec='${libname}${release}${shared_ext}$major'
17500 hardcode_into_libs=yes
17501 if test "$host_cpu" = ia64; then
17502 # AIX 5 supports IA64
17503 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17504 shlibpath_var=LD_LIBRARY_PATH
17506 # With GCC up to 2.95.x, collect2 would create an import file
17507 # for dependence libraries. The import file would start with
17508 # the line `#! .'. This would cause the generated library to
17509 # depend on `.', always an invalid library. This was fixed in
17510 # development snapshots of GCC prior to 3.0.
17512 aix4 | aix4.[01] | aix4.[01].*)
17513 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17515 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17518 can_build_shared=no
17522 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17523 # soname into executable. Probably we can add versioning support to
17524 # collect2, so additional links can be useful in future.
17525 if test "$aix_use_runtimelinking" = yes; then
17526 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17527 # instead of lib<name>.a to let people know that these are not
17528 # typical AIX shared libraries.
17529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17531 # We preserve .a as extension for shared libraries through AIX4.2
17532 # and later when we are not doing run time linking.
17533 library_names_spec='${libname}${release}.a $libname.a'
17534 soname_spec='${libname}${release}${shared_ext}$major'
17536 shlibpath_var=LIBPATH
17543 # Since July 2007 AmigaOS4 officially supports .so libraries.
17544 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17548 library_names_spec='$libname.ixlibrary $libname.a'
17549 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17550 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'
17556 library_names_spec='${libname}${shared_ext}'
17557 dynamic_linker="$host_os ld.so"
17558 shlibpath_var=LIBRARY_PATH
17564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17565 soname_spec='${libname}${release}${shared_ext}$major'
17566 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17567 shlibpath_var=LD_LIBRARY_PATH
17568 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17569 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17570 # the default ld.so.conf also contains /usr/contrib/lib and
17571 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17572 # libtool to hard-code these into programs
17575 cygwin* | mingw* | pw32* | cegcc*)
17576 version_type=windows
17581 case $GCC,$cc_basename in
17584 library_names_spec='$libname.dll.a'
17585 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17586 postinstall_cmds='base_file=`basename \${file}`~
17587 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17588 dldir=$destdir/`dirname \$dlpath`~
17589 test -d \$dldir || mkdir -p \$dldir~
17590 $install_prog $dir/$dlname \$dldir/$dlname~
17591 chmod a+x \$dldir/$dlname~
17592 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17593 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17595 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17596 dlpath=$dir/\$dldll~
17598 shlibpath_overrides_runpath=yes
17602 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17603 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17607 # MinGW DLLs use traditional 'lib' prefix
17608 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17611 # pw32 DLLs use 'pw' prefix rather than 'lib'
17612 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17615 dynamic_linker='Win32 ld.exe'
17620 libname_spec='$name'
17621 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17622 library_names_spec='${libname}.dll.lib'
17626 sys_lib_search_path_spec=
17629 for lt_path in $LIB
17632 # Let DOS variable expansion print the short 8.3 style file name.
17633 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17634 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17637 # Convert to MSYS style.
17638 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17641 # Convert to unix form, then to dos form, then back to unix form
17642 # but this time dos style (no spaces!) so that the unix form looks
17643 # like /cygdrive/c/PROGRA~1:/cygdr...
17644 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17645 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17646 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17649 sys_lib_search_path_spec="$LIB"
17650 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17651 # It is most probably a Windows format PATH.
17652 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17654 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17656 # FIXME: find the short name or the path components, as spaces are
17657 # common. (e.g. "Program Files" -> "PROGRA~1")
17661 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17662 postinstall_cmds='base_file=`basename \${file}`~
17663 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17664 dldir=$destdir/`dirname \$dlpath`~
17665 test -d \$dldir || mkdir -p \$dldir~
17666 $install_prog $dir/$dlname \$dldir/$dlname'
17667 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17668 dlpath=$dir/\$dldll~
17670 shlibpath_overrides_runpath=yes
17671 dynamic_linker='Win32 link.exe'
17675 # Assume MSVC wrapper
17676 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17677 dynamic_linker='Win32 ld.exe'
17680 # FIXME: first we should search . and the directory the executable is in
17684 darwin* | rhapsody*)
17685 dynamic_linker="$host_os dyld"
17686 version_type=darwin
17689 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17690 soname_spec='${libname}${release}${major}$shared_ext'
17691 shlibpath_overrides_runpath=yes
17692 shlibpath_var=DYLD_LIBRARY_PATH
17693 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17695 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17703 soname_spec='${libname}${release}${shared_ext}$major'
17704 shlibpath_var=LD_LIBRARY_PATH
17711 freebsd* | dragonfly*)
17712 # DragonFly does not have aout. When/if they implement a new
17713 # versioning mechanism, adjust this.
17714 if test -x /usr/bin/objformat; then
17715 objformat=`/usr/bin/objformat`
17718 freebsd[123]*) objformat=aout ;;
17719 *) objformat=elf ;;
17722 version_type=freebsd-$objformat
17723 case $version_type in
17725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17734 shlibpath_var=LD_LIBRARY_PATH
17737 shlibpath_overrides_runpath=yes
17739 freebsd3.[01]* | freebsdelf3.[01]*)
17740 shlibpath_overrides_runpath=yes
17741 hardcode_into_libs=yes
17743 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17744 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17745 shlibpath_overrides_runpath=no
17746 hardcode_into_libs=yes
17748 *) # from 4.6 on, and DragonFly
17749 shlibpath_overrides_runpath=yes
17750 hardcode_into_libs=yes
17759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17760 soname_spec='${libname}${release}${shared_ext}$major'
17761 shlibpath_var=LD_LIBRARY_PATH
17762 hardcode_into_libs=yes
17769 dynamic_linker="$host_os runtime_loader"
17770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17771 soname_spec='${libname}${release}${shared_ext}$major'
17772 shlibpath_var=LIBRARY_PATH
17773 shlibpath_overrides_runpath=yes
17774 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17775 hardcode_into_libs=yes
17778 hpux9* | hpux10* | hpux11*)
17779 # Give a soname corresponding to the major version so that dld.sl refuses to
17780 # link against other versions.
17787 hardcode_into_libs=yes
17788 dynamic_linker="$host_os dld.so"
17789 shlibpath_var=LD_LIBRARY_PATH
17790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17792 soname_spec='${libname}${release}${shared_ext}$major'
17793 if test "X$HPUX_IA64_MODE" = X32; then
17794 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17796 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17802 hardcode_into_libs=yes
17803 dynamic_linker="$host_os dld.sl"
17804 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17807 soname_spec='${libname}${release}${shared_ext}$major'
17808 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17813 dynamic_linker="$host_os dld.sl"
17814 shlibpath_var=SHLIB_PATH
17815 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17817 soname_spec='${libname}${release}${shared_ext}$major'
17820 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17821 postinstall_cmds='chmod 555 $lib'
17822 # or fails outright, so override atomically:
17823 install_override_mode=555
17830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17831 soname_spec='${libname}${release}${shared_ext}$major'
17832 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17833 shlibpath_var=LD_LIBRARY_PATH
17834 shlibpath_overrides_runpath=no
17835 hardcode_into_libs=yes
17838 irix5* | irix6* | nonstopux*)
17840 nonstopux*) version_type=nonstopux ;;
17842 if test "$lt_cv_prog_gnu_ld" = yes; then
17850 soname_spec='${libname}${release}${shared_ext}$major'
17851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17853 irix5* | nonstopux*)
17854 libsuff= shlibsuff=
17857 case $LD in # libtool.m4 will add one of these switches to LD
17858 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17859 libsuff= shlibsuff= libmagic=32-bit;;
17860 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17861 libsuff=32 shlibsuff=N32 libmagic=N32;;
17862 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17863 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17864 *) libsuff= shlibsuff= libmagic=never-match;;
17868 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17869 shlibpath_overrides_runpath=no
17870 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17871 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17872 hardcode_into_libs=yes
17875 # No shared lib support for Linux oldld, aout, or coff.
17876 linux*oldld* | linux*aout* | linux*coff*)
17880 # This must be Linux ELF.
17881 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17886 soname_spec='${libname}${release}${shared_ext}$major'
17887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17888 shlibpath_var=LD_LIBRARY_PATH
17889 shlibpath_overrides_runpath=no
17891 # Some binutils ld are patched to set DT_RUNPATH
17892 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17893 $as_echo_n "(cached) " >&6
17895 lt_cv_shlibpath_overrides_runpath=no
17896 save_LDFLAGS=$LDFLAGS
17897 save_libdir=$libdir
17898 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17899 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17901 /* end confdefs.h. */
17911 if ac_fn_cxx_try_link "$LINENO"; then :
17912 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17913 lt_cv_shlibpath_overrides_runpath=yes
17916 rm -f core conftest.err conftest.$ac_objext \
17917 conftest$ac_exeext conftest.$ac_ext
17918 LDFLAGS=$save_LDFLAGS
17919 libdir=$save_libdir
17923 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17925 # This implies no fast_install, which is unacceptable.
17926 # Some rework will be needed to allow for fast_install
17927 # before this can be enabled.
17928 hardcode_into_libs=yes
17930 # Append ld.so.conf contents to the search path
17931 if test -f /etc/ld.so.conf; then
17932 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' ' '`
17933 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17936 # We used to test for /lib/ld.so.1 and disable shared libraries on
17937 # powerpc, because MkLinux only supported shared libraries with the
17938 # GNU dynamic linker. Since this was broken with cross compilers,
17939 # most powerpc-linux boxes support dynamic linking these days and
17940 # people can always --disable-shared, the test was removed, and we
17941 # assume the GNU/Linux dynamic linker is in use.
17942 dynamic_linker='GNU/Linux ld.so'
17949 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17952 dynamic_linker='NetBSD (a.out) ld.so'
17954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17955 soname_spec='${libname}${release}${shared_ext}$major'
17956 dynamic_linker='NetBSD ld.elf_so'
17958 shlibpath_var=LD_LIBRARY_PATH
17959 shlibpath_overrides_runpath=yes
17960 hardcode_into_libs=yes
17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17966 shlibpath_var=LD_LIBRARY_PATH
17967 shlibpath_overrides_runpath=yes
17974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17975 soname_spec='${libname}${release}${shared_ext}$major'
17976 shlibpath_var=LD_LIBRARY_PATH
17977 shlibpath_overrides_runpath=no
17978 hardcode_into_libs=yes
17979 dynamic_linker='ldqnx.so'
17984 sys_lib_dlsearch_path_spec="/usr/lib"
17986 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17988 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17989 *) need_version=no ;;
17991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17993 shlibpath_var=LD_LIBRARY_PATH
17994 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17996 openbsd2.[89] | openbsd2.[89].*)
17997 shlibpath_overrides_runpath=no
18000 shlibpath_overrides_runpath=yes
18004 shlibpath_overrides_runpath=yes
18009 libname_spec='$name'
18012 library_names_spec='$libname${shared_ext} $libname.a'
18013 dynamic_linker='OS/2 ld.exe'
18014 shlibpath_var=LIBPATH
18017 osf3* | osf4* | osf5*)
18021 soname_spec='${libname}${release}${shared_ext}$major'
18022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18023 shlibpath_var=LD_LIBRARY_PATH
18024 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18025 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18037 soname_spec='${libname}${release}${shared_ext}$major'
18038 shlibpath_var=LD_LIBRARY_PATH
18039 shlibpath_overrides_runpath=yes
18040 hardcode_into_libs=yes
18041 # ldd complains unless libraries are executable
18042 postinstall_cmds='chmod +x $lib'
18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18048 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18049 shlibpath_var=LD_LIBRARY_PATH
18050 shlibpath_overrides_runpath=yes
18051 if test "$with_gnu_ld" = yes; then
18059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18060 soname_spec='${libname}${release}${shared_ext}$major'
18061 shlibpath_var=LD_LIBRARY_PATH
18062 case $host_vendor in
18064 shlibpath_overrides_runpath=no
18066 runpath_var=LD_RUN_PATH
18074 shlibpath_overrides_runpath=no
18075 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18081 if test -d /usr/nec ;then
18083 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18084 soname_spec='$libname${shared_ext}.$major'
18085 shlibpath_var=LD_LIBRARY_PATH
18089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18090 version_type=freebsd-elf
18093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18094 soname_spec='${libname}${release}${shared_ext}$major'
18095 shlibpath_var=LD_LIBRARY_PATH
18096 shlibpath_overrides_runpath=yes
18097 hardcode_into_libs=yes
18098 if test "$with_gnu_ld" = yes; then
18099 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18101 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18104 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18108 sys_lib_dlsearch_path_spec='/usr/lib'
18112 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18117 shlibpath_var=LD_LIBRARY_PATH
18118 shlibpath_overrides_runpath=no
18119 hardcode_into_libs=yes
18124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18125 soname_spec='${libname}${release}${shared_ext}$major'
18126 shlibpath_var=LD_LIBRARY_PATH
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18134 $as_echo "$dynamic_linker" >&6; }
18135 test "$dynamic_linker" = no && can_build_shared=no
18137 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18138 if test "$GCC" = yes; then
18139 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18142 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18143 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18145 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18146 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18187 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18188 hardcode_action_CXX=
18189 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18190 test -n "$runpath_var_CXX" ||
18191 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18193 # We can hardcode non-existent directories.
18194 if test "$hardcode_direct_CXX" != no &&
18195 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18196 # have to relink, otherwise we might link with an installed library
18197 # when we should be linking with a yet-to-be-installed one
18198 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18199 test "$hardcode_minus_L_CXX" != no; then
18200 # Linking always hardcodes the temporary library directory.
18201 hardcode_action_CXX=relink
18203 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18204 hardcode_action_CXX=immediate
18207 # We cannot hardcode anything, or else we can only hardcode existing
18209 hardcode_action_CXX=unsupported
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18212 $as_echo "$hardcode_action_CXX" >&6; }
18214 if test "$hardcode_action_CXX" = relink ||
18215 test "$inherit_rpath_CXX" = yes; then
18216 # Fast installation is not supported
18217 enable_fast_install=no
18218 elif test "$shlibpath_overrides_runpath" = yes ||
18219 test "$enable_shared" = no; then
18220 # Fast installation is not necessary
18221 enable_fast_install=needless
18230 fi # test -n "$compiler"
18233 CFLAGS=$lt_save_CFLAGS
18237 with_gnu_ld=$lt_save_with_gnu_ld
18238 lt_cv_path_LDCXX=$lt_cv_path_LD
18239 lt_cv_path_LD=$lt_save_path_LD
18240 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18241 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18242 fi # test "$_lt_caught_CXX_error" != yes
18245 ac_cpp='$CPP $CPPFLAGS'
18246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18262 ac_config_commands="$ac_config_commands libtool"
18267 # Only expand once:
18272 # NTP has (so far) been relying on leading-edge autogen, which
18273 # means we need the appropriate corresponding libopts as well.
18274 # Therefore, by default:
18275 # - use the version of libopts we ship with
18276 # - do not install it
18277 # - build a static copy (AC_DISABLE_SHARED - done earlier)
18278 case "${enable_local_libopts+set}" in
18280 *) enable_local_libopts=yes ;;
18282 case "${enable_libopts_install+set}" in
18284 *) enable_libopts_install=no ;;
18287 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18288 if test "x$ac_cv_type_pid_t" = xyes; then :
18292 cat >>confdefs.h <<_ACEOF
18300 ac_header_dirent=no
18301 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18302 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18304 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18305 if eval \${$as_ac_Header+:} false; then :
18306 $as_echo_n "(cached) " >&6
18308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18309 /* end confdefs.h. */
18310 #include <sys/types.h>
18322 if ac_fn_c_try_compile "$LINENO"; then :
18323 eval "$as_ac_Header=yes"
18325 eval "$as_ac_Header=no"
18327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18329 eval ac_res=\$$as_ac_Header
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18331 $as_echo "$ac_res" >&6; }
18332 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18333 cat >>confdefs.h <<_ACEOF
18334 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18337 ac_header_dirent=$ac_hdr; break
18341 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18342 if test $ac_header_dirent = dirent.h; then
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18344 $as_echo_n "checking for library containing opendir... " >&6; }
18345 if ${ac_cv_search_opendir+:} false; then :
18346 $as_echo_n "(cached) " >&6
18348 ac_func_search_save_LIBS=$LIBS
18349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18350 /* end confdefs.h. */
18352 /* Override any GCC internal prototype to avoid an error.
18353 Use char because int might match the return type of a GCC
18354 builtin and then its argument prototype would still apply. */
18367 for ac_lib in '' dir; do
18368 if test -z "$ac_lib"; then
18369 ac_res="none required"
18372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18374 if ac_fn_c_try_link "$LINENO"; then :
18375 ac_cv_search_opendir=$ac_res
18377 rm -f core conftest.err conftest.$ac_objext \
18379 if ${ac_cv_search_opendir+:} false; then :
18383 if ${ac_cv_search_opendir+:} false; then :
18386 ac_cv_search_opendir=no
18388 rm conftest.$ac_ext
18389 LIBS=$ac_func_search_save_LIBS
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18392 $as_echo "$ac_cv_search_opendir" >&6; }
18393 ac_res=$ac_cv_search_opendir
18394 if test "$ac_res" != no; then :
18395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18401 $as_echo_n "checking for library containing opendir... " >&6; }
18402 if ${ac_cv_search_opendir+:} false; then :
18403 $as_echo_n "(cached) " >&6
18405 ac_func_search_save_LIBS=$LIBS
18406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18407 /* end confdefs.h. */
18409 /* Override any GCC internal prototype to avoid an error.
18410 Use char because int might match the return type of a GCC
18411 builtin and then its argument prototype would still apply. */
18424 for ac_lib in '' x; do
18425 if test -z "$ac_lib"; then
18426 ac_res="none required"
18429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18431 if ac_fn_c_try_link "$LINENO"; then :
18432 ac_cv_search_opendir=$ac_res
18434 rm -f core conftest.err conftest.$ac_objext \
18436 if ${ac_cv_search_opendir+:} false; then :
18440 if ${ac_cv_search_opendir+:} false; then :
18443 ac_cv_search_opendir=no
18445 rm conftest.$ac_ext
18446 LIBS=$ac_func_search_save_LIBS
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18449 $as_echo "$ac_cv_search_opendir" >&6; }
18450 ac_res=$ac_cv_search_opendir
18451 if test "$ac_res" != no; then :
18452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18459 # =================
18461 # =================
18463 sys/mman.h sys/param.h sys/poll.h sys/procset.h \
18464 sys/select.h sys/socket.h sys/stropts.h sys/time.h \
18465 sys/un.h sys/wait.h dlfcn.h errno.h \
18466 fcntl.h libgen.h libintl.h memory.h \
18467 netinet/in.h setjmp.h stdbool.h sysexits.h \
18470 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18471 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18472 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18473 cat >>confdefs.h <<_ACEOF
18474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18482 for ac_header in stdarg.h varargs.h
18484 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18485 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18486 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18487 cat >>confdefs.h <<_ACEOF
18488 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18490 lo_have_arg_hdr=true;break
18492 lo_have_arg_hdr=false
18498 for ac_header in string.h strings.h
18500 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18501 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18502 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18503 cat >>confdefs.h <<_ACEOF
18504 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18506 lo_have_str_hdr=true;break
18508 lo_have_str_hdr=false
18514 for ac_header in limits.h sys/limits.h values.h
18516 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18517 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18518 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18519 cat >>confdefs.h <<_ACEOF
18520 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18522 lo_have_lim_hdr=true;break
18524 lo_have_lim_hdr=false
18530 for ac_header in inttypes.h stdint.h
18532 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18533 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18534 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18535 cat >>confdefs.h <<_ACEOF
18536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18538 lo_have_typ_hdr=true;break
18540 lo_have_typ_hdr=false
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
18547 $as_echo_n "checking for working stdnoreturn.h... " >&6; }
18548 if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
18549 $as_echo_n "(cached) " >&6
18551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18552 /* end confdefs.h. */
18553 #include <stdlib.h>
18554 #include <stdnoreturn.h>
18555 /* Do not check for 'noreturn' after the return type.
18556 C11 allows it, but it's rarely done that way
18557 and circa-2012 bleeding-edge GCC rejects it when given
18558 -Werror=old-style-declaration. */
18559 noreturn void foo1 (void) { exit (0); }
18560 _Noreturn void foo2 (void) { exit (0); }
18561 int testit (int argc, char **argv) {
18564 (argv[0][0] ? foo1 : foo2) ();
18575 if ac_fn_c_try_compile "$LINENO"; then :
18576 gl_cv_header_working_stdnoreturn_h=yes
18578 gl_cv_header_working_stdnoreturn_h=no
18580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
18583 $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
18585 if test $gl_cv_header_working_stdnoreturn_h = yes; then
18588 STDNORETURN_H='stdnoreturn.h'
18592 if test -n "$STDNORETURN_H"; then
18593 GL_GENERATE_STDNORETURN_H_TRUE=
18594 GL_GENERATE_STDNORETURN_H_FALSE='#'
18596 GL_GENERATE_STDNORETURN_H_TRUE='#'
18597 GL_GENERATE_STDNORETURN_H_FALSE=
18602 # ----------------------------------------------------------------------
18603 # check for various programs used during the build.
18604 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
18605 # ----------------------------------------------------------------------
18606 for ac_header in runetype.h wchar.h
18608 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18609 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18610 $ac_includes_default
18611 #if HAVE_RUNETYPE_H
18612 # include <runetype.h>
18616 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18617 cat >>confdefs.h <<_ACEOF
18618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18626 # Check whether --enable-nls was given.
18627 if test "${enable_nls+set}" = set; then :
18628 enableval=$enable_nls;
18631 if test "x$enable_nls" != "xno" && \
18632 test "X${ac_cv_header_libintl_h}" = Xyes; then :
18635 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18639 # --------------------------------------------
18640 # Verify certain entries from AC_CHECK_HEADERS
18641 # --------------------------------------------
18642 ${lo_have_arg_hdr} || \
18643 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
18645 ${lo_have_str_hdr} || \
18646 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
18648 ${lo_have_lim_hdr} || \
18649 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
18651 ${lo_have_typ_hdr} || \
18652 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
18654 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
18655 do eval as_ac_var=\${ac_cv_header_${f}_h}
18656 test "X${as_ac_var}" = Xyes || {
18657 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
18660 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
18661 echo '#include <stdint.h>' > inttypes.h
18663 # ----------------------------------------------------------------------
18664 # Checks for typedefs
18665 # ----------------------------------------------------------------------
18666 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
18667 if test "x$ac_cv_type_wchar_t" = xyes; then :
18669 cat >>confdefs.h <<_ACEOF
18670 #define HAVE_WCHAR_T 1
18676 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
18677 $ac_includes_default
18678 #if HAVE_RUNETYPE_H
18679 # include <runetype.h>
18682 # include <wchar.h>
18686 if test "x$ac_cv_type_wint_t" = xyes; then :
18688 cat >>confdefs.h <<_ACEOF
18689 #define HAVE_WINT_T 1
18695 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
18696 if test "x$ac_cv_type_int8_t" = xyes; then :
18698 cat >>confdefs.h <<_ACEOF
18699 #define HAVE_INT8_T 1
18704 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
18705 if test "x$ac_cv_type_uint8_t" = xyes; then :
18707 cat >>confdefs.h <<_ACEOF
18708 #define HAVE_UINT8_T 1
18713 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
18714 if test "x$ac_cv_type_int16_t" = xyes; then :
18716 cat >>confdefs.h <<_ACEOF
18717 #define HAVE_INT16_T 1
18722 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
18723 if test "x$ac_cv_type_uint16_t" = xyes; then :
18725 cat >>confdefs.h <<_ACEOF
18726 #define HAVE_UINT16_T 1
18731 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
18732 if test "x$ac_cv_type_int32_t" = xyes; then :
18734 cat >>confdefs.h <<_ACEOF
18735 #define HAVE_INT32_T 1
18740 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
18741 if test "x$ac_cv_type_uint32_t" = xyes; then :
18743 cat >>confdefs.h <<_ACEOF
18744 #define HAVE_UINT32_T 1
18749 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
18750 if test "x$ac_cv_type_intptr_t" = xyes; then :
18752 cat >>confdefs.h <<_ACEOF
18753 #define HAVE_INTPTR_T 1
18758 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
18759 if test "x$ac_cv_type_uintptr_t" = xyes; then :
18761 cat >>confdefs.h <<_ACEOF
18762 #define HAVE_UINTPTR_T 1
18767 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
18768 if test "x$ac_cv_type_uint_t" = xyes; then :
18770 cat >>confdefs.h <<_ACEOF
18771 #define HAVE_UINT_T 1
18776 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18777 if test "x$ac_cv_type_pid_t" = xyes; then :
18779 cat >>confdefs.h <<_ACEOF
18780 #define HAVE_PID_T 1
18785 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18786 if test "x$ac_cv_type_size_t" = xyes; then :
18788 cat >>confdefs.h <<_ACEOF
18789 #define HAVE_SIZE_T 1
18794 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
18795 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
18797 cat >>confdefs.h <<_ACEOF
18798 #define HAVE_PTRDIFF_T 1
18804 # The cast to long int works around a bug in the HP C Compiler
18805 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18806 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18807 # This bug is HP SR number 8606223364.
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
18809 $as_echo_n "checking size of char*... " >&6; }
18810 if ${ac_cv_sizeof_charp+:} false; then :
18811 $as_echo_n "(cached) " >&6
18813 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
18816 if test "$ac_cv_type_charp" = yes; then
18817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18819 as_fn_error 77 "cannot compute sizeof (char*)
18820 See \`config.log' for more details" "$LINENO" 5; }
18822 ac_cv_sizeof_charp=0
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
18828 $as_echo "$ac_cv_sizeof_charp" >&6; }
18832 cat >>confdefs.h <<_ACEOF
18833 #define SIZEOF_CHARP $ac_cv_sizeof_charp
18837 # The cast to long int works around a bug in the HP C Compiler
18838 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18839 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18840 # This bug is HP SR number 8606223364.
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18842 $as_echo_n "checking size of int... " >&6; }
18843 if ${ac_cv_sizeof_int+:} false; then :
18844 $as_echo_n "(cached) " >&6
18846 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
18849 if test "$ac_cv_type_int" = yes; then
18850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18852 as_fn_error 77 "cannot compute sizeof (int)
18853 See \`config.log' for more details" "$LINENO" 5; }
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18861 $as_echo "$ac_cv_sizeof_int" >&6; }
18865 cat >>confdefs.h <<_ACEOF
18866 #define SIZEOF_INT $ac_cv_sizeof_int
18870 # The cast to long int works around a bug in the HP C Compiler
18871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18873 # This bug is HP SR number 8606223364.
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
18875 $as_echo_n "checking size of long... " >&6; }
18876 if ${ac_cv_sizeof_long+:} false; then :
18877 $as_echo_n "(cached) " >&6
18879 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
18882 if test "$ac_cv_type_long" = yes; then
18883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18885 as_fn_error 77 "cannot compute sizeof (long)
18886 See \`config.log' for more details" "$LINENO" 5; }
18888 ac_cv_sizeof_long=0
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
18894 $as_echo "$ac_cv_sizeof_long" >&6; }
18898 cat >>confdefs.h <<_ACEOF
18899 #define SIZEOF_LONG $ac_cv_sizeof_long
18903 # The cast to long int works around a bug in the HP C Compiler
18904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18906 # This bug is HP SR number 8606223364.
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
18908 $as_echo_n "checking size of short... " >&6; }
18909 if ${ac_cv_sizeof_short+:} false; then :
18910 $as_echo_n "(cached) " >&6
18912 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
18915 if test "$ac_cv_type_short" = yes; then
18916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18918 as_fn_error 77 "cannot compute sizeof (short)
18919 See \`config.log' for more details" "$LINENO" 5; }
18921 ac_cv_sizeof_short=0
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
18927 $as_echo "$ac_cv_sizeof_short" >&6; }
18931 cat >>confdefs.h <<_ACEOF
18932 #define SIZEOF_SHORT $ac_cv_sizeof_short
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
18941 $as_echo_n "checking for pathfind in -lgen... " >&6; }
18942 if ${ac_cv_lib_gen_pathfind+:} false; then :
18943 $as_echo_n "(cached) " >&6
18945 ac_check_lib_save_LIBS=$LIBS
18947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18948 /* end confdefs.h. */
18950 /* Override any GCC internal prototype to avoid an error.
18951 Use char because int might match the return type of a GCC
18952 builtin and then its argument prototype would still apply. */
18960 return pathfind ();
18965 if ac_fn_c_try_link "$LINENO"; then :
18966 ac_cv_lib_gen_pathfind=yes
18968 ac_cv_lib_gen_pathfind=no
18970 rm -f core conftest.err conftest.$ac_objext \
18971 conftest$ac_exeext conftest.$ac_ext
18972 LIBS=$ac_check_lib_save_LIBS
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
18975 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
18976 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
18977 cat >>confdefs.h <<_ACEOF
18978 #define HAVE_LIBGEN 1
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
18986 $as_echo_n "checking for gettext in -lintl... " >&6; }
18987 if ${ac_cv_lib_intl_gettext+:} false; then :
18988 $as_echo_n "(cached) " >&6
18990 ac_check_lib_save_LIBS=$LIBS
18991 LIBS="-lintl $LIBS"
18992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18993 /* end confdefs.h. */
18995 /* Override any GCC internal prototype to avoid an error.
18996 Use char because int might match the return type of a GCC
18997 builtin and then its argument prototype would still apply. */
19010 if ac_fn_c_try_link "$LINENO"; then :
19011 ac_cv_lib_intl_gettext=yes
19013 ac_cv_lib_intl_gettext=no
19015 rm -f core conftest.err conftest.$ac_objext \
19016 conftest$ac_exeext conftest.$ac_ext
19017 LIBS=$ac_check_lib_save_LIBS
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
19020 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
19021 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
19022 cat >>confdefs.h <<_ACEOF
19023 #define HAVE_LIBINTL 1
19026 LIBS="-lintl $LIBS"
19030 for ac_func in vprintf
19032 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19033 if test "x$ac_cv_func_vprintf" = xyes; then :
19034 cat >>confdefs.h <<_ACEOF
19035 #define HAVE_VPRINTF 1
19038 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19039 if test "x$ac_cv_func__doprnt" = xyes; then :
19041 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19049 for ac_header in vfork.h
19051 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19052 if test "x$ac_cv_header_vfork_h" = xyes; then :
19053 cat >>confdefs.h <<_ACEOF
19054 #define HAVE_VFORK_H 1
19061 for ac_func in fork vfork
19063 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19064 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19065 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19066 cat >>confdefs.h <<_ACEOF
19067 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19073 if test "x$ac_cv_func_fork" = xyes; then
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19075 $as_echo_n "checking for working fork... " >&6; }
19076 if ${ac_cv_func_fork_works+:} false; then :
19077 $as_echo_n "(cached) " >&6
19079 if test "$cross_compiling" = yes; then :
19080 ac_cv_func_fork_works=cross
19082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19083 /* end confdefs.h. */
19084 $ac_includes_default
19089 /* By Ruediger Kuhlmann. */
19090 return fork () < 0;
19096 if ac_fn_c_try_run "$LINENO"; then :
19097 ac_cv_func_fork_works=yes
19099 ac_cv_func_fork_works=no
19101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19102 conftest.$ac_objext conftest.beam conftest.$ac_ext
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19107 $as_echo "$ac_cv_func_fork_works" >&6; }
19110 ac_cv_func_fork_works=$ac_cv_func_fork
19112 if test "x$ac_cv_func_fork_works" = xcross; then
19114 *-*-amigaos* | *-*-msdosdjgpp*)
19115 # Override, as these systems have only a dummy fork() stub
19116 ac_cv_func_fork_works=no
19119 ac_cv_func_fork_works=yes
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19123 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19125 ac_cv_func_vfork_works=$ac_cv_func_vfork
19126 if test "x$ac_cv_func_vfork" = xyes; then
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19128 $as_echo_n "checking for working vfork... " >&6; }
19129 if ${ac_cv_func_vfork_works+:} false; then :
19130 $as_echo_n "(cached) " >&6
19132 if test "$cross_compiling" = yes; then :
19133 ac_cv_func_vfork_works=cross
19135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19136 /* end confdefs.h. */
19137 /* Thanks to Paul Eggert for this test. */
19138 $ac_includes_default
19139 #include <sys/wait.h>
19140 #ifdef HAVE_VFORK_H
19141 # include <vfork.h>
19143 /* On some sparc systems, changes by the child to local and incoming
19144 argument registers are propagated back to the parent. The compiler
19145 is told about this with #include <vfork.h>, but some compilers
19146 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19147 static variable whose address is put into a register that is
19148 clobbered by the vfork. */
19151 sparc_address_test (int arg)
19153 sparc_address_test (arg) int arg;
19156 static pid_t child;
19174 pid_t parent = getpid ();
19177 sparc_address_test (0);
19182 /* Here is another test for sparc vfork register problems. This
19183 test uses lots of local variables, at least as many local
19184 variables as main has allocated so far including compiler
19185 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19186 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19187 reuse the register of parent for one of the local variables,
19188 since it will think that parent can't possibly be used any more
19189 in this routine. Assigning to the local variable will thus
19190 munge parent in the parent process. */
19192 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19193 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19194 /* Convince the compiler that p..p7 are live; otherwise, it might
19195 use the same hardware register for all 8 local variables. */
19196 if (p != p1 || p != p2 || p != p3 || p != p4
19197 || p != p5 || p != p6 || p != p7)
19200 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19201 from child file descriptors. If the child closes a descriptor
19202 before it execs or exits, this munges the parent's descriptor
19203 as well. Test for this by closing stdout in the child. */
19204 _exit(close(fileno(stdout)) != 0);
19209 while (wait(&status) != child)
19212 /* Was there some problem with vforking? */
19215 /* Did the child fail? (This shouldn't happen.) */
19218 /* Did the vfork/compiler bug occur? */
19219 || parent != getpid()
19221 /* Did the file descriptor bug occur? */
19222 || fstat(fileno(stdout), &st) != 0
19227 if ac_fn_c_try_run "$LINENO"; then :
19228 ac_cv_func_vfork_works=yes
19230 ac_cv_func_vfork_works=no
19232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19233 conftest.$ac_objext conftest.beam conftest.$ac_ext
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19238 $as_echo "$ac_cv_func_vfork_works" >&6; }
19241 if test "x$ac_cv_func_fork_works" = xcross; then
19242 ac_cv_func_vfork_works=$ac_cv_func_vfork
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19244 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19247 if test "x$ac_cv_func_vfork_works" = xyes; then
19249 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19253 $as_echo "#define vfork fork" >>confdefs.h
19256 if test "x$ac_cv_func_fork_works" = xyes; then
19258 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19262 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
19263 strrchr strsignal fchmod fstat chmod
19265 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19266 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19267 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19268 cat >>confdefs.h <<_ACEOF
19269 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
19276 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
19277 if ${ac_cv_path_SED+:} false; then :
19278 $as_echo_n "(cached) " >&6
19280 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
19281 for ac_i in 1 2 3 4 5 6 7; do
19282 ac_script="$ac_script$as_nl$ac_script"
19284 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
19285 { ac_script=; unset ac_script;}
19286 if test -z "$SED"; then
19287 ac_path_SED_found=false
19288 # Loop through the user's path and test for each of PROGNAME-LIST
19289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19290 for as_dir in $PATH
19293 test -z "$as_dir" && as_dir=.
19294 for ac_prog in sed gsed; do
19295 for ac_exec_ext in '' $ac_executable_extensions; do
19296 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
19297 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
19298 # Check for GNU ac_path_SED and select it if it is found.
19299 # Check for GNU $ac_path_SED
19300 case `"$ac_path_SED" --version 2>&1` in
19302 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
19305 $as_echo_n 0123456789 >"conftest.in"
19308 cat "conftest.in" "conftest.in" >"conftest.tmp"
19309 mv "conftest.tmp" "conftest.in"
19310 cp "conftest.in" "conftest.nl"
19311 $as_echo '' >> "conftest.nl"
19312 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
19313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19314 as_fn_arith $ac_count + 1 && ac_count=$as_val
19315 if test $ac_count -gt ${ac_path_SED_max-0}; then
19316 # Best one so far, save it but keep looking for a better one
19317 ac_cv_path_SED="$ac_path_SED"
19318 ac_path_SED_max=$ac_count
19320 # 10*(2^10) chars as input seems more than enough
19321 test $ac_count -gt 10 && break
19323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19326 $ac_path_SED_found && break 3
19331 if test -z "$ac_cv_path_SED"; then
19332 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
19335 ac_cv_path_SED=$SED
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
19340 $as_echo "$ac_cv_path_SED" >&6; }
19341 SED="$ac_cv_path_SED"
19346 POSIX_SHELL=`which bash`
19347 test -x "$POSIX_SHELL" && break
19348 POSIX_SHELL=`which dash`
19349 test -x "$POSIX_SHELL" && break
19350 POSIX_SHELL=/usr/xpg4/bin/sh
19351 test -x "$POSIX_SHELL" && break
19352 POSIX_SHELL=`/bin/sh -c '
19354 if ! true ; then exit 1 ; fi
19356 test -x "$POSIX_SHELL" && break
19357 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
19360 cat >>confdefs.h <<_ACEOF
19361 #define POSIX_SHELL "${POSIX_SHELL}"
19368 LIBOPTS_BUILD_BLOCKED=true
19371 NEED_LIBOPTS_DIR=''
19373 # Check whether --enable-local-libopts was given.
19374 if test "${enable_local_libopts+set}" = set; then :
19375 enableval=$enable_local_libopts;
19376 if test x$enableval = xyes ; then
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
19378 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
19379 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19380 NEED_LIBOPTS_DIR=true
19381 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19386 # Check whether --enable-libopts-install was given.
19387 if test "${enable_libopts_install+set}" = set; then :
19388 enableval=$enable_libopts_install;
19391 if test "X${enable_libopts_install}" = Xyes; then
19392 INSTALL_LIBOPTS_TRUE=
19393 INSTALL_LIBOPTS_FALSE='#'
19395 INSTALL_LIBOPTS_TRUE='#'
19396 INSTALL_LIBOPTS_FALSE=
19400 if test -z "${NEED_LIBOPTS_DIR}" ; then
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
19402 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
19404 # Check whether --with-autoopts-config was given.
19405 if test "${with_autoopts_config+set}" = set; then :
19406 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
19409 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
19410 if ${lo_cv_with_autoopts_config+:} false; then :
19411 $as_echo_n "(cached) " >&6
19413 if autoopts-config --help 2>/dev/null 1>&2
19414 then lo_cv_with_autoopts_config=autoopts-config
19415 elif libopts-config --help 2>/dev/null 1>&2
19416 then lo_cv_with_autoopts_config=libopts-config
19417 else lo_cv_with_autoopts_config=no ; fi
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
19420 $as_echo "$lo_cv_with_autoopts_config" >&6; }
19423 # end of AC_ARG_WITH
19425 if ${lo_cv_test_autoopts+:} false; then :
19426 $as_echo_n "(cached) " >&6
19429 if test -z "${lo_cv_with_autoopts_config}" \
19430 -o X"${lo_cv_with_autoopts_config}" = Xno
19432 if autoopts-config --help 2>/dev/null 1>&2
19433 then lo_cv_with_autoopts_config=autoopts-config
19434 elif libopts-config --help 2>/dev/null 1>&2
19435 then lo_cv_with_autoopts_config=libopts-config
19436 else lo_cv_with_autoopts_config=false ; fi
19438 lo_cv_test_autoopts=`
19439 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
19440 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
19441 then lo_cv_test_autoopts=no ; fi
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
19446 $as_echo "${lo_cv_test_autoopts}" >&6; }
19448 if test "X${lo_cv_test_autoopts}" != Xno
19450 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
19451 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
19453 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19454 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19455 NEED_LIBOPTS_DIR=true
19457 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
19458 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
19459 NEED_LIBOPTS_DIR=''
19461 if test -n "${NEED_LIBOPTS_DIR}"; then
19463 NEED_LIBOPTS_FALSE='#'
19465 NEED_LIBOPTS_TRUE='#'
19466 NEED_LIBOPTS_FALSE=
19471 LIBOPTS_DIR=sntp/libopts
19474 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
19476 # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD
19481 ntp_pkgconfig_min_version='0.15.0'
19482 if test -n "$ac_tool_prefix"; then
19483 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19484 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19486 $as_echo_n "checking for $ac_word... " >&6; }
19487 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19488 $as_echo_n "(cached) " >&6
19490 case $PKG_CONFIG in
19492 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19496 for as_dir in $PATH
19499 test -z "$as_dir" && as_dir=.
19500 for ac_exec_ext in '' $ac_executable_extensions; do
19501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19502 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19513 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19514 if test -n "$PKG_CONFIG"; then
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19516 $as_echo "$PKG_CONFIG" >&6; }
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19519 $as_echo "no" >&6; }
19524 if test -z "$ac_cv_path_PKG_CONFIG"; then
19525 ac_pt_PKG_CONFIG=$PKG_CONFIG
19526 # Extract the first word of "pkg-config", so it can be a program name with args.
19527 set dummy pkg-config; ac_word=$2
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19529 $as_echo_n "checking for $ac_word... " >&6; }
19530 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19531 $as_echo_n "(cached) " >&6
19533 case $ac_pt_PKG_CONFIG in
19535 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19539 for as_dir in $PATH
19542 test -z "$as_dir" && as_dir=.
19543 for ac_exec_ext in '' $ac_executable_extensions; do
19544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19545 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19556 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19557 if test -n "$ac_pt_PKG_CONFIG"; then
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19559 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19562 $as_echo "no" >&6; }
19565 if test "x$ac_pt_PKG_CONFIG" = x; then
19568 case $cross_compiling:$ac_tool_warned in
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19572 ac_tool_warned=yes ;;
19574 PKG_CONFIG=$ac_pt_PKG_CONFIG
19577 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19580 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
19581 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
19583 case "$PKG_CONFIG" in
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
19586 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
19587 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19589 $as_echo "yes" >&6; }
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19592 $as_echo "no" >&6; }
19601 # Check whether --enable-local-libevent was given.
19602 if test "${enable_local_libevent+set}" = set; then :
19603 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
19605 ntp_use_local_libevent=${ntp_use_local_libevent-detect}
19613 ntp_libevent_min_version=2
19614 ntp_libevent_tearoff=sntp/libevent
19619 case "$ntp_use_local_libevent" in
19622 *) # If we have (a good enough) pkg-config, see if it can find libevent
19623 case "$PKG_CONFIG" in
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
19626 $as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
19627 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
19629 ntp_use_local_libevent=no
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
19631 $as_echo "$as_me: Using the installed libevent" >&6;}
19632 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
19633 # HMS: I hope the following is accurate.
19634 # We don't need -levent, we only need -levent_core.
19635 # While we could grab only the -L stuff, there *might* be
19636 # other flags there we want. Originally we just removed -levent
19637 # but then somebody decided to install -levent-2.0
19638 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
19639 # So now we dance...
19641 for i in `$PKG_CONFIG --libs libevent`
19645 *) case "$LDADD_LIBEVENT" in
19646 '') LDADD_LIBEVENT="$i" ;;
19647 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
19652 case "$LIBISC_PTHREADS_NOTHREADS" in
19654 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
19656 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19658 $as_echo "yes" >&6; }
19660 ntp_use_local_libevent=yes
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19662 $as_echo "no" >&6; }
19666 ntp_use_local_libevent=yes
19672 case "$ntp_use_local_libevent" in
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
19675 $as_echo "$as_me: Using libevent tearoff" >&6;}
19676 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
19677 case "$LIBISC_PTHREADS_NOTHREADS" in
19679 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
19682 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
19686 if test "x$ntp_use_local_libevent" = "xyes"; then
19687 BUILD_LIBEVENT_TRUE=
19688 BUILD_LIBEVENT_FALSE='#'
19690 BUILD_LIBEVENT_TRUE='#'
19691 BUILD_LIBEVENT_FALSE=
19699 # Expose a cross-compilation indicator to makefiles
19700 if test $build != $host; then
19701 NTP_CROSSCOMPILE_TRUE=
19702 NTP_CROSSCOMPILE_FALSE='#'
19704 NTP_CROSSCOMPILE_TRUE='#'
19705 NTP_CROSSCOMPILE_FALSE=
19710 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19711 if test "x$ac_cv_type_size_t" = xyes; then :
19715 cat >>confdefs.h <<_ACEOF
19716 #define size_t unsigned int
19722 # Check whether --enable-c99-snprintf was given.
19723 if test "${enable_c99_snprintf+set}" = set; then :
19724 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
19726 force_c99_snprintf=no
19730 case "$force_c99_snprintf" in
19732 hw_force_rpl_snprintf=yes
19733 hw_force_rpl_vsnprintf=yes
19741 for ac_header in $ac_header_list
19743 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19744 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19746 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19747 cat >>confdefs.h <<_ACEOF
19748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19761 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
19762 if test "x$ac_cv_func_vsnprintf" = xyes; then :
19763 hw_cv_func_vsnprintf=yes
19765 hw_cv_func_vsnprintf=no
19768 if test "$hw_cv_func_vsnprintf" = yes; then :
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
19770 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
19771 if ${hw_cv_func_vsnprintf_c99+:} false; then :
19772 $as_echo_n "(cached) " >&6
19774 if test "$cross_compiling" = yes; then :
19775 hw_cv_func_vsnprintf_c99=no
19777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19778 /* end confdefs.h. */
19780 #include <stdarg.h>
19783 static int testprintf(char *buf, size_t size, const char *format, ...)
19787 va_start(ap, format);
19788 result = vsnprintf(buf, size, format, ap);
19796 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
19797 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
19798 buf[0] != 'T' || buf[3] != '\0')
19804 if ac_fn_c_try_run "$LINENO"; then :
19805 hw_cv_func_vsnprintf_c99=yes
19807 hw_cv_func_vsnprintf_c99=no
19809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19810 conftest.$ac_objext conftest.beam conftest.$ac_ext
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
19815 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
19817 hw_cv_func_vsnprintf_c99=no
19820 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
19823 $as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
19824 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
19825 hw_use_rpl_vsnprintf=yes
19827 hw_use_rpl_vsnprintf=no
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
19830 $as_echo "$hw_use_rpl_vsnprintf" >&6; }
19831 if test "$hw_use_rpl_vsnprintf" = yes; then :
19833 $as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
19835 if test ${hw_nodef_vsnprintf=no} = no; then :
19837 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
19840 for ac_header in inttypes.h locale.h stddef.h stdint.h
19842 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19843 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19844 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19845 cat >>confdefs.h <<_ACEOF
19846 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19853 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
19855 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
19857 cat >>confdefs.h <<_ACEOF
19858 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
19863 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
19865 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
19867 cat >>confdefs.h <<_ACEOF
19868 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
19875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19876 $as_echo_n "checking for long double... " >&6; }
19877 if ${ac_cv_type_long_double+:} false; then :
19878 $as_echo_n "(cached) " >&6
19880 if test "$GCC" = yes; then
19881 ac_cv_type_long_double=yes
19883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19884 /* end confdefs.h. */
19885 /* The Stardent Vistra knows sizeof (long double), but does
19887 long double foo = 0.0L;
19891 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19892 sizeof (double) <= sizeof (long double))];
19899 if ac_fn_c_try_compile "$LINENO"; then :
19900 ac_cv_type_long_double=yes
19902 ac_cv_type_long_double=no
19904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
19908 $as_echo "$ac_cv_type_long_double" >&6; }
19909 if test $ac_cv_type_long_double = yes; then
19911 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19917 $as_echo_n "checking for long long int... " >&6; }
19918 if ${ac_cv_type_long_long_int+:} false; then :
19919 $as_echo_n "(cached) " >&6
19921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19922 /* end confdefs.h. */
19924 /* For now, do not test the preprocessor; as of 2007 there are too many
19925 implementations with broken preprocessors. Perhaps this can
19926 be revisited in 2012. In the meantime, code should not expect
19927 #if to work with literals wider than 32 bits. */
19928 /* Test literals. */
19929 long long int ll = 9223372036854775807ll;
19930 long long int nll = -9223372036854775807LL;
19931 unsigned long long int ull = 18446744073709551615ULL;
19932 /* Test constant expressions. */
19933 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19935 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19941 /* Test availability of runtime routines for shift and division. */
19942 long long int llmax = 9223372036854775807ll;
19943 unsigned long long int ullmax = 18446744073709551615ull;
19944 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19945 | (llmax / ll) | (llmax % ll)
19946 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19947 | (ullmax / ull) | (ullmax % ull));
19953 if ac_fn_c_try_link "$LINENO"; then :
19954 if test "$cross_compiling" = yes; then :
19955 ac_cv_type_long_long_int=yes
19957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19958 /* end confdefs.h. */
19959 #include <limits.h>
19962 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19963 # define LLONG_MAX (HALF - 1 + HALF)
19968 long long int n = 1;
19972 long long int m = n << i;
19975 if (LLONG_MAX / 2 < m)
19983 if ac_fn_c_try_run "$LINENO"; then :
19984 ac_cv_type_long_long_int=yes
19986 ac_cv_type_long_long_int=no
19988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19989 conftest.$ac_objext conftest.beam conftest.$ac_ext
19993 ac_cv_type_long_long_int=no
19995 rm -f core conftest.err conftest.$ac_objext \
19996 conftest$ac_exeext conftest.$ac_ext
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19999 $as_echo "$ac_cv_type_long_long_int" >&6; }
20000 if test $ac_cv_type_long_long_int = yes; then
20002 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20008 $as_echo_n "checking for unsigned long long int... " >&6; }
20009 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
20010 $as_echo_n "(cached) " >&6
20012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20013 /* end confdefs.h. */
20015 /* For now, do not test the preprocessor; as of 2007 there are too many
20016 implementations with broken preprocessors. Perhaps this can
20017 be revisited in 2012. In the meantime, code should not expect
20018 #if to work with literals wider than 32 bits. */
20019 /* Test literals. */
20020 long long int ll = 9223372036854775807ll;
20021 long long int nll = -9223372036854775807LL;
20022 unsigned long long int ull = 18446744073709551615ULL;
20023 /* Test constant expressions. */
20024 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20026 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20032 /* Test availability of runtime routines for shift and division. */
20033 long long int llmax = 9223372036854775807ll;
20034 unsigned long long int ullmax = 18446744073709551615ull;
20035 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20036 | (llmax / ll) | (llmax % ll)
20037 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20038 | (ullmax / ull) | (ullmax % ull));
20044 if ac_fn_c_try_link "$LINENO"; then :
20045 ac_cv_type_unsigned_long_long_int=yes
20047 ac_cv_type_unsigned_long_long_int=no
20049 rm -f core conftest.err conftest.$ac_objext \
20050 conftest$ac_exeext conftest.$ac_ext
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20053 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20054 if test $ac_cv_type_unsigned_long_long_int = yes; then
20056 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20060 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20061 if test "x$ac_cv_type_size_t" = xyes; then :
20065 cat >>confdefs.h <<_ACEOF
20066 #define size_t unsigned int
20073 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
20074 if test "x$ac_cv_type_intmax_t" = xyes; then :
20076 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20079 test $ac_cv_type_long_long_int = yes \
20080 && ac_type='long long int' \
20081 || ac_type='long int'
20083 cat >>confdefs.h <<_ACEOF
20084 #define intmax_t $ac_type
20092 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
20093 if test "x$ac_cv_type_uintmax_t" = xyes; then :
20095 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20098 test $ac_cv_type_unsigned_long_long_int = yes \
20099 && ac_type='unsigned long long int' \
20100 || ac_type='unsigned long int'
20102 cat >>confdefs.h <<_ACEOF
20103 #define uintmax_t $ac_type
20110 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20111 if test "x$ac_cv_type_uintptr_t" = xyes; then :
20113 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
20116 for ac_type in 'unsigned int' 'unsigned long int' \
20117 'unsigned long long int'; do
20118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20119 /* end confdefs.h. */
20120 $ac_includes_default
20124 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
20131 if ac_fn_c_try_compile "$LINENO"; then :
20133 cat >>confdefs.h <<_ACEOF
20134 #define uintptr_t $ac_type
20139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20140 test -z "$ac_type" && break
20145 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20146 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20148 cat >>confdefs.h <<_ACEOF
20149 #define HAVE_PTRDIFF_T 1
20155 for ac_func in localeconv
20157 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
20158 if test "x$ac_cv_func_localeconv" = xyes; then :
20159 cat >>confdefs.h <<_ACEOF
20160 #define HAVE_LOCALECONV 1
20167 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20169 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20170 if ${ac_cv_c_const+:} false; then :
20171 $as_echo_n "(cached) " >&6
20173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20174 /* end confdefs.h. */
20179 /* FIXME: Include the comments suggested by Paul. */
20180 #ifndef __cplusplus
20181 /* Ultrix mips cc rejects this. */
20182 typedef int charset[2];
20184 /* SunOS 4.1.1 cc rejects this. */
20185 char const *const *pcpcc;
20187 /* NEC SVR4.0.2 mips cc rejects this. */
20188 struct point {int x, y;};
20189 static struct point const zero = {0,0};
20190 /* AIX XL C 1.02.0.0 rejects this.
20191 It does not let you subtract one const X* pointer from another in
20192 an arm of an if-expression whose if-part is not a constant
20194 const char *g = "string";
20195 pcpcc = &g + (g ? g-g : 0);
20196 /* HPUX 7.0 cc rejects these. */
20198 ppc = (char**) pcpcc;
20199 pcpcc = (char const *const *) ppc;
20200 { /* SCO 3.2v4 cc rejects this. */
20202 char const *s = 0 ? (char *) 0 : (char const *) 0;
20207 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20208 int x[] = {25, 17};
20209 const int *foo = &x[0];
20212 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20213 typedef const int *iptr;
20217 { /* AIX XL C 1.02.0.0 rejects this saying
20218 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20219 struct s { int j; const int *ap[3]; };
20220 struct s *b; b->j = 5;
20222 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20223 const int foo = 10;
20224 if (!foo) return 0;
20226 return !cs[0] && !zero.x;
20233 if ac_fn_c_try_compile "$LINENO"; then :
20238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20241 $as_echo "$ac_cv_c_const" >&6; }
20242 if test $ac_cv_c_const = no; then
20244 $as_echo "#define const /**/" >>confdefs.h
20251 case " $LIBOBJS " in
20252 *" snprintf.$ac_objext "* ) ;;
20253 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20257 _hw_cv_func_xprintf_replace_done=yes
20263 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20264 if test "x$ac_cv_func_snprintf" = xyes; then :
20265 hw_cv_func_snprintf=yes
20267 hw_cv_func_snprintf=no
20270 if test "$hw_cv_func_snprintf" = yes; then :
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
20272 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
20273 if ${hw_cv_func_snprintf_c99+:} false; then :
20274 $as_echo_n "(cached) " >&6
20276 if test "$cross_compiling" = yes; then :
20277 hw_cv_func_snprintf_c99=no
20279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20280 /* end confdefs.h. */
20286 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20287 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20288 buf[0] != 'T' || buf[3] != '\0')
20294 if ac_fn_c_try_run "$LINENO"; then :
20295 hw_cv_func_snprintf_c99=yes
20297 hw_cv_func_snprintf_c99=no
20299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20300 conftest.$ac_objext conftest.beam conftest.$ac_ext
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
20305 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
20307 hw_cv_func_snprintf_c99=no
20310 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
20313 $as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
20314 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
20315 hw_use_rpl_snprintf=yes
20317 hw_use_rpl_snprintf=no
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
20320 $as_echo "$hw_use_rpl_snprintf" >&6; }
20321 if test "$hw_use_rpl_snprintf" = yes; then :
20323 $as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
20325 if test ${hw_nodef_snprintf=no} = no; then :
20327 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
20331 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20333 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20334 if ${ac_cv_c_const+:} false; then :
20335 $as_echo_n "(cached) " >&6
20337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20338 /* end confdefs.h. */
20343 /* FIXME: Include the comments suggested by Paul. */
20344 #ifndef __cplusplus
20345 /* Ultrix mips cc rejects this. */
20346 typedef int charset[2];
20348 /* SunOS 4.1.1 cc rejects this. */
20349 char const *const *pcpcc;
20351 /* NEC SVR4.0.2 mips cc rejects this. */
20352 struct point {int x, y;};
20353 static struct point const zero = {0,0};
20354 /* AIX XL C 1.02.0.0 rejects this.
20355 It does not let you subtract one const X* pointer from another in
20356 an arm of an if-expression whose if-part is not a constant
20358 const char *g = "string";
20359 pcpcc = &g + (g ? g-g : 0);
20360 /* HPUX 7.0 cc rejects these. */
20362 ppc = (char**) pcpcc;
20363 pcpcc = (char const *const *) ppc;
20364 { /* SCO 3.2v4 cc rejects this. */
20366 char const *s = 0 ? (char *) 0 : (char const *) 0;
20371 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20372 int x[] = {25, 17};
20373 const int *foo = &x[0];
20376 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20377 typedef const int *iptr;
20381 { /* AIX XL C 1.02.0.0 rejects this saying
20382 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20383 struct s { int j; const int *ap[3]; };
20384 struct s *b; b->j = 5;
20386 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20387 const int foo = 10;
20388 if (!foo) return 0;
20390 return !cs[0] && !zero.x;
20397 if ac_fn_c_try_compile "$LINENO"; then :
20402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20405 $as_echo "$ac_cv_c_const" >&6; }
20406 if test $ac_cv_c_const = no; then
20408 $as_echo "#define const /**/" >>confdefs.h
20415 case " $LIBOBJS " in
20416 *" snprintf.$ac_objext "* ) ;;
20417 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20421 _hw_cv_func_xprintf_replace_done=yes
20430 # HMS: Save $LIBS and empty it.
20431 # any LIBS we add here should go in to LDADD_LIBNTP
20438 # [Bug 2332] because we need to know if we are using GNU ld...
20441 # Check whether --with-gnu-ld was given.
20442 if test "${with_gnu_ld+set}" = set; then :
20443 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20449 if test "$GCC" = yes; then
20450 # Check if gcc -print-prog-name=ld gives a path.
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20452 $as_echo_n "checking for ld used by $CC... " >&6; }
20455 # gcc leaves a trailing carriage return which upsets mingw
20456 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20458 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20461 # Accept absolute paths.
20463 re_direlt='/[^/][^/]*/\.\./'
20464 # Canonicalize the pathname of ld
20465 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20466 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20467 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20469 test -z "$LD" && LD="$ac_prog"
20472 # If it fails, then pretend we aren't using GCC.
20476 # If it is relative, then search for the first ld in PATH.
20477 with_gnu_ld=unknown
20480 elif test "$with_gnu_ld" = yes; then
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20482 $as_echo_n "checking for GNU ld... " >&6; }
20484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20485 $as_echo_n "checking for non-GNU ld... " >&6; }
20487 if ${lt_cv_path_LD+:} false; then :
20488 $as_echo_n "(cached) " >&6
20490 if test -z "$LD"; then
20491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20492 for ac_dir in $PATH; do
20494 test -z "$ac_dir" && ac_dir=.
20495 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20496 lt_cv_path_LD="$ac_dir/$ac_prog"
20497 # Check to see if the program is GNU ld. I'd rather use --version,
20498 # but apparently some variants of GNU ld only accept -v.
20499 # Break only if it was the GNU/non-GNU ld that we prefer.
20500 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20501 *GNU* | *'with BFD'*)
20502 test "$with_gnu_ld" != no && break
20505 test "$with_gnu_ld" != yes && break
20512 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20516 LD="$lt_cv_path_LD"
20517 if test -n "$LD"; then
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20519 $as_echo "$LD" >&6; }
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20522 $as_echo "no" >&6; }
20524 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20526 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20527 if ${lt_cv_prog_gnu_ld+:} false; then :
20528 $as_echo_n "(cached) " >&6
20530 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20531 case `$LD -v 2>&1 </dev/null` in
20532 *GNU* | *'with BFD'*)
20533 lt_cv_prog_gnu_ld=yes
20536 lt_cv_prog_gnu_ld=no
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20541 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20542 with_gnu_ld=$lt_cv_prog_gnu_ld
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
20552 $as_echo_n "checking for directory path separator... " >&6; }
20553 if ${ntp_cv_dir_sep+:} false; then :
20554 $as_echo_n "(cached) " >&6
20557 case "$ntp_cv_dir_sep" in
20560 *djgpp | *mingw32* | *emx*)
20561 ntp_cv_dir_sep="'\\'"
20564 ntp_cv_dir_sep="'/'"
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
20572 $as_echo "$ntp_cv_dir_sep" >&6; }
20574 cat >>confdefs.h <<_ACEOF
20575 #define DIR_SEP $ntp_cv_dir_sep
20580 NTP_ORIG_LIBS="$LIBS"
20582 # Check whether --with-lineeditlibs was given.
20583 if test "${with_lineeditlibs+set}" = set; then :
20584 withval=$with_lineeditlibs; use_lineeditlibs="$withval"
20586 use_lineeditlibs="edit,editline"
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
20591 $as_echo_n "checking line editing libraries... " >&6; }
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
20593 $as_echo "$use_lineeditlibs" >&6; }
20594 case "$use_lineeditlibs" in
20596 ntp_lib_lineedit=no
20599 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
20600 for term_lib in "" termcap curses ncurses; do
20601 case "$term_lib" in
20603 TRY_LIB="-l$lineedit_lib"
20606 TRY_LIB="-l$lineedit_lib -l$term_lib"
20609 LIBS="$NTP_ORIG_LIBS $TRY_LIB"
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
20611 $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
20612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20613 /* end confdefs.h. */
20615 /* Override any GCC internal prototype to avoid an error.
20616 Use char because int might match the return type of a GCC
20617 builtin and then its argument prototype would still apply. */
20625 return readline ();
20630 if ac_fn_c_try_link "$LINENO"; then :
20631 ntp_lib_lineedit="$TRY_LIB"
20633 rm -f core conftest.err conftest.$ac_objext \
20634 conftest$ac_exeext conftest.$ac_ext
20635 case "$ntp_lib_lineedit" in
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20638 $as_echo "no" >&6; }
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20643 $as_echo "yes" >&6; }
20646 case "$term_lib" in
20648 # do not try el_gets without a terminal library
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
20652 $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
20653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20654 /* end confdefs.h. */
20656 /* Override any GCC internal prototype to avoid an error.
20657 Use char because int might match the return type of a GCC
20658 builtin and then its argument prototype would still apply. */
20671 if ac_fn_c_try_link "$LINENO"; then :
20672 ntp_lib_lineedit="$TRY_LIB"
20674 rm -f core conftest.err conftest.$ac_objext \
20675 conftest$ac_exeext conftest.$ac_ext
20676 case "$ntp_lib_lineedit" in
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20679 $as_echo "no" >&6; }
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20683 $as_echo "yes" >&6; }
20686 esac # $ntp_lib_lineedit
20689 case "$ntp_lib_lineedit" in
20697 LIBS="$NTP_ORIG_LIBS"
20699 esac # $use_lineeditlibs
20701 case "$ntp_lib_lineedit" in
20703 ntp_lib_lineedit="no"
20708 EDITLINE_LIBS="$ntp_lib_lineedit"
20711 esac # $ntp_lib_lineedit
20713 case "$ntp_lib_lineedit" in
20717 for ac_header in readline.h readline/readline.h histedit.h
20719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20720 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20721 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20722 cat >>confdefs.h <<_ACEOF
20723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20730 for ac_header in history.h readline/history.h
20732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20733 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20734 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20735 cat >>confdefs.h <<_ACEOF
20736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20744 case "$ac_cv_header_histedit_h" in
20746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
20747 $as_echo_n "checking number of arguments to el_init()... " >&6; }
20748 if ${ntp_cv_el_init_args+:} false; then :
20749 $as_echo_n "(cached) " >&6
20751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20752 /* end confdefs.h. */
20755 #include <histedit.h>
20761 el_init("conftest", stdin, stdout, stderr);
20768 if ac_fn_c_try_compile "$LINENO"; then :
20769 ntp_cv_el_init_args=4
20771 ntp_cv_el_init_args=3
20774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
20778 $as_echo "$ntp_cv_el_init_args" >&6; }
20780 cat >>confdefs.h <<_ACEOF
20781 #define EL_INIT_ARGS $ntp_cv_el_init_args
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20787 $as_echo_n "checking whether readline supports history... " >&6; }
20789 ntp_lib_lineedit_history="no"
20791 LIBS="$ORIG_LIBS $ntp_lib_lineedit"
20792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20793 /* end confdefs.h. */
20795 /* Override any GCC internal prototype to avoid an error.
20796 Use char because int might match the return type of a GCC
20797 builtin and then its argument prototype would still apply. */
20801 char add_history ();
20805 return add_history ();
20810 if ac_fn_c_try_link "$LINENO"; then :
20811 ntp_lib_lineedit_history="yes"
20813 rm -f core conftest.err conftest.$ac_objext \
20814 conftest$ac_exeext conftest.$ac_ext
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
20818 $as_echo "$ntp_lib_lineedit_history" >&6; }
20820 case "$ntp_lib_lineedit_history" in
20823 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20826 esac # $ntp_lib_lineedit
20827 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
20828 { ORIG_LIBS=; unset ORIG_LIBS;}
20829 { TRY_LIB=; unset TRY_LIB;}
20830 { use_lineeditlibs=; unset use_lineeditlibs;}
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
20840 $as_echo_n "checking for library containing cos... " >&6; }
20841 if ${ac_cv_search_cos+:} false; then :
20842 $as_echo_n "(cached) " >&6
20844 ac_func_search_save_LIBS=$LIBS
20845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20846 /* end confdefs.h. */
20848 /* Override any GCC internal prototype to avoid an error.
20849 Use char because int might match the return type of a GCC
20850 builtin and then its argument prototype would still apply. */
20863 for ac_lib in '' m; do
20864 if test -z "$ac_lib"; then
20865 ac_res="none required"
20868 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20870 if ac_fn_c_try_link "$LINENO"; then :
20871 ac_cv_search_cos=$ac_res
20873 rm -f core conftest.err conftest.$ac_objext \
20875 if ${ac_cv_search_cos+:} false; then :
20879 if ${ac_cv_search_cos+:} false; then :
20882 ac_cv_search_cos=no
20884 rm conftest.$ac_ext
20885 LIBS=$ac_func_search_save_LIBS
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
20888 $as_echo "$ac_cv_search_cos" >&6; }
20889 ac_res=$ac_cv_search_cos
20890 if test "$ac_res" != no; then :
20891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20899 { _libs=; unset _libs;}
20902 for ac_header in vfork.h
20904 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20905 if test "x$ac_cv_header_vfork_h" = xyes; then :
20906 cat >>confdefs.h <<_ACEOF
20907 #define HAVE_VFORK_H 1
20914 for ac_func in fork vfork
20916 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20917 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20918 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20919 cat >>confdefs.h <<_ACEOF
20920 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20926 if test "x$ac_cv_func_fork" = xyes; then
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20928 $as_echo_n "checking for working fork... " >&6; }
20929 if ${ac_cv_func_fork_works+:} false; then :
20930 $as_echo_n "(cached) " >&6
20932 if test "$cross_compiling" = yes; then :
20933 ac_cv_func_fork_works=cross
20935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20936 /* end confdefs.h. */
20937 $ac_includes_default
20942 /* By Ruediger Kuhlmann. */
20943 return fork () < 0;
20949 if ac_fn_c_try_run "$LINENO"; then :
20950 ac_cv_func_fork_works=yes
20952 ac_cv_func_fork_works=no
20954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20955 conftest.$ac_objext conftest.beam conftest.$ac_ext
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20960 $as_echo "$ac_cv_func_fork_works" >&6; }
20963 ac_cv_func_fork_works=$ac_cv_func_fork
20965 if test "x$ac_cv_func_fork_works" = xcross; then
20967 *-*-amigaos* | *-*-msdosdjgpp*)
20968 # Override, as these systems have only a dummy fork() stub
20969 ac_cv_func_fork_works=no
20972 ac_cv_func_fork_works=yes
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20976 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20978 ac_cv_func_vfork_works=$ac_cv_func_vfork
20979 if test "x$ac_cv_func_vfork" = xyes; then
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20981 $as_echo_n "checking for working vfork... " >&6; }
20982 if ${ac_cv_func_vfork_works+:} false; then :
20983 $as_echo_n "(cached) " >&6
20985 if test "$cross_compiling" = yes; then :
20986 ac_cv_func_vfork_works=cross
20988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20989 /* end confdefs.h. */
20990 /* Thanks to Paul Eggert for this test. */
20991 $ac_includes_default
20992 #include <sys/wait.h>
20993 #ifdef HAVE_VFORK_H
20994 # include <vfork.h>
20996 /* On some sparc systems, changes by the child to local and incoming
20997 argument registers are propagated back to the parent. The compiler
20998 is told about this with #include <vfork.h>, but some compilers
20999 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21000 static variable whose address is put into a register that is
21001 clobbered by the vfork. */
21004 sparc_address_test (int arg)
21006 sparc_address_test (arg) int arg;
21009 static pid_t child;
21027 pid_t parent = getpid ();
21030 sparc_address_test (0);
21035 /* Here is another test for sparc vfork register problems. This
21036 test uses lots of local variables, at least as many local
21037 variables as main has allocated so far including compiler
21038 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21039 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21040 reuse the register of parent for one of the local variables,
21041 since it will think that parent can't possibly be used any more
21042 in this routine. Assigning to the local variable will thus
21043 munge parent in the parent process. */
21045 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21046 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21047 /* Convince the compiler that p..p7 are live; otherwise, it might
21048 use the same hardware register for all 8 local variables. */
21049 if (p != p1 || p != p2 || p != p3 || p != p4
21050 || p != p5 || p != p6 || p != p7)
21053 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21054 from child file descriptors. If the child closes a descriptor
21055 before it execs or exits, this munges the parent's descriptor
21056 as well. Test for this by closing stdout in the child. */
21057 _exit(close(fileno(stdout)) != 0);
21062 while (wait(&status) != child)
21065 /* Was there some problem with vforking? */
21068 /* Did the child fail? (This shouldn't happen.) */
21071 /* Did the vfork/compiler bug occur? */
21072 || parent != getpid()
21074 /* Did the file descriptor bug occur? */
21075 || fstat(fileno(stdout), &st) != 0
21080 if ac_fn_c_try_run "$LINENO"; then :
21081 ac_cv_func_vfork_works=yes
21083 ac_cv_func_vfork_works=no
21085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21086 conftest.$ac_objext conftest.beam conftest.$ac_ext
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21091 $as_echo "$ac_cv_func_vfork_works" >&6; }
21094 if test "x$ac_cv_func_fork_works" = xcross; then
21095 ac_cv_func_vfork_works=$ac_cv_func_vfork
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21097 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21100 if test "x$ac_cv_func_vfork_works" = xyes; then
21102 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21106 $as_echo "#define vfork fork" >>confdefs.h
21109 if test "x$ac_cv_func_fork_works" = xyes; then
21111 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21115 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21116 # for constant arguments. Useless!
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21118 $as_echo_n "checking for working alloca.h... " >&6; }
21119 if ${ac_cv_working_alloca_h+:} false; then :
21120 $as_echo_n "(cached) " >&6
21122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21123 /* end confdefs.h. */
21124 #include <alloca.h>
21128 char *p = (char *) alloca (2 * sizeof (int));
21134 if ac_fn_c_try_link "$LINENO"; then :
21135 ac_cv_working_alloca_h=yes
21137 ac_cv_working_alloca_h=no
21139 rm -f core conftest.err conftest.$ac_objext \
21140 conftest$ac_exeext conftest.$ac_ext
21142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21143 $as_echo "$ac_cv_working_alloca_h" >&6; }
21144 if test $ac_cv_working_alloca_h = yes; then
21146 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21151 $as_echo_n "checking for alloca... " >&6; }
21152 if ${ac_cv_func_alloca_works+:} false; then :
21153 $as_echo_n "(cached) " >&6
21155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21156 /* end confdefs.h. */
21158 # define alloca __builtin_alloca
21161 # include <malloc.h>
21162 # define alloca _alloca
21164 # ifdef HAVE_ALLOCA_H
21165 # include <alloca.h>
21170 # ifndef alloca /* predefined by HP cc +Olibcalls */
21171 void *alloca (size_t);
21181 char *p = (char *) alloca (1);
21187 if ac_fn_c_try_link "$LINENO"; then :
21188 ac_cv_func_alloca_works=yes
21190 ac_cv_func_alloca_works=no
21192 rm -f core conftest.err conftest.$ac_objext \
21193 conftest$ac_exeext conftest.$ac_ext
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21196 $as_echo "$ac_cv_func_alloca_works" >&6; }
21198 if test $ac_cv_func_alloca_works = yes; then
21200 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21203 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21204 # that cause trouble. Some versions do not even contain alloca or
21205 # contain a buggy version. If you still want to use their alloca,
21206 # use ar to extract alloca.o from them instead of compiling alloca.c.
21208 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21210 $as_echo "#define C_ALLOCA 1" >>confdefs.h
21213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21214 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21215 if ${ac_cv_os_cray+:} false; then :
21216 $as_echo_n "(cached) " >&6
21218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21219 /* end confdefs.h. */
21220 #if defined CRAY && ! defined CRAY2
21227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21228 $EGREP "webecray" >/dev/null 2>&1; then :
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21237 $as_echo "$ac_cv_os_cray" >&6; }
21238 if test $ac_cv_os_cray = yes; then
21239 for ac_func in _getb67 GETB67 getb67; do
21240 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21241 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21242 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21244 cat >>confdefs.h <<_ACEOF
21245 #define CRAY_STACKSEG_END $ac_func
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21255 $as_echo_n "checking stack direction for C alloca... " >&6; }
21256 if ${ac_cv_c_stack_direction+:} false; then :
21257 $as_echo_n "(cached) " >&6
21259 if test "$cross_compiling" = yes; then :
21260 ac_cv_c_stack_direction=0
21262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21263 /* end confdefs.h. */
21264 $ac_includes_default
21266 find_stack_direction ()
21268 static char *addr = 0;
21273 return find_stack_direction ();
21276 return (&dummy > addr) ? 1 : -1;
21282 return find_stack_direction () < 0;
21285 if ac_fn_c_try_run "$LINENO"; then :
21286 ac_cv_c_stack_direction=1
21288 ac_cv_c_stack_direction=-1
21290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21291 conftest.$ac_objext conftest.beam conftest.$ac_ext
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21296 $as_echo "$ac_cv_c_stack_direction" >&6; }
21297 cat >>confdefs.h <<_ACEOF
21298 #define STACK_DIRECTION $ac_cv_c_stack_direction
21304 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
21305 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
21311 cat >>confdefs.h <<_ACEOF
21312 #define HAVE_DECL_STRERROR_R $ac_have_decl
21315 for ac_func in strerror_r
21317 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21318 if test "x$ac_cv_func_strerror_r" = xyes; then :
21319 cat >>confdefs.h <<_ACEOF
21320 #define HAVE_STRERROR_R 1
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
21327 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
21328 if ${ac_cv_func_strerror_r_char_p+:} false; then :
21329 $as_echo_n "(cached) " >&6
21332 ac_cv_func_strerror_r_char_p=no
21333 if test $ac_cv_have_decl_strerror_r = yes; then
21334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21335 /* end confdefs.h. */
21336 $ac_includes_default
21342 char x = *strerror_r (0, buf, sizeof buf);
21343 char *p = strerror_r (0, buf, sizeof buf);
21350 if ac_fn_c_try_compile "$LINENO"; then :
21351 ac_cv_func_strerror_r_char_p=yes
21353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21355 # strerror_r is not declared. Choose between
21356 # systems that have relatively inaccessible declarations for the
21357 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
21358 # former has a strerror_r that returns char*, while the latter
21359 # has a strerror_r that returns `int'.
21360 # This test should segfault on the DEC system.
21361 if test "$cross_compiling" = yes; then :
21364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21365 /* end confdefs.h. */
21366 $ac_includes_default
21367 extern char *strerror_r ();
21372 char x = *strerror_r (0, buf, sizeof buf);
21373 return ! isalpha (x);
21378 if ac_fn_c_try_run "$LINENO"; then :
21379 ac_cv_func_strerror_r_char_p=yes
21381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21382 conftest.$ac_objext conftest.beam conftest.$ac_ext
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
21389 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21390 if test $ac_cv_func_strerror_r_char_p = yes; then
21392 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
21397 ac_busted_vpath_in_make=no
21399 *-*-irix6.1*) # 64 bit only
21402 *-*-irix6*) # 6.2 (and later?)
21403 ac_busted_vpath_in_make=yes
21406 ac_busted_vpath_in_make=yes
21409 ac_busted_vpath_in_make=yes
21413 case "$ac_busted_vpath_in_make$srcdir" in
21416 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
21418 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
21426 # Was *-*-aix[[4-9]]*
21427 # XXX only verified thru AIX6. But...
21428 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
21429 # that this support would be in 5.3, removed in 6, and added back.
21431 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
21432 # (returning ENOSYS). I didn't check 4.2. If, in the future,
21433 # IBM pulls its thumbs out long enough to implement clock_settime,
21434 # this conditional will need to change. Maybe use AC_TRY_RUN
21435 # instead to try to set the time to itself and check errno.
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21439 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21440 if ${ac_cv_search_clock_gettime+:} false; then :
21441 $as_echo_n "(cached) " >&6
21443 ac_func_search_save_LIBS=$LIBS
21444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21445 /* end confdefs.h. */
21447 /* Override any GCC internal prototype to avoid an error.
21448 Use char because int might match the return type of a GCC
21449 builtin and then its argument prototype would still apply. */
21453 char clock_gettime ();
21457 return clock_gettime ();
21462 for ac_lib in '' rt; do
21463 if test -z "$ac_lib"; then
21464 ac_res="none required"
21467 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21469 if ac_fn_c_try_link "$LINENO"; then :
21470 ac_cv_search_clock_gettime=$ac_res
21472 rm -f core conftest.err conftest.$ac_objext \
21474 if ${ac_cv_search_clock_gettime+:} false; then :
21478 if ${ac_cv_search_clock_gettime+:} false; then :
21481 ac_cv_search_clock_gettime=no
21483 rm conftest.$ac_ext
21484 LIBS=$ac_func_search_save_LIBS
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21487 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21488 ac_res=$ac_cv_search_clock_gettime
21489 if test "$ac_res" != no; then :
21490 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21491 case "$ac_cv_search_clock_gettime" in
21492 'none required') ;;
21494 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
21499 for ac_func in clock_getres clock_gettime clock_settime
21501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21502 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21503 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21504 cat >>confdefs.h <<_ACEOF
21505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21514 for ac_func in getclock stime timegm strlcpy strlcat
21516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21517 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21518 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21519 cat >>confdefs.h <<_ACEOF
21520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
21531 $as_echo_n "checking for library containing snprintb... " >&6; }
21532 if ${ac_cv_search_snprintb+:} false; then :
21533 $as_echo_n "(cached) " >&6
21535 ac_func_search_save_LIBS=$LIBS
21536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21537 /* end confdefs.h. */
21539 /* Override any GCC internal prototype to avoid an error.
21540 Use char because int might match the return type of a GCC
21541 builtin and then its argument prototype would still apply. */
21549 return snprintb ();
21554 for ac_lib in '' util; do
21555 if test -z "$ac_lib"; then
21556 ac_res="none required"
21559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21561 if ac_fn_c_try_link "$LINENO"; then :
21562 ac_cv_search_snprintb=$ac_res
21564 rm -f core conftest.err conftest.$ac_objext \
21566 if ${ac_cv_search_snprintb+:} false; then :
21570 if ${ac_cv_search_snprintb+:} false; then :
21573 ac_cv_search_snprintb=no
21575 rm conftest.$ac_ext
21576 LIBS=$ac_func_search_save_LIBS
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
21579 $as_echo "$ac_cv_search_snprintb" >&6; }
21580 ac_res=$ac_cv_search_snprintb
21581 if test "$ac_res" != no; then :
21582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21583 case "$ac_cv_search_snprintb" in
21584 'none required') ;;
21586 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
21589 $as_echo "#define USE_SNPRINTB 1" >>confdefs.h
21595 for ac_header in errno.h sys/socket.h sys/types.h time.h
21597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21598 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21599 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21600 cat >>confdefs.h <<_ACEOF
21601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21608 for ac_header in net/if.h
21610 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
21611 #ifdef HAVE_SYS_SOCKET_H
21612 # include <sys/socket.h>
21616 if test "x$ac_cv_header_net_if_h" = xyes; then :
21617 cat >>confdefs.h <<_ACEOF
21618 #define HAVE_NET_IF_H 1
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
21628 $as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
21629 if ${ntp_cv_predecl_mpinfou+:} false; then :
21630 $as_echo_n "(cached) " >&6
21633 np_cv_predecl_mpinfou=no
21634 case "$ac_cv_header_net_if_h" in
21636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21637 /* end confdefs.h. */
21639 typedef union mpinfou {
21640 struct pdk_mpinfo *pdkptr;
21641 struct mpinfo *pikptr;
21643 #ifdef HAVE_SYS_SOCKET_H
21644 # include <sys/socket.h>
21646 #include <net/if.h>
21658 if ac_fn_c_try_compile "$LINENO"; then :
21660 ntp_cv_predecl_mpinfou=yes
21661 ac_cv_header_net_if_h=yes
21665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
21671 $as_echo "$ntp_cv_predecl_mpinfou" >&6; }
21672 case "$ntp_cv_predecl_mpinfou" in
21674 cat >>confdefs.h <<_ACEOF
21675 #ifndef MPINFOU_PREDECLARED
21676 # define MPINFOU_PREDECLARED
21677 typedef union mpinfou {
21678 struct pdk_mpinfo *pdkptr;
21679 struct mpinfo *pikptr;
21689 for ac_header in linux/if_addr.h
21691 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
21692 #ifdef HAVE_SYS_SOCKET_H
21693 # include <sys/socket.h>
21697 if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
21698 cat >>confdefs.h <<_ACEOF
21699 #define HAVE_LINUX_IF_ADDR_H 1
21708 for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
21710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21711 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21712 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21713 cat >>confdefs.h <<_ACEOF
21714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21721 # sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
21722 for ac_header in sys/sysctl.h
21724 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
21725 #if defined HAVE_SYS_PARAM_H
21726 # include <sys/param.h>
21730 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
21731 cat >>confdefs.h <<_ACEOF
21732 #define HAVE_SYS_SYSCTL_H 1
21739 for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
21741 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21742 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21743 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21744 cat >>confdefs.h <<_ACEOF
21745 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21753 for ac_header in resolv.h
21755 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
21756 #ifdef HAVE_SYS_TYPES_H
21757 # include <sys/types.h>
21759 #ifdef HAVE_NETINET_IN_H
21760 # include <netinet/in.h>
21762 #ifdef HAVE_ARPA_NAMESER_H
21763 # include <arpa/nameser.h>
21767 if test "x$ac_cv_header_resolv_h" = xyes; then :
21768 cat >>confdefs.h <<_ACEOF
21769 #define HAVE_RESOLV_H 1
21777 for ac_header in net/if_var.h
21779 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
21780 #if HAVE_SYS_TYPES_H
21781 # include <sys/types.h>
21783 #ifdef HAVE_SYS_SOCKET_H
21784 # include <sys/socket.h>
21786 #ifdef HAVE_NETINET_IN_H
21787 # include <netinet/in.h>
21789 #ifdef HAVE_NET_IF_H
21790 # include <net/if.h>
21794 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
21795 cat >>confdefs.h <<_ACEOF
21796 #define HAVE_NET_IF_VAR_H 1
21804 for ac_header in netinet/ip.h netinet/in_var.h
21806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21807 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21808 #ifdef HAVE_SYS_TYPES_H
21809 # include <sys/types.h>
21811 #ifdef HAVE_SYS_SOCKET_H
21812 # include <sys/socket.h>
21814 #ifdef HAVE_NET_IF_H
21815 # include <net/if.h>
21817 #ifdef HAVE_NETINET_IN_H
21818 # include <netinet/in.h>
21820 #ifdef HAVE_NET_IF_VAR_H
21821 # include <net/if_var.h>
21823 #ifdef HAVE_NETINET_IN_SYSTM_H
21824 # include <netinet/in_systm.h>
21828 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21829 cat >>confdefs.h <<_ACEOF
21830 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21838 # HMS: Do we need to check for -lsocket before or after these tests?
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
21840 $as_echo_n "checking for library containing inet_pton... " >&6; }
21841 if ${ac_cv_search_inet_pton+:} false; then :
21842 $as_echo_n "(cached) " >&6
21844 ac_func_search_save_LIBS=$LIBS
21845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21846 /* end confdefs.h. */
21848 /* Override any GCC internal prototype to avoid an error.
21849 Use char because int might match the return type of a GCC
21850 builtin and then its argument prototype would still apply. */
21858 return inet_pton ();
21863 for ac_lib in '' nsl; do
21864 if test -z "$ac_lib"; then
21865 ac_res="none required"
21868 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21870 if ac_fn_c_try_link "$LINENO"; then :
21871 ac_cv_search_inet_pton=$ac_res
21873 rm -f core conftest.err conftest.$ac_objext \
21875 if ${ac_cv_search_inet_pton+:} false; then :
21879 if ${ac_cv_search_inet_pton+:} false; then :
21882 ac_cv_search_inet_pton=no
21884 rm conftest.$ac_ext
21885 LIBS=$ac_func_search_save_LIBS
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
21888 $as_echo "$ac_cv_search_inet_pton" >&6; }
21889 ac_res=$ac_cv_search_inet_pton
21890 if test "$ac_res" != no; then :
21891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21892 case "$ac_cv_search_inet_pton" in
21893 'none required') ;;
21895 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
21901 $as_echo_n "checking for library containing inet_ntop... " >&6; }
21902 if ${ac_cv_search_inet_ntop+:} false; then :
21903 $as_echo_n "(cached) " >&6
21905 ac_func_search_save_LIBS=$LIBS
21906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21907 /* end confdefs.h. */
21909 /* Override any GCC internal prototype to avoid an error.
21910 Use char because int might match the return type of a GCC
21911 builtin and then its argument prototype would still apply. */
21919 return inet_ntop ();
21924 for ac_lib in '' resolv; do
21925 if test -z "$ac_lib"; then
21926 ac_res="none required"
21929 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
21931 if ac_fn_c_try_link "$LINENO"; then :
21932 ac_cv_search_inet_ntop=$ac_res
21934 rm -f core conftest.err conftest.$ac_objext \
21936 if ${ac_cv_search_inet_ntop+:} false; then :
21940 if ${ac_cv_search_inet_ntop+:} false; then :
21943 ac_cv_search_inet_ntop=no
21945 rm conftest.$ac_ext
21946 LIBS=$ac_func_search_save_LIBS
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
21949 $as_echo "$ac_cv_search_inet_ntop" >&6; }
21950 ac_res=$ac_cv_search_inet_ntop
21951 if test "$ac_res" != no; then :
21952 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21953 case "$ac_cv_search_inet_ntop" in
21954 'none required') ;;
21956 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
21962 # [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to
21963 # avoid keying on the OS name: If we find socket functions in
21964 # libsocket, next try for them in libxnet without libsocket, if found,
21965 # list both. If we simply tested libxnet first, we would find the
21966 # functions there and never add libsocket. See also [Bug 660]
21967 # http://bugs.ntp.org/show_bug.cgi?id=660#c9
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
21970 $as_echo_n "checking for library containing setsockopt... " >&6; }
21971 if ${ac_cv_search_setsockopt+:} false; then :
21972 $as_echo_n "(cached) " >&6
21974 ac_func_search_save_LIBS=$LIBS
21975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21976 /* end confdefs.h. */
21978 /* Override any GCC internal prototype to avoid an error.
21979 Use char because int might match the return type of a GCC
21980 builtin and then its argument prototype would still apply. */
21984 char setsockopt ();
21988 return setsockopt ();
21993 for ac_lib in '' socket; do
21994 if test -z "$ac_lib"; then
21995 ac_res="none required"
21998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22000 if ac_fn_c_try_link "$LINENO"; then :
22001 ac_cv_search_setsockopt=$ac_res
22003 rm -f core conftest.err conftest.$ac_objext \
22005 if ${ac_cv_search_setsockopt+:} false; then :
22009 if ${ac_cv_search_setsockopt+:} false; then :
22012 ac_cv_search_setsockopt=no
22014 rm conftest.$ac_ext
22015 LIBS=$ac_func_search_save_LIBS
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
22018 $as_echo "$ac_cv_search_setsockopt" >&6; }
22019 ac_res=$ac_cv_search_setsockopt
22020 if test "$ac_res" != no; then :
22021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22022 case "$ac_cv_search_setsockopt" in
22023 'none required') ;;
22025 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
22030 case "$ac_cv_search_setsockopt" in
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
22034 $as_echo_n "checking for library containing getsockopt... " >&6; }
22035 if ${ac_cv_search_getsockopt+:} false; then :
22036 $as_echo_n "(cached) " >&6
22038 ac_func_search_save_LIBS=$LIBS
22039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22040 /* end confdefs.h. */
22042 /* Override any GCC internal prototype to avoid an error.
22043 Use char because int might match the return type of a GCC
22044 builtin and then its argument prototype would still apply. */
22048 char getsockopt ();
22052 return getsockopt ();
22057 for ac_lib in '' xnet; do
22058 if test -z "$ac_lib"; then
22059 ac_res="none required"
22062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22064 if ac_fn_c_try_link "$LINENO"; then :
22065 ac_cv_search_getsockopt=$ac_res
22067 rm -f core conftest.err conftest.$ac_objext \
22069 if ${ac_cv_search_getsockopt+:} false; then :
22073 if ${ac_cv_search_getsockopt+:} false; then :
22076 ac_cv_search_getsockopt=no
22078 rm conftest.$ac_ext
22079 LIBS=$ac_func_search_save_LIBS
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
22082 $as_echo "$ac_cv_search_getsockopt" >&6; }
22083 ac_res=$ac_cv_search_getsockopt
22084 if test "$ac_res" != no; then :
22085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22086 case "$ac_cv_search_getsockopt" in
22087 'none required') ;;
22089 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
22094 # XXX Possible trouble here - reading the comments above and looking at the
22095 # code below I wonder if we'll add -lxnet when we don't need it.
22096 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
22097 # there when it is not needed?
22098 case "$ac_cv_search_getsockopt" in
22100 LIBS="-lxnet -lsocket $saved_LIBS"
22102 *) LIBS="-lsocket $saved_LIBS"
22107 { saved_LIBS=; unset saved_LIBS;}
22109 # Bug 2427 - look for recvmsg here.
22110 for ac_func in recvmsg
22112 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
22113 if test "x$ac_cv_func_recvmsg" = xyes; then :
22114 cat >>confdefs.h <<_ACEOF
22115 #define HAVE_RECVMSG 1
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22123 $as_echo_n "checking for inline... " >&6; }
22124 if ${ac_cv_c_inline+:} false; then :
22125 $as_echo_n "(cached) " >&6
22128 for ac_kw in inline __inline__ __inline; do
22129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22130 /* end confdefs.h. */
22131 #ifndef __cplusplus
22133 static $ac_kw foo_t static_foo () {return 0; }
22134 $ac_kw foo_t foo () {return 0; }
22138 if ac_fn_c_try_compile "$LINENO"; then :
22139 ac_cv_c_inline=$ac_kw
22141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22142 test "$ac_cv_c_inline" != no && break
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22147 $as_echo "$ac_cv_c_inline" >&6; }
22149 case $ac_cv_c_inline in
22152 case $ac_cv_c_inline in
22154 *) ac_val=$ac_cv_c_inline;;
22156 cat >>confdefs.h <<_ACEOF
22157 #ifndef __cplusplus
22158 #define inline $ac_val
22165 case "$ac_cv_c_inline" in
22170 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22176 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22177 if ${ac_cv_header_time+:} false; then :
22178 $as_echo_n "(cached) " >&6
22180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22181 /* end confdefs.h. */
22182 #include <sys/types.h>
22183 #include <sys/time.h>
22189 if ((struct tm *) 0)
22195 if ac_fn_c_try_compile "$LINENO"; then :
22196 ac_cv_header_time=yes
22198 ac_cv_header_time=no
22200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22203 $as_echo "$ac_cv_header_time" >&6; }
22204 if test $ac_cv_header_time = yes; then
22206 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22210 # The cast to long int works around a bug in the HP C Compiler
22211 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22212 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22213 # This bug is HP SR number 8606223364.
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
22215 $as_echo_n "checking size of time_t... " >&6; }
22216 if ${ac_cv_sizeof_time_t+:} false; then :
22217 $as_echo_n "(cached) " >&6
22219 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
22222 if test "$ac_cv_type_time_t" = yes; then
22223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22225 as_fn_error 77 "cannot compute sizeof (time_t)
22226 See \`config.log' for more details" "$LINENO" 5; }
22228 ac_cv_sizeof_time_t=0
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
22234 $as_echo "$ac_cv_sizeof_time_t" >&6; }
22238 cat >>confdefs.h <<_ACEOF
22239 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22244 $as_echo_n "checking whether char is unsigned... " >&6; }
22245 if ${ac_cv_c_char_unsigned+:} false; then :
22246 $as_echo_n "(cached) " >&6
22248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22249 /* end confdefs.h. */
22250 $ac_includes_default
22254 static int test_array [1 - 2 * !(((char) -1) < 0)];
22261 if ac_fn_c_try_compile "$LINENO"; then :
22262 ac_cv_c_char_unsigned=no
22264 ac_cv_c_char_unsigned=yes
22266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22269 $as_echo "$ac_cv_c_char_unsigned" >&6; }
22270 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22271 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22274 # The cast to long int works around a bug in the HP C Compiler
22275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22277 # This bug is HP SR number 8606223364.
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
22279 $as_echo_n "checking size of signed char... " >&6; }
22280 if ${ac_cv_sizeof_signed_char+:} false; then :
22281 $as_echo_n "(cached) " >&6
22283 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
22286 if test "$ac_cv_type_signed_char" = yes; then
22287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22289 as_fn_error 77 "cannot compute sizeof (signed char)
22290 See \`config.log' for more details" "$LINENO" 5; }
22292 ac_cv_sizeof_signed_char=0
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
22298 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
22302 cat >>confdefs.h <<_ACEOF
22303 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
22307 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
22308 if test "x$ac_cv_type_s_char" = xyes; then :
22310 cat >>confdefs.h <<_ACEOF
22311 #define HAVE_S_CHAR 1
22316 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22317 if test "x$ac_cv_type_long_long" = xyes; then :
22319 cat >>confdefs.h <<_ACEOF
22320 #define HAVE_LONG_LONG 1
22326 # The cast to long int works around a bug in the HP C Compiler
22327 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22328 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22329 # This bug is HP SR number 8606223364.
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
22331 $as_echo_n "checking size of short... " >&6; }
22332 if ${ac_cv_sizeof_short+:} false; then :
22333 $as_echo_n "(cached) " >&6
22335 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
22338 if test "$ac_cv_type_short" = yes; then
22339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22341 as_fn_error 77 "cannot compute sizeof (short)
22342 See \`config.log' for more details" "$LINENO" 5; }
22344 ac_cv_sizeof_short=0
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
22350 $as_echo "$ac_cv_sizeof_short" >&6; }
22354 cat >>confdefs.h <<_ACEOF
22355 #define SIZEOF_SHORT $ac_cv_sizeof_short
22359 # The cast to long int works around a bug in the HP C Compiler
22360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22362 # This bug is HP SR number 8606223364.
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
22364 $as_echo_n "checking size of int... " >&6; }
22365 if ${ac_cv_sizeof_int+:} false; then :
22366 $as_echo_n "(cached) " >&6
22368 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
22371 if test "$ac_cv_type_int" = yes; then
22372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22374 as_fn_error 77 "cannot compute sizeof (int)
22375 See \`config.log' for more details" "$LINENO" 5; }
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
22383 $as_echo "$ac_cv_sizeof_int" >&6; }
22387 cat >>confdefs.h <<_ACEOF
22388 #define SIZEOF_INT $ac_cv_sizeof_int
22392 # The cast to long int works around a bug in the HP C Compiler
22393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22395 # This bug is HP SR number 8606223364.
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
22397 $as_echo_n "checking size of long... " >&6; }
22398 if ${ac_cv_sizeof_long+:} false; then :
22399 $as_echo_n "(cached) " >&6
22401 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
22404 if test "$ac_cv_type_long" = yes; then
22405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22407 as_fn_error 77 "cannot compute sizeof (long)
22408 See \`config.log' for more details" "$LINENO" 5; }
22410 ac_cv_sizeof_long=0
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
22416 $as_echo "$ac_cv_sizeof_long" >&6; }
22420 cat >>confdefs.h <<_ACEOF
22421 #define SIZEOF_LONG $ac_cv_sizeof_long
22426 case "$ac_cv_type_long_long" in
22430 # The cast to long int works around a bug in the HP C Compiler
22431 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22432 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22433 # This bug is HP SR number 8606223364.
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
22435 $as_echo_n "checking size of long long... " >&6; }
22436 if ${ac_cv_sizeof_long_long+:} false; then :
22437 $as_echo_n "(cached) " >&6
22439 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
22442 if test "$ac_cv_type_long_long" = yes; then
22443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22445 as_fn_error 77 "cannot compute sizeof (long long)
22446 See \`config.log' for more details" "$LINENO" 5; }
22448 ac_cv_sizeof_long_long=0
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
22454 $as_echo "$ac_cv_sizeof_long_long" >&6; }
22458 cat >>confdefs.h <<_ACEOF
22459 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22466 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
22468 # We have a typedef for s_char. Might as well believe it...
22471 # We have signed chars, can't say 'signed char', no s_char typedef.
22473 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22477 # We have signed chars, can say 'signed char', no s_char typedef.
22479 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22483 # We have unsigned chars, can't say 'signed char', no s_char typedef.
22484 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
22487 # We have unsigned chars, can say 'signed char', no s_char typedef.
22489 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22495 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22496 if ${ac_cv_type_uid_t+:} false; then :
22497 $as_echo_n "(cached) " >&6
22499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22500 /* end confdefs.h. */
22501 #include <sys/types.h>
22504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22505 $EGREP "uid_t" >/dev/null 2>&1; then :
22506 ac_cv_type_uid_t=yes
22508 ac_cv_type_uid_t=no
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22514 $as_echo "$ac_cv_type_uid_t" >&6; }
22515 if test $ac_cv_type_uid_t = no; then
22517 $as_echo "#define uid_t int" >>confdefs.h
22520 $as_echo "#define gid_t int" >>confdefs.h
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
22530 $as_echo_n "checking if we're including debugging code... " >&6; }
22531 # Check whether --enable-debugging was given.
22532 if test "${enable_debugging+set}" = set; then :
22533 enableval=$enable_debugging; ntp_ok=$enableval
22542 $as_echo "#define DEBUG 1" >>confdefs.h
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22546 $as_echo "$ntp_ok" >&6; }
22550 # check if we can compile with pthreads
22551 for ac_header in semaphore.h
22553 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
22554 if test "x$ac_cv_header_semaphore_h" = xyes; then :
22555 cat >>confdefs.h <<_ACEOF
22556 #define HAVE_SEMAPHORE_H 1
22563 for ac_func in socketpair
22565 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
22566 if test "x$ac_cv_func_socketpair" = xyes; then :
22567 cat >>confdefs.h <<_ACEOF
22568 #define HAVE_SOCKETPAIR 1
22574 # Check whether --enable-thread-support was given.
22575 if test "${enable_thread_support+set}" = set; then :
22576 enableval=$enable_thread_support;
22578 enable_thread_support=yes
22583 case "$enable_thread_support" in
22585 ol_found_pthreads=no
22590 ac_cpp='$CPP $CPPFLAGS'
22591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22595 # OpenLDAP --with-threads
22597 # Check whether --with-threads was given.
22598 if test "${with_threads+set}" = set; then :
22599 withval=$with_threads;
22601 for ol_val in auto nt posix mach pth lwp yes no manual ; do
22602 if test "$withval" = "$ol_val" ; then
22606 if test "$ol_arg" = "invalid" ; then
22607 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
22609 ol_with_threads="$ol_arg"
22612 ol_with_threads="auto"
22614 # end --with-threads
22617 case "$ol_with_threads$host" in
22618 auto*-*-solaris2.[0-6])
22626 *-*-aix*) if test -z "$CC" ; then
22627 case "$ol_with_threads" in
22628 auto | yes | posix) ol_aix_threads=yes ;;
22634 if test $ol_aix_threads = yes ; then
22635 if test -z "${CC}" ; then
22636 for ac_prog in cc_r xlc_r cc
22638 # Extract the first word of "$ac_prog", so it can be a program name with args.
22639 set dummy $ac_prog; ac_word=$2
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22641 $as_echo_n "checking for $ac_word... " >&6; }
22642 if ${ac_cv_prog_CC+:} false; then :
22643 $as_echo_n "(cached) " >&6
22645 if test -n "$CC"; then
22646 ac_cv_prog_CC="$CC" # Let the user override the test.
22648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22649 for as_dir in $PATH
22652 test -z "$as_dir" && as_dir=.
22653 for ac_exec_ext in '' $ac_executable_extensions; do
22654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22655 ac_cv_prog_CC="$ac_prog"
22656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22666 if test -n "$CC"; then
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
22668 $as_echo "$CC" >&6; }
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22671 $as_echo "no" >&6; }
22675 test -n "$CC" && break
22679 if test "$CC" = cc ; then
22680 if test $ol_with_threads != auto ; then
22681 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
22684 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
22690 case ${CC} in cc_r | xlc_r)
22691 ol_with_threads=posix
22692 ol_cv_pthread_create=yes
22698 # OpenLDAP --with-yielding_select
22700 # Check whether --with-yielding_select was given.
22701 if test "${with_yielding_select+set}" = set; then :
22702 withval=$with_yielding_select;
22704 for ol_val in auto yes no manual ; do
22705 if test "$withval" = "$ol_val" ; then
22709 if test "$ol_arg" = "invalid" ; then
22710 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
22712 ol_with_yielding_select="$ol_arg"
22715 ol_with_yielding_select="auto"
22717 # end --with-yielding_select
22720 case $ol_with_threads in auto | yes | nt)
22723 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
22724 if test "x$ac_cv_func__beginthread" = xyes; then :
22729 if test $ac_cv_func__beginthread = yes ; then
22731 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
22733 ol_cv_nt_threads=yes
22737 if test "$ol_cv_nt_threads" = yes ; then
22739 ol_with_threads=found
22740 ol_with_yielding_select=yes
22743 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
22746 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
22750 if test $ol_with_threads = nt ; then
22751 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
22756 case $ol_with_threads in auto | yes | posix)
22758 for ac_header in pthread.h
22760 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
22761 if test "x$ac_cv_header_pthread_h" = xyes; then :
22762 cat >>confdefs.h <<_ACEOF
22763 #define HAVE_PTHREAD_H 1
22771 if test $ac_cv_header_pthread_h = yes ; then
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
22773 $as_echo_n "checking POSIX thread version... " >&6; }
22774 if ${ol_cv_pthread_version+:} false; then :
22775 $as_echo_n "(cached) " >&6
22778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22779 /* end confdefs.h. */
22781 # include <pthread.h>
22787 int i = PTHREAD_CREATE_JOINABLE;
22793 if ac_fn_c_try_compile "$LINENO"; then :
22795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22796 /* end confdefs.h. */
22797 #include <pthread.h>
22800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22801 $EGREP "pthread_detach" >/dev/null 2>&1; then :
22802 ol_cv_pthread_version=10
22804 ol_cv_pthread_version=8
22810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22811 /* end confdefs.h. */
22813 # include <pthread.h>
22814 # ifdef PTHREAD_CREATE_UNDETACHED
22819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22820 $EGREP "draft7" >/dev/null 2>&1; then :
22821 ol_cv_pthread_version=7
22824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22825 /* end confdefs.h. */
22826 #include <pthread.h>
22829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22830 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
22831 ol_cv_pthread_version=6
22834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22835 /* end confdefs.h. */
22837 # include <pthread.h>
22838 #ifdef PTHREAD_MUTEX_INITIALIZER
22843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22844 $EGREP "draft5" >/dev/null 2>&1; then :
22845 ol_cv_pthread_version=5
22847 ol_cv_pthread_version=4
22858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
22862 $as_echo "$ol_cv_pthread_version" >&6; }
22865 if test $ol_cv_pthread_version != 0 ; then
22867 cat >>confdefs.h <<_ACEOF
22868 #define HAVE_PTHREADS $ol_cv_pthread_version
22872 as_fn_error $? "unknown pthread version" "$LINENO" 5
22875 # consider threads found
22876 ol_with_threads=found
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
22880 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
22881 if ${ol_cv_header_linux_threads+:} false; then :
22882 $as_echo_n "(cached) " >&6
22884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22885 /* end confdefs.h. */
22886 #include <pthread.h>
22888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22889 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
22890 ol_cv_header_linux_threads=yes
22892 ol_cv_header_linux_threads=no
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
22899 $as_echo "$ol_cv_header_linux_threads" >&6; }
22900 if test $ol_cv_header_linux_threads = yes; then
22902 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
22908 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
22909 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
22910 $as_echo_n "(cached) " >&6
22912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22913 /* end confdefs.h. */
22914 #include <pthread.h>
22915 #ifdef _POSIX_THREAD_IS_GNU_PTH
22920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22921 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
22922 ol_cv_header_gnu_pth_pthread_h=yes
22924 ol_cv_header_gnu_pth_pthread_h=no
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
22931 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
22934 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
22935 for ac_header in sched.h
22937 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
22938 if test "x$ac_cv_header_sched_h" = xyes; then :
22939 cat >>confdefs.h <<_ACEOF
22940 #define HAVE_SCHED_H 1
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
22951 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
22952 if ${ol_cv_pthread_create+:} false; then :
22953 $as_echo_n "(cached) " >&6
22956 if test "$cross_compiling" = yes; then :
22957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22958 /* end confdefs.h. */
22960 /* pthread test headers */
22961 #include <pthread.h>
22962 #if HAVE_PTHREADS < 7
22966 #define NULL (void*)0
22969 static void *task(p)
22972 return (void *) (p == NULL);
22979 /* pthread test function */
22980 #ifndef PTHREAD_CREATE_DETACHED
22981 #define PTHREAD_CREATE_DETACHED 1
22985 int detach = PTHREAD_CREATE_DETACHED;
22987 #if HAVE_PTHREADS > 4
22988 /* Final pthreads */
22989 pthread_attr_t attr;
22991 status = pthread_attr_init(&attr);
22992 if( status ) return status;
22994 #if HAVE_PTHREADS < 7
22995 status = pthread_attr_setdetachstate(&attr, &detach);
22996 if( status < 0 ) status = errno;
22998 status = pthread_attr_setdetachstate(&attr, detach);
23000 if( status ) return status;
23001 status = pthread_create( &t, &attr, task, NULL );
23002 #if HAVE_PTHREADS < 7
23003 if( status < 0 ) status = errno;
23005 if( status ) return status;
23007 /* Draft 4 pthreads */
23008 status = pthread_create( &t, pthread_attr_default, task, NULL );
23009 if( status ) return errno;
23011 /* give thread a chance to complete */
23012 /* it should remain joinable and hence detachable */
23015 status = pthread_detach( &t );
23016 if( status ) return errno;
23019 #ifdef HAVE_LINUX_THREADS
23020 pthread_kill_other_threads_np();
23029 if ac_fn_c_try_link "$LINENO"; then :
23030 ol_cv_pthread_create=yes
23032 ol_cv_pthread_create=no
23034 rm -f core conftest.err conftest.$ac_objext \
23035 conftest$ac_exeext conftest.$ac_ext
23037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23038 /* end confdefs.h. */
23041 /* pthread test headers */
23042 #include <pthread.h>
23043 #if HAVE_PTHREADS < 7
23047 #define NULL (void*)0
23050 static void *task(p)
23053 return (void *) (p == NULL);
23057 int main(argc, argv)
23062 /* pthread test function */
23063 #ifndef PTHREAD_CREATE_DETACHED
23064 #define PTHREAD_CREATE_DETACHED 1
23068 int detach = PTHREAD_CREATE_DETACHED;
23070 #if HAVE_PTHREADS > 4
23071 /* Final pthreads */
23072 pthread_attr_t attr;
23074 status = pthread_attr_init(&attr);
23075 if( status ) return status;
23077 #if HAVE_PTHREADS < 7
23078 status = pthread_attr_setdetachstate(&attr, &detach);
23079 if( status < 0 ) status = errno;
23081 status = pthread_attr_setdetachstate(&attr, detach);
23083 if( status ) return status;
23084 status = pthread_create( &t, &attr, task, NULL );
23085 #if HAVE_PTHREADS < 7
23086 if( status < 0 ) status = errno;
23088 if( status ) return status;
23090 /* Draft 4 pthreads */
23091 status = pthread_create( &t, pthread_attr_default, task, NULL );
23092 if( status ) return errno;
23094 /* give thread a chance to complete */
23095 /* it should remain joinable and hence detachable */
23098 status = pthread_detach( &t );
23099 if( status ) return errno;
23102 #ifdef HAVE_LINUX_THREADS
23103 pthread_kill_other_threads_np();
23111 if ac_fn_c_try_run "$LINENO"; then :
23112 ol_cv_pthread_create=yes
23114 ol_cv_pthread_create=no
23116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23117 conftest.$ac_objext conftest.beam conftest.$ac_ext
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
23122 $as_echo "$ol_cv_pthread_create" >&6; }
23124 if test $ol_cv_pthread_create != no ; then
23125 ol_link_threads=posix
23126 ol_link_pthreads=""
23129 # Pthread try link: -kthread (ol_cv_pthread_kthread)
23130 if test "$ol_link_threads" = no ; then
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
23133 $as_echo_n "checking for pthread link with -kthread... " >&6; }
23134 if ${ol_cv_pthread_kthread+:} false; then :
23135 $as_echo_n "(cached) " >&6
23140 LIBS="-kthread $LIBS"
23142 if test "$cross_compiling" = yes; then :
23143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23144 /* end confdefs.h. */
23146 /* pthread test headers */
23147 #include <pthread.h>
23148 #if HAVE_PTHREADS < 7
23152 #define NULL (void*)0
23155 static void *task(p)
23158 return (void *) (p == NULL);
23165 /* pthread test function */
23166 #ifndef PTHREAD_CREATE_DETACHED
23167 #define PTHREAD_CREATE_DETACHED 1
23171 int detach = PTHREAD_CREATE_DETACHED;
23173 #if HAVE_PTHREADS > 4
23174 /* Final pthreads */
23175 pthread_attr_t attr;
23177 status = pthread_attr_init(&attr);
23178 if( status ) return status;
23180 #if HAVE_PTHREADS < 7
23181 status = pthread_attr_setdetachstate(&attr, &detach);
23182 if( status < 0 ) status = errno;
23184 status = pthread_attr_setdetachstate(&attr, detach);
23186 if( status ) return status;
23187 status = pthread_create( &t, &attr, task, NULL );
23188 #if HAVE_PTHREADS < 7
23189 if( status < 0 ) status = errno;
23191 if( status ) return status;
23193 /* Draft 4 pthreads */
23194 status = pthread_create( &t, pthread_attr_default, task, NULL );
23195 if( status ) return errno;
23197 /* give thread a chance to complete */
23198 /* it should remain joinable and hence detachable */
23201 status = pthread_detach( &t );
23202 if( status ) return errno;
23205 #ifdef HAVE_LINUX_THREADS
23206 pthread_kill_other_threads_np();
23215 if ac_fn_c_try_link "$LINENO"; then :
23216 ol_cv_pthread_kthread=yes
23218 ol_cv_pthread_kthread=no
23220 rm -f core conftest.err conftest.$ac_objext \
23221 conftest$ac_exeext conftest.$ac_ext
23223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23224 /* end confdefs.h. */
23227 /* pthread test headers */
23228 #include <pthread.h>
23229 #if HAVE_PTHREADS < 7
23233 #define NULL (void*)0
23236 static void *task(p)
23239 return (void *) (p == NULL);
23243 int main(argc, argv)
23248 /* pthread test function */
23249 #ifndef PTHREAD_CREATE_DETACHED
23250 #define PTHREAD_CREATE_DETACHED 1
23254 int detach = PTHREAD_CREATE_DETACHED;
23256 #if HAVE_PTHREADS > 4
23257 /* Final pthreads */
23258 pthread_attr_t attr;
23260 status = pthread_attr_init(&attr);
23261 if( status ) return status;
23263 #if HAVE_PTHREADS < 7
23264 status = pthread_attr_setdetachstate(&attr, &detach);
23265 if( status < 0 ) status = errno;
23267 status = pthread_attr_setdetachstate(&attr, detach);
23269 if( status ) return status;
23270 status = pthread_create( &t, &attr, task, NULL );
23271 #if HAVE_PTHREADS < 7
23272 if( status < 0 ) status = errno;
23274 if( status ) return status;
23276 /* Draft 4 pthreads */
23277 status = pthread_create( &t, pthread_attr_default, task, NULL );
23278 if( status ) return errno;
23280 /* give thread a chance to complete */
23281 /* it should remain joinable and hence detachable */
23284 status = pthread_detach( &t );
23285 if( status ) return errno;
23288 #ifdef HAVE_LINUX_THREADS
23289 pthread_kill_other_threads_np();
23297 if ac_fn_c_try_run "$LINENO"; then :
23298 ol_cv_pthread_kthread=yes
23300 ol_cv_pthread_kthread=no
23302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23303 conftest.$ac_objext conftest.beam conftest.$ac_ext
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
23312 $as_echo "$ol_cv_pthread_kthread" >&6; }
23314 if test $ol_cv_pthread_kthread = yes ; then
23315 ol_link_pthreads="-kthread"
23316 ol_link_threads=posix
23320 # Pthread try link: -pthread (ol_cv_pthread_pthread)
23321 if test "$ol_link_threads" = no ; then
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
23324 $as_echo_n "checking for pthread link with -pthread... " >&6; }
23325 if ${ol_cv_pthread_pthread+:} false; then :
23326 $as_echo_n "(cached) " >&6
23331 LIBS="-pthread $LIBS"
23333 if test "$cross_compiling" = yes; then :
23334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23335 /* end confdefs.h. */
23337 /* pthread test headers */
23338 #include <pthread.h>
23339 #if HAVE_PTHREADS < 7
23343 #define NULL (void*)0
23346 static void *task(p)
23349 return (void *) (p == NULL);
23356 /* pthread test function */
23357 #ifndef PTHREAD_CREATE_DETACHED
23358 #define PTHREAD_CREATE_DETACHED 1
23362 int detach = PTHREAD_CREATE_DETACHED;
23364 #if HAVE_PTHREADS > 4
23365 /* Final pthreads */
23366 pthread_attr_t attr;
23368 status = pthread_attr_init(&attr);
23369 if( status ) return status;
23371 #if HAVE_PTHREADS < 7
23372 status = pthread_attr_setdetachstate(&attr, &detach);
23373 if( status < 0 ) status = errno;
23375 status = pthread_attr_setdetachstate(&attr, detach);
23377 if( status ) return status;
23378 status = pthread_create( &t, &attr, task, NULL );
23379 #if HAVE_PTHREADS < 7
23380 if( status < 0 ) status = errno;
23382 if( status ) return status;
23384 /* Draft 4 pthreads */
23385 status = pthread_create( &t, pthread_attr_default, task, NULL );
23386 if( status ) return errno;
23388 /* give thread a chance to complete */
23389 /* it should remain joinable and hence detachable */
23392 status = pthread_detach( &t );
23393 if( status ) return errno;
23396 #ifdef HAVE_LINUX_THREADS
23397 pthread_kill_other_threads_np();
23406 if ac_fn_c_try_link "$LINENO"; then :
23407 ol_cv_pthread_pthread=yes
23409 ol_cv_pthread_pthread=no
23411 rm -f core conftest.err conftest.$ac_objext \
23412 conftest$ac_exeext conftest.$ac_ext
23414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23415 /* end confdefs.h. */
23418 /* pthread test headers */
23419 #include <pthread.h>
23420 #if HAVE_PTHREADS < 7
23424 #define NULL (void*)0
23427 static void *task(p)
23430 return (void *) (p == NULL);
23434 int main(argc, argv)
23439 /* pthread test function */
23440 #ifndef PTHREAD_CREATE_DETACHED
23441 #define PTHREAD_CREATE_DETACHED 1
23445 int detach = PTHREAD_CREATE_DETACHED;
23447 #if HAVE_PTHREADS > 4
23448 /* Final pthreads */
23449 pthread_attr_t attr;
23451 status = pthread_attr_init(&attr);
23452 if( status ) return status;
23454 #if HAVE_PTHREADS < 7
23455 status = pthread_attr_setdetachstate(&attr, &detach);
23456 if( status < 0 ) status = errno;
23458 status = pthread_attr_setdetachstate(&attr, detach);
23460 if( status ) return status;
23461 status = pthread_create( &t, &attr, task, NULL );
23462 #if HAVE_PTHREADS < 7
23463 if( status < 0 ) status = errno;
23465 if( status ) return status;
23467 /* Draft 4 pthreads */
23468 status = pthread_create( &t, pthread_attr_default, task, NULL );
23469 if( status ) return errno;
23471 /* give thread a chance to complete */
23472 /* it should remain joinable and hence detachable */
23475 status = pthread_detach( &t );
23476 if( status ) return errno;
23479 #ifdef HAVE_LINUX_THREADS
23480 pthread_kill_other_threads_np();
23488 if ac_fn_c_try_run "$LINENO"; then :
23489 ol_cv_pthread_pthread=yes
23491 ol_cv_pthread_pthread=no
23493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23494 conftest.$ac_objext conftest.beam conftest.$ac_ext
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
23503 $as_echo "$ol_cv_pthread_pthread" >&6; }
23505 if test $ol_cv_pthread_pthread = yes ; then
23506 ol_link_pthreads="-pthread"
23507 ol_link_threads=posix
23511 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
23512 if test "$ol_link_threads" = no ; then
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
23515 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
23516 if ${ol_cv_pthread_pthreads+:} false; then :
23517 $as_echo_n "(cached) " >&6
23522 LIBS="-pthreads $LIBS"
23524 if test "$cross_compiling" = yes; then :
23525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23526 /* end confdefs.h. */
23528 /* pthread test headers */
23529 #include <pthread.h>
23530 #if HAVE_PTHREADS < 7
23534 #define NULL (void*)0
23537 static void *task(p)
23540 return (void *) (p == NULL);
23547 /* pthread test function */
23548 #ifndef PTHREAD_CREATE_DETACHED
23549 #define PTHREAD_CREATE_DETACHED 1
23553 int detach = PTHREAD_CREATE_DETACHED;
23555 #if HAVE_PTHREADS > 4
23556 /* Final pthreads */
23557 pthread_attr_t attr;
23559 status = pthread_attr_init(&attr);
23560 if( status ) return status;
23562 #if HAVE_PTHREADS < 7
23563 status = pthread_attr_setdetachstate(&attr, &detach);
23564 if( status < 0 ) status = errno;
23566 status = pthread_attr_setdetachstate(&attr, detach);
23568 if( status ) return status;
23569 status = pthread_create( &t, &attr, task, NULL );
23570 #if HAVE_PTHREADS < 7
23571 if( status < 0 ) status = errno;
23573 if( status ) return status;
23575 /* Draft 4 pthreads */
23576 status = pthread_create( &t, pthread_attr_default, task, NULL );
23577 if( status ) return errno;
23579 /* give thread a chance to complete */
23580 /* it should remain joinable and hence detachable */
23583 status = pthread_detach( &t );
23584 if( status ) return errno;
23587 #ifdef HAVE_LINUX_THREADS
23588 pthread_kill_other_threads_np();
23597 if ac_fn_c_try_link "$LINENO"; then :
23598 ol_cv_pthread_pthreads=yes
23600 ol_cv_pthread_pthreads=no
23602 rm -f core conftest.err conftest.$ac_objext \
23603 conftest$ac_exeext conftest.$ac_ext
23605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23606 /* end confdefs.h. */
23609 /* pthread test headers */
23610 #include <pthread.h>
23611 #if HAVE_PTHREADS < 7
23615 #define NULL (void*)0
23618 static void *task(p)
23621 return (void *) (p == NULL);
23625 int main(argc, argv)
23630 /* pthread test function */
23631 #ifndef PTHREAD_CREATE_DETACHED
23632 #define PTHREAD_CREATE_DETACHED 1
23636 int detach = PTHREAD_CREATE_DETACHED;
23638 #if HAVE_PTHREADS > 4
23639 /* Final pthreads */
23640 pthread_attr_t attr;
23642 status = pthread_attr_init(&attr);
23643 if( status ) return status;
23645 #if HAVE_PTHREADS < 7
23646 status = pthread_attr_setdetachstate(&attr, &detach);
23647 if( status < 0 ) status = errno;
23649 status = pthread_attr_setdetachstate(&attr, detach);
23651 if( status ) return status;
23652 status = pthread_create( &t, &attr, task, NULL );
23653 #if HAVE_PTHREADS < 7
23654 if( status < 0 ) status = errno;
23656 if( status ) return status;
23658 /* Draft 4 pthreads */
23659 status = pthread_create( &t, pthread_attr_default, task, NULL );
23660 if( status ) return errno;
23662 /* give thread a chance to complete */
23663 /* it should remain joinable and hence detachable */
23666 status = pthread_detach( &t );
23667 if( status ) return errno;
23670 #ifdef HAVE_LINUX_THREADS
23671 pthread_kill_other_threads_np();
23679 if ac_fn_c_try_run "$LINENO"; then :
23680 ol_cv_pthread_pthreads=yes
23682 ol_cv_pthread_pthreads=no
23684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23685 conftest.$ac_objext conftest.beam conftest.$ac_ext
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
23694 $as_echo "$ol_cv_pthread_pthreads" >&6; }
23696 if test $ol_cv_pthread_pthreads = yes ; then
23697 ol_link_pthreads="-pthreads"
23698 ol_link_threads=posix
23702 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
23703 if test "$ol_link_threads" = no ; then
23705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
23706 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
23707 if ${ol_cv_pthread_mthreads+:} false; then :
23708 $as_echo_n "(cached) " >&6
23713 LIBS="-mthreads $LIBS"
23715 if test "$cross_compiling" = yes; then :
23716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23717 /* end confdefs.h. */
23719 /* pthread test headers */
23720 #include <pthread.h>
23721 #if HAVE_PTHREADS < 7
23725 #define NULL (void*)0
23728 static void *task(p)
23731 return (void *) (p == NULL);
23738 /* pthread test function */
23739 #ifndef PTHREAD_CREATE_DETACHED
23740 #define PTHREAD_CREATE_DETACHED 1
23744 int detach = PTHREAD_CREATE_DETACHED;
23746 #if HAVE_PTHREADS > 4
23747 /* Final pthreads */
23748 pthread_attr_t attr;
23750 status = pthread_attr_init(&attr);
23751 if( status ) return status;
23753 #if HAVE_PTHREADS < 7
23754 status = pthread_attr_setdetachstate(&attr, &detach);
23755 if( status < 0 ) status = errno;
23757 status = pthread_attr_setdetachstate(&attr, detach);
23759 if( status ) return status;
23760 status = pthread_create( &t, &attr, task, NULL );
23761 #if HAVE_PTHREADS < 7
23762 if( status < 0 ) status = errno;
23764 if( status ) return status;
23766 /* Draft 4 pthreads */
23767 status = pthread_create( &t, pthread_attr_default, task, NULL );
23768 if( status ) return errno;
23770 /* give thread a chance to complete */
23771 /* it should remain joinable and hence detachable */
23774 status = pthread_detach( &t );
23775 if( status ) return errno;
23778 #ifdef HAVE_LINUX_THREADS
23779 pthread_kill_other_threads_np();
23788 if ac_fn_c_try_link "$LINENO"; then :
23789 ol_cv_pthread_mthreads=yes
23791 ol_cv_pthread_mthreads=no
23793 rm -f core conftest.err conftest.$ac_objext \
23794 conftest$ac_exeext conftest.$ac_ext
23796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23797 /* end confdefs.h. */
23800 /* pthread test headers */
23801 #include <pthread.h>
23802 #if HAVE_PTHREADS < 7
23806 #define NULL (void*)0
23809 static void *task(p)
23812 return (void *) (p == NULL);
23816 int main(argc, argv)
23821 /* pthread test function */
23822 #ifndef PTHREAD_CREATE_DETACHED
23823 #define PTHREAD_CREATE_DETACHED 1
23827 int detach = PTHREAD_CREATE_DETACHED;
23829 #if HAVE_PTHREADS > 4
23830 /* Final pthreads */
23831 pthread_attr_t attr;
23833 status = pthread_attr_init(&attr);
23834 if( status ) return status;
23836 #if HAVE_PTHREADS < 7
23837 status = pthread_attr_setdetachstate(&attr, &detach);
23838 if( status < 0 ) status = errno;
23840 status = pthread_attr_setdetachstate(&attr, detach);
23842 if( status ) return status;
23843 status = pthread_create( &t, &attr, task, NULL );
23844 #if HAVE_PTHREADS < 7
23845 if( status < 0 ) status = errno;
23847 if( status ) return status;
23849 /* Draft 4 pthreads */
23850 status = pthread_create( &t, pthread_attr_default, task, NULL );
23851 if( status ) return errno;
23853 /* give thread a chance to complete */
23854 /* it should remain joinable and hence detachable */
23857 status = pthread_detach( &t );
23858 if( status ) return errno;
23861 #ifdef HAVE_LINUX_THREADS
23862 pthread_kill_other_threads_np();
23870 if ac_fn_c_try_run "$LINENO"; then :
23871 ol_cv_pthread_mthreads=yes
23873 ol_cv_pthread_mthreads=no
23875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23876 conftest.$ac_objext conftest.beam conftest.$ac_ext
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
23885 $as_echo "$ol_cv_pthread_mthreads" >&6; }
23887 if test $ol_cv_pthread_mthreads = yes ; then
23888 ol_link_pthreads="-mthreads"
23889 ol_link_threads=posix
23893 # Pthread try link: -thread (ol_cv_pthread_thread)
23894 if test "$ol_link_threads" = no ; then
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
23897 $as_echo_n "checking for pthread link with -thread... " >&6; }
23898 if ${ol_cv_pthread_thread+:} false; then :
23899 $as_echo_n "(cached) " >&6
23904 LIBS="-thread $LIBS"
23906 if test "$cross_compiling" = yes; then :
23907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23908 /* end confdefs.h. */
23910 /* pthread test headers */
23911 #include <pthread.h>
23912 #if HAVE_PTHREADS < 7
23916 #define NULL (void*)0
23919 static void *task(p)
23922 return (void *) (p == NULL);
23929 /* pthread test function */
23930 #ifndef PTHREAD_CREATE_DETACHED
23931 #define PTHREAD_CREATE_DETACHED 1
23935 int detach = PTHREAD_CREATE_DETACHED;
23937 #if HAVE_PTHREADS > 4
23938 /* Final pthreads */
23939 pthread_attr_t attr;
23941 status = pthread_attr_init(&attr);
23942 if( status ) return status;
23944 #if HAVE_PTHREADS < 7
23945 status = pthread_attr_setdetachstate(&attr, &detach);
23946 if( status < 0 ) status = errno;
23948 status = pthread_attr_setdetachstate(&attr, detach);
23950 if( status ) return status;
23951 status = pthread_create( &t, &attr, task, NULL );
23952 #if HAVE_PTHREADS < 7
23953 if( status < 0 ) status = errno;
23955 if( status ) return status;
23957 /* Draft 4 pthreads */
23958 status = pthread_create( &t, pthread_attr_default, task, NULL );
23959 if( status ) return errno;
23961 /* give thread a chance to complete */
23962 /* it should remain joinable and hence detachable */
23965 status = pthread_detach( &t );
23966 if( status ) return errno;
23969 #ifdef HAVE_LINUX_THREADS
23970 pthread_kill_other_threads_np();
23979 if ac_fn_c_try_link "$LINENO"; then :
23980 ol_cv_pthread_thread=yes
23982 ol_cv_pthread_thread=no
23984 rm -f core conftest.err conftest.$ac_objext \
23985 conftest$ac_exeext conftest.$ac_ext
23987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23988 /* end confdefs.h. */
23991 /* pthread test headers */
23992 #include <pthread.h>
23993 #if HAVE_PTHREADS < 7
23997 #define NULL (void*)0
24000 static void *task(p)
24003 return (void *) (p == NULL);
24007 int main(argc, argv)
24012 /* pthread test function */
24013 #ifndef PTHREAD_CREATE_DETACHED
24014 #define PTHREAD_CREATE_DETACHED 1
24018 int detach = PTHREAD_CREATE_DETACHED;
24020 #if HAVE_PTHREADS > 4
24021 /* Final pthreads */
24022 pthread_attr_t attr;
24024 status = pthread_attr_init(&attr);
24025 if( status ) return status;
24027 #if HAVE_PTHREADS < 7
24028 status = pthread_attr_setdetachstate(&attr, &detach);
24029 if( status < 0 ) status = errno;
24031 status = pthread_attr_setdetachstate(&attr, detach);
24033 if( status ) return status;
24034 status = pthread_create( &t, &attr, task, NULL );
24035 #if HAVE_PTHREADS < 7
24036 if( status < 0 ) status = errno;
24038 if( status ) return status;
24040 /* Draft 4 pthreads */
24041 status = pthread_create( &t, pthread_attr_default, task, NULL );
24042 if( status ) return errno;
24044 /* give thread a chance to complete */
24045 /* it should remain joinable and hence detachable */
24048 status = pthread_detach( &t );
24049 if( status ) return errno;
24052 #ifdef HAVE_LINUX_THREADS
24053 pthread_kill_other_threads_np();
24061 if ac_fn_c_try_run "$LINENO"; then :
24062 ol_cv_pthread_thread=yes
24064 ol_cv_pthread_thread=no
24066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24067 conftest.$ac_objext conftest.beam conftest.$ac_ext
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
24076 $as_echo "$ol_cv_pthread_thread" >&6; }
24078 if test $ol_cv_pthread_thread = yes ; then
24079 ol_link_pthreads="-thread"
24080 ol_link_threads=posix
24085 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
24086 if test "$ol_link_threads" = no ; then
24087 # try -lpthread -lmach -lexc -lc_r
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
24089 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
24090 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
24091 $as_echo_n "(cached) " >&6
24096 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
24098 if test "$cross_compiling" = yes; then :
24099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24100 /* end confdefs.h. */
24102 /* pthread test headers */
24103 #include <pthread.h>
24104 #if HAVE_PTHREADS < 7
24108 #define NULL (void*)0
24111 static void *task(p)
24114 return (void *) (p == NULL);
24121 /* pthread test function */
24122 #ifndef PTHREAD_CREATE_DETACHED
24123 #define PTHREAD_CREATE_DETACHED 1
24127 int detach = PTHREAD_CREATE_DETACHED;
24129 #if HAVE_PTHREADS > 4
24130 /* Final pthreads */
24131 pthread_attr_t attr;
24133 status = pthread_attr_init(&attr);
24134 if( status ) return status;
24136 #if HAVE_PTHREADS < 7
24137 status = pthread_attr_setdetachstate(&attr, &detach);
24138 if( status < 0 ) status = errno;
24140 status = pthread_attr_setdetachstate(&attr, detach);
24142 if( status ) return status;
24143 status = pthread_create( &t, &attr, task, NULL );
24144 #if HAVE_PTHREADS < 7
24145 if( status < 0 ) status = errno;
24147 if( status ) return status;
24149 /* Draft 4 pthreads */
24150 status = pthread_create( &t, pthread_attr_default, task, NULL );
24151 if( status ) return errno;
24153 /* give thread a chance to complete */
24154 /* it should remain joinable and hence detachable */
24157 status = pthread_detach( &t );
24158 if( status ) return errno;
24161 #ifdef HAVE_LINUX_THREADS
24162 pthread_kill_other_threads_np();
24171 if ac_fn_c_try_link "$LINENO"; then :
24172 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
24174 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
24176 rm -f core conftest.err conftest.$ac_objext \
24177 conftest$ac_exeext conftest.$ac_ext
24179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24180 /* end confdefs.h. */
24183 /* pthread test headers */
24184 #include <pthread.h>
24185 #if HAVE_PTHREADS < 7
24189 #define NULL (void*)0
24192 static void *task(p)
24195 return (void *) (p == NULL);
24199 int main(argc, argv)
24204 /* pthread test function */
24205 #ifndef PTHREAD_CREATE_DETACHED
24206 #define PTHREAD_CREATE_DETACHED 1
24210 int detach = PTHREAD_CREATE_DETACHED;
24212 #if HAVE_PTHREADS > 4
24213 /* Final pthreads */
24214 pthread_attr_t attr;
24216 status = pthread_attr_init(&attr);
24217 if( status ) return status;
24219 #if HAVE_PTHREADS < 7
24220 status = pthread_attr_setdetachstate(&attr, &detach);
24221 if( status < 0 ) status = errno;
24223 status = pthread_attr_setdetachstate(&attr, detach);
24225 if( status ) return status;
24226 status = pthread_create( &t, &attr, task, NULL );
24227 #if HAVE_PTHREADS < 7
24228 if( status < 0 ) status = errno;
24230 if( status ) return status;
24232 /* Draft 4 pthreads */
24233 status = pthread_create( &t, pthread_attr_default, task, NULL );
24234 if( status ) return errno;
24236 /* give thread a chance to complete */
24237 /* it should remain joinable and hence detachable */
24240 status = pthread_detach( &t );
24241 if( status ) return errno;
24244 #ifdef HAVE_LINUX_THREADS
24245 pthread_kill_other_threads_np();
24253 if ac_fn_c_try_run "$LINENO"; then :
24254 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
24256 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
24258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24259 conftest.$ac_objext conftest.beam conftest.$ac_ext
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
24268 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
24270 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
24271 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
24272 ol_link_threads=posix
24276 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
24277 if test "$ol_link_threads" = no ; then
24278 # try -lpthread -lmach -lexc
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
24280 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
24281 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
24282 $as_echo_n "(cached) " >&6
24287 LIBS="-lpthread -lmach -lexc $LIBS"
24289 if test "$cross_compiling" = yes; then :
24290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24291 /* end confdefs.h. */
24293 /* pthread test headers */
24294 #include <pthread.h>
24295 #if HAVE_PTHREADS < 7
24299 #define NULL (void*)0
24302 static void *task(p)
24305 return (void *) (p == NULL);
24312 /* pthread test function */
24313 #ifndef PTHREAD_CREATE_DETACHED
24314 #define PTHREAD_CREATE_DETACHED 1
24318 int detach = PTHREAD_CREATE_DETACHED;
24320 #if HAVE_PTHREADS > 4
24321 /* Final pthreads */
24322 pthread_attr_t attr;
24324 status = pthread_attr_init(&attr);
24325 if( status ) return status;
24327 #if HAVE_PTHREADS < 7
24328 status = pthread_attr_setdetachstate(&attr, &detach);
24329 if( status < 0 ) status = errno;
24331 status = pthread_attr_setdetachstate(&attr, detach);
24333 if( status ) return status;
24334 status = pthread_create( &t, &attr, task, NULL );
24335 #if HAVE_PTHREADS < 7
24336 if( status < 0 ) status = errno;
24338 if( status ) return status;
24340 /* Draft 4 pthreads */
24341 status = pthread_create( &t, pthread_attr_default, task, NULL );
24342 if( status ) return errno;
24344 /* give thread a chance to complete */
24345 /* it should remain joinable and hence detachable */
24348 status = pthread_detach( &t );
24349 if( status ) return errno;
24352 #ifdef HAVE_LINUX_THREADS
24353 pthread_kill_other_threads_np();
24362 if ac_fn_c_try_link "$LINENO"; then :
24363 ol_cv_pthread_lpthread_lmach_lexc=yes
24365 ol_cv_pthread_lpthread_lmach_lexc=no
24367 rm -f core conftest.err conftest.$ac_objext \
24368 conftest$ac_exeext conftest.$ac_ext
24370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24371 /* end confdefs.h. */
24374 /* pthread test headers */
24375 #include <pthread.h>
24376 #if HAVE_PTHREADS < 7
24380 #define NULL (void*)0
24383 static void *task(p)
24386 return (void *) (p == NULL);
24390 int main(argc, argv)
24395 /* pthread test function */
24396 #ifndef PTHREAD_CREATE_DETACHED
24397 #define PTHREAD_CREATE_DETACHED 1
24401 int detach = PTHREAD_CREATE_DETACHED;
24403 #if HAVE_PTHREADS > 4
24404 /* Final pthreads */
24405 pthread_attr_t attr;
24407 status = pthread_attr_init(&attr);
24408 if( status ) return status;
24410 #if HAVE_PTHREADS < 7
24411 status = pthread_attr_setdetachstate(&attr, &detach);
24412 if( status < 0 ) status = errno;
24414 status = pthread_attr_setdetachstate(&attr, detach);
24416 if( status ) return status;
24417 status = pthread_create( &t, &attr, task, NULL );
24418 #if HAVE_PTHREADS < 7
24419 if( status < 0 ) status = errno;
24421 if( status ) return status;
24423 /* Draft 4 pthreads */
24424 status = pthread_create( &t, pthread_attr_default, task, NULL );
24425 if( status ) return errno;
24427 /* give thread a chance to complete */
24428 /* it should remain joinable and hence detachable */
24431 status = pthread_detach( &t );
24432 if( status ) return errno;
24435 #ifdef HAVE_LINUX_THREADS
24436 pthread_kill_other_threads_np();
24444 if ac_fn_c_try_run "$LINENO"; then :
24445 ol_cv_pthread_lpthread_lmach_lexc=yes
24447 ol_cv_pthread_lpthread_lmach_lexc=no
24449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24450 conftest.$ac_objext conftest.beam conftest.$ac_ext
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
24459 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
24461 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
24462 ol_link_pthreads="-lpthread -lmach -lexc"
24463 ol_link_threads=posix
24468 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
24469 if test "$ol_link_threads" = no ; then
24470 # try -lpthread -Wl,-woff,85
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
24472 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
24473 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
24474 $as_echo_n "(cached) " >&6
24479 LIBS="-lpthread -Wl,-woff,85 $LIBS"
24481 if test "$cross_compiling" = yes; then :
24482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24483 /* end confdefs.h. */
24485 /* pthread test headers */
24486 #include <pthread.h>
24487 #if HAVE_PTHREADS < 7
24491 #define NULL (void*)0
24494 static void *task(p)
24497 return (void *) (p == NULL);
24504 /* pthread test function */
24505 #ifndef PTHREAD_CREATE_DETACHED
24506 #define PTHREAD_CREATE_DETACHED 1
24510 int detach = PTHREAD_CREATE_DETACHED;
24512 #if HAVE_PTHREADS > 4
24513 /* Final pthreads */
24514 pthread_attr_t attr;
24516 status = pthread_attr_init(&attr);
24517 if( status ) return status;
24519 #if HAVE_PTHREADS < 7
24520 status = pthread_attr_setdetachstate(&attr, &detach);
24521 if( status < 0 ) status = errno;
24523 status = pthread_attr_setdetachstate(&attr, detach);
24525 if( status ) return status;
24526 status = pthread_create( &t, &attr, task, NULL );
24527 #if HAVE_PTHREADS < 7
24528 if( status < 0 ) status = errno;
24530 if( status ) return status;
24532 /* Draft 4 pthreads */
24533 status = pthread_create( &t, pthread_attr_default, task, NULL );
24534 if( status ) return errno;
24536 /* give thread a chance to complete */
24537 /* it should remain joinable and hence detachable */
24540 status = pthread_detach( &t );
24541 if( status ) return errno;
24544 #ifdef HAVE_LINUX_THREADS
24545 pthread_kill_other_threads_np();
24554 if ac_fn_c_try_link "$LINENO"; then :
24555 ol_cv_pthread_lib_lpthread_woff=yes
24557 ol_cv_pthread_lib_lpthread_woff=no
24559 rm -f core conftest.err conftest.$ac_objext \
24560 conftest$ac_exeext conftest.$ac_ext
24562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24563 /* end confdefs.h. */
24566 /* pthread test headers */
24567 #include <pthread.h>
24568 #if HAVE_PTHREADS < 7
24572 #define NULL (void*)0
24575 static void *task(p)
24578 return (void *) (p == NULL);
24582 int main(argc, argv)
24587 /* pthread test function */
24588 #ifndef PTHREAD_CREATE_DETACHED
24589 #define PTHREAD_CREATE_DETACHED 1
24593 int detach = PTHREAD_CREATE_DETACHED;
24595 #if HAVE_PTHREADS > 4
24596 /* Final pthreads */
24597 pthread_attr_t attr;
24599 status = pthread_attr_init(&attr);
24600 if( status ) return status;
24602 #if HAVE_PTHREADS < 7
24603 status = pthread_attr_setdetachstate(&attr, &detach);
24604 if( status < 0 ) status = errno;
24606 status = pthread_attr_setdetachstate(&attr, detach);
24608 if( status ) return status;
24609 status = pthread_create( &t, &attr, task, NULL );
24610 #if HAVE_PTHREADS < 7
24611 if( status < 0 ) status = errno;
24613 if( status ) return status;
24615 /* Draft 4 pthreads */
24616 status = pthread_create( &t, pthread_attr_default, task, NULL );
24617 if( status ) return errno;
24619 /* give thread a chance to complete */
24620 /* it should remain joinable and hence detachable */
24623 status = pthread_detach( &t );
24624 if( status ) return errno;
24627 #ifdef HAVE_LINUX_THREADS
24628 pthread_kill_other_threads_np();
24636 if ac_fn_c_try_run "$LINENO"; then :
24637 ol_cv_pthread_lib_lpthread_woff=yes
24639 ol_cv_pthread_lib_lpthread_woff=no
24641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24642 conftest.$ac_objext conftest.beam conftest.$ac_ext
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
24651 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
24653 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
24654 ol_link_pthreads="-lpthread -Wl,-woff,85"
24655 ol_link_threads=posix
24660 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
24661 if test "$ol_link_threads" = no ; then
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
24664 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
24665 if ${ol_cv_pthread_lpthread+:} false; then :
24666 $as_echo_n "(cached) " >&6
24671 LIBS="-lpthread $LIBS"
24673 if test "$cross_compiling" = yes; then :
24674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24675 /* end confdefs.h. */
24677 /* pthread test headers */
24678 #include <pthread.h>
24679 #if HAVE_PTHREADS < 7
24683 #define NULL (void*)0
24686 static void *task(p)
24689 return (void *) (p == NULL);
24696 /* pthread test function */
24697 #ifndef PTHREAD_CREATE_DETACHED
24698 #define PTHREAD_CREATE_DETACHED 1
24702 int detach = PTHREAD_CREATE_DETACHED;
24704 #if HAVE_PTHREADS > 4
24705 /* Final pthreads */
24706 pthread_attr_t attr;
24708 status = pthread_attr_init(&attr);
24709 if( status ) return status;
24711 #if HAVE_PTHREADS < 7
24712 status = pthread_attr_setdetachstate(&attr, &detach);
24713 if( status < 0 ) status = errno;
24715 status = pthread_attr_setdetachstate(&attr, detach);
24717 if( status ) return status;
24718 status = pthread_create( &t, &attr, task, NULL );
24719 #if HAVE_PTHREADS < 7
24720 if( status < 0 ) status = errno;
24722 if( status ) return status;
24724 /* Draft 4 pthreads */
24725 status = pthread_create( &t, pthread_attr_default, task, NULL );
24726 if( status ) return errno;
24728 /* give thread a chance to complete */
24729 /* it should remain joinable and hence detachable */
24732 status = pthread_detach( &t );
24733 if( status ) return errno;
24736 #ifdef HAVE_LINUX_THREADS
24737 pthread_kill_other_threads_np();
24746 if ac_fn_c_try_link "$LINENO"; then :
24747 ol_cv_pthread_lpthread=yes
24749 ol_cv_pthread_lpthread=no
24751 rm -f core conftest.err conftest.$ac_objext \
24752 conftest$ac_exeext conftest.$ac_ext
24754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24755 /* end confdefs.h. */
24758 /* pthread test headers */
24759 #include <pthread.h>
24760 #if HAVE_PTHREADS < 7
24764 #define NULL (void*)0
24767 static void *task(p)
24770 return (void *) (p == NULL);
24774 int main(argc, argv)
24779 /* pthread test function */
24780 #ifndef PTHREAD_CREATE_DETACHED
24781 #define PTHREAD_CREATE_DETACHED 1
24785 int detach = PTHREAD_CREATE_DETACHED;
24787 #if HAVE_PTHREADS > 4
24788 /* Final pthreads */
24789 pthread_attr_t attr;
24791 status = pthread_attr_init(&attr);
24792 if( status ) return status;
24794 #if HAVE_PTHREADS < 7
24795 status = pthread_attr_setdetachstate(&attr, &detach);
24796 if( status < 0 ) status = errno;
24798 status = pthread_attr_setdetachstate(&attr, detach);
24800 if( status ) return status;
24801 status = pthread_create( &t, &attr, task, NULL );
24802 #if HAVE_PTHREADS < 7
24803 if( status < 0 ) status = errno;
24805 if( status ) return status;
24807 /* Draft 4 pthreads */
24808 status = pthread_create( &t, pthread_attr_default, task, NULL );
24809 if( status ) return errno;
24811 /* give thread a chance to complete */
24812 /* it should remain joinable and hence detachable */
24815 status = pthread_detach( &t );
24816 if( status ) return errno;
24819 #ifdef HAVE_LINUX_THREADS
24820 pthread_kill_other_threads_np();
24828 if ac_fn_c_try_run "$LINENO"; then :
24829 ol_cv_pthread_lpthread=yes
24831 ol_cv_pthread_lpthread=no
24833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24834 conftest.$ac_objext conftest.beam conftest.$ac_ext
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
24843 $as_echo "$ol_cv_pthread_lpthread" >&6; }
24845 if test $ol_cv_pthread_lpthread = yes ; then
24846 ol_link_pthreads="-lpthread"
24847 ol_link_threads=posix
24851 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
24852 if test "$ol_link_threads" = no ; then
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
24855 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
24856 if ${ol_cv_pthread_lc_r+:} false; then :
24857 $as_echo_n "(cached) " >&6
24864 if test "$cross_compiling" = yes; then :
24865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24866 /* end confdefs.h. */
24868 /* pthread test headers */
24869 #include <pthread.h>
24870 #if HAVE_PTHREADS < 7
24874 #define NULL (void*)0
24877 static void *task(p)
24880 return (void *) (p == NULL);
24887 /* pthread test function */
24888 #ifndef PTHREAD_CREATE_DETACHED
24889 #define PTHREAD_CREATE_DETACHED 1
24893 int detach = PTHREAD_CREATE_DETACHED;
24895 #if HAVE_PTHREADS > 4
24896 /* Final pthreads */
24897 pthread_attr_t attr;
24899 status = pthread_attr_init(&attr);
24900 if( status ) return status;
24902 #if HAVE_PTHREADS < 7
24903 status = pthread_attr_setdetachstate(&attr, &detach);
24904 if( status < 0 ) status = errno;
24906 status = pthread_attr_setdetachstate(&attr, detach);
24908 if( status ) return status;
24909 status = pthread_create( &t, &attr, task, NULL );
24910 #if HAVE_PTHREADS < 7
24911 if( status < 0 ) status = errno;
24913 if( status ) return status;
24915 /* Draft 4 pthreads */
24916 status = pthread_create( &t, pthread_attr_default, task, NULL );
24917 if( status ) return errno;
24919 /* give thread a chance to complete */
24920 /* it should remain joinable and hence detachable */
24923 status = pthread_detach( &t );
24924 if( status ) return errno;
24927 #ifdef HAVE_LINUX_THREADS
24928 pthread_kill_other_threads_np();
24937 if ac_fn_c_try_link "$LINENO"; then :
24938 ol_cv_pthread_lc_r=yes
24940 ol_cv_pthread_lc_r=no
24942 rm -f core conftest.err conftest.$ac_objext \
24943 conftest$ac_exeext conftest.$ac_ext
24945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24946 /* end confdefs.h. */
24949 /* pthread test headers */
24950 #include <pthread.h>
24951 #if HAVE_PTHREADS < 7
24955 #define NULL (void*)0
24958 static void *task(p)
24961 return (void *) (p == NULL);
24965 int main(argc, argv)
24970 /* pthread test function */
24971 #ifndef PTHREAD_CREATE_DETACHED
24972 #define PTHREAD_CREATE_DETACHED 1
24976 int detach = PTHREAD_CREATE_DETACHED;
24978 #if HAVE_PTHREADS > 4
24979 /* Final pthreads */
24980 pthread_attr_t attr;
24982 status = pthread_attr_init(&attr);
24983 if( status ) return status;
24985 #if HAVE_PTHREADS < 7
24986 status = pthread_attr_setdetachstate(&attr, &detach);
24987 if( status < 0 ) status = errno;
24989 status = pthread_attr_setdetachstate(&attr, detach);
24991 if( status ) return status;
24992 status = pthread_create( &t, &attr, task, NULL );
24993 #if HAVE_PTHREADS < 7
24994 if( status < 0 ) status = errno;
24996 if( status ) return status;
24998 /* Draft 4 pthreads */
24999 status = pthread_create( &t, pthread_attr_default, task, NULL );
25000 if( status ) return errno;
25002 /* give thread a chance to complete */
25003 /* it should remain joinable and hence detachable */
25006 status = pthread_detach( &t );
25007 if( status ) return errno;
25010 #ifdef HAVE_LINUX_THREADS
25011 pthread_kill_other_threads_np();
25019 if ac_fn_c_try_run "$LINENO"; then :
25020 ol_cv_pthread_lc_r=yes
25022 ol_cv_pthread_lc_r=no
25024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25025 conftest.$ac_objext conftest.beam conftest.$ac_ext
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
25034 $as_echo "$ol_cv_pthread_lc_r" >&6; }
25036 if test $ol_cv_pthread_lc_r = yes ; then
25037 ol_link_pthreads="-lc_r"
25038 ol_link_threads=posix
25043 # Pthread try link: -threads (ol_cv_pthread_threads)
25044 if test "$ol_link_threads" = no ; then
25046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
25047 $as_echo_n "checking for pthread link with -threads... " >&6; }
25048 if ${ol_cv_pthread_threads+:} false; then :
25049 $as_echo_n "(cached) " >&6
25054 LIBS="-threads $LIBS"
25056 if test "$cross_compiling" = yes; then :
25057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25058 /* end confdefs.h. */
25060 /* pthread test headers */
25061 #include <pthread.h>
25062 #if HAVE_PTHREADS < 7
25066 #define NULL (void*)0
25069 static void *task(p)
25072 return (void *) (p == NULL);
25079 /* pthread test function */
25080 #ifndef PTHREAD_CREATE_DETACHED
25081 #define PTHREAD_CREATE_DETACHED 1
25085 int detach = PTHREAD_CREATE_DETACHED;
25087 #if HAVE_PTHREADS > 4
25088 /* Final pthreads */
25089 pthread_attr_t attr;
25091 status = pthread_attr_init(&attr);
25092 if( status ) return status;
25094 #if HAVE_PTHREADS < 7
25095 status = pthread_attr_setdetachstate(&attr, &detach);
25096 if( status < 0 ) status = errno;
25098 status = pthread_attr_setdetachstate(&attr, detach);
25100 if( status ) return status;
25101 status = pthread_create( &t, &attr, task, NULL );
25102 #if HAVE_PTHREADS < 7
25103 if( status < 0 ) status = errno;
25105 if( status ) return status;
25107 /* Draft 4 pthreads */
25108 status = pthread_create( &t, pthread_attr_default, task, NULL );
25109 if( status ) return errno;
25111 /* give thread a chance to complete */
25112 /* it should remain joinable and hence detachable */
25115 status = pthread_detach( &t );
25116 if( status ) return errno;
25119 #ifdef HAVE_LINUX_THREADS
25120 pthread_kill_other_threads_np();
25129 if ac_fn_c_try_link "$LINENO"; then :
25130 ol_cv_pthread_threads=yes
25132 ol_cv_pthread_threads=no
25134 rm -f core conftest.err conftest.$ac_objext \
25135 conftest$ac_exeext conftest.$ac_ext
25137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25138 /* end confdefs.h. */
25141 /* pthread test headers */
25142 #include <pthread.h>
25143 #if HAVE_PTHREADS < 7
25147 #define NULL (void*)0
25150 static void *task(p)
25153 return (void *) (p == NULL);
25157 int main(argc, argv)
25162 /* pthread test function */
25163 #ifndef PTHREAD_CREATE_DETACHED
25164 #define PTHREAD_CREATE_DETACHED 1
25168 int detach = PTHREAD_CREATE_DETACHED;
25170 #if HAVE_PTHREADS > 4
25171 /* Final pthreads */
25172 pthread_attr_t attr;
25174 status = pthread_attr_init(&attr);
25175 if( status ) return status;
25177 #if HAVE_PTHREADS < 7
25178 status = pthread_attr_setdetachstate(&attr, &detach);
25179 if( status < 0 ) status = errno;
25181 status = pthread_attr_setdetachstate(&attr, detach);
25183 if( status ) return status;
25184 status = pthread_create( &t, &attr, task, NULL );
25185 #if HAVE_PTHREADS < 7
25186 if( status < 0 ) status = errno;
25188 if( status ) return status;
25190 /* Draft 4 pthreads */
25191 status = pthread_create( &t, pthread_attr_default, task, NULL );
25192 if( status ) return errno;
25194 /* give thread a chance to complete */
25195 /* it should remain joinable and hence detachable */
25198 status = pthread_detach( &t );
25199 if( status ) return errno;
25202 #ifdef HAVE_LINUX_THREADS
25203 pthread_kill_other_threads_np();
25211 if ac_fn_c_try_run "$LINENO"; then :
25212 ol_cv_pthread_threads=yes
25214 ol_cv_pthread_threads=no
25216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25217 conftest.$ac_objext conftest.beam conftest.$ac_ext
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
25226 $as_echo "$ol_cv_pthread_threads" >&6; }
25228 if test $ol_cv_pthread_threads = yes ; then
25229 ol_link_pthreads="-threads"
25230 ol_link_threads=posix
25235 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
25236 if test "$ol_link_threads" = no ; then
25237 # try -lpthreads -lmach -lexc -lc_r
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
25239 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
25240 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
25241 $as_echo_n "(cached) " >&6
25246 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
25248 if test "$cross_compiling" = yes; then :
25249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25250 /* end confdefs.h. */
25252 /* pthread test headers */
25253 #include <pthread.h>
25254 #if HAVE_PTHREADS < 7
25258 #define NULL (void*)0
25261 static void *task(p)
25264 return (void *) (p == NULL);
25271 /* pthread test function */
25272 #ifndef PTHREAD_CREATE_DETACHED
25273 #define PTHREAD_CREATE_DETACHED 1
25277 int detach = PTHREAD_CREATE_DETACHED;
25279 #if HAVE_PTHREADS > 4
25280 /* Final pthreads */
25281 pthread_attr_t attr;
25283 status = pthread_attr_init(&attr);
25284 if( status ) return status;
25286 #if HAVE_PTHREADS < 7
25287 status = pthread_attr_setdetachstate(&attr, &detach);
25288 if( status < 0 ) status = errno;
25290 status = pthread_attr_setdetachstate(&attr, detach);
25292 if( status ) return status;
25293 status = pthread_create( &t, &attr, task, NULL );
25294 #if HAVE_PTHREADS < 7
25295 if( status < 0 ) status = errno;
25297 if( status ) return status;
25299 /* Draft 4 pthreads */
25300 status = pthread_create( &t, pthread_attr_default, task, NULL );
25301 if( status ) return errno;
25303 /* give thread a chance to complete */
25304 /* it should remain joinable and hence detachable */
25307 status = pthread_detach( &t );
25308 if( status ) return errno;
25311 #ifdef HAVE_LINUX_THREADS
25312 pthread_kill_other_threads_np();
25321 if ac_fn_c_try_link "$LINENO"; then :
25322 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
25324 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
25326 rm -f core conftest.err conftest.$ac_objext \
25327 conftest$ac_exeext conftest.$ac_ext
25329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25330 /* end confdefs.h. */
25333 /* pthread test headers */
25334 #include <pthread.h>
25335 #if HAVE_PTHREADS < 7
25339 #define NULL (void*)0
25342 static void *task(p)
25345 return (void *) (p == NULL);
25349 int main(argc, argv)
25354 /* pthread test function */
25355 #ifndef PTHREAD_CREATE_DETACHED
25356 #define PTHREAD_CREATE_DETACHED 1
25360 int detach = PTHREAD_CREATE_DETACHED;
25362 #if HAVE_PTHREADS > 4
25363 /* Final pthreads */
25364 pthread_attr_t attr;
25366 status = pthread_attr_init(&attr);
25367 if( status ) return status;
25369 #if HAVE_PTHREADS < 7
25370 status = pthread_attr_setdetachstate(&attr, &detach);
25371 if( status < 0 ) status = errno;
25373 status = pthread_attr_setdetachstate(&attr, detach);
25375 if( status ) return status;
25376 status = pthread_create( &t, &attr, task, NULL );
25377 #if HAVE_PTHREADS < 7
25378 if( status < 0 ) status = errno;
25380 if( status ) return status;
25382 /* Draft 4 pthreads */
25383 status = pthread_create( &t, pthread_attr_default, task, NULL );
25384 if( status ) return errno;
25386 /* give thread a chance to complete */
25387 /* it should remain joinable and hence detachable */
25390 status = pthread_detach( &t );
25391 if( status ) return errno;
25394 #ifdef HAVE_LINUX_THREADS
25395 pthread_kill_other_threads_np();
25403 if ac_fn_c_try_run "$LINENO"; then :
25404 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
25406 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
25408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25409 conftest.$ac_objext conftest.beam conftest.$ac_ext
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
25418 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
25420 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
25421 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
25422 ol_link_threads=posix
25426 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
25427 if test "$ol_link_threads" = no ; then
25428 # try -lpthreads -lmach -lexc
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
25430 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
25431 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
25432 $as_echo_n "(cached) " >&6
25437 LIBS="-lpthreads -lmach -lexc $LIBS"
25439 if test "$cross_compiling" = yes; then :
25440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25441 /* end confdefs.h. */
25443 /* pthread test headers */
25444 #include <pthread.h>
25445 #if HAVE_PTHREADS < 7
25449 #define NULL (void*)0
25452 static void *task(p)
25455 return (void *) (p == NULL);
25462 /* pthread test function */
25463 #ifndef PTHREAD_CREATE_DETACHED
25464 #define PTHREAD_CREATE_DETACHED 1
25468 int detach = PTHREAD_CREATE_DETACHED;
25470 #if HAVE_PTHREADS > 4
25471 /* Final pthreads */
25472 pthread_attr_t attr;
25474 status = pthread_attr_init(&attr);
25475 if( status ) return status;
25477 #if HAVE_PTHREADS < 7
25478 status = pthread_attr_setdetachstate(&attr, &detach);
25479 if( status < 0 ) status = errno;
25481 status = pthread_attr_setdetachstate(&attr, detach);
25483 if( status ) return status;
25484 status = pthread_create( &t, &attr, task, NULL );
25485 #if HAVE_PTHREADS < 7
25486 if( status < 0 ) status = errno;
25488 if( status ) return status;
25490 /* Draft 4 pthreads */
25491 status = pthread_create( &t, pthread_attr_default, task, NULL );
25492 if( status ) return errno;
25494 /* give thread a chance to complete */
25495 /* it should remain joinable and hence detachable */
25498 status = pthread_detach( &t );
25499 if( status ) return errno;
25502 #ifdef HAVE_LINUX_THREADS
25503 pthread_kill_other_threads_np();
25512 if ac_fn_c_try_link "$LINENO"; then :
25513 ol_cv_pthread_lpthreads_lmach_lexc=yes
25515 ol_cv_pthread_lpthreads_lmach_lexc=no
25517 rm -f core conftest.err conftest.$ac_objext \
25518 conftest$ac_exeext conftest.$ac_ext
25520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25521 /* end confdefs.h. */
25524 /* pthread test headers */
25525 #include <pthread.h>
25526 #if HAVE_PTHREADS < 7
25530 #define NULL (void*)0
25533 static void *task(p)
25536 return (void *) (p == NULL);
25540 int main(argc, argv)
25545 /* pthread test function */
25546 #ifndef PTHREAD_CREATE_DETACHED
25547 #define PTHREAD_CREATE_DETACHED 1
25551 int detach = PTHREAD_CREATE_DETACHED;
25553 #if HAVE_PTHREADS > 4
25554 /* Final pthreads */
25555 pthread_attr_t attr;
25557 status = pthread_attr_init(&attr);
25558 if( status ) return status;
25560 #if HAVE_PTHREADS < 7
25561 status = pthread_attr_setdetachstate(&attr, &detach);
25562 if( status < 0 ) status = errno;
25564 status = pthread_attr_setdetachstate(&attr, detach);
25566 if( status ) return status;
25567 status = pthread_create( &t, &attr, task, NULL );
25568 #if HAVE_PTHREADS < 7
25569 if( status < 0 ) status = errno;
25571 if( status ) return status;
25573 /* Draft 4 pthreads */
25574 status = pthread_create( &t, pthread_attr_default, task, NULL );
25575 if( status ) return errno;
25577 /* give thread a chance to complete */
25578 /* it should remain joinable and hence detachable */
25581 status = pthread_detach( &t );
25582 if( status ) return errno;
25585 #ifdef HAVE_LINUX_THREADS
25586 pthread_kill_other_threads_np();
25594 if ac_fn_c_try_run "$LINENO"; then :
25595 ol_cv_pthread_lpthreads_lmach_lexc=yes
25597 ol_cv_pthread_lpthreads_lmach_lexc=no
25599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25600 conftest.$ac_objext conftest.beam conftest.$ac_ext
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
25609 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
25611 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
25612 ol_link_pthreads="-lpthreads -lmach -lexc"
25613 ol_link_threads=posix
25617 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
25618 if test "$ol_link_threads" = no ; then
25619 # try -lpthreads -lexc
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
25621 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
25622 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
25623 $as_echo_n "(cached) " >&6
25628 LIBS="-lpthreads -lexc $LIBS"
25630 if test "$cross_compiling" = yes; then :
25631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25632 /* end confdefs.h. */
25634 /* pthread test headers */
25635 #include <pthread.h>
25636 #if HAVE_PTHREADS < 7
25640 #define NULL (void*)0
25643 static void *task(p)
25646 return (void *) (p == NULL);
25653 /* pthread test function */
25654 #ifndef PTHREAD_CREATE_DETACHED
25655 #define PTHREAD_CREATE_DETACHED 1
25659 int detach = PTHREAD_CREATE_DETACHED;
25661 #if HAVE_PTHREADS > 4
25662 /* Final pthreads */
25663 pthread_attr_t attr;
25665 status = pthread_attr_init(&attr);
25666 if( status ) return status;
25668 #if HAVE_PTHREADS < 7
25669 status = pthread_attr_setdetachstate(&attr, &detach);
25670 if( status < 0 ) status = errno;
25672 status = pthread_attr_setdetachstate(&attr, detach);
25674 if( status ) return status;
25675 status = pthread_create( &t, &attr, task, NULL );
25676 #if HAVE_PTHREADS < 7
25677 if( status < 0 ) status = errno;
25679 if( status ) return status;
25681 /* Draft 4 pthreads */
25682 status = pthread_create( &t, pthread_attr_default, task, NULL );
25683 if( status ) return errno;
25685 /* give thread a chance to complete */
25686 /* it should remain joinable and hence detachable */
25689 status = pthread_detach( &t );
25690 if( status ) return errno;
25693 #ifdef HAVE_LINUX_THREADS
25694 pthread_kill_other_threads_np();
25703 if ac_fn_c_try_link "$LINENO"; then :
25704 ol_cv_pthread_lpthreads_lexc=yes
25706 ol_cv_pthread_lpthreads_lexc=no
25708 rm -f core conftest.err conftest.$ac_objext \
25709 conftest$ac_exeext conftest.$ac_ext
25711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25712 /* end confdefs.h. */
25715 /* pthread test headers */
25716 #include <pthread.h>
25717 #if HAVE_PTHREADS < 7
25721 #define NULL (void*)0
25724 static void *task(p)
25727 return (void *) (p == NULL);
25731 int main(argc, argv)
25736 /* pthread test function */
25737 #ifndef PTHREAD_CREATE_DETACHED
25738 #define PTHREAD_CREATE_DETACHED 1
25742 int detach = PTHREAD_CREATE_DETACHED;
25744 #if HAVE_PTHREADS > 4
25745 /* Final pthreads */
25746 pthread_attr_t attr;
25748 status = pthread_attr_init(&attr);
25749 if( status ) return status;
25751 #if HAVE_PTHREADS < 7
25752 status = pthread_attr_setdetachstate(&attr, &detach);
25753 if( status < 0 ) status = errno;
25755 status = pthread_attr_setdetachstate(&attr, detach);
25757 if( status ) return status;
25758 status = pthread_create( &t, &attr, task, NULL );
25759 #if HAVE_PTHREADS < 7
25760 if( status < 0 ) status = errno;
25762 if( status ) return status;
25764 /* Draft 4 pthreads */
25765 status = pthread_create( &t, pthread_attr_default, task, NULL );
25766 if( status ) return errno;
25768 /* give thread a chance to complete */
25769 /* it should remain joinable and hence detachable */
25772 status = pthread_detach( &t );
25773 if( status ) return errno;
25776 #ifdef HAVE_LINUX_THREADS
25777 pthread_kill_other_threads_np();
25785 if ac_fn_c_try_run "$LINENO"; then :
25786 ol_cv_pthread_lpthreads_lexc=yes
25788 ol_cv_pthread_lpthreads_lexc=no
25790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25791 conftest.$ac_objext conftest.beam conftest.$ac_ext
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
25800 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
25802 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
25803 ol_link_pthreads="-lpthreads -lexc"
25804 ol_link_threads=posix
25809 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
25810 if test "$ol_link_threads" = no ; then
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
25813 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
25814 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
25815 $as_echo_n "(cached) " >&6
25820 LIBS="-lpthreads $LIBS"
25822 if test "$cross_compiling" = yes; then :
25823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25824 /* end confdefs.h. */
25826 /* pthread test headers */
25827 #include <pthread.h>
25828 #if HAVE_PTHREADS < 7
25832 #define NULL (void*)0
25835 static void *task(p)
25838 return (void *) (p == NULL);
25845 /* pthread test function */
25846 #ifndef PTHREAD_CREATE_DETACHED
25847 #define PTHREAD_CREATE_DETACHED 1
25851 int detach = PTHREAD_CREATE_DETACHED;
25853 #if HAVE_PTHREADS > 4
25854 /* Final pthreads */
25855 pthread_attr_t attr;
25857 status = pthread_attr_init(&attr);
25858 if( status ) return status;
25860 #if HAVE_PTHREADS < 7
25861 status = pthread_attr_setdetachstate(&attr, &detach);
25862 if( status < 0 ) status = errno;
25864 status = pthread_attr_setdetachstate(&attr, detach);
25866 if( status ) return status;
25867 status = pthread_create( &t, &attr, task, NULL );
25868 #if HAVE_PTHREADS < 7
25869 if( status < 0 ) status = errno;
25871 if( status ) return status;
25873 /* Draft 4 pthreads */
25874 status = pthread_create( &t, pthread_attr_default, task, NULL );
25875 if( status ) return errno;
25877 /* give thread a chance to complete */
25878 /* it should remain joinable and hence detachable */
25881 status = pthread_detach( &t );
25882 if( status ) return errno;
25885 #ifdef HAVE_LINUX_THREADS
25886 pthread_kill_other_threads_np();
25895 if ac_fn_c_try_link "$LINENO"; then :
25896 ol_cv_pthread_lib_lpthreads=yes
25898 ol_cv_pthread_lib_lpthreads=no
25900 rm -f core conftest.err conftest.$ac_objext \
25901 conftest$ac_exeext conftest.$ac_ext
25903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25904 /* end confdefs.h. */
25907 /* pthread test headers */
25908 #include <pthread.h>
25909 #if HAVE_PTHREADS < 7
25913 #define NULL (void*)0
25916 static void *task(p)
25919 return (void *) (p == NULL);
25923 int main(argc, argv)
25928 /* pthread test function */
25929 #ifndef PTHREAD_CREATE_DETACHED
25930 #define PTHREAD_CREATE_DETACHED 1
25934 int detach = PTHREAD_CREATE_DETACHED;
25936 #if HAVE_PTHREADS > 4
25937 /* Final pthreads */
25938 pthread_attr_t attr;
25940 status = pthread_attr_init(&attr);
25941 if( status ) return status;
25943 #if HAVE_PTHREADS < 7
25944 status = pthread_attr_setdetachstate(&attr, &detach);
25945 if( status < 0 ) status = errno;
25947 status = pthread_attr_setdetachstate(&attr, detach);
25949 if( status ) return status;
25950 status = pthread_create( &t, &attr, task, NULL );
25951 #if HAVE_PTHREADS < 7
25952 if( status < 0 ) status = errno;
25954 if( status ) return status;
25956 /* Draft 4 pthreads */
25957 status = pthread_create( &t, pthread_attr_default, task, NULL );
25958 if( status ) return errno;
25960 /* give thread a chance to complete */
25961 /* it should remain joinable and hence detachable */
25964 status = pthread_detach( &t );
25965 if( status ) return errno;
25968 #ifdef HAVE_LINUX_THREADS
25969 pthread_kill_other_threads_np();
25977 if ac_fn_c_try_run "$LINENO"; then :
25978 ol_cv_pthread_lib_lpthreads=yes
25980 ol_cv_pthread_lib_lpthreads=no
25982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25983 conftest.$ac_objext conftest.beam conftest.$ac_ext
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
25992 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
25994 if test $ol_cv_pthread_lib_lpthreads = yes ; then
25995 ol_link_pthreads="-lpthreads"
25996 ol_link_threads=posix
26001 if test $ol_link_threads != no ; then
26002 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
26004 save_CPPFLAGS="$CPPFLAGS"
26006 LIBS="$LTHREAD_LIBS $LIBS"
26008 for ac_func in sched_yield pthread_yield thr_yield
26010 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26011 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26012 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26013 cat >>confdefs.h <<_ACEOF
26014 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26021 if test $ac_cv_func_sched_yield = no &&
26022 test $ac_cv_func_pthread_yield = no &&
26023 test $ac_cv_func_thr_yield = no ; then
26024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
26025 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
26026 if ${ac_cv_lib_rt_sched_yield+:} false; then :
26027 $as_echo_n "(cached) " >&6
26029 ac_check_lib_save_LIBS=$LIBS
26031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26032 /* end confdefs.h. */
26034 /* Override any GCC internal prototype to avoid an error.
26035 Use char because int might match the return type of a GCC
26036 builtin and then its argument prototype would still apply. */
26040 char sched_yield ();
26044 return sched_yield ();
26049 if ac_fn_c_try_link "$LINENO"; then :
26050 ac_cv_lib_rt_sched_yield=yes
26052 ac_cv_lib_rt_sched_yield=no
26054 rm -f core conftest.err conftest.$ac_objext \
26055 conftest$ac_exeext conftest.$ac_ext
26056 LIBS=$ac_check_lib_save_LIBS
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
26059 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
26060 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
26061 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
26063 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
26065 ac_cv_func_sched_yield=yes
26067 ac_cv_func_sched_yield=no
26071 if test $ac_cv_func_sched_yield = no &&
26072 test $ac_cv_func_pthread_yield = no &&
26073 test "$ac_cv_func_thr_yield" = no ; then
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
26075 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
26078 for ac_func in pthread_kill
26080 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
26081 if test "x$ac_cv_func_pthread_kill" = xyes; then :
26082 cat >>confdefs.h <<_ACEOF
26083 #define HAVE_PTHREAD_KILL 1
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
26091 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
26092 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
26093 $as_echo_n "(cached) " >&6
26096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26097 /* end confdefs.h. */
26099 #include <pthread.h>
26100 pthread_rwlock_t rwlock;
26105 pthread_rwlock_destroy(&rwlock);
26110 if ac_fn_c_try_link "$LINENO"; then :
26111 ol_cv_func_pthread_rwlock_destroy=yes
26113 ol_cv_func_pthread_rwlock_destroy=no
26115 rm -f core conftest.err conftest.$ac_objext \
26116 conftest$ac_exeext conftest.$ac_ext
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
26120 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
26121 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
26123 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
26128 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
26129 if ${ol_cv_func_pthread_detach+:} false; then :
26130 $as_echo_n "(cached) " >&6
26133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26134 /* end confdefs.h. */
26136 #include <pthread.h>
26138 #define NULL (void*)0
26144 pthread_detach(NULL);
26149 if ac_fn_c_try_link "$LINENO"; then :
26150 ol_cv_func_pthread_detach=yes
26152 ol_cv_func_pthread_detach=no
26154 rm -f core conftest.err conftest.$ac_objext \
26155 conftest$ac_exeext conftest.$ac_ext
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
26159 $as_echo "$ol_cv_func_pthread_detach" >&6; }
26161 if test $ol_cv_func_pthread_detach = no ; then
26162 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
26166 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
26170 pthread_setconcurrency \
26171 pthread_getconcurrency \
26172 thr_setconcurrency \
26173 thr_getconcurrency \
26176 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26177 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26178 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26179 cat >>confdefs.h <<_ACEOF
26180 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26188 for ac_func in pthread_kill_other_threads_np
26190 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
26191 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
26192 cat >>confdefs.h <<_ACEOF
26193 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
26200 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
26201 if ${ol_cv_sys_linux_threads+:} false; then :
26202 $as_echo_n "(cached) " >&6
26204 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
26207 $as_echo "$ol_cv_sys_linux_threads" >&6; }
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
26213 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
26214 if ${ol_cv_linux_threads+:} false; then :
26215 $as_echo_n "(cached) " >&6
26218 if test $ol_cv_header_linux_threads = yes &&
26219 test $ol_cv_sys_linux_threads = yes; then
26220 ol_cv_linux_threads=yes
26221 elif test $ol_cv_header_linux_threads = no &&
26222 test $ol_cv_sys_linux_threads = no; then
26223 ol_cv_linux_threads=no
26225 ol_cv_linux_threads=error
26229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
26230 $as_echo "$ol_cv_linux_threads" >&6; }
26233 if test $ol_cv_linux_threads = error; then
26234 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
26238 $as_echo_n "checking if pthread_create() works... " >&6; }
26239 if ${ol_cv_pthread_create_works+:} false; then :
26240 $as_echo_n "(cached) " >&6
26243 if test "$cross_compiling" = yes; then :
26244 ol_cv_pthread_create_works=yes
26246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26247 /* end confdefs.h. */
26250 /* pthread test headers */
26251 #include <pthread.h>
26252 #if HAVE_PTHREADS < 7
26256 #define NULL (void*)0
26259 static void *task(p)
26262 return (void *) (p == NULL);
26266 int main(argc, argv)
26271 /* pthread test function */
26272 #ifndef PTHREAD_CREATE_DETACHED
26273 #define PTHREAD_CREATE_DETACHED 1
26277 int detach = PTHREAD_CREATE_DETACHED;
26279 #if HAVE_PTHREADS > 4
26280 /* Final pthreads */
26281 pthread_attr_t attr;
26283 status = pthread_attr_init(&attr);
26284 if( status ) return status;
26286 #if HAVE_PTHREADS < 7
26287 status = pthread_attr_setdetachstate(&attr, &detach);
26288 if( status < 0 ) status = errno;
26290 status = pthread_attr_setdetachstate(&attr, detach);
26292 if( status ) return status;
26293 status = pthread_create( &t, &attr, task, NULL );
26294 #if HAVE_PTHREADS < 7
26295 if( status < 0 ) status = errno;
26297 if( status ) return status;
26299 /* Draft 4 pthreads */
26300 status = pthread_create( &t, pthread_attr_default, task, NULL );
26301 if( status ) return errno;
26303 /* give thread a chance to complete */
26304 /* it should remain joinable and hence detachable */
26307 status = pthread_detach( &t );
26308 if( status ) return errno;
26311 #ifdef HAVE_LINUX_THREADS
26312 pthread_kill_other_threads_np();
26320 if ac_fn_c_try_run "$LINENO"; then :
26321 ol_cv_pthread_create_works=yes
26323 ol_cv_pthread_create_works=no
26325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26326 conftest.$ac_objext conftest.beam conftest.$ac_ext
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
26331 $as_echo "$ol_cv_pthread_create_works" >&6; }
26333 if test $ol_cv_pthread_create_works = no ; then
26334 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
26337 ol_replace_broken_yield=no
26339 if test $ol_replace_broken_yield = yes ; then
26341 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
26345 if test x$ol_with_yielding_select = xauto ; then
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
26347 $as_echo_n "checking if select yields when using pthreads... " >&6; }
26348 if ${ol_cv_pthread_select_yields+:} false; then :
26349 $as_echo_n "(cached) " >&6
26352 if test "$cross_compiling" = yes; then :
26353 ol_cv_pthread_select_yields=cross
26355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26356 /* end confdefs.h. */
26358 #include <sys/types.h>
26359 #include <sys/time.h>
26360 #include <unistd.h>
26361 #include <pthread.h>
26363 #define NULL (void*) 0
26366 static int fildes[2];
26368 static void *task(p)
26380 FD_SET(fildes[0], &rfds);
26382 /* we're not interested in any fds */
26383 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
26390 exit(0); /* if we exit here, the select blocked the whole process */
26393 int main(argc, argv)
26399 /* create a pipe to select */
26400 if(pipe(&fildes[0])) {
26405 #ifdef HAVE_PTHREAD_SETCONCURRENCY
26406 (void) pthread_setconcurrency(2);
26408 #ifdef HAVE_THR_SETCONCURRENCY
26409 /* Set Solaris LWP concurrency to 2 */
26410 thr_setconcurrency(2);
26414 #if HAVE_PTHREADS < 6
26415 pthread_create(&t, pthread_attr_default, task, NULL);
26417 pthread_create(&t, NULL, task, NULL);
26420 /* make sure task runs first */
26421 #ifdef HAVE_THR_YIELD
26423 #elif defined( HAVE_SCHED_YIELD )
26425 #elif defined( HAVE_PTHREAD_YIELD )
26432 if ac_fn_c_try_run "$LINENO"; then :
26433 ol_cv_pthread_select_yields=no
26435 ol_cv_pthread_select_yields=yes
26437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26438 conftest.$ac_objext conftest.beam conftest.$ac_ext
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
26443 $as_echo "$ol_cv_pthread_select_yields" >&6; }
26445 if test $ol_cv_pthread_select_yields = cross ; then
26446 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
26449 if test $ol_cv_pthread_select_yields = yes ; then
26450 ol_with_yielding_select=yes
26454 CPPFLAGS="$save_CPPFLAGS"
26457 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
26461 if test $ol_with_threads = posix ; then
26462 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
26467 case $ol_with_threads in auto | yes | mach)
26469 for ac_header in mach/cthreads.h cthreads.h
26471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26472 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26473 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26474 cat >>confdefs.h <<_ACEOF
26475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26482 if test $ac_cv_header_mach_cthreads_h = yes ; then
26483 ol_with_threads=found
26485 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
26486 if test "x$ac_cv_func_cthread_fork" = xyes; then :
26487 ol_link_threads=yes
26491 if test $ol_link_threads = no ; then
26492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
26493 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
26494 if ${ol_cv_cthread_all_load+:} false; then :
26495 $as_echo_n "(cached) " >&6
26499 LIBS="-all_load $LIBS"
26500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26501 /* end confdefs.h. */
26502 #include <mach/cthreads.h>
26507 cthread_fork((void *)0, (void *)0);
26513 if ac_fn_c_try_link "$LINENO"; then :
26514 ol_cv_cthread_all_load=yes
26516 ol_cv_cthread_all_load=no
26518 rm -f core conftest.err conftest.$ac_objext \
26519 conftest$ac_exeext conftest.$ac_ext
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
26524 $as_echo "$ol_cv_cthread_all_load" >&6; }
26526 if test $ol_cv_cthread_all_load = yes ; then
26527 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
26528 ol_link_threads=mach
26529 ol_with_threads=found
26533 elif test $ac_cv_header_cthreads_h = yes ; then
26535 ol_with_threads=found
26538 LIBS="$LIBS -lthreads"
26539 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
26540 if test "x$ac_cv_func_cthread_fork" = xyes; then :
26541 ol_link_threads=yes
26546 if test $ol_link_threads = yes ; then
26547 LTHREAD_LIBS="-lthreads"
26548 ol_link_threads=mach
26549 ol_with_threads=found
26551 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
26554 elif test $ol_with_threads = mach ; then
26555 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
26558 if test $ol_link_threads = mach ; then
26560 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
26562 elif test $ol_with_threads = found ; then
26563 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
26568 case $ol_with_threads in auto | yes | pth)
26570 for ac_header in pth.h
26572 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
26573 if test "x$ac_cv_header_pth_h" = xyes; then :
26574 cat >>confdefs.h <<_ACEOF
26575 #define HAVE_PTH_H 1
26583 if test $ac_cv_header_pth_h = yes ; then
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
26585 $as_echo_n "checking for pth_version in -lpth... " >&6; }
26586 if ${ac_cv_lib_pth_pth_version+:} false; then :
26587 $as_echo_n "(cached) " >&6
26589 ac_check_lib_save_LIBS=$LIBS
26591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26592 /* end confdefs.h. */
26594 /* Override any GCC internal prototype to avoid an error.
26595 Use char because int might match the return type of a GCC
26596 builtin and then its argument prototype would still apply. */
26600 char pth_version ();
26604 return pth_version ();
26609 if ac_fn_c_try_link "$LINENO"; then :
26610 ac_cv_lib_pth_pth_version=yes
26612 ac_cv_lib_pth_pth_version=no
26614 rm -f core conftest.err conftest.$ac_objext \
26615 conftest$ac_exeext conftest.$ac_ext
26616 LIBS=$ac_check_lib_save_LIBS
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
26619 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
26620 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
26627 if test $have_pth = yes ; then
26629 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
26631 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26632 ol_link_threads=pth
26633 ol_with_threads=found
26635 if test x$ol_with_yielding_select = xauto ; then
26636 ol_with_yielding_select=yes
26643 case $ol_with_threads in auto | yes | lwp)
26645 for ac_header in thread.h synch.h
26647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26648 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26649 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26650 cat >>confdefs.h <<_ACEOF
26651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26658 if test $ac_cv_header_thread_h = yes &&
26659 test $ac_cv_header_synch_h = yes ; then
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
26661 $as_echo_n "checking for thr_create in -lthread... " >&6; }
26662 if ${ac_cv_lib_thread_thr_create+:} false; then :
26663 $as_echo_n "(cached) " >&6
26665 ac_check_lib_save_LIBS=$LIBS
26666 LIBS="-lthread $LIBS"
26667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26668 /* end confdefs.h. */
26670 /* Override any GCC internal prototype to avoid an error.
26671 Use char because int might match the return type of a GCC
26672 builtin and then its argument prototype would still apply. */
26676 char thr_create ();
26680 return thr_create ();
26685 if ac_fn_c_try_link "$LINENO"; then :
26686 ac_cv_lib_thread_thr_create=yes
26688 ac_cv_lib_thread_thr_create=no
26690 rm -f core conftest.err conftest.$ac_objext \
26691 conftest$ac_exeext conftest.$ac_ext
26692 LIBS=$ac_check_lib_save_LIBS
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
26695 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
26696 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
26703 if test $have_thr = yes ; then
26705 $as_echo "#define HAVE_THR 1" >>confdefs.h
26707 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26708 ol_link_threads=thr
26710 if test x$ol_with_yielding_select = xauto ; then
26711 ol_with_yielding_select=yes
26715 thr_setconcurrency \
26716 thr_getconcurrency \
26719 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26720 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26721 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26722 cat >>confdefs.h <<_ACEOF
26723 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26732 for ac_header in lwp/lwp.h
26734 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
26735 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
26736 cat >>confdefs.h <<_ACEOF
26737 #define HAVE_LWP_LWP_H 1
26744 if test $ac_cv_header_lwp_lwp_h = yes ; then
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
26746 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
26747 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
26748 $as_echo_n "(cached) " >&6
26750 ac_check_lib_save_LIBS=$LIBS
26752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26753 /* end confdefs.h. */
26755 /* Override any GCC internal prototype to avoid an error.
26756 Use char because int might match the return type of a GCC
26757 builtin and then its argument prototype would still apply. */
26761 char lwp_create ();
26765 return lwp_create ();
26770 if ac_fn_c_try_link "$LINENO"; then :
26771 ac_cv_lib_lwp_lwp_create=yes
26773 ac_cv_lib_lwp_lwp_create=no
26775 rm -f core conftest.err conftest.$ac_objext \
26776 conftest$ac_exeext conftest.$ac_ext
26777 LIBS=$ac_check_lib_save_LIBS
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
26780 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
26781 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
26788 if test $have_lwp = yes ; then
26790 $as_echo "#define HAVE_LWP 1" >>confdefs.h
26792 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26793 ol_link_threads=lwp
26795 if test x$ol_with_yielding_select = xauto ; then
26796 ol_with_yielding_select=no
26803 if test $ol_with_yielding_select = yes ; then
26805 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
26809 if test $ol_with_threads = manual ; then
26810 ol_link_threads=yes
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
26813 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26815 for ac_header in pthread.h sched.h
26817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26818 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26819 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26820 cat >>confdefs.h <<_ACEOF
26821 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26828 for ac_func in sched_yield pthread_yield
26830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26831 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26832 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26833 cat >>confdefs.h <<_ACEOF
26834 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
26842 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
26843 if ${ol_cv_header_linux_threads+:} false; then :
26844 $as_echo_n "(cached) " >&6
26846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26847 /* end confdefs.h. */
26848 #include <pthread.h>
26850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26851 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
26852 ol_cv_header_linux_threads=yes
26854 ol_cv_header_linux_threads=no
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
26861 $as_echo "$ol_cv_header_linux_threads" >&6; }
26862 if test $ol_cv_header_linux_threads = yes; then
26864 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
26869 for ac_header in mach/cthreads.h
26871 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
26872 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
26873 cat >>confdefs.h <<_ACEOF
26874 #define HAVE_MACH_CTHREADS_H 1
26881 for ac_header in lwp/lwp.h
26883 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
26884 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
26885 cat >>confdefs.h <<_ACEOF
26886 #define HAVE_LWP_LWP_H 1
26893 for ac_header in thread.h synch.h
26895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26896 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26897 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26898 cat >>confdefs.h <<_ACEOF
26899 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26908 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26910 $as_echo "#define REENTRANT 1" >>confdefs.h
26913 $as_echo "#define _REENTRANT 1" >>confdefs.h
26916 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
26919 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
26922 $as_echo "#define THREADSAFE 1" >>confdefs.h
26925 $as_echo "#define _THREADSAFE 1" >>confdefs.h
26928 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
26931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
26932 $as_echo_n "checking for thread specific errno... " >&6; }
26933 if ${ol_cv_errno_thread_specific+:} false; then :
26934 $as_echo_n "(cached) " >&6
26937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26938 /* end confdefs.h. */
26948 if ac_fn_c_try_link "$LINENO"; then :
26949 ol_cv_errno_thread_specific=yes
26951 ol_cv_errno_thread_specific=no
26953 rm -f core conftest.err conftest.$ac_objext \
26954 conftest$ac_exeext conftest.$ac_ext
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
26958 $as_echo "$ol_cv_errno_thread_specific" >&6; }
26960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
26961 $as_echo_n "checking for thread specific h_errno... " >&6; }
26962 if ${ol_cv_h_errno_thread_specific+:} false; then :
26963 $as_echo_n "(cached) " >&6
26966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26967 /* end confdefs.h. */
26977 if ac_fn_c_try_link "$LINENO"; then :
26978 ol_cv_h_errno_thread_specific=yes
26980 ol_cv_h_errno_thread_specific=no
26982 rm -f core conftest.err conftest.$ac_objext \
26983 conftest$ac_exeext conftest.$ac_ext
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
26987 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
26989 if test $ol_cv_errno_thread_specific != yes ||
26990 test $ol_cv_h_errno_thread_specific != yes ; then
26991 LIBS="$LTHREAD_LIBS $LIBS"
26997 if test $ol_link_threads = no ; then
26998 if test $ol_with_threads = yes ; then
26999 as_fn_error $? "no suitable thread support" "$LINENO" 5
27002 if test $ol_with_threads = auto ; then
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
27004 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27009 $as_echo "#define NO_THREADS 1" >>confdefs.h
27017 if test $ol_link_threads != no ; then
27019 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
27023 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
27024 case "$ol_with_threads" in
27030 ol_found_pthreads=yes
27035 ac_cpp='$CPP $CPPFLAGS'
27036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27041 case "$ol_found_pthreads" in
27044 LIBS="$LTHREAD_LIBS $LIBS"
27045 saved_CFLAGS="$CFLAGS"
27046 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
27047 for ac_func in sem_timedwait
27049 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
27050 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
27051 cat >>confdefs.h <<_ACEOF
27052 #define HAVE_SEM_TIMEDWAIT 1
27059 { saved_LIBS=; unset saved_LIBS;}
27060 CFLAGS="$saved_CFLAGS"
27061 { saved_CFLAGS=; unset saved_CFLAGS;}
27062 case "$ac_cv_func_sem_timedwait" in
27064 PTHREAD_LIBS="$LTHREAD_LIBS"
27066 # Bug 2332: With GCC we need to force a reference to libgcc_s
27067 # (if libgcc_s exists) or the combination of
27068 # threads + setuid + mlockall does not work on linux because
27069 # thread cancellation fails to load libgcc_s with dlopen().
27070 # We have to pass this all as linker options to avoid argument
27071 # reordering by libtool.
27072 case "$GCC$with_gnu_ld" in
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lgcc_s" >&5
27075 $as_echo_n "checking for exit in -lgcc_s... " >&6; }
27076 if ${ac_cv_lib_gcc_s_exit+:} false; then :
27077 $as_echo_n "(cached) " >&6
27079 ac_check_lib_save_LIBS=$LIBS
27080 LIBS="-lgcc_s $LIBS"
27081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27082 /* end confdefs.h. */
27084 /* Override any GCC internal prototype to avoid an error.
27085 Use char because int might match the return type of a GCC
27086 builtin and then its argument prototype would still apply. */
27099 if ac_fn_c_try_link "$LINENO"; then :
27100 ac_cv_lib_gcc_s_exit=yes
27102 ac_cv_lib_gcc_s_exit=no
27104 rm -f core conftest.err conftest.$ac_objext \
27105 conftest$ac_exeext conftest.$ac_ext
27106 LIBS=$ac_check_lib_save_LIBS
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_s_exit" >&5
27109 $as_echo "$ac_cv_lib_gcc_s_exit" >&6; }
27110 if test "x$ac_cv_lib_gcc_s_exit" = xyes; then :
27111 PTHREAD_LIBS="$LTHREAD_LIBS -Wl,--no-as-needed,-lgcc_s,--as-needed"
27120 case "$have_pthreads" in
27122 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
27124 LIBS="$LTHREAD_LIBS $LIBS"
27125 saved_CFLAGS="$CFLAGS"
27126 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
27127 # The cast to long int works around a bug in the HP C Compiler
27128 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27129 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27130 # This bug is HP SR number 8606223364.
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
27132 $as_echo_n "checking size of pthread_t... " >&6; }
27133 if ${ac_cv_sizeof_pthread_t+:} false; then :
27134 $as_echo_n "(cached) " >&6
27136 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
27137 $ac_includes_default
27138 #include <pthread.h>
27144 if test "$ac_cv_type_pthread_t" = yes; then
27145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27147 as_fn_error 77 "cannot compute sizeof (pthread_t)
27148 See \`config.log' for more details" "$LINENO" 5; }
27150 ac_cv_sizeof_pthread_t=0
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
27156 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
27160 cat >>confdefs.h <<_ACEOF
27161 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
27165 LIBISC_PTHREADS_NOTHREADS=pthreads
27167 $as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
27170 # We'd like to use sigwait() too
27172 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
27173 if test "x$ac_cv_func_sigwait" = xyes; then :
27176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
27177 $as_echo_n "checking for sigwait in -lc... " >&6; }
27178 if ${ac_cv_lib_c_sigwait+:} false; then :
27179 $as_echo_n "(cached) " >&6
27181 ac_check_lib_save_LIBS=$LIBS
27183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27184 /* end confdefs.h. */
27186 /* Override any GCC internal prototype to avoid an error.
27187 Use char because int might match the return type of a GCC
27188 builtin and then its argument prototype would still apply. */
27201 if ac_fn_c_try_link "$LINENO"; then :
27202 ac_cv_lib_c_sigwait=yes
27204 ac_cv_lib_c_sigwait=no
27206 rm -f core conftest.err conftest.$ac_objext \
27207 conftest$ac_exeext conftest.$ac_ext
27208 LIBS=$ac_check_lib_save_LIBS
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
27211 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
27212 if test "x$ac_cv_lib_c_sigwait" = xyes; then :
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
27216 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
27217 if ${ac_cv_lib_pthread_sigwait+:} false; then :
27218 $as_echo_n "(cached) " >&6
27220 ac_check_lib_save_LIBS=$LIBS
27221 LIBS="-lpthread $LIBS"
27222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27223 /* end confdefs.h. */
27225 /* Override any GCC internal prototype to avoid an error.
27226 Use char because int might match the return type of a GCC
27227 builtin and then its argument prototype would still apply. */
27240 if ac_fn_c_try_link "$LINENO"; then :
27241 ac_cv_lib_pthread_sigwait=yes
27243 ac_cv_lib_pthread_sigwait=no
27245 rm -f core conftest.err conftest.$ac_objext \
27246 conftest$ac_exeext conftest.$ac_ext
27247 LIBS=$ac_check_lib_save_LIBS
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
27250 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
27251 if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
27255 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
27256 if ${ac_cv_lib_pthread__Psigwait+:} false; then :
27257 $as_echo_n "(cached) " >&6
27259 ac_check_lib_save_LIBS=$LIBS
27260 LIBS="-lpthread $LIBS"
27261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27262 /* end confdefs.h. */
27264 /* Override any GCC internal prototype to avoid an error.
27265 Use char because int might match the return type of a GCC
27266 builtin and then its argument prototype would still apply. */
27274 return _Psigwait ();
27279 if ac_fn_c_try_link "$LINENO"; then :
27280 ac_cv_lib_pthread__Psigwait=yes
27282 ac_cv_lib_pthread__Psigwait=no
27284 rm -f core conftest.err conftest.$ac_objext \
27285 conftest$ac_exeext conftest.$ac_ext
27286 LIBS=$ac_check_lib_save_LIBS
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
27289 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
27290 if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
27306 case "$host:$have_sigwait" in
27308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
27309 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
27310 if ${ac_cv_lib_c_r_sigwait+:} false; then :
27311 $as_echo_n "(cached) " >&6
27313 ac_check_lib_save_LIBS=$LIBS
27315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27316 /* end confdefs.h. */
27318 /* Override any GCC internal prototype to avoid an error.
27319 Use char because int might match the return type of a GCC
27320 builtin and then its argument prototype would still apply. */
27333 if ac_fn_c_try_link "$LINENO"; then :
27334 ac_cv_lib_c_r_sigwait=yes
27336 ac_cv_lib_c_r_sigwait=no
27338 rm -f core conftest.err conftest.$ac_objext \
27339 conftest$ac_exeext conftest.$ac_ext
27340 LIBS=$ac_check_lib_save_LIBS
27342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
27343 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
27344 if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
27350 case "$have_sigwait" in
27352 ac_cv_func_sigwait=yes
27354 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
27358 for ac_func in pthread_attr_getstacksize
27360 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
27361 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
27362 cat >>confdefs.h <<_ACEOF
27363 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
27369 for ac_func in pthread_attr_setstacksize sysconf
27371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27372 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27373 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27374 cat >>confdefs.h <<_ACEOF
27375 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27383 *-freebsd5.[012]|*-freebsd5.[012].*)
27385 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
27387 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
27390 *-bsdi3.*|*-bsdi4.0*)
27392 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
27397 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
27401 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
27403 for ac_func in pthread_setconcurrency
27405 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
27406 if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
27407 cat >>confdefs.h <<_ACEOF
27408 #define HAVE_PTHREAD_SETCONCURRENCY 1
27414 case "$ac_cv_func_pthread_setconcurrency" in
27417 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
27421 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
27423 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
27427 hack_shutup_pthreadonceinit=no
27430 hack_shutup_pthreadonceinit=yes
27433 hack_shutup_pthreadonceinit=yes
27436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
27437 $as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
27438 if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
27439 $as_echo_n "(cached) " >&6
27441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27442 /* end confdefs.h. */
27444 #include <pthread.h>
27450 static pthread_once_t once_test =
27458 if ac_fn_c_try_compile "$LINENO"; then :
27459 ntp_cv_braces_around_pthread_once_init=no
27461 ntp_cv_braces_around_pthread_once_init=yes
27464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
27468 $as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
27469 case "$ntp_cv_braces_around_pthread_once_init" in
27471 hack_shutup_pthreadonceinit=yes
27475 case "$hack_shutup_pthreadonceinit" in
27478 $as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
27482 { saved_LIBS=; unset saved_LIBS;}
27483 CFLAGS="$saved_CFLAGS"
27484 { saved_CFLAGS=; unset saved_CFLAGS;}
27487 LIBISC_PTHREADS_NOTHREADS=nothreads
27491 if test "$have_pthreads" != "no"; then
27505 case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
27507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
27508 $as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
27509 if ${ntp_cv_vsnprintf_percent_m+:} false; then :
27510 $as_echo_n "(cached) " >&6
27512 if test "$cross_compiling" = yes; then :
27513 ntp_cv_vsnprintf_percent_m=no
27516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27517 /* end confdefs.h. */
27519 #include <stdarg.h>
27522 #include <string.h>
27524 int call_vsnprintf(
27531 int call_vsnprintf(
27542 rc = vsnprintf(dst, sz, fmt, ap);
27556 strcpy(sbuf, strerror(ENOENT));
27558 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
27560 return strcmp(sbuf, pbuf);
27567 if ac_fn_c_try_run "$LINENO"; then :
27568 ntp_cv_vsnprintf_percent_m=yes
27570 ntp_cv_vsnprintf_percent_m=no
27572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27573 conftest.$ac_objext conftest.beam conftest.$ac_ext
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
27579 $as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
27580 case "$ntp_cv_vsnprintf_percent_m" in
27583 $as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
27588 for ac_header in sys/clockctl.h
27590 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
27591 if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
27592 cat >>confdefs.h <<_ACEOF
27593 #define HAVE_SYS_CLOCKCTL_H 1
27601 # Check whether --enable-clockctl was given.
27602 if test "${enable_clockctl+set}" = set; then :
27603 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
27605 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
27610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
27611 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
27613 $as_echo "$ntp_use_dev_clockctl" >&6; }
27616 for ac_header in sys/capability.h sys/prctl.h
27618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27619 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27620 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27621 cat >>confdefs.h <<_ACEOF
27622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
27631 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
27633 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
27637 ntp_have_linuxcaps=no
27639 *) ntp_have_linuxcaps=yes
27644 ntp_have_linuxcaps=no
27648 # Check whether --enable-linuxcaps was given.
27649 if test "${enable_linuxcaps+set}" = set; then :
27650 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
27656 $as_echo "$ntp_have_linuxcaps" >&6; }
27658 case "$ntp_have_linuxcaps" in
27661 $as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
27668 for ac_header in priv.h
27670 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
27671 if test "x$ac_cv_header_priv_h" = xyes; then :
27672 cat >>confdefs.h <<_ACEOF
27673 #define HAVE_PRIV_H 1
27681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
27682 $as_echo_n "checking if we have solaris privileges... " >&6; }
27684 case "$ac_cv_header_priv_h" in
27688 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
27689 if test "x$ac_cv_func_setppriv" = xyes; then :
27690 ntp_have_solarisprivs=yes
27692 ntp_have_solarisprivs=no
27700 # Check whether --enable-solarisprivs was given.
27701 if test "${enable_solarisprivs+set}" = set; then :
27702 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
27708 case "$ntp_have_solarisprivs" in
27711 $as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
27716 $as_echo "$ntp_have_solarisprivs" >&6; }
27718 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
27721 $as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
27727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
27728 $as_echo_n "checking for library containing res_9_init... " >&6; }
27729 if ${ac_cv_search_res_9_init+:} false; then :
27730 $as_echo_n "(cached) " >&6
27732 ac_func_search_save_LIBS=$LIBS
27733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27734 /* end confdefs.h. */
27736 /* Override any GCC internal prototype to avoid an error.
27737 Use char because int might match the return type of a GCC
27738 builtin and then its argument prototype would still apply. */
27742 char res_9_init ();
27746 return res_9_init ();
27751 for ac_lib in '' resolv; do
27752 if test -z "$ac_lib"; then
27753 ac_res="none required"
27756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27758 if ac_fn_c_try_link "$LINENO"; then :
27759 ac_cv_search_res_9_init=$ac_res
27761 rm -f core conftest.err conftest.$ac_objext \
27763 if ${ac_cv_search_res_9_init+:} false; then :
27767 if ${ac_cv_search_res_9_init+:} false; then :
27770 ac_cv_search_res_9_init=no
27772 rm conftest.$ac_ext
27773 LIBS=$ac_func_search_save_LIBS
27775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
27776 $as_echo "$ac_cv_search_res_9_init" >&6; }
27777 ac_res=$ac_cv_search_res_9_init
27778 if test "$ac_res" != no; then :
27779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27784 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
27785 $as_echo_n "checking for library containing res_init... " >&6; }
27786 if ${ac_cv_search_res_init+:} false; then :
27787 $as_echo_n "(cached) " >&6
27789 ac_func_search_save_LIBS=$LIBS
27790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27791 /* end confdefs.h. */
27793 /* Override any GCC internal prototype to avoid an error.
27794 Use char because int might match the return type of a GCC
27795 builtin and then its argument prototype would still apply. */
27803 return res_init ();
27808 for ac_lib in '' resolv; do
27809 if test -z "$ac_lib"; then
27810 ac_res="none required"
27813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27815 if ac_fn_c_try_link "$LINENO"; then :
27816 ac_cv_search_res_init=$ac_res
27818 rm -f core conftest.err conftest.$ac_objext \
27820 if ${ac_cv_search_res_init+:} false; then :
27824 if ${ac_cv_search_res_init+:} false; then :
27827 ac_cv_search_res_init=no
27829 rm conftest.$ac_ext
27830 LIBS=$ac_func_search_save_LIBS
27832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
27833 $as_echo "$ac_cv_search_res_init" >&6; }
27834 ac_res=$ac_cv_search_res_init
27835 if test "$ac_res" != no; then :
27836 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27842 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
27844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27845 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
27846 # include <sys/types.h>
27848 #ifdef HAVE_NETINET_IN_H
27849 # include <netinet/in.h> /* inet_ functions / structs */
27851 #ifdef HAVE_ARPA_NAMESER_H
27852 # include <arpa/nameser.h> /* DNS HEADER struct */
27854 #ifdef HAVE_NETDB_H
27855 # include <netdb.h>
27858 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27859 cat >>confdefs.h <<_ACEOF
27860 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27868 #HMS: Why do we do this check so "early"?
27869 for ac_func in res_init
27871 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
27872 if test "x$ac_cv_func_res_init" = xyes; then :
27873 cat >>confdefs.h <<_ACEOF
27874 #define HAVE_RES_INIT 1
27878 for ac_func in __res_init
27880 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
27881 if test "x$ac_cv_func___res_init" = xyes; then :
27882 cat >>confdefs.h <<_ACEOF
27883 #define HAVE___RES_INIT 1
27893 # We also need -lsocket, but we have tested for that already.
27894 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27895 if test "x$ac_cv_func_inet_ntop" = xyes; then :
27899 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
27903 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27904 if test "x$ac_cv_func_inet_pton" = xyes; then :
27908 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
27913 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27914 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27916 cat >>confdefs.h <<_ACEOF
27917 #define HAVE_UINTPTR_T 1
27922 ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
27923 if test "x$ac_cv_type_int32" = xyes; then :
27925 cat >>confdefs.h <<_ACEOF
27926 #define HAVE_INT32 1
27931 ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
27932 if test "x$ac_cv_type_u_int32" = xyes; then :
27934 cat >>confdefs.h <<_ACEOF
27935 #define HAVE_U_INT32 1
27944 case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
27946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
27947 $as_echo_n "checking for int32 with DNS headers included... " >&6; }
27948 if ${ntp_cv_type_int32_with_dns+:} false; then :
27949 $as_echo_n "(cached) " >&6
27951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27952 /* end confdefs.h. */
27954 #ifdef HAVE_ARPA_NAMESER_H
27955 # include <arpa/nameser.h>
27957 #include <resolv.h>
27963 size_t cb = sizeof(int32);
27970 if ac_fn_c_try_compile "$LINENO"; then :
27971 ntp_cv_type_int32_with_dns=yes
27973 ntp_cv_type_int32_with_dns=no
27976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
27980 $as_echo "$ntp_cv_type_int32_with_dns" >&6; }
27981 case "$ntp_cv_type_int32_with_dns" in
27984 $as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
27989 case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
27991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
27992 $as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
27993 if ${ntp_cv_type_u_int32_with_dns+:} false; then :
27994 $as_echo_n "(cached) " >&6
27996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27997 /* end confdefs.h. */
27999 #ifdef HAVE_ARPA_NAMESER_H
28000 # include <arpa/nameser.h>
28002 #include <resolv.h>
28008 size_t cb = sizeof(u_int32);
28015 if ac_fn_c_try_compile "$LINENO"; then :
28016 ntp_cv_type_u_int32_with_dns=yes
28018 ntp_cv_type_u_int32_with_dns=no
28021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
28025 $as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
28026 case "$ntp_cv_type_u_int32_with_dns" in
28029 $as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
28034 for ac_header in sys/timepps.h
28036 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
28037 #ifdef HAVE_SYS_TIME_H
28038 # include <sys/time.h>
28040 #ifdef HAVE_ERRNO_H
28041 # include <errno.h>
28046 if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
28047 cat >>confdefs.h <<_ACEOF
28048 #define HAVE_SYS_TIMEPPS_H 1
28056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
28057 $as_echo_n "checking for struct timespec... " >&6; }
28058 if ${ntp_cv_struct_timespec+:} false; then :
28059 $as_echo_n "(cached) " >&6
28061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28062 /* end confdefs.h. */
28064 #include <sys/time.h>
28065 /* Under SunOS, timespec is in sys/timepps.h,
28066 which needs errno.h and FRAC */
28067 #ifdef HAVE_ERRNO_H
28068 # include <errno.h>
28070 #ifdef HAVE_SYS_TIMEPPS_H
28071 # define FRAC 4294967296
28072 # include <sys/timepps.h>
28086 if ac_fn_c_try_compile "$LINENO"; then :
28087 ntp_cv_struct_timespec=yes
28089 ntp_cv_struct_timespec=no
28092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
28096 $as_echo "$ntp_cv_struct_timespec" >&6; }
28097 case "$ntp_cv_struct_timespec" in
28100 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
28104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
28105 $as_echo_n "checking for struct ntptimeval... " >&6; }
28106 if ${ntp_cv_struct_ntptimeval+:} false; then :
28107 $as_echo_n "(cached) " >&6
28109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28110 /* end confdefs.h. */
28112 #include <sys/time.h>
28113 #include <sys/timex.h>
28119 struct ntptimeval n;
28126 if ac_fn_c_try_compile "$LINENO"; then :
28127 ntp_cv_struct_ntptimeval=yes
28129 ntp_cv_struct_ntptimeval=no
28132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
28136 $as_echo "$ntp_cv_struct_ntptimeval" >&6; }
28137 case "$ntp_cv_struct_ntptimeval" in
28140 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
28144 for ac_header in md5.h
28146 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
28147 #ifdef HAVE_SYS_TYPES_H
28148 # include <sys/types.h>
28153 if test "x$ac_cv_header_md5_h" = xyes; then :
28154 cat >>confdefs.h <<_ACEOF
28155 #define HAVE_MD5_H 1
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
28164 $as_echo_n "checking for library containing MD5Init... " >&6; }
28165 if ${ac_cv_search_MD5Init+:} false; then :
28166 $as_echo_n "(cached) " >&6
28168 ac_func_search_save_LIBS=$LIBS
28169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28170 /* end confdefs.h. */
28172 /* Override any GCC internal prototype to avoid an error.
28173 Use char because int might match the return type of a GCC
28174 builtin and then its argument prototype would still apply. */
28187 for ac_lib in '' md5 md; do
28188 if test -z "$ac_lib"; then
28189 ac_res="none required"
28192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28194 if ac_fn_c_try_link "$LINENO"; then :
28195 ac_cv_search_MD5Init=$ac_res
28197 rm -f core conftest.err conftest.$ac_objext \
28199 if ${ac_cv_search_MD5Init+:} false; then :
28203 if ${ac_cv_search_MD5Init+:} false; then :
28206 ac_cv_search_MD5Init=no
28208 rm conftest.$ac_ext
28209 LIBS=$ac_func_search_save_LIBS
28211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
28212 $as_echo "$ac_cv_search_MD5Init" >&6; }
28213 ac_res=$ac_cv_search_MD5Init
28214 if test "$ac_res" != no; then :
28215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28219 for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
28221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28222 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28223 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28224 cat >>confdefs.h <<_ACEOF
28225 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
28233 $as_echo_n "checking for SIGIO... " >&6; }
28234 if ${ntp_cv_hdr_def_sigio+:} false; then :
28235 $as_echo_n "(cached) " >&6
28237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28238 /* end confdefs.h. */
28240 #include <signal.h>
28247 if ac_fn_c_try_cpp "$LINENO"; then :
28248 ntp_cv_hdr_def_sigio=yes
28250 ntp_cv_hdr_def_sigio=no
28253 rm -f conftest.err conftest.i conftest.$ac_ext
28256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
28257 $as_echo "$ntp_cv_hdr_def_sigio" >&6; }
28259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
28260 $as_echo_n "checking if we want to use SIGIO... " >&6; }
28262 case "$ntp_cv_hdr_def_sigio" in
28266 alpha*-dec-osf4*|alpha*-dec-osf5*)
28308 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
28311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28312 $as_echo "$ans" >&6; }
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
28315 $as_echo_n "checking for SIGPOLL... " >&6; }
28316 if ${ntp_cv_hdr_def_sigpoll+:} false; then :
28317 $as_echo_n "(cached) " >&6
28319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28320 /* end confdefs.h. */
28322 #include <signal.h>
28329 if ac_fn_c_try_cpp "$LINENO"; then :
28330 ntp_cv_hdr_def_sigpoll=yes
28332 ntp_cv_hdr_def_sigpoll=no
28335 rm -f conftest.err conftest.i conftest.$ac_ext
28338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
28339 $as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
28341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
28342 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
28344 case "$ntp_cv_hdr_def_sigpoll" in
28360 # XXX Only verified thru AIX6
28398 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
28401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28402 $as_echo "$ans" >&6; }
28404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
28405 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
28407 case "$ntp_cv_hdr_def_sigpoll" in
28423 # XXX Only verified thru AIX6
28458 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
28461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28462 $as_echo "$ans" >&6; }
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
28465 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
28466 if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
28467 $as_echo_n "(cached) " >&6
28469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28470 /* end confdefs.h. */
28472 #include <sys/time.h>
28478 gettimeofday(0, 0);
28479 settimeofday(0, 0);
28486 if ac_fn_c_try_compile "$LINENO"; then :
28487 ntp_cv_func_Xettimeofday_nargs=2
28489 ntp_cv_func_Xettimeofday_nargs=1
28492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
28496 $as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
28497 case "$ntp_cv_func_Xettimeofday_nargs" in
28500 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
28504 for ac_func in settimeofday
28506 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
28507 if test "x$ac_cv_func_settimeofday" = xyes; then :
28508 cat >>confdefs.h <<_ACEOF
28509 #define HAVE_SETTIMEOFDAY 1
28515 *-*-mpeix*) ac_cv_func_settimeofday=yes
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
28523 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
28524 ntp_warning='GRONK'
28526 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
28529 ans='clock_settime()'
28532 ntp_warning='But clock_settime() would be better (if we had it)'
28533 ans='settimeofday()'
28536 ntp_warning='Which is the worst of the three'
28542 ntp_warning='Which leaves us with nothing to use!'
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28546 $as_echo "$ans" >&6; }
28547 case "$ntp_warning" in
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
28552 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
28557 LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
28559 { __LIBS=; unset __LIBS;}
28563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
28564 $as_echo_n "checking for deprecated --with-arlib... " >&6; }
28566 # Check whether --with-arlib was given.
28567 if test "${with_arlib+set}" = set; then :
28568 withval=$with_arlib; ans=$withval
28573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28574 $as_echo "$ans" >&6; }
28578 { $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
28579 $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;}
28583 for ac_prog in gawk mawk nawk awk
28585 # Extract the first word of "$ac_prog", so it can be a program name with args.
28586 set dummy $ac_prog; ac_word=$2
28587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28588 $as_echo_n "checking for $ac_word... " >&6; }
28589 if ${ac_cv_prog_AWK+:} false; then :
28590 $as_echo_n "(cached) " >&6
28592 if test -n "$AWK"; then
28593 ac_cv_prog_AWK="$AWK" # Let the user override the test.
28595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28596 for as_dir in $PATH
28599 test -z "$as_dir" && as_dir=.
28600 for ac_exec_ext in '' $ac_executable_extensions; do
28601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28602 ac_cv_prog_AWK="$ac_prog"
28603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28612 AWK=$ac_cv_prog_AWK
28613 if test -n "$AWK"; then
28614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
28615 $as_echo "$AWK" >&6; }
28617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28618 $as_echo "no" >&6; }
28622 test -n "$AWK" && break
28625 { ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
28626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
28627 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
28629 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
28630 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
28631 $as_echo_n "(cached) " >&6
28633 cat >conftest.make <<\_ACEOF
28636 @echo '@@@%%%=$(MAKE)=@@@%%%'
28638 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
28639 case `${MAKE-make} -f conftest.make 2>/dev/null` in
28640 *@@@%%%=?*=@@@%%%*)
28641 eval ac_cv_prog_make_${ac_make}_set=yes;;
28643 eval ac_cv_prog_make_${ac_make}_set=no;;
28645 rm -f conftest.make
28647 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
28648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28649 $as_echo "yes" >&6; }
28652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28653 $as_echo "no" >&6; }
28654 SET_MAKE="MAKE=${MAKE-make}"
28661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
28662 $as_echo_n "checking whether ln -s works... " >&6; }
28664 if test "$LN_S" = "ln -s"; then
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28666 $as_echo "yes" >&6; }
28668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
28669 $as_echo "no, using $LN_S" >&6; }
28672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
28673 $as_echo_n "checking for library containing strerror... " >&6; }
28674 if ${ac_cv_search_strerror+:} false; then :
28675 $as_echo_n "(cached) " >&6
28677 ac_func_search_save_LIBS=$LIBS
28678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28679 /* end confdefs.h. */
28681 /* Override any GCC internal prototype to avoid an error.
28682 Use char because int might match the return type of a GCC
28683 builtin and then its argument prototype would still apply. */
28691 return strerror ();
28696 for ac_lib in '' cposix; do
28697 if test -z "$ac_lib"; then
28698 ac_res="none required"
28701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28703 if ac_fn_c_try_link "$LINENO"; then :
28704 ac_cv_search_strerror=$ac_res
28706 rm -f core conftest.err conftest.$ac_objext \
28708 if ${ac_cv_search_strerror+:} false; then :
28712 if ${ac_cv_search_strerror+:} false; then :
28715 ac_cv_search_strerror=no
28717 rm conftest.$ac_ext
28718 LIBS=$ac_func_search_save_LIBS
28720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
28721 $as_echo "$ac_cv_search_strerror" >&6; }
28722 ac_res=$ac_cv_search_strerror
28723 if test "$ac_res" != no; then :
28724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28730 # Extract the first word of "perl", so it can be a program name with args.
28731 set dummy perl; ac_word=$2
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28733 $as_echo_n "checking for $ac_word... " >&6; }
28734 if ${ac_cv_path_PATH_PERL+:} false; then :
28735 $as_echo_n "(cached) " >&6
28739 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
28742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28743 for as_dir in $PATH
28746 test -z "$as_dir" && as_dir=.
28747 for ac_exec_ext in '' $ac_executable_extensions; do
28748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28749 ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
28750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28760 PATH_PERL=$ac_cv_path_PATH_PERL
28761 if test -n "$PATH_PERL"; then
28762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
28763 $as_echo "$PATH_PERL" >&6; }
28765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28766 $as_echo "no" >&6; }
28770 { ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
28771 # Extract the first word of "test", so it can be a program name with args.
28772 set dummy test; ac_word=$2
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28774 $as_echo_n "checking for $ac_word... " >&6; }
28775 if ${ac_cv_path_PATH_TEST+:} false; then :
28776 $as_echo_n "(cached) " >&6
28780 ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
28783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28784 for as_dir in $PATH
28787 test -z "$as_dir" && as_dir=.
28788 for ac_exec_ext in '' $ac_executable_extensions; do
28789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28790 ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
28791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28801 PATH_TEST=$ac_cv_path_PATH_TEST
28802 if test -n "$PATH_TEST"; then
28803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
28804 $as_echo "$PATH_TEST" >&6; }
28806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28807 $as_echo "no" >&6; }
28811 { ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
28812 test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
28815 # Check whether --with-net-snmp-config was given.
28816 if test "${with_net_snmp_config+set}" = set; then :
28817 withval=$with_net_snmp_config; ans=$withval
28827 ans=net-snmp-config
28832 as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
28837 PROG_NET_SNMP_CONFIG=$ans
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
28839 $as_echo_n "checking for net-snmp-config path... " >&6; }
28840 case "$PROG_NET_SNMP_CONFIG" in
28843 PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
28846 # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
28847 set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28849 $as_echo_n "checking for $ac_word... " >&6; }
28850 if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
28851 $as_echo_n "(cached) " >&6
28853 case $PATH_NET_SNMP_CONFIG in
28855 ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
28858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28859 for as_dir in $PATH
28862 test -z "$as_dir" && as_dir=.
28863 for ac_exec_ext in '' $ac_executable_extensions; do
28864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28865 ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28876 PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
28877 if test -n "$PATH_NET_SNMP_CONFIG"; then
28878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
28879 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
28881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28882 $as_echo "no" >&6; }
28886 { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
28889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
28890 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
28894 ac_link="$ac_link $VX_KERNEL"
28898 # HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
28899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
28900 $as_echo_n "checking for library containing openlog... " >&6; }
28901 if ${ac_cv_search_openlog+:} false; then :
28902 $as_echo_n "(cached) " >&6
28904 ac_func_search_save_LIBS=$LIBS
28905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28906 /* end confdefs.h. */
28908 /* Override any GCC internal prototype to avoid an error.
28909 Use char because int might match the return type of a GCC
28910 builtin and then its argument prototype would still apply. */
28923 for ac_lib in '' gen syslog; do
28924 if test -z "$ac_lib"; then
28925 ac_res="none required"
28928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28930 if ac_fn_c_try_link "$LINENO"; then :
28931 ac_cv_search_openlog=$ac_res
28933 rm -f core conftest.err conftest.$ac_objext \
28935 if ${ac_cv_search_openlog+:} false; then :
28939 if ${ac_cv_search_openlog+:} false; then :
28942 ac_cv_search_openlog=no
28944 rm conftest.$ac_ext
28945 LIBS=$ac_func_search_save_LIBS
28947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
28948 $as_echo "$ac_cv_search_openlog" >&6; }
28949 ac_res=$ac_cv_search_openlog
28950 if test "$ac_res" != no; then :
28951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28955 # XXX library list will be in ac_cv_search_openlog
28957 # LIBSECCOMP is off by default -- needs testing with all the features
28958 # Please send bug reports to loganaden@gmail.com
28959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
28960 $as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
28961 # Check whether --enable-libseccomp was given.
28962 if test "${enable_libseccomp+set}" = set; then :
28963 enableval=$enable_libseccomp; ntp_ok=$enableval
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28970 $as_echo "$ntp_ok" >&6; }
28973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
28974 $as_echo_n "checking for library containing seccomp_init... " >&6; }
28975 if ${ac_cv_search_seccomp_init+:} false; then :
28976 $as_echo_n "(cached) " >&6
28978 ac_func_search_save_LIBS=$LIBS
28979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28980 /* end confdefs.h. */
28982 /* Override any GCC internal prototype to avoid an error.
28983 Use char because int might match the return type of a GCC
28984 builtin and then its argument prototype would still apply. */
28988 char seccomp_init ();
28992 return seccomp_init ();
28997 for ac_lib in '' seccomp; do
28998 if test -z "$ac_lib"; then
28999 ac_res="none required"
29002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29004 if ac_fn_c_try_link "$LINENO"; then :
29005 ac_cv_search_seccomp_init=$ac_res
29007 rm -f core conftest.err conftest.$ac_objext \
29009 if ${ac_cv_search_seccomp_init+:} false; then :
29013 if ${ac_cv_search_seccomp_init+:} false; then :
29016 ac_cv_search_seccomp_init=no
29018 rm conftest.$ac_ext
29019 LIBS=$ac_func_search_save_LIBS
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
29022 $as_echo "$ac_cv_search_seccomp_init" >&6; }
29023 ac_res=$ac_cv_search_seccomp_init
29024 if test "$ac_res" != no; then :
29025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29027 $as_echo "#define LIBSECCOMP 1" >>confdefs.h
29032 if test "$cross_compiling" = yes; then :
29033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29035 as_fn_error $? "cannot run test program while cross compiling
29036 See \`config.log' for more details" "$LINENO" 5; }
29038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29039 /* end confdefs.h. */
29042 #include <stdlib.h>
29044 #include <sys/prctl.h>
29045 #include <linux/seccomp.h>
29050 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
29062 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
29078 if ac_fn_c_try_run "$LINENO"; then :
29080 $as_echo "#define KERN_SECCOMP 1" >>confdefs.h
29084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29085 conftest.$ac_objext conftest.beam conftest.$ac_ext
29092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
29093 $as_echo_n "checking for facilitynames in syslog.h... " >&6; }
29094 if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
29095 $as_echo_n "(cached) " >&6
29098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29099 /* end confdefs.h. */
29101 #define SYSLOG_NAMES
29102 #include <stdlib.h>
29103 #include <syslog.h>
29108 void *fnames; fnames = facilitynames;
29113 if ac_fn_c_try_compile "$LINENO"; then :
29114 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
29116 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
29118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
29121 $as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
29122 case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
29125 $as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
29130 $as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
29134 $as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
29145 # HMS: Make sure we check for -lrt for clock_* before this...
29146 case "$ac_cv_search_clock_gettime" in
29147 '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
29149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
29150 $as_echo_n "checking for library containing sched_setscheduler... " >&6; }
29151 if ${ac_cv_search_sched_setscheduler+:} false; then :
29152 $as_echo_n "(cached) " >&6
29154 ac_func_search_save_LIBS=$LIBS
29155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29156 /* end confdefs.h. */
29158 /* Override any GCC internal prototype to avoid an error.
29159 Use char because int might match the return type of a GCC
29160 builtin and then its argument prototype would still apply. */
29164 char sched_setscheduler ();
29168 return sched_setscheduler ();
29173 for ac_lib in '' rt posix4; do
29174 if test -z "$ac_lib"; then
29175 ac_res="none required"
29178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29180 if ac_fn_c_try_link "$LINENO"; then :
29181 ac_cv_search_sched_setscheduler=$ac_res
29183 rm -f core conftest.err conftest.$ac_objext \
29185 if ${ac_cv_search_sched_setscheduler+:} false; then :
29189 if ${ac_cv_search_sched_setscheduler+:} false; then :
29192 ac_cv_search_sched_setscheduler=no
29194 rm conftest.$ac_ext
29195 LIBS=$ac_func_search_save_LIBS
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
29198 $as_echo "$ac_cv_search_sched_setscheduler" >&6; }
29199 ac_res=$ac_cv_search_sched_setscheduler
29200 if test "$ac_res" != no; then :
29201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29208 for ac_header in bstring.h
29210 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
29211 if test "x$ac_cv_header_bstring_h" = xyes; then :
29212 cat >>confdefs.h <<_ACEOF
29213 #define HAVE_BSTRING_H 1
29220 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
29221 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
29222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
29223 $as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
29224 if ${ac_cv_search_DNSServiceRegister+:} false; then :
29225 $as_echo_n "(cached) " >&6
29227 ac_func_search_save_LIBS=$LIBS
29228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29229 /* end confdefs.h. */
29231 /* Override any GCC internal prototype to avoid an error.
29232 Use char because int might match the return type of a GCC
29233 builtin and then its argument prototype would still apply. */
29237 char DNSServiceRegister ();
29241 return DNSServiceRegister ();
29246 for ac_lib in '' dns_sd; do
29247 if test -z "$ac_lib"; then
29248 ac_res="none required"
29251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29253 if ac_fn_c_try_link "$LINENO"; then :
29254 ac_cv_search_DNSServiceRegister=$ac_res
29256 rm -f core conftest.err conftest.$ac_objext \
29258 if ${ac_cv_search_DNSServiceRegister+:} false; then :
29262 if ${ac_cv_search_DNSServiceRegister+:} false; then :
29265 ac_cv_search_DNSServiceRegister=no
29267 rm conftest.$ac_ext
29268 LIBS=$ac_func_search_save_LIBS
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
29271 $as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
29272 ac_res=$ac_cv_search_DNSServiceRegister
29273 if test "$ac_res" != no; then :
29274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29276 $as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
29285 for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
29287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29288 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29289 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29290 cat >>confdefs.h <<_ACEOF
29291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29299 for ac_header in memory.h netdb.h poll.h
29301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29302 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29303 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29304 cat >>confdefs.h <<_ACEOF
29305 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29312 for ac_header in sgtty.h stdlib.h string.h termio.h
29314 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29315 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29316 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29317 cat >>confdefs.h <<_ACEOF
29318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29325 for ac_header in termios.h timepps.h timex.h unistd.h
29327 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29328 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29329 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29330 cat >>confdefs.h <<_ACEOF
29331 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29341 for ac_header in utmpx.h
29343 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
29344 if test "x$ac_cv_header_utmpx_h" = xyes; then :
29345 cat >>confdefs.h <<_ACEOF
29346 #define HAVE_UTMPX_H 1
29353 case "$ac_cv_header_utmpx_h" in
29357 for ac_header in utmp.h
29359 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
29360 if test "x$ac_cv_header_utmp_h" = xyes; then :
29361 cat >>confdefs.h <<_ACEOF
29362 #define HAVE_UTMP_H 1
29373 for ac_header in utmp.h utmpx.h
29375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29376 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29377 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29378 cat >>confdefs.h <<_ACEOF
29379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29390 # On Suns only (so far) getpass() truncates the typed password to 8
29391 # characters, but getpassphrase() allows up to 257. Most systems'
29392 # getpass() does not truncate, at least not so as to affect ntpq and
29393 # ntpdc password prompts.
29395 # So check for getpassphrase(), but only on Sun operating systems.
29398 *-*-sunos*|*-*-solaris*)
29399 for ac_func in getpassphrase
29401 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
29402 if test "x$ac_cv_func_getpassphrase" = xyes; then :
29403 cat >>confdefs.h <<_ACEOF
29404 #define HAVE_GETPASSPHRASE 1
29413 for ac_header in net/if6.h
29415 ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
29416 if test "x$ac_cv_header_net_if6_h" = xyes; then :
29417 cat >>confdefs.h <<_ACEOF
29418 #define HAVE_NET_IF6_H 1
29425 for ac_header in net/route.h
29427 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
29428 #include <sys/types.h>
29429 #include <sys/socket.h>
29430 #include <net/if.h>
29433 if test "x$ac_cv_header_net_route_h" = xyes; then :
29434 cat >>confdefs.h <<_ACEOF
29435 #define HAVE_NET_ROUTE_H 1
29443 for ac_header in netinfo/ni.h
29445 ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
29446 if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
29447 cat >>confdefs.h <<_ACEOF
29448 #define HAVE_NETINFO_NI_H 1
29455 case "$ac_cv_header_netinfo_ni_h" in
29458 $as_echo "#define HAVE_NETINFO 1" >>confdefs.h
29461 for ac_header in sun/audioio.h sys/audioio.h sys/file.h
29463 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29464 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29465 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29466 cat >>confdefs.h <<_ACEOF
29467 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29478 for ac_header in sys/ioctl.h
29480 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
29481 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
29482 cat >>confdefs.h <<_ACEOF
29483 #define HAVE_SYS_IOCTL_H 1
29492 for ac_header in sys/ipc.h sys/lock.h sys/mman.h
29494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29495 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29496 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29497 cat >>confdefs.h <<_ACEOF
29498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29505 # HMS: Check sys/proc.h and sys/resource.h after some others
29506 for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
29508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29509 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29510 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29511 cat >>confdefs.h <<_ACEOF
29512 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29519 case "$ac_cv_header_sched_h" in
29523 for ac_header in sys/sched.h
29525 ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
29526 if test "x$ac_cv_header_sys_sched_h" = xyes; then :
29527 cat >>confdefs.h <<_ACEOF
29528 #define HAVE_SYS_SCHED_H 1
29537 # HMS: Check sys/shm.h after some others
29538 for ac_header in sys/select.h sys/signal.h sys/sockio.h
29540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29541 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29542 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29543 cat >>confdefs.h <<_ACEOF
29544 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29551 # HMS: Checked sys/socket.h earlier
29556 for ac_header in machine/soundcard.h sys/soundcard.h
29558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29559 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29560 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29561 cat >>confdefs.h <<_ACEOF
29562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29571 for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
29573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29574 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29575 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29576 cat >>confdefs.h <<_ACEOF
29577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29584 for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
29586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29587 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29588 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29589 cat >>confdefs.h <<_ACEOF
29590 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29599 for ac_header in /sys/sync/queue.h /sys/sync/sema.h
29601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29602 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29603 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29604 cat >>confdefs.h <<_ACEOF
29605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29614 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
29616 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29617 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29618 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29619 cat >>confdefs.h <<_ACEOF
29620 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29635 for ac_func in ntp_adjtime ntp_gettime
29637 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29638 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29639 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29640 cat >>confdefs.h <<_ACEOF
29641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29652 case "$ac_cv_func_ntp_gettime" in
29656 for ac_func in __ntp_gettime
29658 ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
29659 if test "x$ac_cv_func___ntp_gettime" = xyes; then :
29660 cat >>confdefs.h <<_ACEOF
29661 #define HAVE___NTP_GETTIME 1
29667 case "$ac_cv_func___ntp_gettime" in
29670 $as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
29673 $as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h
29678 for ac_func in adjtimex
29680 ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
29681 if test "x$ac_cv_func_adjtimex" = xyes; then :
29682 cat >>confdefs.h <<_ACEOF
29683 #define HAVE_ADJTIMEX 1
29689 case "$ac_cv_func_adjtimex" in
29692 $as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
29695 $as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
29700 for ac_func in __adjtimex
29702 ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
29703 if test "x$ac_cv_func___adjtimex" = xyes; then :
29704 cat >>confdefs.h <<_ACEOF
29705 #define HAVE___ADJTIMEX 1
29711 case "$ac_cv_func___adjtimex" in
29714 $as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
29717 $as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
29720 $as_echo "#define adjtimex __adjtimex" >>confdefs.h
29723 $as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h
29730 case "$have_adjtimex" in
29732 # nlist stuff is only needed for tickadj.
29735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
29736 $as_echo_n "checking for library containing nlist... " >&6; }
29737 if ${ac_cv_search_nlist+:} false; then :
29738 $as_echo_n "(cached) " >&6
29740 ac_func_search_save_LIBS=$LIBS
29741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29742 /* end confdefs.h. */
29744 /* Override any GCC internal prototype to avoid an error.
29745 Use char because int might match the return type of a GCC
29746 builtin and then its argument prototype would still apply. */
29759 for ac_lib in '' elf ld mld; do
29760 if test -z "$ac_lib"; then
29761 ac_res="none required"
29764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29766 if ac_fn_c_try_link "$LINENO"; then :
29767 ac_cv_search_nlist=$ac_res
29769 rm -f core conftest.err conftest.$ac_objext \
29771 if ${ac_cv_search_nlist+:} false; then :
29775 if ${ac_cv_search_nlist+:} false; then :
29778 ac_cv_search_nlist=no
29780 rm conftest.$ac_ext
29781 LIBS=$ac_func_search_save_LIBS
29783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
29784 $as_echo "$ac_cv_search_nlist" >&6; }
29785 ac_res=$ac_cv_search_nlist
29786 if test "$ac_res" != no; then :
29787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29791 # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
29792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
29793 $as_echo_n "checking for library containing kvm_open... " >&6; }
29794 if ${ac_cv_search_kvm_open+:} false; then :
29795 $as_echo_n "(cached) " >&6
29797 ac_func_search_save_LIBS=$LIBS
29798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29799 /* end confdefs.h. */
29801 /* Override any GCC internal prototype to avoid an error.
29802 Use char because int might match the return type of a GCC
29803 builtin and then its argument prototype would still apply. */
29811 return kvm_open ();
29816 for ac_lib in '' kvm; do
29817 if test -z "$ac_lib"; then
29818 ac_res="none required"
29821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29823 if ac_fn_c_try_link "$LINENO"; then :
29824 ac_cv_search_kvm_open=$ac_res
29826 rm -f core conftest.err conftest.$ac_objext \
29828 if ${ac_cv_search_kvm_open+:} false; then :
29832 if ${ac_cv_search_kvm_open+:} false; then :
29835 ac_cv_search_kvm_open=no
29837 rm conftest.$ac_ext
29838 LIBS=$ac_func_search_save_LIBS
29840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
29841 $as_echo "$ac_cv_search_kvm_open" >&6; }
29842 ac_res=$ac_cv_search_kvm_open
29843 if test "$ac_res" != no; then :
29844 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29847 # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
29848 for ac_header in nlist.h sys/var.h
29850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29851 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29852 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29853 cat >>confdefs.h <<_ACEOF
29854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29861 case "$ac_cv_header_nlist_h" in
29864 $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
29866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
29867 $as_echo_n "checking for n_un in struct nlist... " >&6; }
29868 if ${ntp_cv_struct_nlist_n_un+:} false; then :
29869 $as_echo_n "(cached) " >&6
29871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29872 /* end confdefs.h. */
29887 ntp_cv_struct_nlist_n_un=yes
29889 if ac_fn_c_try_compile "$LINENO"; then :
29890 ntp_cv_struct_nlist_n_un=no
29893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
29897 $as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
29898 case "$ntp_cv_struct_nlist_n_un" in
29901 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
29906 LDADD_NLIST="$LIBS"
29908 { saved_LIBS=; unset saved_LIBS;}
29911 for ac_header in sys/proc.h
29913 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
29914 #ifdef HAVE_SYS_TYPES_H
29915 # include <sys/types.h>
29917 #ifdef HAVE_SYS_TIME_H
29918 # include <sys/time.h>
29922 if test "x$ac_cv_header_sys_proc_h" = xyes; then :
29923 cat >>confdefs.h <<_ACEOF
29924 #define HAVE_SYS_PROC_H 1
29932 for ac_header in sys/resource.h
29934 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
29935 #ifdef HAVE_SYS_TIME_H
29936 # include <sys/time.h>
29940 if test "x$ac_cv_header_sys_resource_h" = xyes; then :
29941 cat >>confdefs.h <<_ACEOF
29942 #define HAVE_SYS_RESOURCE_H 1
29950 for ac_header in sys/shm.h
29952 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
29953 #ifdef HAVE_SYS_TYPES_H
29954 # include <sys/types.h>
29956 #ifdef HAVE_SYS_IPC_H
29957 # include <sys/ipc.h>
29961 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
29962 cat >>confdefs.h <<_ACEOF
29963 #define HAVE_SYS_SHM_H 1
29971 for ac_header in sys/timex.h
29973 ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
29974 #ifdef HAVE_SYS_TIME_H
29975 # include <sys/time.h>
29979 if test "x$ac_cv_header_sys_timex_h" = xyes; then :
29980 cat >>confdefs.h <<_ACEOF
29981 #define HAVE_SYS_TIMEX_H 1
29989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29990 $as_echo_n "checking return type of signal handlers... " >&6; }
29991 if ${ac_cv_type_signal+:} false; then :
29992 $as_echo_n "(cached) " >&6
29994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29995 /* end confdefs.h. */
29996 #include <sys/types.h>
29997 #include <signal.h>
30002 return *(signal (0, 0)) (0) == 1;
30007 if ac_fn_c_try_compile "$LINENO"; then :
30008 ac_cv_type_signal=int
30010 ac_cv_type_signal=void
30012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
30015 $as_echo "$ac_cv_type_signal" >&6; }
30017 cat >>confdefs.h <<_ACEOF
30018 #define RETSIGTYPE $ac_cv_type_signal
30022 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
30023 if test "x$ac_cv_type_off_t" = xyes; then :
30027 cat >>confdefs.h <<_ACEOF
30028 #define off_t long int
30033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
30034 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
30035 if ${ac_cv_struct_tm+:} false; then :
30036 $as_echo_n "(cached) " >&6
30038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30039 /* end confdefs.h. */
30040 #include <sys/types.h>
30047 int *p = &tm.tm_sec;
30053 if ac_fn_c_try_compile "$LINENO"; then :
30054 ac_cv_struct_tm=time.h
30056 ac_cv_struct_tm=sys/time.h
30058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
30061 $as_echo "$ac_cv_struct_tm" >&6; }
30062 if test $ac_cv_struct_tm = sys/time.h; then
30064 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
30069 $as_echo_n "checking for a fallback value for HZ... " >&6; }
30070 if ${ntp_cv_default_hz+:} false; then :
30071 $as_echo_n "(cached) " >&6
30074 ntp_cv_default_hz=100
30076 alpha*-dec-osf4*|alpha*-dec-osf5*)
30077 ntp_cv_default_hz=1024
30080 ntp_cv_default_hz=256
30086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
30087 $as_echo "$ntp_cv_default_hz" >&6; }
30089 cat >>confdefs.h <<_ACEOF
30090 #define DEFAULT_HZ $ntp_cv_default_hz
30094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
30095 $as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
30096 if ${ntp_cv_override_hz+:} false; then :
30097 $as_echo_n "(cached) " >&6
30100 ntp_cv_override_hz=no
30102 alpha*-dec-osf4*|alpha*-dec-osf5*)
30103 ntp_cv_override_hz=yes
30106 ntp_cv_override_hz=yes
30109 ntp_cv_override_hz=yes
30112 ntp_cv_override_hz=yes
30115 ntp_cv_override_hz=yes
30121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
30122 $as_echo "$ntp_cv_override_hz" >&6; }
30123 case "$ntp_cv_override_hz" in
30126 $as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
30132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
30133 $as_echo_n "checking for struct rt_msghdr... " >&6; }
30134 if ${ntp_cv_struct_rt_msghdr+:} false; then :
30135 $as_echo_n "(cached) " >&6
30137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30138 /* end confdefs.h. */
30140 #include <sys/types.h>
30141 #include <sys/socket.h>
30142 #include <net/if.h>
30143 #include <net/route.h>
30149 struct rt_msghdr p;
30156 if ac_fn_c_try_compile "$LINENO"; then :
30157 ntp_cv_struct_rt_msghdr=yes
30159 ntp_cv_struct_rt_msghdr=no
30162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
30166 $as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
30168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
30169 $as_echo_n "checking for struct rtattr... " >&6; }
30170 if ${ntp_cv_rtattr+:} false; then :
30171 $as_echo_n "(cached) " >&6
30173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30174 /* end confdefs.h. */
30176 #include <stddef.h>
30177 #include <sys/socket.h>
30178 #include <linux/rtnetlink.h>
30191 if ac_fn_c_try_compile "$LINENO"; then :
30197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
30201 $as_echo "$ntp_cv_rtattr" >&6; }
30203 case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
30206 $as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
30208 case "$ntp_cv_rtattr" in
30211 $as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
30216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
30217 $as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
30218 if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
30219 $as_echo_n "(cached) " >&6
30221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30222 /* end confdefs.h. */
30224 #include <signal.h>
30230 struct sigaction act;
30231 act.sa_sigaction = 0;
30238 if ac_fn_c_try_compile "$LINENO"; then :
30239 ntp_cv_struct_sigaction_has_sa_sigaction=yes
30241 ntp_cv_struct_sigaction_has_sa_sigaction=no
30244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
30248 $as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
30249 case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
30252 $as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
30256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
30257 $as_echo_n "checking for struct ppsclockev... " >&6; }
30258 if ${ntp_cv_struct_ppsclockev+:} false; then :
30259 $as_echo_n "(cached) " >&6
30261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30262 /* end confdefs.h. */
30264 #ifdef HAVE_SYS_TYPES_H
30265 # include <sys/types.h>
30267 #ifdef HAVE_SYS_TERMIOS_H
30268 # include <sys/termios.h>
30270 #ifdef HAVE_SYS_TIME_H
30271 # include <sys/time.h>
30273 #ifdef HAVE_SYS_PPSCLOCK_H
30274 # include <sys/ppsclock.h>
30281 extern struct ppsclockev *pce;
30282 return pce->serial;
30289 if ac_fn_c_try_compile "$LINENO"; then :
30290 ntp_cv_struct_ppsclockev=yes
30292 ntp_cv_struct_ppsclockev=no
30295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
30299 $as_echo "$ntp_cv_struct_ppsclockev" >&6; }
30300 case "$ntp_cv_struct_ppsclockev" in
30303 $as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
30307 case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
30309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
30310 $as_echo_n "checking for struct snd_size... " >&6; }
30311 if ${ntp_cv_struct_snd_size+:} false; then :
30312 $as_echo_n "(cached) " >&6
30314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30315 /* end confdefs.h. */
30317 #ifdef HAVE_MACHINE_SOUNDCARD_H
30318 # include <machine/soundcard.h>
30320 #ifdef HAVE_SYS_SOUNDCARD_H
30321 # include <sys/soundcard.h>
30328 extern struct snd_size *ss;
30329 return ss->rec_size;
30336 if ac_fn_c_try_compile "$LINENO"; then :
30337 ntp_cv_struct_snd_size=yes
30339 ntp_cv_struct_snd_size=no
30342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
30346 $as_echo "$ntp_cv_struct_snd_size" >&6; }
30347 case "$ntp_cv_struct_snd_size" in
30350 $as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
30355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
30356 $as_echo_n "checking struct clockinfo for hz... " >&6; }
30357 if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
30358 $as_echo_n "(cached) " >&6
30360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30361 /* end confdefs.h. */
30363 #include <sys/time.h>
30369 extern struct clockinfo *pc;
30377 if ac_fn_c_try_compile "$LINENO"; then :
30378 ntp_cv_struct_clockinfo_has_hz=yes
30380 ntp_cv_struct_clockinfo_has_hz=no
30383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
30387 $as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
30388 case "$ntp_cv_struct_clockinfo_has_hz" in
30391 $as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
30395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
30396 $as_echo_n "checking struct clockinfo for tickadj... " >&6; }
30397 if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
30398 $as_echo_n "(cached) " >&6
30400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30401 /* end confdefs.h. */
30403 #include <sys/time.h>
30409 extern struct clockinfo *pc;
30410 return pc->tickadj;
30417 if ac_fn_c_try_compile "$LINENO"; then :
30418 ntp_cv_struct_clockinfo_has_hz=yes
30420 ntp_cv_struct_clockinfo_has_hz=no
30423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
30427 $as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
30428 case "$ntp_cv_struct_clockinfo_has_hz" in
30431 $as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
30435 case "$ntp_cv_struct_ntptimeval" in
30437 ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
30438 #ifdef HAVE_SYS_TIME_H
30439 # include <sys/time.h>
30441 # ifdef HAVE_TIME_H
30445 #ifdef HAVE_SYS_TIMEX_H
30446 # include <sys/timex.h>
30448 # ifdef HAVE_TIMEX_H
30449 # include <timex.h>
30455 if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :
30457 cat >>confdefs.h <<_ACEOF
30458 #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
30468 for ac_func in arc4random_buf
30470 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
30471 if test "x$ac_cv_func_arc4random_buf" = xyes; then :
30472 cat >>confdefs.h <<_ACEOF
30473 #define HAVE_ARC4RANDOM_BUF 1
30483 LIBS="$LIBS $LDADD_LIBNTP"
30484 for ac_func in daemon
30486 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
30487 if test "x$ac_cv_func_daemon" = xyes; then :
30488 cat >>confdefs.h <<_ACEOF
30489 #define HAVE_DAEMON 1
30495 # XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
30497 { saved_LIBS=; unset saved_LIBS;}
30499 for ac_func in finite
30501 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
30502 if test "x$ac_cv_func_finite" = xyes; then :
30503 cat >>confdefs.h <<_ACEOF
30504 #define HAVE_FINITE 1
30508 for ac_func in isfinite
30510 ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
30511 if test "x$ac_cv_func_isfinite" = xyes; then :
30512 cat >>confdefs.h <<_ACEOF
30513 #define HAVE_ISFINITE 1
30518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
30519 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
30523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30524 /* end confdefs.h. */
30540 if ac_fn_c_try_link "$LINENO"; then :
30546 rm -f core conftest.err conftest.$ac_objext \
30547 conftest$ac_exeext conftest.$ac_ext
30549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30550 $as_echo "$ans" >&6; }
30553 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
30566 for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
30568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30569 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30570 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30571 cat >>confdefs.h <<_ACEOF
30572 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30579 # kvm_open() is only used by tickadj. Also see above.
30580 case "$ac_cv_header_kvm_h" in
30582 for ac_func in kvm_open
30584 ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
30585 if test "x$ac_cv_func_kvm_open" = xyes; then :
30586 cat >>confdefs.h <<_ACEOF
30587 #define HAVE_KVM_OPEN 1
30598 # Just stubs. Sigh.
30600 *) for ac_func in mkstemp
30602 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
30603 if test "x$ac_cv_func_mkstemp" = xyes; then :
30604 cat >>confdefs.h <<_ACEOF
30605 #define HAVE_MKSTEMP 1
30613 for ac_func in mktime
30615 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
30616 if test "x$ac_cv_func_mktime" = xyes; then :
30617 cat >>confdefs.h <<_ACEOF
30618 #define HAVE_MKTIME 1
30626 # XXX only verified thru AIX6.
30627 # Just a stub. Sigh.
30630 # Just a stub in "old" Irix. Sigh.
30632 # In the belief that the fix for bug 1223 fixes mlockall() under linux...
30634 # # there, but more trouble than it is worth for now (resolver problems)
30637 # Apparently there but not working in QNX. Sigh?
30640 # Just a stub. Sigh.
30642 alpha*-dec-osf4*|alpha*-dec-osf5*)
30643 # mlockall is there, as a #define calling memlk via <sys/mman.h>
30644 # Not easy to test for - cheat.
30645 for ac_func in memlk
30647 ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
30648 if test "x$ac_cv_func_memlk" = xyes; then :
30649 cat >>confdefs.h <<_ACEOF
30650 #define HAVE_MEMLK 1
30652 ac_cv_func_mlockall=yes
30656 for ac_func in mlockall
30658 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
30659 if test "x$ac_cv_func_mlockall" = xyes; then :
30660 cat >>confdefs.h <<_ACEOF
30661 #define HAVE_MLOCKALL 1
30668 *) for ac_func in mlockall
30670 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
30671 if test "x$ac_cv_func_mlockall" = xyes; then :
30672 cat >>confdefs.h <<_ACEOF
30673 #define HAVE_MLOCKALL 1
30681 for ac_func in nice plock pututline pututxline readlink rtprio
30683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30684 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30685 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30686 cat >>confdefs.h <<_ACEOF
30687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30695 # XXX only verified thru AIX6.
30696 # Just a stub in AIX 4. Sigh.
30699 # Just stubs in solaris2.5. Sigh.
30701 *) for ac_func in sched_setscheduler
30703 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
30704 if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
30705 cat >>confdefs.h <<_ACEOF
30706 #define HAVE_SCHED_SETSCHEDULER 1
30714 for ac_func in setlinebuf setpgid setpriority setsid setvbuf
30716 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30717 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30718 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30719 cat >>confdefs.h <<_ACEOF
30720 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30726 for ac_func in strdup strerror setrlimit strchr
30728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30729 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30730 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30731 cat >>confdefs.h <<_ACEOF
30732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30740 # XXX only verified thru AIX6.
30741 # Just stubs. Sigh.
30744 # Just stubs. Sigh.
30747 # Just stubs. Sigh.
30750 # Just stubs. Sigh.
30753 for ac_func in timer_create
30755 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
30756 if test "x$ac_cv_func_timer_create" = xyes; then :
30757 cat >>confdefs.h <<_ACEOF
30758 #define HAVE_TIMER_CREATE 1
30769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
30770 $as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
30771 if ${ntp_cv_rlimit_memlock+:} false; then :
30772 $as_echo_n "(cached) " >&6
30774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30775 /* end confdefs.h. */
30777 #ifdef HAVE_SYS_TYPES_H
30778 # include <sys/types.h>
30780 #ifdef HAVE_SYS_TIME_H
30781 # include <sys/time.h>
30783 #ifdef HAVE_SYS_RESOURCE_H
30784 # include <sys/resource.h>
30791 getrlimit(RLIMIT_MEMLOCK, 0);
30798 if ac_fn_c_try_compile "$LINENO"; then :
30799 ntp_cv_rlimit_memlock=yes
30801 ntp_cv_rlimit_memlock=no
30804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
30808 $as_echo "$ntp_cv_rlimit_memlock" >&6; }
30809 case "$ntp_cv_rlimit_memlock" in
30812 HAVE_RLIMIT_MEMLOCK=" memlock 32"
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
30816 $as_echo_n "checking for RLIMIT_STACK... " >&6; }
30817 if ${ntp_cv_rlimit_stack+:} false; then :
30818 $as_echo_n "(cached) " >&6
30820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30821 /* end confdefs.h. */
30823 #ifdef HAVE_SYS_TYPES_H
30824 # include <sys/types.h>
30826 #ifdef HAVE_SYS_TIME_H
30827 # include <sys/time.h>
30829 #ifdef HAVE_SYS_RESOURCE_H
30830 # include <sys/resource.h>
30837 getrlimit(RLIMIT_STACK, 0);
30844 if ac_fn_c_try_compile "$LINENO"; then :
30845 ntp_cv_rlimit_stack=yes
30847 ntp_cv_rlimit_stack=no
30850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
30854 $as_echo "$ntp_cv_rlimit_stack" >&6; }
30855 case "$ntp_cv_rlimit_stack" in
30858 HAVE_RLIMIT_STACK=" stacksize 50"
30863 # HMS: Only if we are doing the MLOCKALL stuff...
30864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
30865 $as_echo_n "checking for the default number of 4k stack pages... " >&6; }
30867 # Check whether --with-stack-limit was given.
30868 if test "${with_stack_limit+set}" = set; then :
30869 withval=$with_stack_limit; ans=$withval
30887 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
30890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30891 $as_echo "$ans" >&6; }
30893 cat >>confdefs.h <<_ACEOF
30894 #define DFLT_RLIMIT_STACK $ans
30898 # HMS: only if we have RLIMIT_MEMLOCK
30899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
30900 $as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }
30902 # Check whether --with-memlock was given.
30903 if test "${with_memlock+set}" = set; then :
30904 withval=$with_memlock; ans=$withval
30915 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
30918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30919 $as_echo "$ans" >&6; }
30921 cat >>confdefs.h <<_ACEOF
30922 #define DFLT_RLIMIT_MEMLOCK $ans
30927 # some OSes prefer _exit() in forked children to exit()
30928 for ac_func in _exit
30930 ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
30931 if test "x$ac_cv_func__exit" = xyes; then :
30932 cat >>confdefs.h <<_ACEOF
30933 #define HAVE__EXIT 1
30939 ntp_worker_child_exit=exit
30940 case "$ac_cv_func__exit::$host_os" in
30942 ntp_worker_child_exit=_exit
30945 ntp_worker_child_exit=_exit
30949 cat >>confdefs.h <<_ACEOF
30950 #define WORKER_CHILD_EXIT $ntp_worker_child_exit
30954 for ac_func in umask uname updwtmp updwtmpx
30956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30957 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30958 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30959 cat >>confdefs.h <<_ACEOF
30960 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30969 # http://bugs.ntp.org/737
30970 case "$ac_cv_func_recvmsg" in
30972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
30973 $as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
30974 if ${ntp_cv_struct_iovec_help+:} false; then :
30975 $as_echo_n "(cached) " >&6
30979 for ntp_cv_struct_iovec_help in '0' '1'; do
30980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30981 /* end confdefs.h. */
30983 #ifdef HAVE_SYS_TYPES_H
30984 # include <sys/types.h>
30986 #ifdef HAVE_SYS_SOCKET_H
30987 # include <sys/socket.h>
30989 #if $ntp_cv_struct_iovec_help
30990 # include <sys/uio.h>
31005 x = recvmsg(s, &mh, flags);
31013 if ac_fn_c_try_compile "$LINENO"; then :
31014 compiled=yes ; break 1
31016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31018 case "$compiled" in
31020 ntp_cv_struct_iovec_help=0
31022 { compiled=; unset compiled;}
31026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
31027 $as_echo "$ntp_cv_struct_iovec_help" >&6; }
31028 case "$ntp_cv_struct_iovec_help" in
31031 $as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
31036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
31037 $as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
31038 if ${ntp_cv_func_setpgrp_nargs+:} false; then :
31039 $as_echo_n "(cached) " >&6
31041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31042 /* end confdefs.h. */
31044 #ifdef HAVE_SYS_TYPES_H
31045 # include <sys/types.h>
31047 #ifdef HAVE_UNISTD_H
31048 # include <unistd.h>
31062 if ac_fn_c_try_compile "$LINENO"; then :
31063 ntp_cv_func_setpgrp_nargs=2
31065 ntp_cv_func_setpgrp_nargs=0
31068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
31072 $as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
31073 case "$ntp_cv_func_setpgrp_nargs" in
31076 $as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
31080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
31081 $as_echo_n "checking if we need to declare 'errno'... " >&6; }
31082 if ${ntp_cv_decl_errno+:} false; then :
31083 $as_echo_n "(cached) " >&6
31085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31086 /* end confdefs.h. */
31088 #ifdef HAVE_ERRNO_H
31089 # include <errno.h>
31103 if ac_fn_c_try_compile "$LINENO"; then :
31104 ntp_cv_decl_errno=no
31106 ntp_cv_decl_errno=yes
31109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
31113 $as_echo "$ntp_cv_decl_errno" >&6; }
31114 case "$ntp_cv_decl_errno" in
31117 $as_echo "#define DECL_ERRNO 1" >>confdefs.h
31121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
31122 $as_echo_n "checking if we may declare 'h_errno'... " >&6; }
31123 if ${ntp_cv_decl_h_errno+:} false; then :
31124 $as_echo_n "(cached) " >&6
31126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31127 /* end confdefs.h. */
31129 #include <sys/types.h>
31130 #ifdef HAVE_NETINET_IN_H
31131 # include <netinet/in.h>
31133 #ifdef HAVE_ARPA_NAMESER_H
31134 # include <arpa/nameser.h>
31136 #ifdef HAVE_NETDB_H
31137 # include <netdb.h>
31139 #ifdef HAVE_RESOLV_H
31140 # include <resolv.h>
31147 extern int h_errno;
31154 if ac_fn_c_try_compile "$LINENO"; then :
31155 ntp_cv_decl_h_errno=yes
31157 ntp_cv_decl_h_errno=no
31160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
31164 $as_echo "$ntp_cv_decl_h_errno" >&6; }
31165 case "$ntp_cv_decl_h_errno" in
31168 $as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
31172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
31173 $as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
31174 if ${ntp_cv_decl_syscall+:} false; then :
31175 $as_echo_n "(cached) " >&6
31177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31178 /* end confdefs.h. */
31180 #ifdef HAVE_SYS_TYPES_H
31181 # include <sys/types.h>
31183 #ifdef HAVE_UNISTD_H
31184 # include <unistd.h>
31191 extern int syscall (int, ...);
31197 ntp_cv_decl_syscall=yes
31199 if ac_fn_c_try_compile "$LINENO"; then :
31200 ntp_cv_decl_syscall=no
31203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
31207 $as_echo "$ntp_cv_decl_syscall" >&6; }
31208 case "$ntp_cv_decl_syscall" in
31211 $as_echo "#define DECL_SYSCALL 1" >>confdefs.h
31218 $as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
31219 # Needed for XLC under AIX 4.3.2
31223 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31226 $as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
31229 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31232 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31235 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31238 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31241 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31246 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
31249 $as_echo "#define DECL_STIME_1 1" >>confdefs.h
31254 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31259 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31262 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31265 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31268 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
31271 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
31274 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31277 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
31280 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31283 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31286 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31289 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
31292 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
31295 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31298 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
31301 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31304 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
31309 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
31312 $as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
31317 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31324 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31327 $as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
31330 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31333 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31336 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
31339 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
31342 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31345 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
31348 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
31351 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31354 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31357 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31360 $as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
31362 case "`basename $ac_cv_prog_CC`" in
31365 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
31370 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
31373 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31376 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
31379 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31382 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
31385 $as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
31388 $as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
31393 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31396 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31399 $as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
31402 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31405 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
31408 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31411 $as_echo "#define DECL_NLIST_0 1" >>confdefs.h
31414 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
31417 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31420 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31423 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31426 $as_echo "#define DECL_STIME_0 1" >>confdefs.h
31429 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31432 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31440 $as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
31448 $as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
31452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
31453 $as_echo_n "checking if we will open the broadcast socket... " >&6; }
31454 if ${ntp_cv_var_open_bcast_socket+:} false; then :
31455 $as_echo_n "(cached) " >&6
31463 ntp_cv_var_open_bcast_socket=$ans
31467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
31468 $as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
31469 case "$ntp_cv_var_open_bcast_socket" in
31472 $as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
31479 $as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
31483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
31484 $as_echo_n "checking if process groups are set with -pid... " >&6; }
31485 if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
31486 $as_echo_n "(cached) " >&6
31509 ntp_cv_arg_setpgrp_negpid=$ans
31513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
31514 $as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
31515 case "$ntp_cv_arg_setpgrp_negpid" in
31518 $as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
31522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
31523 $as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
31524 if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
31525 $as_echo_n "(cached) " >&6
31535 # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
31536 # while later versions will fail a ioctl(TIOCSCTTY, 0) call in
31537 # some cases and so should not have USE_FSETOWNCTTY. "netbsd"
31538 # in $host may be followed by "aout", "ecoff", or "elf".
31539 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
31542 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
31558 ntp_cv_func_ctty_for_f_setown=$ans
31562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
31563 $as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
31564 case "$ntp_cv_func_ctty_for_f_setown" in
31567 $as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
31571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
31572 $as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
31573 if ${ntp_cv_os_routeupdates+:} false; then :
31574 $as_echo_n "(cached) " >&6
31585 ntp_cv_os_routeupdates=$ans
31589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
31590 $as_echo "$ntp_cv_os_routeupdates" >&6; }
31591 case "$ntp_cv_os_routeupdates" in
31594 $as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
31598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
31599 $as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
31600 if ${ntp_cv_os_wildcardreuse+:} false; then :
31601 $as_echo_n "(cached) " >&6
31611 ntp_cv_os_wildcardreuse=$ans
31615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
31616 $as_echo "$ntp_cv_os_wildcardreuse" >&6; }
31617 case "$ntp_cv_os_wildcardreuse" in
31620 $as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
31627 $as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
31631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
31632 $as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
31633 if ${ntp_cv_var_min_rec_tickadj+:} false; then :
31634 $as_echo_n "(cached) " >&6
31643 ntp_cv_var_min_rec_tickadj=$ans
31647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
31648 $as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
31649 case "$ntp_cv_var_min_rec_tickadj" in
31654 cat >>confdefs.h <<_ACEOF
31655 #define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
31660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
31661 $as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
31662 if ${ntp_cv_no_parenb_ignpar+:} false; then :
31663 $as_echo_n "(cached) " >&6
31674 i?86-*-freebsd[123].*)
31683 ntp_cv_no_parenb_ignpar=$ans
31687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
31688 $as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
31689 case "$ntp_cv_no_parenb_ignpar" in
31692 $as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
31696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
31697 $as_echo_n "checking if we're including processing time debugging code... " >&6; }
31698 # Check whether --enable-debug-timing was given.
31699 if test "${enable_debug_timing+set}" = set; then :
31700 enableval=$enable_debug_timing; ntp_ok=$enableval
31709 $as_echo "#define DEBUG_TIMING 1" >>confdefs.h
31712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31713 $as_echo "$ntp_ok" >&6; }
31715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
31716 $as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
31717 # Check whether --enable-dst-minutes was given.
31718 if test "${enable_dst_minutes+set}" = set; then :
31719 enableval=$enable_dst_minutes; ans=$enableval
31726 cat >>confdefs.h <<_ACEOF
31727 #define DSTMINUTES $ans
31730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31731 $as_echo "$ans" >&6; }
31733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
31734 $as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
31735 # Check whether --enable-ignore-dns-errors was given.
31736 if test "${enable_ignore_dns_errors+set}" = set; then :
31737 enableval=$enable_ignore_dns_errors; ans=$enableval
31746 $as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
31749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31750 $as_echo "$ans" >&6; }
31752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
31753 $as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
31754 if ${ntp_cv_var_ntp_syscalls+:} false; then :
31755 $as_echo_n "(cached) " >&6
31758 ntp_cv_var_ntp_syscalls=no
31759 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
31761 ntp_cv_var_ntp_syscalls=libc
31764 ntp_cv_var_ntp_syscalls=inline
31767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31768 /* end confdefs.h. */
31770 #include <sys/syscall.h>
31771 #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
31776 if ac_fn_c_try_cpp "$LINENO"; then :
31777 ntp_cv_var_ntp_syscalls=kernel
31780 rm -f conftest.err conftest.i conftest.$ac_ext
31786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
31787 $as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
31788 case "$ntp_cv_var_ntp_syscalls" in
31791 $as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
31796 $as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
31801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
31802 $as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
31803 if ${ntp_cv_var_sta_fll+:} false; then :
31804 $as_echo_n "(cached) " >&6
31806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31807 /* end confdefs.h. */
31809 #include <sys/timex.h>
31815 if ac_fn_c_try_cpp "$LINENO"; then :
31816 ntp_cv_var_sta_fll=yes
31818 ntp_cv_var_sta_fll=no
31821 rm -f conftest.err conftest.i conftest.$ac_ext
31824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
31825 $as_echo "$ntp_cv_var_sta_fll" >&6; }
31827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
31828 $as_echo_n "checking if we have kernel PLL support... " >&6; }
31829 if ${ntp_cv_var_kernel_pll+:} false; then :
31830 $as_echo_n "(cached) " >&6
31832 case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
31834 ntp_cv_var_kernel_pll=no
31836 *) ntp_cv_var_kernel_pll=yes
31842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
31843 $as_echo "$ntp_cv_var_kernel_pll" >&6; }
31844 case "$ntp_cv_var_kernel_pll" in
31847 $as_echo "#define KERNEL_PLL 1" >>confdefs.h
31851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
31852 $as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
31853 if ${ntp_cv_size_returned_in_buffer+:} false; then :
31854 $as_echo_n "(cached) " >&6
31869 ntp_cv_size_returned_in_buffer=$ans
31873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
31874 $as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
31875 case "$ntp_cv_size_returned_in_buffer" in
31878 $as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
31882 # Check for ioctls TIOCGPPSEV
31883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
31884 $as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
31885 case "$ac_cv_header_termios_h" in
31887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31888 /* end confdefs.h. */
31890 #include <termios.h>
31896 if ac_fn_c_try_cpp "$LINENO"; then :
31902 rm -f conftest.err conftest.i conftest.$ac_ext
31911 $as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
31914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31915 $as_echo "$ntp_ok" >&6; }
31917 # Check for ioctls TIOCSPPS
31918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
31919 $as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
31920 case "$ac_cv_header_termios_h" in
31922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31923 /* end confdefs.h. */
31925 #include <termios.h>
31931 if ac_fn_c_try_cpp "$LINENO"; then :
31937 rm -f conftest.err conftest.i conftest.$ac_ext
31946 $as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
31949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31950 $as_echo "$ntp_ok" >&6; }
31952 # Check for ioctls CIOGETEV
31953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
31954 $as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
31955 case "$ac_cv_header_sys_ppsclock_h" in
31957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31958 /* end confdefs.h. */
31960 #include <sys/ppsclock.h>
31966 if ac_fn_c_try_cpp "$LINENO"; then :
31972 rm -f conftest.err conftest.i conftest.$ac_ext
31981 $as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
31984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31985 $as_echo "$ntp_ok" >&6; }
31987 # ATOM/PPSAPI stuff.
31991 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
31993 # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
31994 # The PPSAPI needs struct timespec.
31995 # The PPSAPI also needs a timepps header.
31997 case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
31999 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
32000 *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
32002 $as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
32007 ntp_ripe_ncc_ok=yes
32013 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
32014 ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
32015 if test "x$ac_cv_header_linux_serial_h" = xyes; then :
32020 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
32022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
32023 $as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
32024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32025 /* end confdefs.h. */
32027 #include <sys/time.h>
32029 #include <sys/ppsclock.h>
32030 #include <linux/serial.h>
32032 #ifndef TIOCGSERIAL
32035 #ifndef TIOCSSERIAL
32038 #ifndef ASYNC_PPS_CD_POS
32041 #ifndef ASYNC_PPS_CD_NEG
32049 if ac_fn_c_try_cpp "$LINENO"; then :
32055 rm -f conftest.err conftest.i conftest.$ac_ext
32056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32057 $as_echo "$ntp_ok" >&6; }
32066 $as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
32070 # Check for SHMEM_STATUS support
32071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
32072 $as_echo_n "checking SHMEM_STATUS support... " >&6; }
32073 case "$ac_cv_header_sys_mman_h" in
32084 $as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
32087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32088 $as_echo "$ntp_ok" >&6; }
32092 # HPUX only, and by explicit request
32093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
32094 $as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
32095 # Check whether --enable-BANCOMM was given.
32096 if test "${enable_BANCOMM+set}" = set; then :
32097 enableval=$enable_BANCOMM; ntp_ok=$enableval
32107 $as_echo "#define CLOCK_BANC 1" >>confdefs.h
32111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32112 $as_echo "$ntp_ok" >&6; }
32113 case "$ntp_ok$host" in
32115 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32116 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
32119 #HPUX only, and only by explicit request
32120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
32121 $as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
32122 # Check whether --enable-GPSVME was given.
32123 if test "${enable_GPSVME+set}" = set; then :
32124 enableval=$enable_GPSVME; ntp_ok=$enableval
32134 $as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
32138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32139 $as_echo "$ntp_ok" >&6; }
32140 case "$ntp_ok$host" in
32142 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32143 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
32146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
32147 $as_echo_n "checking for PCL720 clock support... " >&6; }
32148 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
32151 $as_echo "#define CLOCK_PPS720 1" >>confdefs.h
32159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32160 $as_echo "$ans" >&6; }
32162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
32163 $as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
32164 # Check whether --enable-all-clocks was given.
32165 if test "${enable_all_clocks+set}" = set; then :
32166 enableval=$enable_all_clocks; ntp_eac=$enableval
32172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
32173 $as_echo "$ntp_eac" >&6; }
32175 # HMS: Should we also require ntp_parse_ok?
32176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
32177 $as_echo_n "checking if we have support for PARSE clocks... " >&6; }
32178 case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
32185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
32186 $as_echo "$ntp_canparse" >&6; }
32188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
32189 $as_echo_n "checking if we have support for audio clocks... " >&6; }
32190 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
32194 $as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
32197 *) ntp_canaudio=no ;;
32199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
32200 $as_echo "$ntp_canaudio" >&6; }
32202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
32203 $as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
32204 case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
32208 *) ntp_canshm=no ;;
32210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
32211 $as_echo "$ntp_canshm" >&6; }
32213 # Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
32214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
32215 $as_echo_n "checking for termios modem control... " >&6; }
32216 if ${ntp_cv_modem_control+:} false; then :
32217 $as_echo_n "(cached) " >&6
32219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32220 /* end confdefs.h. */
32222 #ifdef HAVE_UNISTD_H
32223 # include <unistd.h>
32225 #ifdef HAVE_TERMIOS_H
32226 # include <termios.h>
32228 #ifdef HAVE_SYS_IOCTL_H
32229 # include <sys/ioctl.h>
32236 int dtr = TIOCM_DTR;
32238 ioctl(1, TIOCMBIS, (char *)&dtr);
32245 if ac_fn_c_try_compile "$LINENO"; then :
32246 ntp_cv_modem_control=yes
32248 ntp_cv_modem_control=no
32251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
32255 $as_echo "$ntp_cv_modem_control" >&6; }
32256 case "$ntp_eac::$ntp_cv_modem_control" in
32258 ntp_enable_all_modem_control_clocks=yes
32261 ntp_enable_all_modem_control_clocks=no
32265 # Requires modem control
32266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
32267 $as_echo_n "checking ACTS modem service... " >&6; }
32268 # Check whether --enable-ACTS was given.
32269 if test "${enable_ACTS+set}" = set; then :
32270 enableval=$enable_ACTS; ntp_ok=$enableval
32272 ntp_ok=$ntp_enable_all_modem_control_clocks
32280 $as_echo "#define CLOCK_ACTS 1" >>confdefs.h
32284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32285 $as_echo "$ntp_ok" >&6; }
32287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
32288 $as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
32289 # Check whether --enable-ARBITER was given.
32290 if test "${enable_ARBITER+set}" = set; then :
32291 enableval=$enable_ARBITER; ntp_ok=$enableval
32301 $as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
32305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32306 $as_echo "$ntp_ok" >&6; }
32308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
32309 $as_echo_n "checking Arcron MSF receiver... " >&6; }
32310 # Check whether --enable-ARCRON_MSF was given.
32311 if test "${enable_ARCRON_MSF+set}" = set; then :
32312 enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
32322 $as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
32326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32327 $as_echo "$ntp_ok" >&6; }
32329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
32330 $as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
32331 # Check whether --enable-AS2201 was given.
32332 if test "${enable_AS2201+set}" = set; then :
32333 enableval=$enable_AS2201; ntp_ok=$enableval
32343 $as_echo "#define CLOCK_AS2201 1" >>confdefs.h
32347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32348 $as_echo "$ntp_ok" >&6; }
32350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
32351 $as_echo_n "checking ATOM PPS interface... " >&6; }
32352 # Check whether --enable-ATOM was given.
32353 if test "${enable_ATOM+set}" = set; then :
32354 enableval=$enable_ATOM; ntp_ok=$enableval
32360 case "$ntp_atom_ok" in
32367 $as_echo "#define CLOCK_ATOM 1" >>confdefs.h
32371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32372 $as_echo "$ntp_ok" >&6; }
32374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
32375 $as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
32376 # Check whether --enable-CHRONOLOG was given.
32377 if test "${enable_CHRONOLOG+set}" = set; then :
32378 enableval=$enable_CHRONOLOG; ntp_ok=$enableval
32388 $as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
32392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32393 $as_echo "$ntp_ok" >&6; }
32395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
32396 $as_echo_n "checking CHU modem/decoder... " >&6; }
32397 # Check whether --enable-CHU was given.
32398 if test "${enable_CHU+set}" = set; then :
32399 enableval=$enable_CHU; ntp_ok=$enableval
32409 $as_echo "#define CLOCK_CHU 1" >>confdefs.h
32413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32414 $as_echo "$ntp_ok" >&6; }
32415 ntp_refclock_chu=$ntp_ok
32417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
32418 $as_echo_n "checking CHU audio/decoder... " >&6; }
32419 # Check whether --enable-AUDIO-CHU was given.
32420 if test "${enable_AUDIO_CHU+set}" = set; then :
32421 enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
32424 case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
32432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32433 $as_echo "$ntp_ok" >&6; }
32434 # We used to check for sunos/solaris target...
32435 case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
32436 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
32437 $as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
32441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
32442 $as_echo_n "checking Datum Programmable Time System... " >&6; }
32443 # Check whether --enable-DATUM was given.
32444 if test "${enable_DATUM+set}" = set; then :
32445 enableval=$enable_DATUM; ntp_ok=$enableval
32448 case "$ac_cv_header_termios_h" in
32463 $as_echo "#define CLOCK_DATUM 1" >>confdefs.h
32467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32468 $as_echo "$ntp_ok" >&6; }
32470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
32471 $as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
32472 # Check whether --enable-DUMBCLOCK was given.
32473 if test "${enable_DUMBCLOCK+set}" = set; then :
32474 enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
32484 $as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
32488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32489 $as_echo "$ntp_ok" >&6; }
32491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
32492 $as_echo_n "checking Forum Graphic GPS... " >&6; }
32493 # Check whether --enable-FG was given.
32494 if test "${enable_FG+set}" = set; then :
32495 enableval=$enable_FG; ntp_ok=$enableval
32505 $as_echo "#define CLOCK_FG 1" >>confdefs.h
32509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32510 $as_echo "$ntp_ok" >&6; }
32512 # Requires modem control
32513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
32514 $as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
32515 # Check whether --enable-HEATH was given.
32516 if test "${enable_HEATH+set}" = set; then :
32517 enableval=$enable_HEATH; ntp_ok=$enableval
32519 ntp_ok=$ntp_enable_all_modem_control_clocks
32527 $as_echo "#define CLOCK_HEATH 1" >>confdefs.h
32531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32532 $as_echo "$ntp_ok" >&6; }
32534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
32535 $as_echo_n "checking for hopf serial clock device... " >&6; }
32536 # Check whether --enable-HOPFSERIAL was given.
32537 if test "${enable_HOPFSERIAL+set}" = set; then :
32538 enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
32548 $as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
32552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32553 $as_echo "$ntp_ok" >&6; }
32555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
32556 $as_echo_n "checking for hopf PCI clock 6039... " >&6; }
32557 # Check whether --enable-HOPFPCI was given.
32558 if test "${enable_HOPFPCI+set}" = set; then :
32559 enableval=$enable_HOPFPCI; ntp_ok=$enableval
32569 $as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
32573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32574 $as_echo "$ntp_ok" >&6; }
32576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
32577 $as_echo_n "checking HP 58503A GPS receiver... " >&6; }
32578 # Check whether --enable-HPGPS was given.
32579 if test "${enable_HPGPS+set}" = set; then :
32580 enableval=$enable_HPGPS; ntp_ok=$enableval
32590 $as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
32594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32595 $as_echo "$ntp_ok" >&6; }
32597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
32598 $as_echo_n "checking IRIG audio decoder... " >&6; }
32599 # Check whether --enable-IRIG was given.
32600 if test "${enable_IRIG+set}" = set; then :
32601 enableval=$enable_IRIG; ntp_ok=$enableval
32604 case "$ntp_eac$ntp_canaudio" in
32616 $as_echo "#define CLOCK_IRIG 1" >>confdefs.h
32620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32621 $as_echo "$ntp_ok" >&6; }
32622 case "$ntp_ok$ntp_canaudio" in
32623 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32624 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
32627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
32628 $as_echo_n "checking for JJY receiver... " >&6; }
32629 # Check whether --enable-JJY was given.
32630 if test "${enable_JJY+set}" = set; then :
32631 enableval=$enable_JJY; ntp_ok=$enableval
32641 $as_echo "#define CLOCK_JJY 1" >>confdefs.h
32645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32646 $as_echo "$ntp_ok" >&6; }
32648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
32649 $as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
32650 # Check whether --enable-JUPITER was given.
32651 if test "${enable_JUPITER+set}" = set; then :
32652 enableval=$enable_JUPITER; ntp_ok=$enableval
32657 case "$ntp_jupiter_ok" in
32664 $as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
32668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32669 $as_echo "$ntp_ok" >&6; }
32671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
32672 $as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
32673 # Check whether --enable-LEITCH was given.
32674 if test "${enable_LEITCH+set}" = set; then :
32675 enableval=$enable_LEITCH; ntp_ok=$enableval
32685 $as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
32689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32690 $as_echo "$ntp_ok" >&6; }
32692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
32693 $as_echo_n "checking local clock reference... " >&6; }
32694 # Check whether --enable-LOCAL-CLOCK was given.
32695 if test "${enable_LOCAL_CLOCK+set}" = set; then :
32696 enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
32706 $as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
32710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32711 $as_echo "$ntp_ok" >&6; }
32715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
32716 $as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
32717 # Check whether --enable-MX4200 was given.
32718 if test "${enable_MX4200+set}" = set; then :
32719 enableval=$enable_MX4200; ntp_ok=$enableval
32722 case "$ac_cv_var_ppsclock" in
32738 $as_echo "#define CLOCK_MX4200 1" >>confdefs.h
32742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32743 $as_echo "$ntp_ok" >&6; }
32744 case "$ntp_ok$host" in
32745 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32746 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
32749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
32750 $as_echo_n "checking for NeoClock4X receiver... " >&6; }
32751 # Check whether --enable-NEOCLOCK4X was given.
32752 if test "${enable_NEOCLOCK4X+set}" = set; then :
32753 enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
32763 $as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
32767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32768 $as_echo "$ntp_ok" >&6; }
32770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
32771 $as_echo_n "checking NMEA GPS receiver... " >&6; }
32772 # Check whether --enable-NMEA was given.
32773 if test "${enable_NMEA+set}" = set; then :
32774 enableval=$enable_NMEA; ntp_ok=$enableval
32784 $as_echo "#define CLOCK_NMEA 1" >>confdefs.h
32788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32789 $as_echo "$ntp_ok" >&6; }
32791 for ac_func in strtoll
32793 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
32794 if test "x$ac_cv_func_strtoll" = xyes; then :
32795 cat >>confdefs.h <<_ACEOF
32796 #define HAVE_STRTOLL 1
32802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
32803 $as_echo_n "checking for GPSD JSON receiver... " >&6; }
32804 # Check whether --enable-GPSD was given.
32805 if test "${enable_GPSD+set}" = set; then :
32806 enableval=$enable_GPSD; ntp_ok=$enableval
32808 case "$ac_cv_func_strtoll" in
32809 yes) ntp_ok=$ntp_eac ;;
32819 $as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h
32823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32824 $as_echo "$ntp_ok" >&6; }
32826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
32827 $as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
32828 # Check whether --enable-ONCORE was given.
32829 if test "${enable_ONCORE+set}" = set; then :
32830 enableval=$enable_ONCORE; ntp_ok=$enableval
32836 case "$ntp_oncore_ok" in
32843 $as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
32847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32848 $as_echo "$ntp_ok" >&6; }
32850 # Requires modem control
32851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
32852 $as_echo_n "checking for Palisade clock... " >&6; }
32853 # Check whether --enable-PALISADE was given.
32854 if test "${enable_PALISADE+set}" = set; then :
32855 enableval=$enable_PALISADE; ntp_ok=$enableval
32857 ntp_ok=$ntp_enable_all_modem_control_clocks
32865 $as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
32869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32870 $as_echo "$ntp_ok" >&6; }
32872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
32873 $as_echo_n "checking Conrad parallel port radio clock... " >&6; }
32874 # Check whether --enable-PCF was given.
32875 if test "${enable_PCF+set}" = set; then :
32876 enableval=$enable_PCF; ntp_ok=$enableval
32886 $as_echo "#define CLOCK_PCF 1" >>confdefs.h
32890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32891 $as_echo "$ntp_ok" >&6; }
32893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
32894 $as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
32895 # Check whether --enable-PST was given.
32896 if test "${enable_PST+set}" = set; then :
32897 enableval=$enable_PST; ntp_ok=$enableval
32907 $as_echo "#define CLOCK_PST 1" >>confdefs.h
32911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32912 $as_echo "$ntp_ok" >&6; }
32914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
32915 $as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
32916 # Check whether --enable-RIPENCC was given.
32917 if test "${enable_RIPENCC+set}" = set; then :
32918 enableval=$enable_RIPENCC; ntp_ok=$enableval
32924 # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
32925 case "$ntp_ripe_ncc_ok" in
32932 $as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
32936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32937 $as_echo "$ntp_ok" >&6; }
32939 # Danny Meyer says SHM compiles (with a few warnings) under Win32.
32940 # For *IX, we need sys/ipc.h and sys/shm.h.
32941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
32942 $as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
32943 # Check whether --enable-SHM was given.
32944 if test "${enable_SHM+set}" = set; then :
32945 enableval=$enable_SHM; ntp_ok=$enableval
32948 case "$ntp_eac$ntp_canshm" in
32960 $as_echo "#define CLOCK_SHM 1" >>confdefs.h
32964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32965 $as_echo "$ntp_ok" >&6; }
32967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
32968 $as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
32969 # Check whether --enable-SPECTRACOM was given.
32970 if test "${enable_SPECTRACOM+set}" = set; then :
32971 enableval=$enable_SPECTRACOM; ntp_ok=$enableval
32981 $as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
32985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32986 $as_echo "$ntp_ok" >&6; }
32988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
32989 $as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
32990 # Check whether --enable-TPRO was given.
32991 if test "${enable_TPRO+set}" = set; then :
32992 enableval=$enable_TPRO; ntp_ok=$enableval
32995 case "$ac_cv_header_sys_tpro_h" in
33011 $as_echo "#define CLOCK_TPRO 1" >>confdefs.h
33015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33016 $as_echo "$ntp_ok" >&6; }
33017 case "$ntp_ok$ac_cv_header_sys_tpro" in
33018 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33019 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33022 # Not on a vax-dec-bsd
33023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
33024 $as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
33025 # Check whether --enable-TRUETIME was given.
33026 if test "${enable_TRUETIME+set}" = set; then :
33027 enableval=$enable_TRUETIME; ntp_ok=$enableval
33046 $as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
33050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33051 $as_echo "$ntp_ok" >&6; }
33052 case "$ntp_ok$host" in
33053 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33054 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
33058 $as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
33059 # Check whether --enable-TT560 was given.
33060 if test "${enable_TT560+set}" = set; then :
33061 enableval=$enable_TT560; ntp_ok=$enableval
33071 $as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
33075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33076 $as_echo "$ntp_ok" >&6; }
33078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
33079 $as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
33080 # Check whether --enable-ULINK was given.
33081 if test "${enable_ULINK+set}" = set; then :
33082 enableval=$enable_ULINK; ntp_ok=$enableval
33092 $as_echo "#define CLOCK_ULINK 1" >>confdefs.h
33096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33097 $as_echo "$ntp_ok" >&6; }
33099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
33100 $as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
33101 # Check whether --enable-TSYNCPCI was given.
33102 if test "${enable_TSYNCPCI+set}" = set; then :
33103 enableval=$enable_TSYNCPCI; ntp_ok=$enableval
33121 $as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h
33125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33126 $as_echo "$ntp_ok" >&6; }
33128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
33129 $as_echo_n "checking WWV receiver... " >&6; }
33130 # Check whether --enable-WWV was given.
33131 if test "${enable_WWV+set}" = set; then :
33132 enableval=$enable_WWV; ntp_ok=$enableval
33135 case "$ntp_eac$ntp_canaudio" in
33147 $as_echo "#define CLOCK_WWV 1" >>confdefs.h
33151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33152 $as_echo "$ntp_ok" >&6; }
33153 case "$ntp_ok$ntp_canaudio" in
33154 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33155 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
33159 $as_echo_n "checking for Zyfer receiver... " >&6; }
33160 # Check whether --enable-ZYFER was given.
33161 if test "${enable_ZYFER+set}" = set; then :
33162 enableval=$enable_ZYFER; ntp_ok=$enableval
33172 $as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
33176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33177 $as_echo "$ntp_ok" >&6; }
33179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
33180 $as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
33181 # Check whether --enable-parse-clocks was given.
33182 if test "${enable_parse_clocks+set}" = set; then :
33183 enableval=$enable_parse_clocks; ntp_eapc=$enableval
33187 yes) ntp_eapc=$ntp_canparse ;;
33190 # Delete the next line one of these days
33196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
33197 $as_echo "$ntp_eapc" >&6; }
33199 case "$ntp_eac$ntp_eapc$ntp_canparse" in
33201 as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
33204 as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
33212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
33213 $as_echo_n "checking Diem Computime Radio Clock... " >&6; }
33214 # Check whether --enable-COMPUTIME was given.
33215 if test "${enable_COMPUTIME+set}" = set; then :
33216 enableval=$enable_COMPUTIME; ntp_ok=$enableval
33227 $as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
33231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33232 $as_echo "$ntp_ok" >&6; }
33233 case "$ntp_ok$ntp_canparse" in
33235 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
33239 $as_echo_n "checking ELV/DCF7000 clock... " >&6; }
33240 # Check whether --enable-DCF7000 was given.
33241 if test "${enable_DCF7000+set}" = set; then :
33242 enableval=$enable_DCF7000; ntp_ok=$enableval
33253 $as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
33257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33258 $as_echo "$ntp_ok" >&6; }
33259 case "$ntp_ok$ntp_canparse" in
33261 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
33265 $as_echo_n "checking HOPF 6021 clock... " >&6; }
33266 # Check whether --enable-HOPF6021 was given.
33267 if test "${enable_HOPF6021+set}" = set; then :
33268 enableval=$enable_HOPF6021; ntp_ok=$enableval
33279 $as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
33283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33284 $as_echo "$ntp_ok" >&6; }
33285 case "$ntp_ok$ntp_canparse" in
33287 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
33291 $as_echo_n "checking Meinberg clocks... " >&6; }
33292 # Check whether --enable-MEINBERG was given.
33293 if test "${enable_MEINBERG+set}" = set; then :
33294 enableval=$enable_MEINBERG; ntp_ok=$enableval
33305 $as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
33309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33310 $as_echo "$ntp_ok" >&6; }
33311 case "$ntp_ok$ntp_canparse" in
33313 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
33317 $as_echo_n "checking DCF77 raw time code... " >&6; }
33318 # Check whether --enable-RAWDCF was given.
33319 if test "${enable_RAWDCF+set}" = set; then :
33320 enableval=$enable_RAWDCF; ntp_ok=$enableval
33333 $as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
33337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33338 $as_echo "$ntp_ok" >&6; }
33339 case "$ntp_ok$ntp_canparse" in
33341 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33344 case "$ntp_rawdcf" in
33346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
33347 $as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
33348 if ${ntp_cv_rawdcf_parity+:} false; then :
33349 $as_echo_n "(cached) " >&6
33358 ntp_cv_rawdcf_parity=$ans
33362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
33363 $as_echo "$ntp_cv_rawdcf_parity" >&6; }
33364 case "$ntp_cv_rawdcf_parity" in
33367 $as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
33372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
33373 $as_echo_n "checking RCC 8000 clock... " >&6; }
33374 # Check whether --enable-RCC8000 was given.
33375 if test "${enable_RCC8000+set}" = set; then :
33376 enableval=$enable_RCC8000; ntp_ok=$enableval
33387 $as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
33391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33392 $as_echo "$ntp_ok" >&6; }
33393 case "$ntp_ok$ntp_canparse" in
33395 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
33399 $as_echo_n "checking Schmid DCF77 clock... " >&6; }
33400 # Check whether --enable-SCHMID was given.
33401 if test "${enable_SCHMID+set}" = set; then :
33402 enableval=$enable_SCHMID; ntp_ok=$enableval
33413 $as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
33417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33418 $as_echo "$ntp_ok" >&6; }
33419 case "$ntp_ok$ntp_canparse" in
33421 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
33425 $as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
33426 # Check whether --enable-TRIMTAIP was given.
33427 if test "${enable_TRIMTAIP+set}" = set; then :
33428 enableval=$enable_TRIMTAIP; ntp_ok=$enableval
33439 $as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
33443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33444 $as_echo "$ntp_ok" >&6; }
33445 case "$ntp_ok$ntp_canparse" in
33447 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
33451 $as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
33452 # Check whether --enable-TRIMTSIP was given.
33453 if test "${enable_TRIMTSIP+set}" = set; then :
33454 enableval=$enable_TRIMTSIP; ntp_ok=$enableval
33465 $as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
33469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33470 $as_echo "$ntp_ok" >&6; }
33471 case "$ntp_ok$ntp_canparse" in
33473 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
33477 $as_echo_n "checking WHARTON 400A Series clock... " >&6; }
33478 # Check whether --enable-WHARTON was given.
33479 if test "${enable_WHARTON+set}" = set; then :
33480 enableval=$enable_WHARTON; ntp_ok=$enableval
33491 $as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
33495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33496 $as_echo "$ntp_ok" >&6; }
33497 case "$ntp_ok$ntp_canparse" in
33499 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
33503 $as_echo_n "checking VARITEXT clock... " >&6; }
33504 # Check whether --enable-VARITEXT was given.
33505 if test "${enable_VARITEXT+set}" = set; then :
33506 enableval=$enable_VARITEXT; ntp_ok=$enableval
33517 $as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
33521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33522 $as_echo "$ntp_ok" >&6; }
33523 case "$ntp_ok$ntp_canparse" in
33525 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
33529 $as_echo_n "checking SEL240X clock... " >&6; }
33530 # Check whether --enable-SEL240X was given.
33531 if test "${enable_SEL240X+set}" = set; then :
33532 enableval=$enable_SEL240X; ntp_ok=$enableval
33537 if test "$ntp_ok" = "yes"; then
33541 $as_echo "#define CLOCK_SEL240X 1" >>confdefs.h
33544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33545 $as_echo "$ntp_ok" >&6; }
33546 case "$ntp_ok$ntp_canparse" in
33548 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
33558 $as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
33560 case "$ntp_libparse" in
33564 $as_echo "#define CLOCK_PARSE 1" >>confdefs.h
33566 LIBPARSE=../libparse/libparse.a
33567 MAKE_LIBPARSE=libparse.a
33568 # HMS: check_y2k trips the 34 year problem now...
33569 false && MAKE_CHECK_Y2K=check_y2k
33571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33572 $as_echo "$ans" >&6; }
33582 # Check whether --with-crypto was given.
33583 if test "${with_crypto+set}" = set; then :
33584 withval=$with_crypto;
33588 # Check whether --with-openssl-libdir was given.
33589 if test "${with_openssl_libdir+set}" = set; then :
33590 withval=$with_openssl_libdir;
33594 # Check whether --with-openssl-incdir was given.
33595 if test "${with_openssl_incdir+set}" = set; then :
33596 withval=$with_openssl_incdir;
33600 # Check whether --with-rpath was given.
33601 if test "${with_rpath+set}" = set; then :
33602 withval=$with_rpath;
33606 ntp_openssl_from_pkg_config=no
33607 with_crypto=${with_crypto:-openssl,libcrypto}
33608 case "$with_crypto" in
33610 with_crypto=openssl,libcrypto
33612 case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
33614 *:notempty:notgiven:notgiven)
33615 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
33616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
33617 $as_echo_n "checking pkg-config for $pkg... " >&6; }
33618 if $PKG_CONFIG --exists $pkg ; then
33619 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
33620 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
33621 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
33622 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
33623 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
33626 ntp_openssl_from_pkg_config=yes
33627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33628 $as_echo "yes" >&6; }
33632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33633 $as_echo "no" >&6; }
33636 case "$with_crypto:$ntp_openssl" in
33641 case "${with_rpath-notgiven}" in
33643 # Lame - what to do if we need -Wl... but not -R?
33649 # This may really only be true for gcc
33650 need_dash_Wlrpath=1
33662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
33663 $as_echo_n "checking for openssl library directory... " >&6; }
33664 with_openssl_libdir=${with_openssl_libdir-notgiven}
33665 case "$with_openssl_libdir" in
33669 with_openssl_libdir=default
33672 with_openssl_libdir=no
33676 case "$with_openssl_libdir" in
33679 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
33680 with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
33681 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
33683 case "$with_openssl_libdir" in
33686 *) # Look for libcrypto.a and libssl.a:
33687 for i in $with_openssl_libdir no
33691 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
33694 test -f $i/libcrypto.so -a -f $i/libssl.so && break
33695 test -f $i/libcrypto.a -a -f $i/libssl.a && break
33702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
33703 $as_echo "$openssl_libdir" >&6; }
33704 case "$openssl_libdir" in
33707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
33708 $as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
33711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
33712 $as_echo_n "checking for openssl include directory... " >&6; }
33713 with_openssl_incdir=${with_openssl_incdir-notgiven}
33714 case "$with_openssl_incdir" in
33717 with_openssl_incdir="/usr/include /usr/sfw/include"
33718 with_openssl_incdir="$with_openssl_incdir /usr/local/include"
33719 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
33721 case "$with_openssl_incdir" in
33724 *) # look for openssl/evp.h:
33725 for i in $with_openssl_incdir no
33727 test -f $i/openssl/evp.h && break
33733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
33734 $as_echo "$openssl_incdir" >&6; }
33735 case "$openssl_incdir" in
33738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
33739 $as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
33741 if test -z "$openssl_libdir" -o -z "$openssl_incdir"
33748 case "$ntp_openssl" in
33750 # We have OpenSSL inc/lib dirs - use them.
33751 case "$openssl_incdir" in
33755 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
33758 case "$openssl_libdir" in
33762 LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
33763 case "$need_dash_r" in
33765 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
33767 case "$need_dash_Wlrpath" in
33769 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
33773 LDADD_NTP="$LDADD_NTP -lcrypto"
33777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
33778 $as_echo_n "checking if we will use crypto... " >&6; }
33779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
33780 $as_echo "$ntp_openssl" >&6; }
33782 case "$ntp_openssl" in
33785 $as_echo "#define OPENSSL /**/" >>confdefs.h
33787 case "$VER_SUFFIX" in
33789 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
33794 NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
33795 CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
33796 NTPO_SAVED_LIBS="$LIBS"
33799 # check for linking with -lcrypto failure, and try -lcrypto -lz.
33800 # Helps m68k-atari-mint
33802 case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
33804 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
33805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
33806 $as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
33807 if ${ntp_cv_bare_lcrypto+:} false; then :
33808 $as_echo_n "(cached) " >&6
33810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33811 /* end confdefs.h. */
33813 #include "openssl/err.h"
33814 #include "openssl/evp.h"
33820 ERR_load_crypto_strings();
33821 OpenSSL_add_all_algorithms();
33828 if ac_fn_c_try_link "$LINENO"; then :
33829 ntp_cv_bare_lcrypto=yes
33831 ntp_cv_bare_lcrypto=no
33834 rm -f core conftest.err conftest.$ac_objext \
33835 conftest$ac_exeext conftest.$ac_ext
33838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
33839 $as_echo "$ntp_cv_bare_lcrypto" >&6; }
33840 case "$ntp_cv_bare_lcrypto" in
33842 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
33843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
33844 $as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
33845 if ${ntp_cv_lcrypto_lz+:} false; then :
33846 $as_echo_n "(cached) " >&6
33848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33849 /* end confdefs.h. */
33851 #include "openssl/err.h"
33852 #include "openssl/evp.h"
33858 ERR_load_crypto_strings();
33859 OpenSSL_add_all_algorithms();
33866 if ac_fn_c_try_link "$LINENO"; then :
33867 ntp_cv_lcrypto_lz=yes
33869 ntp_cv_lcrypto_lz=no
33872 rm -f core conftest.err conftest.$ac_objext \
33873 conftest$ac_exeext conftest.$ac_ext
33876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
33877 $as_echo "$ntp_cv_lcrypto_lz" >&6; }
33878 case "$ntp_cv_lcrypto_lz" in
33880 LDADD_NTP="$LDADD_NTP -lz"
33886 # Older OpenSSL headers have a number of callback prototypes inside
33887 # other function prototypes which trigger copious warnings with gcc's
33888 # -Wstrict-prototypes, which is included in -Wall.
33892 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
33893 # int (*cb)(), int sgckey);
33898 openssl_triggers_warnings=unknown
33899 NTPO_SAVED_CFLAGS="$CFLAGS"
33901 case "$ntp_openssl:$GCC" in
33903 CFLAGS="$CFLAGS -Werror"
33904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33905 /* end confdefs.h. */
33912 /* see if -Werror breaks gcc */
33919 if ac_fn_c_try_compile "$LINENO"; then :
33920 gcc_handles_Werror=yes
33922 gcc_handles_Werror=no
33925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33926 case "$gcc_handles_Werror" in
33928 # if this gcc doesn't do -Werror go ahead and use
33929 # -Wstrict-prototypes.
33930 openssl_triggers_warnings=yes
33933 CFLAGS="$CFLAGS -Wstrict-prototypes"
33934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33935 /* end confdefs.h. */
33937 #include "openssl/asn1_mac.h"
33938 #include "openssl/bn.h"
33939 #include "openssl/err.h"
33940 #include "openssl/evp.h"
33941 #include "openssl/pem.h"
33942 #include "openssl/rand.h"
33943 #include "openssl/x509v3.h"
33956 if ac_fn_c_try_compile "$LINENO"; then :
33957 openssl_triggers_warnings=no
33959 openssl_triggers_warnings=yes
33962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33964 case "$openssl_triggers_warnings" in
33966 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
33969 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
33973 # gcc without OpenSSL
33974 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
33977 CFLAGS="$NTPO_SAVED_CFLAGS"
33978 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
33979 LIBS="$NTPO_SAVED_LIBS"
33980 { NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
33981 { NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
33982 { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
33983 { openssl_triggers_warnings=; unset openssl_triggers_warnings;}
33984 { ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
33990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
33991 $as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
33992 # Check whether --enable-openssl-random was given.
33993 if test "${enable_openssl_random+set}" = set; then :
33994 enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
33996 ntp_use_openssl_random=yes
34000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
34001 $as_echo "$ntp_use_openssl_random" >&6; }
34003 # The following might need extra libraries
34004 NTPO_SAVED_LIBS="$LIBS"
34005 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34006 for ac_func in RAND_bytes RAND_poll
34008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34009 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
34010 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
34011 cat >>confdefs.h <<_ACEOF
34012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34018 LIBS="$NTPO_SAVED_LIBS"
34019 case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
34022 $as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
34025 *) ntp_use_openssl_random=no ;;
34030 # if we are using OpenSSL (--with-crypto), by default Autokey is enabled
34031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
34032 $as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
34033 # Check whether --enable-autokey was given.
34034 if test "${enable_autokey+set}" = set; then :
34035 enableval=$enable_autokey; ntp_autokey=$enableval
34037 ntp_autokey=$ntp_openssl
34041 case "$ntp_autokey" in
34045 case "$ntp_openssl" in
34047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
34048 $as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
34053 $as_echo "#define AUTOKEY 1" >>confdefs.h
34060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
34061 $as_echo "$ntp_autokey" >&6; }
34064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
34065 $as_echo_n "checking if we want to run check-layout... " >&6; }
34066 case "$cross_compiling$PATH_PERL" in
34068 MAKE_CHECK_LAYOUT=check-layout
34075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34076 $as_echo "$ans" >&6; }
34080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
34081 $as_echo_n "checking if we can make dcf parse utilities... " >&6; }
34083 case "$ntp_parseutil" in
34086 *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
34093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34094 $as_echo "$ans" >&6; }
34097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
34098 $as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
34100 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
34104 case "$ntp_cv_var_kernel_pll" in
34107 $as_echo "#define PPS_SYNC 1" >>confdefs.h
34112 MAKE_PARSEKMODULE=parsestreams.loadable_module.o
34116 MAKE_PARSEKMODULE=parse
34117 for ac_header in strings.h
34119 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
34120 if test "x$ac_cv_header_strings_h" = xyes; then :
34121 cat >>confdefs.h <<_ACEOF
34122 #define HAVE_STRINGS_H 1
34133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34134 $as_echo "$ans" >&6; }
34136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
34137 $as_echo_n "checking if we need basic refclock support... " >&6; }
34138 case "$ntp_refclock" in
34141 $as_echo "#define REFCLOCK 1" >>confdefs.h
34145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
34146 $as_echo "$ntp_refclock" >&6; }
34148 PROPDELAY=propdelay
34152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
34153 $as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
34163 MAKE_ADJTIMED=adjtimed
34165 $as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
34174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34175 $as_echo "$ans" >&6; }
34177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
34178 $as_echo_n "checking if we want QNX adjtime support... " >&6; }
34189 $as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
34193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34194 $as_echo "$ans" >&6; }
34196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
34197 $as_echo_n "checking if we can read kmem... " >&6; }
34199 # the default is to enable it if the system has the capability
34201 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
34210 *-*-domainos) # Won't be found...
34230 # --enable-kmem / --disable-kmem controls if present
34231 # Check whether --enable-kmem was given.
34232 if test "${enable_kmem+set}" = set; then :
34233 enableval=$enable_kmem; ans=$enableval
34238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34239 $as_echo "$ans" >&6; }
34248 $as_echo "#define NOKMEM 1" >>confdefs.h
34253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
34254 $as_echo_n "checking if adjtime is accurate... " >&6; }
34256 # target-dependent defaults
34262 i386-unknown-osf1*)
34265 mips-sgi-irix[456]*)
34272 # XXX only verified thru AIX6.
34291 # --enable-accurate-adjtime / --disable-accurate-adjtime
34292 # override the default
34293 # Check whether --enable-accurate-adjtime was given.
34294 if test "${enable_accurate_adjtime+set}" = set; then :
34295 enableval=$enable_accurate_adjtime; ans=$enableval
34300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34301 $as_echo "$ans" >&6; }
34306 $as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
34308 adjtime_is_accurate=yes
34311 adjtime_is_accurate=no
34315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
34316 $as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
34317 if ${ntp_cv_nlist_tick+:} false; then :
34318 $as_echo_n "(cached) " >&6
34323 m68*-hp-hpux*) # HP9000/300?
34333 # XXX only verified thru AIX6.
34352 ntp_cv_nlist_tick=$ans
34356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
34357 $as_echo "$ntp_cv_nlist_tick" >&6; }
34358 case "$ntp_cv_nlist_tick" in
34360 ;; # HMS: I think we can only get 'no' here...
34363 cat >>confdefs.h <<_ACEOF
34364 #define K_TICK_NAME "$ntp_cv_nlist_tick"
34369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
34370 $as_echo_n "checking for the units of 'tick'... " >&6; }
34371 if ${ntp_cv_tick_nano+:} false; then :
34372 $as_echo_n "(cached) " >&6
34381 ntp_cv_tick_nano=$ans
34385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
34386 $as_echo "$ntp_cv_tick_nano" >&6; }
34387 case "$ntp_cv_tick_nano" in
34390 $as_echo "#define TICK_NANO 1" >>confdefs.h
34394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
34395 $as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
34396 if ${ntp_cv_nlist_tickadj+:} false; then :
34397 $as_echo_n "(cached) " >&6
34402 m68*-hp-hpux*) # HP9000/300?
34433 ans=no # hrestime_adj
34439 ntp_cv_nlist_tickadj=$ans
34443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
34444 $as_echo "$ntp_cv_nlist_tickadj" >&6; }
34445 case "$ntp_cv_nlist_tickadj" in
34447 ;; # HMS: I think we can only get 'no' here...
34450 cat >>confdefs.h <<_ACEOF
34451 #define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
34456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
34457 $as_echo_n "checking for the units of 'tickadj'... " >&6; }
34458 if ${ntp_cv_tickadj_nano+:} false; then :
34459 $as_echo_n "(cached) " >&6
34468 ntp_cv_tickadj_nano=$ans
34472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
34473 $as_echo "$ntp_cv_tickadj_nano" >&6; }
34474 case "$ntp_cv_tickadj_nano" in
34477 $as_echo "#define TICKADJ_NANO 1" >>confdefs.h
34481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
34482 $as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
34483 if ${ntp_cv_nlist_dosynctodr+:} false; then :
34484 $as_echo_n "(cached) " >&6
34525 ntp_cv_nlist_dosynctodr=$ans
34529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
34530 $as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
34531 case "$ntp_cv_nlist_dosynctodr" in
34536 cat >>confdefs.h <<_ACEOF
34537 #define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
34543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
34544 $as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
34545 if ${ntp_cv_nlist_noprintf+:} false; then :
34546 $as_echo_n "(cached) " >&6
34581 ntp_cv_nlist_noprintf=$ans
34585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
34586 $as_echo "$ntp_cv_nlist_noprintf" >&6; }
34587 case "$ntp_cv_nlist_noprintf" in
34592 cat >>confdefs.h <<_ACEOF
34593 #define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
34602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
34603 $as_echo_n "checking for a default value for 'tick'... " >&6; }
34605 # target-dependent default for tick
34609 as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
34634 # Check whether --enable-tick was given.
34635 if test "${enable_tick+set}" = set; then :
34636 enableval=$enable_tick; ans=$enableval
34641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34642 $as_echo "$ans" >&6; }
34646 ;; # HMS: I think we can only get 'no' here...
34649 cat >>confdefs.h <<_ACEOF
34650 #define PRESET_TICK $ans
34655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
34656 $as_echo_n "checking for a default value for 'tickadj'... " >&6; }
34658 # target-specific default
34662 case "$adjtime_is_accurate" in
34671 case "$can_kmem" in
34677 *-*-domainos) # Skippy: won't be found...
34678 case "$can_kmem" in
34685 case "$adjtime_is_accurate" in
34708 # Check whether --enable-tickadj was given.
34709 if test "${enable_tickadj+set}" = set; then :
34710 enableval=$enable_tickadj; ans=$enableval
34715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34716 $as_echo "$ans" >&6; }
34718 default_tickadj=$ans
34720 case "$default_tickadj" in
34722 ;; # HMS: I think we can only get 'no' here...
34725 cat >>confdefs.h <<_ACEOF
34726 #define PRESET_TICKADJ $default_tickadj
34731 # Newer versions of ReliantUNIX round adjtime() values down to
34732 # 1/100s (system tick). Sigh ...
34733 # Unfortunately, there is no easy way to know if particular release
34734 # has this "feature" or any obvious way to test for it.
34738 $as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
34745 $as_echo "#define SCO5_CLOCK 1" >>confdefs.h
34749 ntp_cv_make_tickadj=yes
34750 case "$can_kmem$ac_cv_var_tick$default_tickadj" in
34751 nonono) # Don't read KMEM, no presets. Bogus.
34752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5
34753 $as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;}
34754 ntp_cv_make_tickadj=no
34756 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
34757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5
34758 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;}
34759 ntp_cv_make_tickadj=no
34761 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus.
34762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5
34763 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;}
34764 ntp_cv_make_tickadj=no
34766 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool.
34768 yesnono) # Read KMEM, no presets. Cool.
34770 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
34771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5
34772 $as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;}
34774 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool.
34776 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
34778 *) # Generally bogus.
34779 as_fn_error $? "This shouldn't happen." "$LINENO" 5
34784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
34785 $as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
34786 if ${ac_cv_make_ntptime+:} false; then :
34787 $as_echo_n "(cached) " >&6
34790 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
34800 ac_cv_make_ntptime=$ans
34802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
34803 $as_echo "$ac_cv_make_ntptime" >&6; }
34804 case "$ac_cv_make_ntptime" in
34806 MAKE_NTPTIME=ntptime
34819 # tickadj is pretty useless on newer versions of ReliantUNIX
34821 ntp_cv_make_tickadj=no
34824 ntp_cv_make_tickadj=no
34827 # DLM says tickadj is a no-no starting with solaris2.5
34829 *-*-solaris2.1[0-9]*)
34830 ntp_cv_make_tickadj=no
34832 *-*-solaris2.[0-4]*) ;;
34833 *) ntp_cv_make_tickadj=no ;;
34837 ntp_cv_make_tickadj=no
34842 # Despite all the above, we always make tickadj. Setting
34843 # ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
34844 # report that the configuration variable was cached. It may
34845 # be better to simply remove the hunk above, I did not want
34846 # to remove it if there is hope it will be used again.
34848 { ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}
34850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
34851 $as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
34852 if ${ntp_cv_make_tickadj+:} false; then :
34853 $as_echo_n "(cached) " >&6
34855 ntp_cv_make_tickadj=yes
34858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
34859 $as_echo "$ntp_cv_make_tickadj" >&6; }
34860 case "$ntp_cv_make_tickadj" in
34862 MAKE_TICKADJ=tickadj
34877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
34878 $as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
34879 if ${ntp_cv_make_timetrim+:} false; then :
34880 $as_echo_n "(cached) " >&6
34885 ntp_cv_make_timetrim=yes
34888 ntp_cv_make_timetrim=yes
34891 ntp_cv_make_timetrim=no
34897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
34898 $as_echo "$ntp_cv_make_timetrim" >&6; }
34899 case "$ntp_cv_make_timetrim" in
34901 MAKE_TIMETRIM=timetrim
34913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
34914 $as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
34915 # Check whether --enable-simulator was given.
34916 if test "${enable_simulator+set}" = set; then :
34917 enableval=$enable_simulator; ans=$enableval
34923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34924 $as_echo "$ans" >&6; }
34927 MAKE_NTPDSIM=ntpdsim
34928 MAKE_LIBNTPSIM=libntpsim.a
34943 LDFLAGS="$LDFLAGS -r"
34951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
34952 $as_echo_n "checking if sntp will be built... " >&6; }
34954 # Check whether --with-sntp was given.
34955 if test "${with_sntp+set}" = set; then :
34956 withval=$with_sntp;
34958 with_sntp="${withsntp=yes}"
34962 case "$with_sntp" in
34971 if test -n "$SNTP"; then
34973 BUILD_SNTP_FALSE='#'
34975 BUILD_SNTP_TRUE='#'
34979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
34980 $as_echo "$with_sntp" >&6; }
34984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
34985 $as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
34987 # Check whether --with-ntpsnmpd was given.
34988 if test "${with_ntpsnmpd+set}" = set; then :
34989 withval=$with_ntpsnmpd; ans=$withval
34992 case "$PATH_NET_SNMP_CONFIG" in
35000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35001 $as_echo "$ans" >&6; }
35004 case "$PATH_NET_SNMP_CONFIG" in
35006 SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
35008 # HMS: we really want to separate CPPFLAGS and CFLAGS
35009 foo=`$PATH_NET_SNMP_CONFIG --cflags`
35015 SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
35017 *) SNMP_CFLAGS="$SNMP_CFLAGS $i"
35024 save_CFLAGS=$CFLAGS
35025 save_CPPFLAGS=$CPPFLAGS
35027 CFLAGS=$SNMP_CFLAGS
35028 CPPFLAGS=$SNMP_CPPFLAGS
35030 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"
35031 if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
35032 MAKE_NTPSNMPD=ntpsnmpd
35034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
35035 $as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
35041 # Do this last, as we're messing up LIBS.
35042 # check -lnetsnmp for netsnmp_daemonize
35043 LIBS=`$PATH_NET_SNMP_CONFIG --libs`
35044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
35045 $as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
35046 if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
35047 $as_echo_n "(cached) " >&6
35049 ac_check_lib_save_LIBS=$LIBS
35050 LIBS="-lnetsnmp $LIBS"
35051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35052 /* end confdefs.h. */
35054 /* Override any GCC internal prototype to avoid an error.
35055 Use char because int might match the return type of a GCC
35056 builtin and then its argument prototype would still apply. */
35060 char netsnmp_daemonize ();
35064 return netsnmp_daemonize ();
35069 if ac_fn_c_try_link "$LINENO"; then :
35070 ac_cv_lib_netsnmp_netsnmp_daemonize=yes
35072 ac_cv_lib_netsnmp_netsnmp_daemonize=no
35074 rm -f core conftest.err conftest.$ac_objext \
35075 conftest$ac_exeext conftest.$ac_ext
35076 LIBS=$ac_check_lib_save_LIBS
35078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
35079 $as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
35080 if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
35090 $as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
35094 CFLAGS=$save_CFLAGS
35095 { save_CFLAGS=; unset save_CFLAGS;}
35096 CPPFLAGS=$save_CPPFLAGS
35097 { save_CPPFLAGS=; unset save_CPPFLAGS;}
35099 { save_LIBS=; unset save_LIBS;}
35102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
35103 $as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
35110 case "$MAKE_NTPSNMPD" in
35119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
35120 $as_echo_n "checking if we should always slew the time... " >&6; }
35122 # target-specific defaults
35134 *-*-openvms*) # HMS: won't be found
35141 # --enable-slew-always / --disable-slew-always overrides default
35143 # Check whether --enable-slew-always was given.
35144 if test "${enable_slew_always+set}" = set; then :
35145 enableval=$enable_slew_always; ans=$enableval
35150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35151 $as_echo "$ans" >&6; }
35156 $as_echo "#define SLEWALWAYS 1" >>confdefs.h
35160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
35161 $as_echo_n "checking if we should step and slew the time... " >&6; }
35173 *-*-solaris2.1[0-9]*)
35176 *-*-solaris2.[012]*)
35179 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP?
35186 # Check whether --enable-step-slew was given.
35187 if test "${enable_step_slew+set}" = set; then :
35188 enableval=$enable_step_slew; ans=$enableval
35193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35194 $as_echo "$ans" >&6; }
35199 $as_echo "#define STEP_SLEW 1" >>confdefs.h
35203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
35204 $as_echo_n "checking if ntpdate should step the time... " >&6; }
35214 # Check whether --enable-ntpdate-step was given.
35215 if test "${enable_ntpdate_step+set}" = set; then :
35216 enableval=$enable_ntpdate_step; ans=$enableval
35221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35222 $as_echo "$ans" >&6; }
35227 $as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
35232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
35233 $as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
35239 *-*-openvms*) # HMS: won't be found
35247 # Check whether --enable-hourly-todr-sync was given.
35248 if test "${enable_hourly_todr_sync+set}" = set; then :
35249 enableval=$enable_hourly_todr_sync; ans=$enableval
35254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35255 $as_echo "$ans" >&6; }
35257 case "$ac_cv_var_sync_todr" in
35260 $as_echo "#define DOSYNCTODR 1" >>confdefs.h
35265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
35266 $as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
35277 if test "$2" -ge 17
35279 # Generic_105181-17 and higher
35298 if test "$2" -ge 07
35300 # Generic_106541-07 and higher
35316 # Check whether --enable-kernel-fll-bug was given.
35317 if test "${enable_kernel_fll_bug+set}" = set; then :
35318 enableval=$enable_kernel_fll_bug; ans=$enableval
35323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35324 $as_echo "$ans" >&6; }
35329 $as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
35334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
35335 $as_echo_n "checking if we want new session key behavior... " >&6; }
35336 # Check whether --enable-bug1243-fix was given.
35337 if test "${enable_bug1243_fix+set}" = set; then :
35338 enableval=$enable_bug1243_fix; ans=$enableval
35344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35345 $as_echo "$ans" >&6; }
35349 $as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
35354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
35355 $as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
35361 *-*-solaris2.1[0-9]*)
35368 # Check whether --enable-irig-sawtooth was given.
35369 if test "${enable_irig_sawtooth+set}" = set; then :
35370 enableval=$enable_irig_sawtooth; ans=$enableval
35375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35376 $as_echo "$ans" >&6; }
35381 $as_echo "#define IRIG_SUCKS 1" >>confdefs.h
35385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
35386 $as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
35387 # Check whether --enable-nist was given.
35388 if test "${enable_nist+set}" = set; then :
35389 enableval=$enable_nist; ans=$enableval
35396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35397 $as_echo "$ans" >&6; }
35402 $as_echo "#define LOCKCLOCK 1" >>confdefs.h
35406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
35407 $as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
35408 # Check whether --enable-ntp-signd was given.
35409 if test "${enable_ntp_signd+set}" = set; then :
35410 enableval=$enable_ntp_signd; ans=$enableval
35417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35418 $as_echo "$ans" >&6; }
35425 ntp_signd_path=/var/run/ntp_signd
35428 ntp_signd_path="$ans"
35431 case "$ntp_signd_path" in
35436 $as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h
35439 cat >>confdefs.h <<_ACEOF
35440 #define NTP_SIGND_PATH "$ntp_signd_path"
35446 for ac_header in libscf.h
35448 ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
35449 if test "x$ac_cv_header_libscf_h" = xyes; then :
35450 cat >>confdefs.h <<_ACEOF
35451 #define HAVE_LIBSCF_H 1
35459 case "$ac_cv_header_libscf_h" in
35467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
35468 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
35469 if ${ntp_cv_sockaddr_storage+:} false; then :
35470 $as_echo_n "(cached) " >&6
35472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35473 /* end confdefs.h. */
35475 #ifdef HAVE_SYS_TYPES_H
35476 # include <sys/types.h>
35478 #ifdef HAVE_SYS_SOCKET_H
35479 # include <sys/socket.h>
35481 #ifdef HAVE_NETINET_IN_H
35482 # include <netinet/in.h>
35489 struct sockaddr_storage n;
35496 if ac_fn_c_try_compile "$LINENO"; then :
35497 ntp_cv_sockaddr_storage=yes
35499 ntp_cv_sockaddr_storage=no
35502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
35506 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
35507 case "$ntp_cv_sockaddr_storage" in
35510 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
35512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
35513 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
35514 if ${ntp_cv_have___ss_family+:} false; then :
35515 $as_echo_n "(cached) " >&6
35517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35518 /* end confdefs.h. */
35520 #ifdef HAVE_SYS_TYPES_H
35521 # include <sys/types.h>
35523 #ifdef HAVE_SYS_SOCKET_H
35524 # include <sys/socket.h>
35526 #ifdef HAVE_NETINET_IN_H
35527 # include <netinet/in.h>
35534 struct sockaddr_storage s;
35542 if ac_fn_c_try_compile "$LINENO"; then :
35543 ntp_cv_have___ss_family=yes
35545 ntp_cv_have___ss_family=no
35548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
35552 $as_echo "$ntp_cv_have___ss_family" >&6; }
35553 case "$ntp_cv_have___ss_family" in
35556 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
35564 # Look for in_port_t.
35566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
35567 $as_echo_n "checking for in_port_t... " >&6; }
35568 if ${isc_cv_have_in_port_t+:} false; then :
35569 $as_echo_n "(cached) " >&6
35571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35572 /* end confdefs.h. */
35574 #include <sys/types.h>
35575 #include <netinet/in.h>
35581 in_port_t port = 25;
35589 if ac_fn_c_try_compile "$LINENO"; then :
35590 isc_cv_have_in_port_t=yes
35592 isc_cv_have_in_port_t=no
35595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
35599 $as_echo "$isc_cv_have_in_port_t" >&6; }
35600 case "$isc_cv_have_in_port_t" in
35603 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
35607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
35608 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
35609 if ${ntp_cv_getsockname_socklen_type+:} false; then :
35610 $as_echo_n "(cached) " >&6
35613 getsockname_socklen_type_found=no
35614 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
35615 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
35616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35617 /* end confdefs.h. */
35619 #ifdef HAVE_SYS_TYPES_H
35620 # include <sys/types.h>
35622 #ifdef HAVE_SYS_SOCKET_H
35623 # include <sys/socket.h>
35631 getsockname(int, $getsockname_arg2,
35632 $ntp_cv_getsockname_socklen_type *);
35639 if ac_fn_c_try_compile "$LINENO"; then :
35640 getsockname_socklen_type_found=yes ; break 2
35642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35645 case "$getsockname_socklen_type_found" in
35647 ntp_cv_getsockname_socklen_type='socklen_t'
35649 { getsockname_arg2=; unset getsockname_arg2;}
35650 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
35654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
35655 $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
35657 cat >>confdefs.h <<_ACEOF
35658 #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
35662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
35663 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
35664 if ${isc_cv_platform_havesalen+:} false; then :
35665 $as_echo_n "(cached) " >&6
35667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35668 /* end confdefs.h. */
35670 #include <sys/types.h>
35671 #include <sys/socket.h>
35677 extern struct sockaddr *ps;
35685 if ac_fn_c_try_compile "$LINENO"; then :
35686 isc_cv_platform_havesalen=yes
35688 isc_cv_platform_havesalen=no
35691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
35695 $as_echo "$isc_cv_platform_havesalen" >&6; }
35696 case "$isc_cv_platform_havesalen" in
35699 $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
35703 # Check whether --enable-ipv6 was given.
35704 if test "${enable_ipv6+set}" = set; then :
35705 enableval=$enable_ipv6;
35709 case "$enable_ipv6" in
35716 $as_echo "#define WANT_IPV6 1" >>confdefs.h
35729 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
35734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
35735 $as_echo_n "checking for IPv6 structures... " >&6; }
35736 if ${isc_cv_found_ipv6+:} false; then :
35737 $as_echo_n "(cached) " >&6
35739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35740 /* end confdefs.h. */
35742 #include <sys/types.h>
35743 #include <sys/socket.h>
35744 #include <netinet/in.h>
35750 struct sockaddr_in6 sin6;
35757 if ac_fn_c_try_compile "$LINENO"; then :
35758 isc_cv_found_ipv6=yes
35760 isc_cv_found_ipv6=no
35763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
35767 $as_echo "$isc_cv_found_ipv6" >&6; }
35770 # See whether IPv6 support is provided via a Kame add-on.
35771 # This is done before other IPv6 linking tests so LIBS is properly set.
35773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
35774 $as_echo_n "checking for Kame IPv6 support... " >&6; }
35776 # Check whether --with-kame was given.
35777 if test "${with_kame+set}" = set; then :
35778 withval=$with_kame; use_kame="$withval"
35784 case "$use_kame" in
35788 kame_path=/usr/local/v6
35791 kame_path="$use_kame"
35794 case "$use_kame" in
35796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35797 $as_echo "no" >&6; }
35800 if test -f $kame_path/lib/libinet6.a; then
35801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
35802 $as_echo "$kame_path/lib/libinet6.a" >&6; }
35803 LIBS="-L$kame_path/lib -linet6 $LIBS"
35805 as_fn_error $? "$kame_path/lib/libinet6.a not found.
35807 Please choose the proper path with the following command:
35809 configure --with-kame=PATH
35816 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
35817 # Including it on Kame-using platforms is very bad, though, because
35818 # Kame uses #error against direct inclusion. So include it on only
35819 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
35820 # This is done before the in6_pktinfo check because that's what
35821 # netinet6/in6.h is needed for.
35826 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
35828 isc_netinet6in6_hack="#include <netinet6/in6.h>"
35831 isc_netinet6in6_hack=""
35836 # This is similar to the netinet6/in6.h issue.
35839 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
35841 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
35843 isc_netinetin6_hack="#include <netinet/in6.h>"
35846 isc_netinetin6_hack=""
35851 case "$isc_cv_found_ipv6" in
35854 $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
35856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
35857 $as_echo_n "checking for in6_pktinfo... " >&6; }
35858 if ${isc_cv_have_in6_pktinfo+:} false; then :
35859 $as_echo_n "(cached) " >&6
35861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35862 /* end confdefs.h. */
35864 #include <sys/types.h>
35865 #include <sys/socket.h>
35866 #include <netinet/in.h>
35867 $isc_netinetin6_hack
35868 $isc_netinet6in6_hack
35874 struct in6_pktinfo xyzzy;
35881 if ac_fn_c_try_compile "$LINENO"; then :
35882 isc_cv_have_in6_pktinfo=yes
35884 isc_cv_have_in6_pktinfo=no
35887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
35891 $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
35892 case "$isc_cv_have_in6_pktinfo" in
35895 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
35900 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
35901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
35902 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
35903 if ${isc_cv_have_sin6_scope_id+:} false; then :
35904 $as_echo_n "(cached) " >&6
35906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35907 /* end confdefs.h. */
35909 #include <sys/types.h>
35910 #include <sys/socket.h>
35911 #include <netinet/in.h>
35912 $isc_netinetin6_hack
35913 $isc_netinet6in6_hack
35919 struct sockaddr_in6 xyzzy;
35920 xyzzy.sin6_scope_id = 0;
35927 if ac_fn_c_try_compile "$LINENO"; then :
35928 isc_cv_have_sin6_scope_id=yes
35930 isc_cv_have_sin6_scope_id=no
35933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
35937 $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
35939 case "$isc_cv_have_sin6_scope_id" in
35942 $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
35948 # We need this check run even without isc_cv_found_ipv6=yes
35950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
35951 $as_echo_n "checking for in6addr_any... " >&6; }
35952 if ${isc_cv_in6addr_any_links+:} false; then :
35953 $as_echo_n "(cached) " >&6
35957 LIBS="$LDADD_LIBNTP $LIBS"
35958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35959 /* end confdefs.h. */
35960 $ac_includes_default
35961 #include <sys/socket.h>
35962 #include <netinet/in.h>
35963 $isc_netinetin6_hack
35964 $isc_netinet6in6_hack
35970 printf("%x", in6addr_any.s6_addr[15]);
35977 if ac_fn_c_try_link "$LINENO"; then :
35978 isc_cv_in6addr_any_links=yes
35980 isc_cv_in6addr_any_links=no
35983 rm -f core conftest.err conftest.$ac_objext \
35984 conftest$ac_exeext conftest.$ac_ext
35986 { SAVED_LIBS=; unset SAVED_LIBS;}
35990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
35991 $as_echo "$isc_cv_in6addr_any_links" >&6; }
35993 case "$isc_cv_in6addr_any_links" in
35996 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
36001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
36002 $as_echo_n "checking for struct if_laddrconf... " >&6; }
36003 if ${isc_cv_struct_if_laddrconf+:} false; then :
36004 $as_echo_n "(cached) " >&6
36006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36007 /* end confdefs.h. */
36009 #include <sys/types.h>
36010 #include <net/if6.h>
36016 struct if_laddrconf a;
36023 if ac_fn_c_try_compile "$LINENO"; then :
36024 isc_cv_struct_if_laddrconf=yes
36026 isc_cv_struct_if_laddrconf=no
36029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
36033 $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
36035 case "$isc_cv_struct_if_laddrconf" in
36038 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
36042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
36043 $as_echo_n "checking for struct if_laddrreq... " >&6; }
36044 if ${isc_cv_struct_if_laddrreq+:} false; then :
36045 $as_echo_n "(cached) " >&6
36047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36048 /* end confdefs.h. */
36050 #include <sys/types.h>
36051 #include <net/if6.h>
36057 struct if_laddrreq a;
36064 if ac_fn_c_try_compile "$LINENO"; then :
36065 isc_cv_struct_if_laddrreq=yes
36067 isc_cv_struct_if_laddrreq=no
36070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
36074 $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
36076 case "$isc_cv_struct_if_laddrreq" in
36079 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
36083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
36084 $as_echo_n "checking for multicast IP support... " >&6; }
36085 if ${ntp_cv_multicast+:} false; then :
36086 $as_echo_n "(cached) " >&6
36089 ntp_cv_multicast=no
36091 i386-sequent-sysv4)
36094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36095 /* end confdefs.h. */
36097 #ifdef HAVE_NETINET_IN_H
36098 # include <netinet/in.h>
36105 struct ip_mreq ipmr;
36106 ipmr.imr_interface.s_addr = 0;
36113 if ac_fn_c_try_compile "$LINENO"; then :
36114 ntp_cv_multicast=yes
36116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
36123 $as_echo "$ntp_cv_multicast" >&6; }
36124 case "$ntp_cv_multicast" in
36127 $as_echo "#define MCAST 1" >>confdefs.h
36129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
36130 $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
36131 if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
36132 $as_echo_n "(cached) " >&6
36136 *-*-netbsd*|*-*-*linux*)
36137 ntp_cv_typeof_ip_multicast_loop=u_int
36140 ntp_cv_typeof_ip_multicast_loop=u_char
36146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
36147 $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
36149 cat >>confdefs.h <<_ACEOF
36150 #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
36155 # Check whether --enable-getifaddrs was given.
36156 if test "${enable_getifaddrs+set}" = set; then :
36157 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
36159 want_getifaddrs="yes"
36164 case $want_getifaddrs in
36166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
36167 $as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
36169 case $want_getifaddrs in
36174 LIBS="$LDADD_LIBNTP $LIBS"
36175 for ac_func in getifaddrs
36177 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
36178 if test "x$ac_cv_func_getifaddrs" = xyes; then :
36179 cat >>confdefs.h <<_ACEOF
36180 #define HAVE_GETIFADDRS 1
36187 { SAVED_LIBS=; unset SAVED_LIBS;}
36192 # Check for if_nametoindex() for IPv6 scoped addresses support
36196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
36197 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
36198 if ${ac_cv_search_if_nametoindex+:} false; then :
36199 $as_echo_n "(cached) " >&6
36201 ac_func_search_save_LIBS=$LIBS
36202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36203 /* end confdefs.h. */
36205 /* Override any GCC internal prototype to avoid an error.
36206 Use char because int might match the return type of a GCC
36207 builtin and then its argument prototype would still apply. */
36211 char if_nametoindex ();
36215 return if_nametoindex ();
36220 for ac_lib in '' ipv6; do
36221 if test -z "$ac_lib"; then
36222 ac_res="none required"
36225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
36227 if ac_fn_c_try_link "$LINENO"; then :
36228 ac_cv_search_if_nametoindex=$ac_res
36230 rm -f core conftest.err conftest.$ac_objext \
36232 if ${ac_cv_search_if_nametoindex+:} false; then :
36236 if ${ac_cv_search_if_nametoindex+:} false; then :
36239 ac_cv_search_if_nametoindex=no
36241 rm conftest.$ac_ext
36242 LIBS=$ac_func_search_save_LIBS
36244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
36245 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
36246 ac_res=$ac_cv_search_if_nametoindex
36247 if test "$ac_res" != no; then :
36248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36254 LIBS="$LDADD_LIBNTP $LIBS"
36255 for ac_func in if_nametoindex
36257 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
36258 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
36259 cat >>confdefs.h <<_ACEOF
36260 #define HAVE_IF_NAMETOINDEX 1
36267 { SAVED_LIBS=; unset SAVED_LIBS;}
36268 case "$ac_cv_func_if_nametoindex" in
36271 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
36279 # Look for a sysctl call to get the list of network interfaces.
36281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
36282 $as_echo_n "checking for interface list sysctl... " >&6; }
36283 if ${ntp_cv_iflist_sysctl+:} false; then :
36284 $as_echo_n "(cached) " >&6
36286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36287 /* end confdefs.h. */
36289 #include <sys/param.h>
36290 #include <sys/sysctl.h>
36291 #include <sys/socket.h>
36292 #ifndef NET_RT_IFLIST
36297 if ac_fn_c_try_cpp "$LINENO"; then :
36298 ntp_cv_iflist_sysctl=yes
36300 ntp_cv_iflist_sysctl=no
36303 rm -f conftest.err conftest.i conftest.$ac_ext
36306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
36307 $as_echo "$ntp_cv_iflist_sysctl" >&6; }
36308 case "$ntp_cv_iflist_sysctl" in
36311 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
36317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
36318 $as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
36319 # Check whether --enable-saveconfig was given.
36320 if test "${enable_saveconfig+set}" = set; then :
36321 enableval=$enable_saveconfig; ntp_ok=$enableval
36327 ntp_saveconfig_enabled=0
36330 ntp_saveconfig_enabled=1
36332 $as_echo "#define SAVECONFIG 1" >>confdefs.h
36336 if test x$ntp_saveconfig_enabled = x1; then
36337 SAVECONFIG_ENABLED_TRUE=
36338 SAVECONFIG_ENABLED_FALSE='#'
36340 SAVECONFIG_ENABLED_TRUE='#'
36341 SAVECONFIG_ENABLED_FALSE=
36344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
36345 $as_echo "$ntp_ok" >&6; }
36350 # Check whether --with-gtest was given.
36351 if test "${with_gtest+set}" = set; then :
36352 withval=$with_gtest; try_gtest=$withval
36358 case "$try_gtest" in
36360 # Extract the first word of "gtest-config", so it can be a program name with args.
36361 set dummy gtest-config; ac_word=$2
36362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36363 $as_echo_n "checking for $ac_word... " >&6; }
36364 if ${ac_cv_path_GTEST_CONFIG+:} false; then :
36365 $as_echo_n "(cached) " >&6
36367 case $GTEST_CONFIG in
36369 ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
36372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36373 for as_dir in $PATH
36376 test -z "$as_dir" && as_dir=.
36377 for ac_exec_ext in '' $ac_executable_extensions; do
36378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36379 ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36390 GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
36391 if test -n "$GTEST_CONFIG"; then
36392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
36393 $as_echo "$GTEST_CONFIG" >&6; }
36395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36396 $as_echo "no" >&6; }
36400 { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
36401 case x${GTEST_CONFIG} in
36404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
36405 $as_echo_n "checking gtest version... " >&6; }
36406 gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
36407 case "$gtest_version_test" in
36411 GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
36412 GTEST_LIBS=`$GTEST_CONFIG --libs`
36413 GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
36414 GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`
36422 gtest_version=`$GTEST_CONFIG --version`
36425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
36426 $as_echo "($gtest_version) ok" >&6; }
36428 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
36429 $as_echo "($gtest_version) not ok" >&6; }
36432 { gtest_version_test=; unset gtest_version_test;}
36433 { gtest_version=; unset gtest_version;}
36437 GTEST_AVAILABLE_TRUE=
36438 GTEST_AVAILABLE_FALSE='#'
36440 GTEST_AVAILABLE_TRUE='#'
36441 GTEST_AVAILABLE_FALSE=
36452 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36453 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36454 eval ac_define_dir="\"$sysconfdir\""
36455 eval ac_define_dir="\"$ac_define_dir\""
36456 NTP_KEYSDIR="$ac_define_dir"
36459 cat >>confdefs.h <<_ACEOF
36460 #define NTP_KEYSDIR "$ac_define_dir"
36463 test "$prefix_NONE" && prefix=NONE
36464 test "$exec_prefix_NONE" && exec_prefix=NONE
36467 ac_config_files="$ac_config_files Makefile"
36469 ac_config_files="$ac_config_files adjtimed/Makefile"
36471 ac_config_files="$ac_config_files clockstuff/Makefile"
36473 ac_config_files="$ac_config_files include/Makefile"
36475 ac_config_files="$ac_config_files include/isc/Makefile"
36477 ac_config_files="$ac_config_files kernel/Makefile"
36479 ac_config_files="$ac_config_files kernel/sys/Makefile"
36481 ac_config_files="$ac_config_files libntp/Makefile"
36483 ac_config_files="$ac_config_files libparse/Makefile"
36485 ac_config_files="$ac_config_files ntpd/Makefile"
36487 ac_config_files="$ac_config_files ntpd/complete.conf"
36489 ac_config_files="$ac_config_files ntpdate/Makefile"
36491 ac_config_files="$ac_config_files ntpdc/Makefile"
36493 ac_config_files="$ac_config_files ntpdc/nl.pl"
36495 ac_config_files="$ac_config_files ntpq/Makefile"
36497 ac_config_files="$ac_config_files ntpsnmpd/Makefile"
36499 ac_config_files="$ac_config_files parseutil/Makefile"
36501 ac_config_files="$ac_config_files scripts/Makefile"
36503 ac_config_files="$ac_config_files scripts/build/Makefile"
36505 ac_config_files="$ac_config_files scripts/build/mkver"
36507 ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
36509 ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
36511 ac_config_files="$ac_config_files scripts/lib/Makefile"
36513 ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
36515 ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
36517 ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
36519 ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
36521 ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
36523 ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
36525 ac_config_files="$ac_config_files scripts/ntpver"
36527 ac_config_files="$ac_config_files scripts/plot_summary"
36529 ac_config_files="$ac_config_files scripts/summary"
36531 ac_config_files="$ac_config_files scripts/update-leap/Makefile"
36533 ac_config_files="$ac_config_files tests/Makefile"
36535 ac_config_files="$ac_config_files tests/libntp/Makefile"
36537 ac_config_files="$ac_config_files tests/ntpd/Makefile"
36539 ac_config_files="$ac_config_files util/Makefile"
36542 perllibdir="${datadir}/ntp/lib"
36546 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36547 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36548 eval ac_define_dir="\"$perllibdir\""
36549 eval ac_define_dir="\"$ac_define_dir\""
36550 PERLLIBDIR="$ac_define_dir"
36553 cat >>confdefs.h <<_ACEOF
36554 #define PERLLIBDIR "$ac_define_dir"
36557 test "$prefix_NONE" && prefix=NONE
36558 test "$exec_prefix_NONE" && exec_prefix=NONE
36561 calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"
36563 ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"
36565 ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"
36567 ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"
36569 summary_opts="$srcdir/scripts/summary-opts"
36571 plot_summary_opts="$srcdir/scripts/plot_summary-opts"
36576 subdirs="$subdirs sntp"
36579 cat >confcache <<\_ACEOF
36580 # This file is a shell script that caches the results of configure
36581 # tests run on this system so they can be shared between configure
36582 # scripts and configure runs, see configure's option --config-cache.
36583 # It is not useful on other systems. If it contains results you don't
36584 # want to keep, you may remove or edit it.
36586 # config.status only pays attention to the cache file if you give it
36587 # the --recheck option to rerun configure.
36589 # `ac_cv_env_foo' variables (set or unset) will be overridden when
36590 # loading this file, other *unset* `ac_cv_foo' will be assigned the
36591 # following values.
36595 # The following way of writing the cache mishandles newlines in values,
36596 # but we know of no workaround that is simple, portable, and efficient.
36597 # So, we kill variables containing newlines.
36598 # Ultrix sh set writes to stderr and can't be redirected directly,
36599 # and sets the high bit in the cache file unless we assign to the vars.
36601 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36602 eval ac_val=\$$ac_var
36606 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
36607 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36610 _ | IFS | as_nl) ;; #(
36611 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
36612 *) { eval $ac_var=; unset $ac_var;} ;;
36618 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36619 *${as_nl}ac_space=\ *)
36620 # `set' does not quote correctly, so add quotes: double-quote
36621 # substitution turns \\\\ into \\, and sed turns \\ into \.
36624 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36627 # `set' quotes correctly as required by POSIX, so do not add quotes.
36628 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36639 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36641 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36642 if test -w "$cache_file"; then
36643 if test "x$cache_file" != "x/dev/null"; then
36644 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
36645 $as_echo "$as_me: updating cache $cache_file" >&6;}
36646 if test ! -f "$cache_file" || test -h "$cache_file"; then
36647 cat confcache >"$cache_file"
36649 case $cache_file in #(
36651 mv -f confcache "$cache_file"$$ &&
36652 mv -f "$cache_file"$$ "$cache_file" ;; #(
36654 mv -f confcache "$cache_file" ;;
36659 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
36660 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36665 test "x$prefix" = xNONE && prefix=$ac_default_prefix
36666 # Let make expand exec_prefix.
36667 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36669 DEFS=-DHAVE_CONFIG_H
36674 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36675 # 1. Remove the extension, and $U if already installed.
36676 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36677 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36678 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36679 # will be set to the directory where LIBOBJS objects are built.
36680 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36681 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
36683 LIBOBJS=$ac_libobjs
36685 LTLIBOBJS=$ac_ltlibobjs
36688 if test -n "$EXEEXT"; then
36690 am__EXEEXT_FALSE='#'
36692 am__EXEEXT_TRUE='#'
36696 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
36697 as_fn_error $? "conditional \"AMDEP\" was never defined.
36698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36700 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36701 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
36702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36704 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36705 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
36706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36709 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36710 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
36711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36713 if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
36714 as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
36715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36717 if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
36718 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
36719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36721 if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
36722 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
36723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36725 if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
36726 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
36727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36729 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
36730 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
36731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36733 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
36734 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
36735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36737 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
36738 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
36739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36741 if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
36742 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
36743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36745 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
36746 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
36747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36749 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
36750 as_fn_error $? "conditional \"PTHREADS\" was never defined.
36751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36753 if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
36754 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
36755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36757 if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
36758 as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
36759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36761 if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
36762 as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
36763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36766 : "${CONFIG_STATUS=./config.status}"
36768 ac_clean_files_save=$ac_clean_files
36769 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36770 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
36771 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
36773 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
36775 # Generated by $as_me.
36776 # Run this file to recreate the current configuration.
36777 # Compiler output produced by configure, useful for debugging
36778 # configure, is in config.log if it exists.
36781 ac_cs_recheck=false
36784 SHELL=\${CONFIG_SHELL-$SHELL}
36787 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36788 ## -------------------- ##
36789 ## M4sh Initialization. ##
36790 ## -------------------- ##
36792 # Be more Bourne compatible
36793 DUALCASE=1; export DUALCASE # for MKS sh
36794 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
36797 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36798 # is contrary to our usage. Disable this feature.
36799 alias -g '${1+"$@"}'='"$@"'
36800 setopt NO_GLOB_SUBST
36802 case `(set -o) 2>/dev/null` in #(
36814 # Printing a long string crashes Solaris 7 /usr/bin/printf.
36815 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36817 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
36818 # Prefer a ksh shell builtin over an external printf program on Solaris,
36819 # but without wasting forks for bash or zsh.
36820 if test -z "$BASH_VERSION$ZSH_VERSION" \
36821 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36822 as_echo='print -r --'
36823 as_echo_n='print -rn --'
36824 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
36825 as_echo='printf %s\n'
36826 as_echo_n='printf %s'
36828 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36829 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36830 as_echo_n='/usr/ucb/echo -n'
36832 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36833 as_echo_n_body='eval
36837 expr "X$arg" : "X\\(.*\\)$as_nl";
36838 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36840 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36842 export as_echo_n_body
36843 as_echo_n='sh -c $as_echo_n_body as_echo'
36845 export as_echo_body
36846 as_echo='sh -c $as_echo_body as_echo'
36849 # The user is always right.
36850 if test "${PATH_SEPARATOR+set}" != set; then
36852 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36853 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36860 # We need space, tab and new line, in precisely that order. Quoting is
36861 # there to prevent editors from complaining about space-tab.
36862 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
36863 # splitting by setting IFS to empty value.)
36866 # Find who we are. Look in the path if we contain no directory separator.
36869 *[\\/]* ) as_myself=$0 ;;
36870 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36871 for as_dir in $PATH
36874 test -z "$as_dir" && as_dir=.
36875 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36881 # We did not find ourselves, most probably we were run as `sh COMMAND'
36882 # in which case we are not to be found in the path.
36883 if test "x$as_myself" = x; then
36886 if test ! -f "$as_myself"; then
36887 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36891 # Unset variables that we do not need and which cause bugs (e.g. in
36892 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36893 # suppresses any "Segmentation fault" message there. '((' could
36894 # trigger a bug in pdksh 5.2.14.
36895 for as_var in BASH_ENV ENV MAIL MAILPATH
36896 do eval test x\${$as_var+set} = xset \
36897 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
36910 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36913 # as_fn_error STATUS ERROR [LINENO LOG_FD]
36914 # ----------------------------------------
36915 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36916 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
36917 # script with STATUS, using 1 if that was 0.
36920 as_status=$1; test $as_status -eq 0 && as_status=1
36922 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36923 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
36925 $as_echo "$as_me: error: $2" >&2
36926 as_fn_exit $as_status
36930 # as_fn_set_status STATUS
36931 # -----------------------
36932 # Set $? to STATUS, without forking.
36933 as_fn_set_status ()
36936 } # as_fn_set_status
36938 # as_fn_exit STATUS
36939 # -----------------
36940 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36944 as_fn_set_status $1
36950 # Portably unset VAR.
36953 { eval $1=; unset $1;}
36955 as_unset=as_fn_unset
36956 # as_fn_append VAR VALUE
36957 # ----------------------
36958 # Append the text in VALUE to the end of the definition contained in VAR. Take
36959 # advantage of any shell optimizations that allow amortized linear growth over
36960 # repeated appends, instead of the typical quadratic growth present in naive
36962 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36963 eval 'as_fn_append ()
36974 # as_fn_arith ARG...
36975 # ------------------
36976 # Perform arithmetic evaluation on the ARGs, and store the result in the
36977 # global $as_val. Take advantage of shells that can avoid forks. The arguments
36978 # must be portable across $(()) and expr.
36979 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36980 eval 'as_fn_arith ()
36987 as_val=`expr "$@" || test $? -eq 1`
36992 if expr a : '\(a\)' >/dev/null 2>&1 &&
36993 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36999 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37000 as_basename=basename
37005 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37011 as_me=`$as_basename -- "$0" ||
37012 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37013 X"$0" : 'X\(//\)$' \| \
37014 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37016 sed '/^.*\/\([^/][^/]*\)\/*$/{
37030 # Avoid depending upon Character Ranges.
37031 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37032 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37033 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37034 as_cr_digits='0123456789'
37035 as_cr_alnum=$as_cr_Letters$as_cr_digits
37037 ECHO_C= ECHO_N= ECHO_T=
37038 case `echo -n x` in #(((((
37040 case `echo 'xy\c'` in
37041 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
37043 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
37050 rm -f conf$$ conf$$.exe conf$$.file
37051 if test -d conf$$.dir; then
37052 rm -f conf$$.dir/conf$$.file
37055 mkdir conf$$.dir 2>/dev/null
37057 if (echo >conf$$.file) 2>/dev/null; then
37058 if ln -s conf$$.file conf$$ 2>/dev/null; then
37060 # ... but there are two gotchas:
37061 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37062 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37063 # In both cases, we have to default to `cp -p'.
37064 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37066 elif ln conf$$.file conf$$ 2>/dev/null; then
37074 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37075 rmdir conf$$.dir 2>/dev/null
37080 # Create "$as_dir" as a directory, including parents if necessary.
37085 -*) as_dir=./$as_dir;;
37087 test -d "$as_dir" || eval $as_mkdir_p || {
37091 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37092 *) as_qdir=$as_dir;;
37094 as_dirs="'$as_qdir' $as_dirs"
37095 as_dir=`$as_dirname -- "$as_dir" ||
37096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37097 X"$as_dir" : 'X\(//\)[^/]' \| \
37098 X"$as_dir" : 'X\(//\)$' \| \
37099 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37100 $as_echo X"$as_dir" |
37101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37105 /^X\(\/\/\)[^/].*/{
37118 test -d "$as_dir" && break
37120 test -z "$as_dirs" || eval "mkdir $as_dirs"
37121 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
37125 if mkdir -p . 2>/dev/null; then
37126 as_mkdir_p='mkdir -p "$as_dir"'
37128 test -d ./-p && rmdir ./-p
37132 if test -x / >/dev/null 2>&1; then
37133 as_test_x='test -x'
37135 if ls -dL / >/dev/null 2>&1; then
37142 if test -d "$1"; then
37148 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
37149 ???[sx]*):;;*)false;;esac;fi
37153 as_executable_p=$as_test_x
37155 # Sed expression to map a string onto a valid CPP name.
37156 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37158 # Sed expression to map a string onto a valid variable name.
37159 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37163 ## ----------------------------------- ##
37164 ## Main body of $CONFIG_STATUS script. ##
37165 ## ----------------------------------- ##
37167 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
37169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37170 # Save the log message, to keep $0 and so on meaningful, and to
37171 # report actual input values of CONFIG_FILES etc. instead of their
37172 # values after options handling.
37174 This file was extended by ntp $as_me 4.2.8p2, which was
37175 generated by GNU Autoconf 2.68. Invocation command line was
37177 CONFIG_FILES = $CONFIG_FILES
37178 CONFIG_HEADERS = $CONFIG_HEADERS
37179 CONFIG_LINKS = $CONFIG_LINKS
37180 CONFIG_COMMANDS = $CONFIG_COMMANDS
37183 on `(hostname || uname -n) 2>/dev/null | sed 1q`
37188 case $ac_config_files in *"
37189 "*) set x $ac_config_files; shift; ac_config_files=$*;;
37192 case $ac_config_headers in *"
37193 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37198 # Files that config.status was made for.
37199 config_files="$ac_config_files"
37200 config_headers="$ac_config_headers"
37201 config_commands="$ac_config_commands"
37205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37207 \`$as_me' instantiates files and other configuration actions
37208 from templates according to the current configuration. Unless the files
37209 and actions are specified as TAGs, all are instantiated by default.
37211 Usage: $0 [OPTION]... [TAG]...
37213 -h, --help print this help, then exit
37214 -V, --version print version number and configuration settings, then exit
37215 --config print configuration, then exit
37216 -q, --quiet, --silent
37217 do not print progress messages
37218 -d, --debug don't remove temporary files
37219 --recheck update $as_me by reconfiguring in the same conditions
37220 --file=FILE[:TEMPLATE]
37221 instantiate the configuration file FILE
37222 --header=FILE[:TEMPLATE]
37223 instantiate the configuration header FILE
37225 Configuration files:
37228 Configuration headers:
37231 Configuration commands:
37234 Report bugs to <http://bugs.ntp.org./>.
37235 ntp home page: <http://www.ntp.org./>."
37238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37239 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
37241 ntp config.status 4.2.8p2
37242 configured by $0, generated by GNU Autoconf 2.68,
37243 with options \\"\$ac_cs_config\\"
37245 Copyright (C) 2010 Free Software Foundation, Inc.
37246 This config.status script is free software; the Free Software Foundation
37247 gives unlimited permission to copy, distribute and modify it."
37254 test -n "\$AWK" || AWK=awk
37257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37258 # The default lists apply if the user does not specify any file.
37264 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37265 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37269 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37281 # Handling of the options.
37282 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37284 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37285 $as_echo "$ac_cs_version"; exit ;;
37286 --config | --confi | --conf | --con | --co | --c )
37287 $as_echo "$ac_cs_config"; exit ;;
37288 --debug | --debu | --deb | --de | --d | -d )
37290 --file | --fil | --fi | --f )
37293 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37294 '') as_fn_error $? "missing file argument" ;;
37296 as_fn_append CONFIG_FILES " '$ac_optarg'"
37297 ac_need_defaults=false;;
37298 --header | --heade | --head | --hea )
37301 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37303 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
37304 ac_need_defaults=false;;
37306 # Conflict between --help and --header
37307 as_fn_error $? "ambiguous option: \`$1'
37308 Try \`$0 --help' for more information.";;
37309 --help | --hel | -h )
37310 $as_echo "$ac_cs_usage"; exit ;;
37311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37312 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37315 # This is an error.
37316 -*) as_fn_error $? "unrecognized option: \`$1'
37317 Try \`$0 --help' for more information." ;;
37319 *) as_fn_append ac_config_targets " $1"
37320 ac_need_defaults=false ;;
37326 ac_configure_extra_args=
37328 if $ac_cs_silent; then
37330 ac_configure_extra_args="$ac_configure_extra_args --silent"
37334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37335 if \$ac_cs_recheck; then
37336 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37338 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37339 CONFIG_SHELL='$SHELL'
37340 export CONFIG_SHELL
37345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37349 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37350 ## Running $as_me. ##
37356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37360 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37363 # The HP-UX ksh and POSIX shell print the target directory to stdout
37364 # if CDPATH is set.
37365 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37367 sed_quote_subst='$sed_quote_subst'
37368 double_quote_subst='$double_quote_subst'
37369 delay_variable_subst='$delay_variable_subst'
37370 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37371 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37372 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37373 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37374 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37375 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
37376 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37377 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37378 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37379 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37380 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37381 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37382 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37383 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37384 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37385 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37386 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37387 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37388 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37389 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37390 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37391 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37392 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37393 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37394 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37395 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37396 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37397 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
37398 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37399 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
37400 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37401 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37402 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37403 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37404 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
37405 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37406 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37407 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37408 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
37409 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37410 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
37411 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
37412 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37413 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37414 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37415 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37416 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37417 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37418 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37419 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37420 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37421 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37422 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37423 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37424 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37425 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"`'
37426 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37427 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
37428 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37429 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37430 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
37431 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
37432 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
37433 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37434 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37435 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
37436 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
37437 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37438 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37439 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37440 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37441 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37442 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37443 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37444 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37445 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37446 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37447 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37448 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37449 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37450 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37451 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37452 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37453 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37454 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37455 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37456 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37457 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37458 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37459 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
37460 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
37461 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37462 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37463 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37464 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37465 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37466 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37467 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37468 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
37469 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37470 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37471 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37472 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37473 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
37474 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
37475 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37476 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37477 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37478 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37479 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37480 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37481 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37482 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37483 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37484 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37485 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37486 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37487 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37488 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37489 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37490 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37491 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37492 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37493 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37494 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37495 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37496 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37497 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37498 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37499 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37500 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37501 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37502 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37503 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37504 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37505 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37506 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37507 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37508 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37509 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37510 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37511 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37512 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
37513 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
37514 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
37515 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37516 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37517 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37518 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37519 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37520 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37521 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37522 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37523 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37524 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37525 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37526 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37527 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37528 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37529 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37530 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37531 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37532 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
37533 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37534 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37535 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37536 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37537 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37538 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37539 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37540 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
37541 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37542 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37543 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37544 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37545 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37546 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37547 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37548 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37549 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37550 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37551 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37552 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37553 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37554 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
37557 LTCFLAGS='$LTCFLAGS'
37558 compiler='$compiler_DEFAULT'
37560 # A function that is used when there is no print builtin or printf.
37561 func_fallback_echo ()
37563 eval 'cat <<_LTECHO_EOF
37568 # Quote evaled strings.
37582 deplibs_check_method \
37587 sharedlib_from_linklib_cmd \
37590 archiver_list_spec \
37596 lt_cv_sys_global_symbol_pipe \
37597 lt_cv_sys_global_symbol_to_cdecl \
37598 lt_cv_sys_global_symbol_to_c_name_address \
37599 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
37600 nm_file_list_spec \
37601 lt_prog_compiler_no_builtin_flag \
37602 lt_prog_compiler_pic \
37603 lt_prog_compiler_wl \
37604 lt_prog_compiler_static \
37605 lt_cv_prog_compiler_c_o \
37614 export_dynamic_flag_spec \
37615 whole_archive_flag_spec \
37616 compiler_needs_object \
37618 allow_undefined_flag \
37619 no_undefined_flag \
37620 hardcode_libdir_flag_spec \
37621 hardcode_libdir_flag_spec_ld \
37622 hardcode_libdir_separator \
37626 variables_saved_for_relink \
37628 library_names_spec \
37630 install_override_mode \
37634 compiler_lib_search_dirs \
37639 compiler_lib_search_path \
37643 lt_prog_compiler_no_builtin_flag_CXX \
37644 lt_prog_compiler_pic_CXX \
37645 lt_prog_compiler_wl_CXX \
37646 lt_prog_compiler_static_CXX \
37647 lt_cv_prog_compiler_c_o_CXX \
37648 export_dynamic_flag_spec_CXX \
37649 whole_archive_flag_spec_CXX \
37650 compiler_needs_object_CXX \
37652 allow_undefined_flag_CXX \
37653 no_undefined_flag_CXX \
37654 hardcode_libdir_flag_spec_CXX \
37655 hardcode_libdir_flag_spec_ld_CXX \
37656 hardcode_libdir_separator_CXX \
37657 exclude_expsyms_CXX \
37658 include_expsyms_CXX \
37659 file_list_spec_CXX \
37660 compiler_lib_search_dirs_CXX \
37661 predep_objects_CXX \
37662 postdep_objects_CXX \
37665 compiler_lib_search_path_CXX; do
37666 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37667 *[\\\\\\\`\\"\\\$]*)
37668 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
37671 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37676 # Double-quote double-evaled strings.
37677 for var in reload_cmds \
37678 old_postinstall_cmds \
37679 old_postuninstall_cmds \
37681 extract_expsyms_cmds \
37682 old_archive_from_new_cmds \
37683 old_archive_from_expsyms_cmds \
37685 archive_expsym_cmds \
37687 module_expsym_cmds \
37688 export_symbols_cmds \
37692 postuninstall_cmds \
37694 sys_lib_search_path_spec \
37695 sys_lib_dlsearch_path_spec \
37697 old_archive_cmds_CXX \
37698 old_archive_from_new_cmds_CXX \
37699 old_archive_from_expsyms_cmds_CXX \
37701 archive_expsym_cmds_CXX \
37703 module_expsym_cmds_CXX \
37704 export_symbols_cmds_CXX \
37706 postlink_cmds_CXX; do
37707 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37708 *[\\\\\\\`\\"\\\$]*)
37709 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
37712 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37717 ac_aux_dir='$ac_aux_dir'
37718 xsi_shell='$xsi_shell'
37719 lt_shell_append='$lt_shell_append'
37721 # See if we are running on zsh, and set the options which allow our
37722 # commands through without removal of \ escapes INIT.
37723 if test -n "\${ZSH_VERSION+set}" ; then
37724 setopt NO_GLOB_SUBST
37730 TIMESTAMP='$TIMESTAMP'
37741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37743 # Handling of arguments.
37744 for ac_config_target in $ac_config_targets
37746 case $ac_config_target in
37747 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
37748 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37749 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37750 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37751 "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
37752 "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
37753 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
37754 "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
37755 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
37756 "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
37757 "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
37758 "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
37759 "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
37760 "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
37761 "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
37762 "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
37763 "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
37764 "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
37765 "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
37766 "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
37767 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
37768 "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
37769 "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
37770 "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
37771 "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
37772 "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
37773 "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
37774 "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
37775 "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
37776 "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
37777 "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
37778 "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
37779 "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
37780 "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
37781 "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
37782 "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;;
37783 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
37784 "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
37785 "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
37786 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
37788 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
37793 # If the user did not use the arguments to specify the items to instantiate,
37794 # then the envvar interface is used. Set only those that are not.
37795 # We use the long form for the default assignment because of an extremely
37796 # bizarre bug on SunOS 4.1.3.
37797 if $ac_need_defaults; then
37798 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37799 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37800 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37803 # Have a temporary directory for convenience. Make it in the build tree
37804 # simply because there is no reason against having it here, and in addition,
37805 # creating and moving files from /tmp can sometimes cause problems.
37806 # Hook for its removal unless debugging.
37807 # Note that there is a small window in which the directory will not be cleaned:
37808 # after its creation but before its name has been assigned to `$tmp'.
37812 trap 'exit_status=$?
37813 : "${ac_tmp:=$tmp}"
37814 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
37816 trap 'as_fn_exit 1' 1 2 13 15
37818 # Create a (secure) tmp directory for tmp files.
37821 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37825 tmp=./conf$$-$RANDOM
37826 (umask 077 && mkdir "$tmp")
37827 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
37830 # Set up the scripts for CONFIG_FILES section.
37831 # No need to generate them if there are no CONFIG_FILES.
37832 # This happens for instance with `./config.status config.h'.
37833 if test -n "$CONFIG_FILES"; then
37835 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
37836 ac_cs_awk_getline=:
37837 ac_cs_awk_pipe_init=
37838 ac_cs_awk_read_file='
37839 while ((getline aline < (F[key])) > 0)
37842 ac_cs_awk_pipe_fini=
37844 ac_cs_awk_getline=false
37845 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
37846 ac_cs_awk_read_file='
37848 print "cat " F[key] " &&"
37849 '$ac_cs_awk_pipe_init
37850 # The final `:' finishes the AND list.
37851 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
37853 ac_cr=`echo X | tr X '\015'`
37854 # On cygwin, bash can eat \r inside `` if the user requested igncr.
37855 # But we know of no other shell where ac_cr would be empty at this
37856 # point, so we can use a bashism as a fallback.
37857 if test "x$ac_cr" = x; then
37858 eval ac_cr=\$\'\\r\'
37860 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37861 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
37864 ac_cs_awk_cr=$ac_cr
37867 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
37870 # Create commands to substitute file output variables.
37872 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
37873 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
37874 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
37877 } >conf$$files.sh &&
37878 . ./conf$$files.sh ||
37879 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37880 rm -f conf$$files.sh
37883 echo "cat >conf$$subs.awk <<_ACEOF" &&
37884 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37886 } >conf$$subs.sh ||
37887 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37888 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
37890 for ac_last_try in false false false false false :; do
37891 . ./conf$$subs.sh ||
37892 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37894 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37895 if test $ac_delim_n = $ac_delim_num; then
37897 elif $ac_last_try; then
37898 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37900 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37903 rm -f conf$$subs.sh
37905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37906 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
37910 s/^/S["/; s/!.*/"]=/
37920 s/\(.\{148\}\)..*/\1/
37922 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37927 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37934 s/\(.\{148\}\)..*/\1/
37936 s/["\\]/\\&/g; s/^/"/; s/$/"/
37940 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37945 ' <conf$$subs.awk | sed '
37950 ' >>$CONFIG_STATUS || ac_write_fail=1
37951 rm -f conf$$subs.awk
37952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37954 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
37955 for (key in S) S_is_set[key] = 1
37957 \$ac_cs_awk_pipe_init
37961 nfields = split(line, field, "@")
37963 len = length(field[1])
37964 for (i = 2; i < nfields; i++) {
37966 keylen = length(key)
37967 if (S_is_set[key]) {
37969 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37970 len += length(value) + length(field[++i])
37975 if (nfields == 3 && !substed) {
37977 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
37978 \$ac_cs_awk_read_file
37984 \$ac_cs_awk_pipe_fini
37987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37988 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37989 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37992 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
37993 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
37996 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37997 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
37998 # trailing colons and then remove the whole line if VPATH becomes empty
37999 # (actually we leave an empty line to preserve line numbers).
38000 if test "x$srcdir" = x.; then
38001 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
38019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38020 fi # test -n "$CONFIG_FILES"
38022 # Set up the scripts for CONFIG_HEADERS section.
38023 # No need to generate them if there are no CONFIG_HEADERS.
38024 # This happens for instance with `./config.status Makefile'.
38025 if test -n "$CONFIG_HEADERS"; then
38026 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
38030 # Transform confdefs.h into an awk script `defines.awk', embedded as
38031 # here-document in config.status, that substitutes the proper values into
38032 # config.h.in to produce config.h.
38034 # Create a delimiter string that does not exist in confdefs.h, to ease
38035 # handling of long lines.
38037 for ac_last_try in false false :; do
38038 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38039 if test -z "$ac_tt"; then
38041 elif $ac_last_try; then
38042 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
38044 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38048 # For the awk script, D is an array of macro values keyed by name,
38049 # likewise P contains macro parameters if any. Preserve backslash
38050 # newline sequences.
38052 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38054 s/.\{148\}/&'"$ac_delim"'/g
38057 s/^[ ]*#[ ]*define[ ][ ]*/ /
38064 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38066 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
38070 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38071 D["\1"]=" \3\\\\\\n"\\/p
38073 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38078 s/.\{148\}/&'"$ac_delim"'/g
38083 s/["\\]/\\&/g; s/^/"/; s/$/"/p
38086 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38088 ' <confdefs.h | sed '
38089 s/'"$ac_delim"'/"\\\
38090 "/g' >>$CONFIG_STATUS || ac_write_fail=1
38092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38093 for (key in D) D_is_set[key] = 1
38096 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38098 split(line, arg, " ")
38099 if (arg[1] == "#") {
38103 defundef = substr(arg[1], 2)
38106 split(mac1, mac2, "(") #)
38108 prefix = substr(line, 1, index(line, defundef) - 1)
38109 if (D_is_set[macro]) {
38110 # Preserve the white space surrounding the "#".
38111 print prefix "define", macro P[macro] D[macro]
38114 # Replace #undef with comments. This is necessary, for example,
38115 # in the case of _POSIX_SOURCE, which is predefined and required
38116 # on some systems where configure will not decide to define it.
38117 if (defundef == "undef") {
38118 print "/*", prefix defundef, macro, "*/"
38126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38127 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
38128 fi # test -n "$CONFIG_HEADERS"
38131 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
38136 :[FHLC]) ac_mode=$ac_tag; continue;;
38138 case $ac_mode$ac_tag in
38140 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
38141 :[FH]-) ac_tag=-:-;;
38142 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38159 -) ac_f="$ac_tmp/stdin";;
38160 *) # Look for the file first in the build tree, then in the source tree
38161 # (if the path is not absolute). The absolute path cannot be DOS-style,
38162 # because $ac_f cannot contain `:'.
38166 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38168 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
38170 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
38171 as_fn_append ac_file_inputs " '$ac_f'"
38174 # Let's still pretend it is `configure' which instantiates (i.e., don't
38175 # use $as_me), people would be surprised to read:
38176 # /* config.h. Generated by config.status. */
38177 configure_input='Generated from '`
38178 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38180 if test x"$ac_file" != x-; then
38181 configure_input="$ac_file. $configure_input"
38182 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
38183 $as_echo "$as_me: creating $ac_file" >&6;}
38185 # Neutralize special characters interpreted by sed in replacement strings.
38186 case $configure_input in #(
38187 *\&* | *\|* | *\\* )
38188 ac_sed_conf_input=`$as_echo "$configure_input" |
38189 sed 's/[\\\\&|]/\\\\&/g'`;; #(
38190 *) ac_sed_conf_input=$configure_input;;
38194 *:-:* | *:-) cat >"$ac_tmp/stdin" \
38195 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
38200 ac_dir=`$as_dirname -- "$ac_file" ||
38201 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38202 X"$ac_file" : 'X\(//\)[^/]' \| \
38203 X"$ac_file" : 'X\(//\)$' \| \
38204 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38205 $as_echo X"$ac_file" |
38206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38210 /^X\(\/\/\)[^/].*/{
38223 as_dir="$ac_dir"; as_fn_mkdir_p
38227 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38229 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38230 # A ".." for each directory in $ac_dir_suffix.
38231 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38232 case $ac_top_builddir_sub in
38233 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38234 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38237 ac_abs_top_builddir=$ac_pwd
38238 ac_abs_builddir=$ac_pwd$ac_dir_suffix
38239 # for backward compatibility:
38240 ac_top_builddir=$ac_top_build_prefix
38243 .) # We are building in place.
38245 ac_top_srcdir=$ac_top_builddir_sub
38246 ac_abs_top_srcdir=$ac_pwd ;;
38247 [\\/]* | ?:[\\/]* ) # Absolute name.
38248 ac_srcdir=$srcdir$ac_dir_suffix;
38249 ac_top_srcdir=$srcdir
38250 ac_abs_top_srcdir=$srcdir ;;
38251 *) # Relative name.
38252 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38253 ac_top_srcdir=$ac_top_build_prefix$srcdir
38254 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38256 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38266 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38267 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38269 ac_MKDIR_P=$MKDIR_P
38271 [\\/$]* | ?:[\\/]* ) ;;
38272 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38277 # If the template does not know about datarootdir, expand it.
38278 # FIXME: This hack should be removed a few years after 2.60.
38279 ac_datarootdir_hack=; ac_datarootdir_seen=
38290 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38291 *datarootdir*) ac_datarootdir_seen=yes;;
38292 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38294 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38297 ac_datarootdir_hack='
38298 s&@datadir@&$datadir&g
38299 s&@docdir@&$docdir&g
38300 s&@infodir@&$infodir&g
38301 s&@localedir@&$localedir&g
38302 s&@mandir@&$mandir&g
38303 s&\\\${datarootdir}&$datarootdir&g' ;;
38307 # Neutralize VPATH when `$srcdir' = `.'.
38308 # Shell code in configure.ac might set extrasub.
38309 # FIXME: do we really want to maintain this feature?
38310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38311 ac_sed_extra="$ac_vpsub
38314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38316 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38317 s|@configure_input@|$ac_sed_conf_input|;t t
38318 s&@top_builddir@&$ac_top_builddir_sub&;t t
38319 s&@top_build_prefix@&$ac_top_build_prefix&;t t
38320 s&@srcdir@&$ac_srcdir&;t t
38321 s&@abs_srcdir@&$ac_abs_srcdir&;t t
38322 s&@top_srcdir@&$ac_top_srcdir&;t t
38323 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38324 s&@builddir@&$ac_builddir&;t t
38325 s&@abs_builddir@&$ac_abs_builddir&;t t
38326 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38327 s&@INSTALL@&$ac_INSTALL&;t t
38328 s&@MKDIR_P@&$ac_MKDIR_P&;t t
38329 $ac_datarootdir_hack
38331 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
38332 if $ac_cs_awk_getline; then
38333 $AWK -f "$ac_tmp/subs.awk"
38335 $AWK -f "$ac_tmp/subs.awk" | $SHELL
38337 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38339 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38340 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38341 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38342 "$ac_tmp/out"`; test -z "$ac_out"; } &&
38343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38344 which seems to be undefined. Please make sure it is defined" >&5
38345 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38346 which seems to be undefined. Please make sure it is defined" >&2;}
38348 rm -f "$ac_tmp/stdin"
38350 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38351 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
38353 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38359 if test x"$ac_file" != x-; then
38361 $as_echo "/* $configure_input */" \
38362 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38363 } >"$ac_tmp/config.h" \
38364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38365 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
38366 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
38367 $as_echo "$as_me: $ac_file is unchanged" >&6;}
38370 mv "$ac_tmp/config.h" "$ac_file" \
38371 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38374 $as_echo "/* $configure_input */" \
38375 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
38376 || as_fn_error $? "could not create -" "$LINENO" 5
38378 # Compute "$ac_file"'s index in $config_headers.
38381 for _am_header in $config_headers :; do
38382 case $_am_header in
38383 $_am_arg | $_am_arg:* )
38386 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38389 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38390 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38391 X"$_am_arg" : 'X\(//\)[^/]' \| \
38392 X"$_am_arg" : 'X\(//\)$' \| \
38393 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38394 $as_echo X"$_am_arg" |
38395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38399 /^X\(\/\/\)[^/].*/{
38411 s/.*/./; q'`/stamp-h$_am_stamp_count
38414 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
38415 $as_echo "$as_me: executing $ac_file commands" >&6;}
38420 case $ac_file$ac_mode in
38421 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
38422 # Autoconf 2.62 quotes --file arguments for eval, but not when files
38423 # are listed without --file. Let's play safe and only enable the eval
38424 # if we detect the quoting.
38425 case $CONFIG_FILES in
38426 *\'*) eval set x "$CONFIG_FILES" ;;
38427 *) set x $CONFIG_FILES ;;
38432 # Strip MF so we end up with the name of the file.
38433 mf=`echo "$mf" | sed -e 's/:.*$//'`
38434 # Check whether this is an Automake generated Makefile or not.
38435 # We used to match only the files named `Makefile.in', but
38436 # some people rename them; so instead we look at the file content.
38437 # Grep'ing the first line is not enough: some people post-process
38438 # each Makefile.in and add a new line on top of each file to say so.
38439 # Grep'ing the whole file is not good either: AIX grep has a line
38440 # limit of 2048, but all sed's we know have understand at least 4000.
38441 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38442 dirpart=`$as_dirname -- "$mf" ||
38443 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38444 X"$mf" : 'X\(//\)[^/]' \| \
38445 X"$mf" : 'X\(//\)$' \| \
38446 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38452 /^X\(\/\/\)[^/].*/{
38468 # Extract the definition of DEPDIR, am__include, and am__quote
38469 # from the Makefile without running `make'.
38470 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38471 test -z "$DEPDIR" && continue
38472 am__include=`sed -n 's/^am__include = //p' < "$mf"`
38473 test -z "am__include" && continue
38474 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
38475 # When using ansi2knr, U may be empty or an underscore; expand it
38476 U=`sed -n 's/^U = //p' < "$mf"`
38477 # Find all dependency output files, they are included files with
38478 # $(DEPDIR) in their names. We invoke sed twice because it is the
38479 # simplest approach to changing $(DEPDIR) to its actual value in the
38481 for file in `sed -n "
38482 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
38483 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
38484 # Make sure the directory exists.
38485 test -f "$dirpart/$file" && continue
38486 fdir=`$as_dirname -- "$file" ||
38487 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38488 X"$file" : 'X\(//\)[^/]' \| \
38489 X"$file" : 'X\(//\)$' \| \
38490 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38491 $as_echo X"$file" |
38492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38496 /^X\(\/\/\)[^/].*/{
38509 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38510 # echo "creating $dirpart/$file"
38511 echo '# dummy' > "$dirpart/$file"
38518 # See if we are running on zsh, and set the options which allow our
38519 # commands through without removal of \ escapes.
38520 if test -n "${ZSH_VERSION+set}" ; then
38521 setopt NO_GLOB_SUBST
38524 cfgfile="${ofile}T"
38525 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38528 cat <<_LT_EOF >> "$cfgfile"
38531 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38532 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38533 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38534 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
38536 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
38537 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
38539 # Written by Gordon Matzigkeit, 1996
38541 # This file is part of GNU Libtool.
38543 # GNU Libtool is free software; you can redistribute it and/or
38544 # modify it under the terms of the GNU General Public License as
38545 # published by the Free Software Foundation; either version 2 of
38546 # the License, or (at your option) any later version.
38548 # As a special exception to the GNU General Public License,
38549 # if you distribute this file as part of a program or library that
38550 # is built using GNU Libtool, you may include this file under the
38551 # same distribution terms that you use for the rest of that program.
38553 # GNU Libtool is distributed in the hope that it will be useful,
38554 # but WITHOUT ANY WARRANTY; without even the implied warranty of
38555 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38556 # GNU General Public License for more details.
38558 # You should have received a copy of the GNU General Public License
38559 # along with GNU Libtool; see the file COPYING. If not, a copy
38560 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38561 # obtained by writing to the Free Software Foundation, Inc.,
38562 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38565 # The names of the tagged configurations supported by this script.
38566 available_tags="CXX "
38568 # ### BEGIN LIBTOOL CONFIG
38570 # Whether or not to build shared libraries.
38571 build_libtool_libs=$enable_shared
38573 # Which release of libtool.m4 was used?
38574 macro_version=$macro_version
38575 macro_revision=$macro_revision
38577 # Whether or not to build static libraries.
38578 build_old_libs=$enable_static
38580 # What type of objects to build.
38583 # Whether or not to optimize for fast installation.
38584 fast_install=$enable_fast_install
38586 # Shell to use when invoking shell scripts.
38589 # An echo program that protects backslashes.
38593 host_alias=$host_alias
38597 # The build system.
38598 build_alias=$build_alias
38602 # A sed program that does not truncate output.
38605 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
38606 Xsed="\$SED -e 1s/^X//"
38608 # A grep program that handles long lines.
38614 # A literal string matcher.
38617 # A BSD- or MS-compatible name lister.
38620 # Whether we need soft or hard links.
38623 # What is the maximum length of a command?
38624 max_cmd_len=$max_cmd_len
38626 # Object file suffix (normally "o").
38629 # Executable file suffix (normally "").
38632 # whether the shell understands "unset".
38635 # turn spaces into newlines.
38638 # turn newlines into spaces.
38641 # convert \$build file names to \$host format.
38642 to_host_file_cmd=$lt_cv_to_host_file_cmd
38644 # convert \$build files to toolchain format.
38645 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38647 # An object symbol dumper.
38648 OBJDUMP=$lt_OBJDUMP
38650 # Method to check whether dependent libraries are shared objects.
38651 deplibs_check_method=$lt_deplibs_check_method
38653 # Command to use when deplibs_check_method = "file_magic".
38654 file_magic_cmd=$lt_file_magic_cmd
38656 # How to find potential files when deplibs_check_method = "file_magic".
38657 file_magic_glob=$lt_file_magic_glob
38659 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38660 want_nocaseglob=$lt_want_nocaseglob
38662 # DLL creation program.
38663 DLLTOOL=$lt_DLLTOOL
38665 # Command to associate shared and link libraries.
38666 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38671 # Flags to create an archive.
38672 AR_FLAGS=$lt_AR_FLAGS
38674 # How to feed a file listing to the archiver.
38675 archiver_list_spec=$lt_archiver_list_spec
38677 # A symbol stripping program.
38680 # Commands used to install an old-style archive.
38682 old_postinstall_cmds=$lt_old_postinstall_cmds
38683 old_postuninstall_cmds=$lt_old_postuninstall_cmds
38685 # Whether to use a lock for old archive extraction.
38686 lock_old_archive_extraction=$lock_old_archive_extraction
38691 # LTCC compiler flags.
38692 LTCFLAGS=$lt_CFLAGS
38694 # Take the output of nm and produce a listing of raw symbols and C names.
38695 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38697 # Transform the output of nm in a proper C declaration.
38698 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38700 # Transform the output of nm in a C name address pair.
38701 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38703 # Transform the output of nm in a C name address pair when lib prefix is needed.
38704 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38706 # Specify filename containing input files for \$NM.
38707 nm_file_list_spec=$lt_nm_file_list_spec
38709 # The root where to search for dependent libraries,and in which our libraries should be installed.
38710 lt_sysroot=$lt_sysroot
38712 # The name of the directory that contains temporary libtool files.
38715 # Used to examine libraries when file_magic_cmd begins with "file".
38716 MAGIC_CMD=$MAGIC_CMD
38718 # Must we lock files when doing compilation?
38719 need_locks=$lt_need_locks
38722 MANIFEST_TOOL=$lt_MANIFEST_TOOL
38724 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38725 DSYMUTIL=$lt_DSYMUTIL
38727 # Tool to change global to local symbols on Mac OS X.
38730 # Tool to manipulate fat objects and archives on Mac OS X.
38733 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
38736 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38737 OTOOL64=$lt_OTOOL64
38739 # Old archive suffix (normally "a").
38742 # Shared library suffix (normally ".so").
38743 shrext_cmds=$lt_shrext_cmds
38745 # The commands to extract the exported symbol list from a shared archive.
38746 extract_expsyms_cmds=$lt_extract_expsyms_cmds
38748 # Variables whose values should be saved in libtool wrapper scripts and
38749 # restored at link time.
38750 variables_saved_for_relink=$lt_variables_saved_for_relink
38752 # Do we need the "lib" prefix for modules?
38753 need_lib_prefix=$need_lib_prefix
38755 # Do we need a version for libraries?
38756 need_version=$need_version
38758 # Library versioning type.
38759 version_type=$version_type
38761 # Shared library runtime path variable.
38762 runpath_var=$runpath_var
38764 # Shared library path variable.
38765 shlibpath_var=$shlibpath_var
38767 # Is shlibpath searched before the hard-coded library search path?
38768 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38770 # Format of library name prefix.
38771 libname_spec=$lt_libname_spec
38773 # List of archive names. First name is the real one, the rest are links.
38774 # The last name is the one that the linker finds with -lNAME
38775 library_names_spec=$lt_library_names_spec
38777 # The coded name of the library, if different from the real name.
38778 soname_spec=$lt_soname_spec
38780 # Permission mode override for installation of shared libraries.
38781 install_override_mode=$lt_install_override_mode
38783 # Command to use after installation of a shared archive.
38784 postinstall_cmds=$lt_postinstall_cmds
38786 # Command to use after uninstallation of a shared archive.
38787 postuninstall_cmds=$lt_postuninstall_cmds
38789 # Commands used to finish a libtool library installation in a directory.
38790 finish_cmds=$lt_finish_cmds
38792 # As "finish_cmds", except a single script fragment to be evaled but
38794 finish_eval=$lt_finish_eval
38796 # Whether we should hardcode library paths into libraries.
38797 hardcode_into_libs=$hardcode_into_libs
38799 # Compile-time system search path for libraries.
38800 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38802 # Run-time system search path for libraries.
38803 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38805 # Whether dlopen is supported.
38806 dlopen_support=$enable_dlopen
38808 # Whether dlopen of programs is supported.
38809 dlopen_self=$enable_dlopen_self
38811 # Whether dlopen of statically linked programs is supported.
38812 dlopen_self_static=$enable_dlopen_self_static
38814 # Commands to strip libraries.
38815 old_striplib=$lt_old_striplib
38816 striplib=$lt_striplib
38819 # The linker used to build libraries.
38822 # How to create reloadable object files.
38823 reload_flag=$lt_reload_flag
38824 reload_cmds=$lt_reload_cmds
38826 # Commands used to build an old-style archive.
38827 old_archive_cmds=$lt_old_archive_cmds
38829 # A language specific compiler.
38832 # Is the compiler the GNU compiler?
38835 # Compiler flag to turn off builtin functions.
38836 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38838 # Additional compiler flags for building library objects.
38839 pic_flag=$lt_lt_prog_compiler_pic
38841 # How to pass a linker flag through the compiler.
38842 wl=$lt_lt_prog_compiler_wl
38844 # Compiler flag to prevent dynamic linking.
38845 link_static_flag=$lt_lt_prog_compiler_static
38847 # Does compiler simultaneously support -c and -o options?
38848 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38850 # Whether or not to add -lc for building shared libraries.
38851 build_libtool_need_lc=$archive_cmds_need_lc
38853 # Whether or not to disallow shared libs when runtime libs are static.
38854 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38856 # Compiler flag to allow reflexive dlopens.
38857 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38859 # Compiler flag to generate shared objects directly from archives.
38860 whole_archive_flag_spec=$lt_whole_archive_flag_spec
38862 # Whether the compiler copes with passing no objects directly.
38863 compiler_needs_object=$lt_compiler_needs_object
38865 # Create an old-style archive from a shared archive.
38866 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38868 # Create a temporary old-style archive to link instead of a shared archive.
38869 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38871 # Commands used to build a shared archive.
38872 archive_cmds=$lt_archive_cmds
38873 archive_expsym_cmds=$lt_archive_expsym_cmds
38875 # Commands used to build a loadable module if different from building
38876 # a shared archive.
38877 module_cmds=$lt_module_cmds
38878 module_expsym_cmds=$lt_module_expsym_cmds
38880 # Whether we are building with GNU ld or not.
38881 with_gnu_ld=$lt_with_gnu_ld
38883 # Flag that allows shared libraries with undefined symbols to be built.
38884 allow_undefined_flag=$lt_allow_undefined_flag
38886 # Flag that enforces no undefined symbols.
38887 no_undefined_flag=$lt_no_undefined_flag
38889 # Flag to hardcode \$libdir into a binary during linking.
38890 # This must work even if \$libdir does not exist
38891 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38893 # If ld is used when linking, flag to hardcode \$libdir into a binary
38894 # during linking. This must work even if \$libdir does not exist.
38895 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
38897 # Whether we need a single "-rpath" flag with a separated argument.
38898 hardcode_libdir_separator=$lt_hardcode_libdir_separator
38900 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38901 # DIR into the resulting binary.
38902 hardcode_direct=$hardcode_direct
38904 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38905 # DIR into the resulting binary and the resulting library dependency is
38906 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38907 # library is relocated.
38908 hardcode_direct_absolute=$hardcode_direct_absolute
38910 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38911 # into the resulting binary.
38912 hardcode_minus_L=$hardcode_minus_L
38914 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38915 # into the resulting binary.
38916 hardcode_shlibpath_var=$hardcode_shlibpath_var
38918 # Set to "yes" if building a shared library automatically hardcodes DIR
38919 # into the library and all subsequent libraries and executables linked
38921 hardcode_automatic=$hardcode_automatic
38923 # Set to yes if linker adds runtime paths of dependent libraries
38924 # to runtime path list.
38925 inherit_rpath=$inherit_rpath
38927 # Whether libtool must link a program against all its dependency libraries.
38928 link_all_deplibs=$link_all_deplibs
38930 # Set to "yes" if exported symbols are required.
38931 always_export_symbols=$always_export_symbols
38933 # The commands to list exported symbols.
38934 export_symbols_cmds=$lt_export_symbols_cmds
38936 # Symbols that should not be listed in the preloaded symbols.
38937 exclude_expsyms=$lt_exclude_expsyms
38939 # Symbols that must always be exported.
38940 include_expsyms=$lt_include_expsyms
38942 # Commands necessary for linking programs (against libraries) with templates.
38943 prelink_cmds=$lt_prelink_cmds
38945 # Commands necessary for finishing linking programs.
38946 postlink_cmds=$lt_postlink_cmds
38948 # Specify filename containing input files.
38949 file_list_spec=$lt_file_list_spec
38951 # How to hardcode a shared library path into an executable.
38952 hardcode_action=$hardcode_action
38954 # The directories searched by this compiler when creating a shared library.
38955 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38957 # Dependencies to place before and after the objects being linked to
38958 # create a shared library.
38959 predep_objects=$lt_predep_objects
38960 postdep_objects=$lt_postdep_objects
38961 predeps=$lt_predeps
38962 postdeps=$lt_postdeps
38964 # The library search path used internally by the compiler when linking
38965 # a shared library.
38966 compiler_lib_search_path=$lt_compiler_lib_search_path
38968 # ### END LIBTOOL CONFIG
38974 cat <<\_LT_EOF >> "$cfgfile"
38975 # AIX sometimes has problems with the GCC collect2 program. For some
38976 # reason, if we set the COLLECT_NAMES environment variable, the problems
38977 # vanish in a puff of smoke.
38978 if test "X${COLLECT_NAMES+set}" != Xset; then
38980 export COLLECT_NAMES
38987 ltmain="$ac_aux_dir/ltmain.sh"
38990 # We use sed instead of cat because bash on DJGPP gets confused if
38991 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38992 # text mode, it properly converts lines to CR/LF. This bash problem
38993 # is reportedly fixed, but why not run on old versions too?
38994 sed '$q' "$ltmain" >> "$cfgfile" \
38995 || (rm -f "$cfgfile"; exit 1)
38997 if test x"$xsi_shell" = xyes; then
38998 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
39002 \ */*) func_dirname_result="${1%/*}${2}" ;;\
39003 \ * ) func_dirname_result="${3}" ;;\
39005 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
39006 && mv -f "$cfgfile.tmp" "$cfgfile" \
39007 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39008 test 0 -eq $? || _lt_function_replace_fail=:
39011 sed -e '/^func_basename ()$/,/^} # func_basename /c\
39014 \ func_basename_result="${1##*/}"\
39015 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
39016 && mv -f "$cfgfile.tmp" "$cfgfile" \
39017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39018 test 0 -eq $? || _lt_function_replace_fail=:
39021 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
39022 func_dirname_and_basename ()\
39025 \ */*) func_dirname_result="${1%/*}${2}" ;;\
39026 \ * ) func_dirname_result="${3}" ;;\
39028 \ func_basename_result="${1##*/}"\
39029 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
39030 && mv -f "$cfgfile.tmp" "$cfgfile" \
39031 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39032 test 0 -eq $? || _lt_function_replace_fail=:
39035 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
39038 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39039 \ # positional parameters, so assign one to ordinary parameter first.\
39040 \ func_stripname_result=${3}\
39041 \ func_stripname_result=${func_stripname_result#"${1}"}\
39042 \ func_stripname_result=${func_stripname_result%"${2}"}\
39043 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39044 && mv -f "$cfgfile.tmp" "$cfgfile" \
39045 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39046 test 0 -eq $? || _lt_function_replace_fail=:
39049 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39050 func_split_long_opt ()\
39052 \ func_split_long_opt_name=${1%%=*}\
39053 \ func_split_long_opt_arg=${1#*=}\
39054 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39055 && mv -f "$cfgfile.tmp" "$cfgfile" \
39056 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39057 test 0 -eq $? || _lt_function_replace_fail=:
39060 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39061 func_split_short_opt ()\
39063 \ func_split_short_opt_arg=${1#??}\
39064 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39065 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39066 && mv -f "$cfgfile.tmp" "$cfgfile" \
39067 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39068 test 0 -eq $? || _lt_function_replace_fail=:
39071 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39075 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39076 \ *) func_lo2o_result=${1} ;;\
39078 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39079 && mv -f "$cfgfile.tmp" "$cfgfile" \
39080 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39081 test 0 -eq $? || _lt_function_replace_fail=:
39084 sed -e '/^func_xform ()$/,/^} # func_xform /c\
39087 func_xform_result=${1%.*}.lo\
39088 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39089 && mv -f "$cfgfile.tmp" "$cfgfile" \
39090 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39091 test 0 -eq $? || _lt_function_replace_fail=:
39094 sed -e '/^func_arith ()$/,/^} # func_arith /c\
39097 func_arith_result=$(( $* ))\
39098 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39099 && mv -f "$cfgfile.tmp" "$cfgfile" \
39100 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39101 test 0 -eq $? || _lt_function_replace_fail=:
39104 sed -e '/^func_len ()$/,/^} # func_len /c\
39107 func_len_result=${#1}\
39108 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39109 && mv -f "$cfgfile.tmp" "$cfgfile" \
39110 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39111 test 0 -eq $? || _lt_function_replace_fail=:
39115 if test x"$lt_shell_append" = xyes; then
39116 sed -e '/^func_append ()$/,/^} # func_append /c\
39119 eval "${1}+=\\${2}"\
39120 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39121 && mv -f "$cfgfile.tmp" "$cfgfile" \
39122 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39123 test 0 -eq $? || _lt_function_replace_fail=:
39126 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39127 func_append_quoted ()\
39129 \ func_quote_for_eval "${2}"\
39130 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39131 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39132 && mv -f "$cfgfile.tmp" "$cfgfile" \
39133 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39134 test 0 -eq $? || _lt_function_replace_fail=:
39137 # Save a `func_append' function call where possible by direct use of '+='
39138 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39139 && mv -f "$cfgfile.tmp" "$cfgfile" \
39140 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39141 test 0 -eq $? || _lt_function_replace_fail=:
39143 # Save a `func_append' function call even when '+=' is not available
39144 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39145 && mv -f "$cfgfile.tmp" "$cfgfile" \
39146 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39147 test 0 -eq $? || _lt_function_replace_fail=:
39150 if test x"$_lt_function_replace_fail" = x":"; then
39151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39152 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39156 mv -f "$cfgfile" "$ofile" ||
39157 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39161 cat <<_LT_EOF >> "$ofile"
39163 # ### BEGIN LIBTOOL TAG CONFIG: CXX
39165 # The linker used to build libraries.
39168 # How to create reloadable object files.
39169 reload_flag=$lt_reload_flag_CXX
39170 reload_cmds=$lt_reload_cmds_CXX
39172 # Commands used to build an old-style archive.
39173 old_archive_cmds=$lt_old_archive_cmds_CXX
39175 # A language specific compiler.
39176 CC=$lt_compiler_CXX
39178 # Is the compiler the GNU compiler?
39181 # Compiler flag to turn off builtin functions.
39182 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39184 # Additional compiler flags for building library objects.
39185 pic_flag=$lt_lt_prog_compiler_pic_CXX
39187 # How to pass a linker flag through the compiler.
39188 wl=$lt_lt_prog_compiler_wl_CXX
39190 # Compiler flag to prevent dynamic linking.
39191 link_static_flag=$lt_lt_prog_compiler_static_CXX
39193 # Does compiler simultaneously support -c and -o options?
39194 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39196 # Whether or not to add -lc for building shared libraries.
39197 build_libtool_need_lc=$archive_cmds_need_lc_CXX
39199 # Whether or not to disallow shared libs when runtime libs are static.
39200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39202 # Compiler flag to allow reflexive dlopens.
39203 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39205 # Compiler flag to generate shared objects directly from archives.
39206 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39208 # Whether the compiler copes with passing no objects directly.
39209 compiler_needs_object=$lt_compiler_needs_object_CXX
39211 # Create an old-style archive from a shared archive.
39212 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39214 # Create a temporary old-style archive to link instead of a shared archive.
39215 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39217 # Commands used to build a shared archive.
39218 archive_cmds=$lt_archive_cmds_CXX
39219 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39221 # Commands used to build a loadable module if different from building
39222 # a shared archive.
39223 module_cmds=$lt_module_cmds_CXX
39224 module_expsym_cmds=$lt_module_expsym_cmds_CXX
39226 # Whether we are building with GNU ld or not.
39227 with_gnu_ld=$lt_with_gnu_ld_CXX
39229 # Flag that allows shared libraries with undefined symbols to be built.
39230 allow_undefined_flag=$lt_allow_undefined_flag_CXX
39232 # Flag that enforces no undefined symbols.
39233 no_undefined_flag=$lt_no_undefined_flag_CXX
39235 # Flag to hardcode \$libdir into a binary during linking.
39236 # This must work even if \$libdir does not exist
39237 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39239 # If ld is used when linking, flag to hardcode \$libdir into a binary
39240 # during linking. This must work even if \$libdir does not exist.
39241 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
39243 # Whether we need a single "-rpath" flag with a separated argument.
39244 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39246 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39247 # DIR into the resulting binary.
39248 hardcode_direct=$hardcode_direct_CXX
39250 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39251 # DIR into the resulting binary and the resulting library dependency is
39252 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39253 # library is relocated.
39254 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39256 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39257 # into the resulting binary.
39258 hardcode_minus_L=$hardcode_minus_L_CXX
39260 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39261 # into the resulting binary.
39262 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39264 # Set to "yes" if building a shared library automatically hardcodes DIR
39265 # into the library and all subsequent libraries and executables linked
39267 hardcode_automatic=$hardcode_automatic_CXX
39269 # Set to yes if linker adds runtime paths of dependent libraries
39270 # to runtime path list.
39271 inherit_rpath=$inherit_rpath_CXX
39273 # Whether libtool must link a program against all its dependency libraries.
39274 link_all_deplibs=$link_all_deplibs_CXX
39276 # Set to "yes" if exported symbols are required.
39277 always_export_symbols=$always_export_symbols_CXX
39279 # The commands to list exported symbols.
39280 export_symbols_cmds=$lt_export_symbols_cmds_CXX
39282 # Symbols that should not be listed in the preloaded symbols.
39283 exclude_expsyms=$lt_exclude_expsyms_CXX
39285 # Symbols that must always be exported.
39286 include_expsyms=$lt_include_expsyms_CXX
39288 # Commands necessary for linking programs (against libraries) with templates.
39289 prelink_cmds=$lt_prelink_cmds_CXX
39291 # Commands necessary for finishing linking programs.
39292 postlink_cmds=$lt_postlink_cmds_CXX
39294 # Specify filename containing input files.
39295 file_list_spec=$lt_file_list_spec_CXX
39297 # How to hardcode a shared library path into an executable.
39298 hardcode_action=$hardcode_action_CXX
39300 # The directories searched by this compiler when creating a shared library.
39301 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39303 # Dependencies to place before and after the objects being linked to
39304 # create a shared library.
39305 predep_objects=$lt_predep_objects_CXX
39306 postdep_objects=$lt_postdep_objects_CXX
39307 predeps=$lt_predeps_CXX
39308 postdeps=$lt_postdeps_CXX
39310 # The library search path used internally by the compiler when linking
39311 # a shared library.
39312 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39314 # ### END LIBTOOL TAG CONFIG: CXX
39318 "ntpd/complete.conf":F) sed -e '/^rlimit$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
39319 "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
39320 "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
39321 "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
39322 "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
39323 "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
39324 "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
39325 "scripts/ntpver":F) chmod +x scripts/ntpver ;;
39326 "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
39327 "scripts/summary":F) chmod +x scripts/summary ;;
39335 ac_clean_files=$ac_clean_files_save
39337 test $ac_write_fail = 0 ||
39338 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39341 # configure is writing to config.log, and then calls config.status.
39342 # config.status does its own redirection, appending to config.log.
39343 # Unfortunately, on DOS this fails, as config.log is still kept open
39344 # by configure, so config.status won't be able to write to it; its
39345 # output is simply discarded. So we exec the FD to /dev/null,
39346 # effectively closing config.log, so it can be properly (re)opened and
39347 # appended to by config.status. When coming back to configure, we
39348 # need to make the FD available again.
39349 if test "$no_create" != yes; then
39351 ac_config_status_args=
39352 test "$silent" = yes &&
39353 ac_config_status_args="$ac_config_status_args --quiet"
39355 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39357 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39358 # would make configure fail if this is the last instruction.
39359 $ac_cs_success || as_fn_exit 1
39363 # CONFIG_SUBDIRS section.
39365 if test "$no_recursion" != yes; then
39367 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
39368 # so they do not pile up.
39369 ac_sub_configure_args=
39371 eval "set x $ac_configure_args"
39375 if test -n "$ac_prev"; then
39380 -cache-file | --cache-file | --cache-fil | --cache-fi \
39381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
39382 ac_prev=cache_file ;;
39383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
39384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
39387 --config-cache | -C)
39389 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
39391 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
39393 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
39395 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
39397 --disable-option-checking)
39401 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
39403 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
39407 # Always prepend --prefix to ensure using the same prefix
39408 # in subdir configurations.
39409 ac_arg="--prefix=$prefix"
39411 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
39413 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
39416 if test "$silent" = yes; then
39417 ac_sub_configure_args="--silent $ac_sub_configure_args"
39420 # Always prepend --disable-option-checking to silence warnings, since
39421 # different subdirs can have different --enable and --with options.
39422 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
39425 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
39427 # Do not complain, so a configure script can configure whichever
39428 # parts of a large source tree are present.
39429 test -d "$srcdir/$ac_dir" || continue
39431 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
39432 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
39433 $as_echo "$ac_msg" >&6
39434 as_dir="$ac_dir"; as_fn_mkdir_p
39438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39440 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
39441 # A ".." for each directory in $ac_dir_suffix.
39442 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
39443 case $ac_top_builddir_sub in
39444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39448 ac_abs_top_builddir=$ac_pwd
39449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39450 # for backward compatibility:
39451 ac_top_builddir=$ac_top_build_prefix
39454 .) # We are building in place.
39456 ac_top_srcdir=$ac_top_builddir_sub
39457 ac_abs_top_srcdir=$ac_pwd ;;
39458 [\\/]* | ?:[\\/]* ) # Absolute name.
39459 ac_srcdir=$srcdir$ac_dir_suffix;
39460 ac_top_srcdir=$srcdir
39461 ac_abs_top_srcdir=$srcdir ;;
39462 *) # Relative name.
39463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39464 ac_top_srcdir=$ac_top_build_prefix$srcdir
39465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39472 # Check for guested configure; otherwise get Cygnus style configure.
39473 if test -f "$ac_srcdir/configure.gnu"; then
39474 ac_sub_configure=$ac_srcdir/configure.gnu
39475 elif test -f "$ac_srcdir/configure"; then
39476 ac_sub_configure=$ac_srcdir/configure
39477 elif test -f "$ac_srcdir/configure.in"; then
39478 # This should be Cygnus configure.
39479 ac_sub_configure=$ac_aux_dir/configure
39481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
39482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
39486 # The recursion is here.
39487 if test -n "$ac_sub_configure"; then
39488 # Make the cache file name correct relative to the subdirectory.
39489 case $cache_file in
39490 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
39491 *) # Relative name.
39492 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
39495 { $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
39496 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
39497 # The eval makes quoting arguments work.
39498 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
39499 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
39500 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
39506 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
39507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
39508 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}