2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sntp 4.2.8p10.
5 # Report bugs to <http://bugs.ntp.org./>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.ntp.org./ about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
592 PACKAGE_TARNAME='sntp'
593 PACKAGE_VERSION='4.2.8p10'
594 PACKAGE_STRING='sntp 4.2.8p10'
595 PACKAGE_BUGREPORT='http://bugs.ntp.org./'
596 PACKAGE_URL='http://www.ntp.org./'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
635 enable_option_checking=no
636 ac_subst_vars='am__EXEEXT_FALSE
639 BUILD_TEST_KODFILE_FALSE
640 BUILD_TEST_KODFILE_TRUE
641 BUILD_TEST_KODDATABASE_FALSE
642 BUILD_TEST_KODDATABASE_TRUE
643 UNITYBUILD_AVAILABLE_FALSE
644 UNITYBUILD_AVAILABLE_TRUE
655 NTP_FORCE_LIBEVENT_DIST
661 INSTALL_LIBOPTS_FALSE
664 GL_GENERATE_STDNORETURN_H_FALSE
665 GL_GENERATE_STDNORETURN_H_TRUE
689 LIBISC_PTHREADS_NOTHREADS
702 NTP_CROSSCOMPILE_FALSE
703 NTP_CROSSCOMPILE_TRUE
706 INSTALL_UPDATE_LEAP_FALSE
707 INSTALL_UPDATE_LEAP_TRUE
748 INSTALL_NTPSWEEP_FALSE
749 INSTALL_NTPSWEEP_TRUE
791 WANT_CALC_TICKADJ_MS_FALSE
792 WANT_CALC_TICKADJ_MS_TRUE
840 INSTALL_STRIP_PROGRAM
882 program_transform_name
895 enable_option_checking
897 enable_dependency_tracking
902 enable_thread_support
919 enable_libopts_install
926 enable_local_libevent
936 ac_precious_vars='build_alias
946 ac_subdirs_all='libevent'
948 # Initialize some variables set by options.
950 ac_init_version=false
951 ac_unrecognized_opts=
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
962 program_transform_name=s,x,x,
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 includedir='${prefix}/include'
985 oldincludedir='/usr/include'
986 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
987 infodir='${datarootdir}/info'
992 libdir='${exec_prefix}/lib'
993 localedir='${datarootdir}/locale'
994 mandir='${datarootdir}/man'
1000 # If the previous option needs an argument, assign it.
1001 if test -n "$ac_prev"; then
1002 eval $ac_prev=\$ac_option
1008 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1039 -datadir | --datadir | --datadi | --datad)
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1051 -disable-* | --disable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_$ac_useropt"
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1065 eval enable_$ac_useropt=no ;;
1067 -docdir | --docdir | --docdi | --doc | --do)
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1077 -enable-* | --enable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error $? "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "enable_$ac_useropt"
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1091 eval enable_$ac_useropt=\$ac_optarg ;;
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122 htmldir=$ac_optarg ;;
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1136 -libdir | --libdir | --libdi | --libd)
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1227 -psdir | --psdir | --psdi | --psd | --ps)
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 sbindir=$ac_optarg ;;
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 sharedstatedir=$ac_optarg ;;
1253 -site | --site | --sit)
1255 -site=* | --site=* | --sit=*)
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error $? "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1295 eval with_$ac_useropt=\$ac_optarg ;;
1297 -without-* | --without-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error $? "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1311 eval with_$ac_useropt=no ;;
1314 # Obsolete; use --with-x.
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1331 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1332 Try \`$0 --help' for more information"
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 case $ac_envvar in #(
1339 '' | [0-9]* | *[!_$as_cr_alnum]* )
1340 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1356 if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 as_fn_error $? "missing argument to $ac_option"
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1364 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1369 # Check all directory arguments for consistency.
1370 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1375 eval ac_val=\$$ac_var
1376 # Remove trailing slashes.
1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\$ac_val;;
1382 # Be sure to have absolute directory names.
1384 [\\/$]* | ?:[\\/]* ) continue;;
1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1395 target=$target_alias
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
1401 elif test "x$build_alias" != "x$host_alias"; then
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409 test "$silent" = yes && exec 6>/dev/null
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415 as_fn_error $? "working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 as_fn_error $? "pwd does not report name of working directory"
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422 ac_srcdir_defaulted=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1452 ac_srcdir_defaulted=no
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1458 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472 for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1480 # Report the --help message.
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1486 \`configure' configures sntp 4.2.8p10 to adapt to many kinds of systems.
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1493 Defaults for the options are specified in brackets.
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking ...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1517 For better control, use the options below.
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/sntp]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1554 if test -n "$ac_init_help"; then
1555 case $ac_init_help in
1556 short | recursive ) echo "Configuration of sntp 4.2.8p10:";;
1561 --disable-option-checking ignore unrecognized --enable/--with options
1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564 --enable-silent-rules less verbose build output (undo: "make V=1")
1565 --disable-silent-rules verbose build output (undo: "make V=0")
1566 --enable-dependency-tracking
1567 do not reject slow dependency extractors
1568 --disable-dependency-tracking
1569 speeds up one-time build
1570 defaults: + yes, - no, s system-specific
1571 --enable-debugging + include ntpd debugging code
1572 --enable-thread-support s use threads (+ if available)
1573 --enable-c99-snprintf s force replacement
1574 --enable-clockctl s Use /dev/clockctl for non-root clock control
1575 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1576 --enable-solarisprivs + Use Solaris privileges for non-root clock control
1577 --enable-shared[=PKGS] build shared libraries [default=no]
1578 --enable-static[=PKGS] build static libraries [default=yes]
1579 --enable-fast-install[=PKGS]
1580 optimize for fast installation [default=yes]
1581 --disable-libtool-lock avoid locking (might break parallel builds)
1582 --disable-nls disable nls support in libopts
1583 --enable-local-libopts Use the supplied libopts tearoff code
1584 --enable-libopts-install
1585 Install libopts with client installation
1586 --disable-optional-args not wanting optional option args
1587 --enable-local-libevent Force using the supplied libevent tearoff code
1588 --enable-ipv6 s use IPv6?
1590 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]].
1591 --enable-problem-tests + enable tests with undiagnosed problems
1594 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1595 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1596 --with-locfile=XXX os-specific or "legacy"
1597 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1598 --with-lineeditlibs edit,editline (readline may be specified if desired)
1599 --with-threads with threads [auto]
1600 --with-yielding-select with yielding select [auto]
1601 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1603 --with-aix-soname=aix|svr4|both
1604 shared library versioning (aka "SONAME") variant to
1605 provide on AIX, [default=aix].
1606 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1607 compiler's sysroot if not specified).
1608 --without-sntp - disable building sntp and sntp/tests
1609 --with-autoopts-config specify the config-info script
1610 --with-regex-header a reg expr header is specified
1611 --with-libregex libregex installation prefix
1612 --with-libregex-cflags libregex compile flags
1613 --with-libregex-libs libregex link command arguments
1614 --with-crypto + =openssl,libcrypto
1616 --with-openssl-libdir + =/something/reasonable
1618 --with-openssl-incdir + =/something/reasonable
1620 --without-rpath s Disable auto-added -R linker paths
1622 --with-kame - =/usr/local/v6
1624 Some influential environment variables:
1625 CC C compiler command
1626 CFLAGS C compiler flags
1627 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1628 nonstandard directory <lib dir>
1629 LIBS libraries to pass to the linker, e.g. -l<library>
1630 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1631 you have headers in a nonstandard directory <include dir>
1634 User-defined run-time library search path.
1636 Use these variables to override the choices made by `configure' or to help
1637 it to find libraries and programs with nonstandard names/locations.
1639 Report bugs to <http://bugs.ntp.org./>.
1640 sntp home page: <http://www.ntp.org./>.
1645 if test "$ac_init_help" = "recursive"; then
1646 # If there are subdirs, report their specific --help.
1647 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1648 test -d "$ac_dir" ||
1649 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1657 # A ".." for each directory in $ac_dir_suffix.
1658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1659 case $ac_top_builddir_sub in
1660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1664 ac_abs_top_builddir=$ac_pwd
1665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666 # for backward compatibility:
1667 ac_top_builddir=$ac_top_build_prefix
1670 .) # We are building in place.
1672 ac_top_srcdir=$ac_top_builddir_sub
1673 ac_abs_top_srcdir=$ac_pwd ;;
1674 [\\/]* | ?:[\\/]* ) # Absolute name.
1675 ac_srcdir=$srcdir$ac_dir_suffix;
1676 ac_top_srcdir=$srcdir
1677 ac_abs_top_srcdir=$srcdir ;;
1679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680 ac_top_srcdir=$ac_top_build_prefix$srcdir
1681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1685 cd "$ac_dir" || { ac_status=$?; continue; }
1686 # Check for guested configure.
1687 if test -f "$ac_srcdir/configure.gnu"; then
1689 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690 elif test -f "$ac_srcdir/configure"; then
1692 $SHELL "$ac_srcdir/configure" --help=recursive
1694 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1696 cd "$ac_pwd" || { ac_status=$?; break; }
1700 test -n "$ac_init_help" && exit $ac_status
1701 if $ac_init_version; then
1703 sntp configure 4.2.8p10
1704 generated by GNU Autoconf 2.69
1706 Copyright (C) 2012 Free Software Foundation, Inc.
1707 This configure script is free software; the Free Software Foundation
1708 gives unlimited permission to copy, distribute and modify it.
1713 ## ------------------------ ##
1714 ## Autoconf initialization. ##
1715 ## ------------------------ ##
1717 # ac_fn_c_try_compile LINENO
1718 # --------------------------
1719 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_c_try_compile ()
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext
1724 if { { ac_try="$ac_compile"
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_compile") 2>conftest.err
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest.$ac_objext; then :
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1753 } # ac_fn_c_try_compile
1755 # ac_fn_c_try_cpp LINENO
1756 # ----------------------
1757 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_cpp conftest.$ac_ext"
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } > conftest.i && {
1777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1792 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1793 # -------------------------------------------------------
1794 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1795 # the include files in INCLUDES and setting the cache variable VAR
1797 ac_fn_c_check_header_mongrel ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 if eval \${$3+:} false; then :
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1810 # Is the header compilable?
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1812 $as_echo_n "checking $2 usability... " >&6; }
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819 ac_header_compiler=yes
1821 ac_header_compiler=no
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1825 $as_echo "$ac_header_compiler" >&6; }
1827 # Is the header present?
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1829 $as_echo_n "checking $2 presence... " >&6; }
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1834 if ac_fn_c_try_cpp "$LINENO"; then :
1835 ac_header_preproc=yes
1837 ac_header_preproc=no
1839 rm -f conftest.err conftest.i conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1841 $as_echo "$ac_header_preproc" >&6; }
1843 # So? What about this header?
1844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1847 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1853 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1855 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1857 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1859 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862 ( $as_echo "## ------------------------------------ ##
1863 ## Report this to http://bugs.ntp.org./ ##
1864 ## ------------------------------------ ##"
1865 ) | sed "s/^/$as_me: WARNING: /" >&2
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1873 eval "$3=\$ac_header_compiler"
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 } # ac_fn_c_check_header_mongrel
1883 # ac_fn_c_try_run LINENO
1884 # ----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1886 # that executables *can* be run.
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if { { ac_try="$ac_link"
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>&5
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1901 { { case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_try") 2>&5
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; }; }; then :
1913 $as_echo "$as_me: program exited with status $ac_status" >&5
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1917 ac_retval=$ac_status
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1925 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists and can be compiled using the include files in
1928 # INCLUDES, setting the cache variable VAR accordingly.
1929 ac_fn_c_check_header_compile ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if eval \${$3+:} false; then :
1935 $as_echo_n "(cached) " >&6
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1942 if ac_fn_c_try_compile "$LINENO"; then :
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 } # ac_fn_c_check_header_compile
1956 # ac_fn_c_try_link LINENO
1957 # -----------------------
1958 # Try to link conftest.$ac_ext, and return whether this succeeded.
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 rm -f conftest.$ac_objext conftest$ac_exeext
1963 if { { ac_try="$ac_link"
1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966 *) ac_try_echo=$ac_try;;
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 $as_echo "$ac_try_echo"; } >&5
1970 (eval "$ac_link") 2>conftest.err
1972 if test -s conftest.err; then
1973 grep -v '^ *+' conftest.err >conftest.er1
1974 cat conftest.er1 >&5
1975 mv -f conftest.er1 conftest.err
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && {
1979 test -z "$ac_c_werror_flag" ||
1980 test ! -s conftest.err
1981 } && test -s conftest$ac_exeext && {
1982 test "$cross_compiling" = yes ||
1983 test -x conftest$ac_exeext
1987 $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1992 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1993 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1994 # interfere with the next link command; also delete a directory that is
1995 # left behind by Apple's compiler. We do this before executing the actions.
1996 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 as_fn_set_status $ac_retval
2000 } # ac_fn_c_try_link
2002 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2003 # -------------------------------------------
2004 # Tests whether TYPE exists after having included INCLUDES, setting cache
2005 # variable VAR accordingly.
2006 ac_fn_c_check_type ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2040 if ac_fn_c_try_compile "$LINENO"; then :
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054 } # ac_fn_c_check_type
2056 # ac_fn_c_check_func LINENO FUNC VAR
2057 # ----------------------------------
2058 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2059 ac_fn_c_check_func ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if eval \${$3+:} false; then :
2065 $as_echo_n "(cached) " >&6
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2071 #define $2 innocuous_$2
2073 /* System header to define __stub macros and hopefully few prototypes,
2074 which can conflict with char $2 (); below.
2075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2076 <limits.h> exists even on freestanding compilers. */
2079 # include <limits.h>
2081 # include <assert.h>
2086 /* Override any GCC internal prototype to avoid an error.
2087 Use char because int might match the return type of a GCC
2088 builtin and then its argument prototype would still apply. */
2093 /* The GNU C library defines this for functions which it implements
2094 to always fail with ENOSYS. Some functions are actually named
2095 something starting with __ and the normal name is an alias. */
2096 #if defined __stub_$2 || defined __stub___$2
2108 if ac_fn_c_try_link "$LINENO"; then :
2113 rm -f core conftest.err conftest.$ac_objext \
2114 conftest$ac_exeext conftest.$ac_ext
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 } # ac_fn_c_check_func
2123 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2124 # ---------------------------------------------
2125 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2127 ac_fn_c_check_decl ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 as_decl_name=`echo $2|sed 's/ *(.*//'`
2131 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2133 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2134 if eval \${$3+:} false; then :
2135 $as_echo_n "(cached) " >&6
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2143 #ifndef $as_decl_name
2145 (void) $as_decl_use;
2147 (void) $as_decl_name;
2155 if ac_fn_c_try_compile "$LINENO"; then :
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 } # ac_fn_c_check_decl
2169 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2170 # --------------------------------------------
2171 # Tries to find the compile-time value of EXPR in a program that includes
2172 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2174 ac_fn_c_compute_int ()
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 if test "$cross_compiling" = yes; then
2178 # Depending upon the size, compute the lo and hi bounds.
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2185 static int test_array [1 - 2 * !(($2) >= 0)];
2187 return test_array [0];
2193 if ac_fn_c_try_compile "$LINENO"; then :
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2202 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2204 return test_array [0];
2210 if ac_fn_c_try_compile "$LINENO"; then :
2211 ac_hi=$ac_mid; break
2213 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2214 if test $ac_lo -le $ac_mid; then
2218 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2229 static int test_array [1 - 2 * !(($2) < 0)];
2231 return test_array [0];
2237 if ac_fn_c_try_compile "$LINENO"; then :
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2246 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2248 return test_array [0];
2254 if ac_fn_c_try_compile "$LINENO"; then :
2255 ac_lo=$ac_mid; break
2257 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2258 if test $ac_mid -le $ac_hi; then
2262 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 # Binary search between lo and hi bounds.
2273 while test "x$ac_lo" != "x$ac_hi"; do
2274 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2281 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2283 return test_array [0];
2289 if ac_fn_c_try_compile "$LINENO"; then :
2292 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2304 static long int longval () { return $2; }
2305 static unsigned long int ulongval () { return $2; }
2312 FILE *f = fopen ("conftest.val", "w");
2317 long int i = longval ();
2320 fprintf (f, "%ld", i);
2324 unsigned long int i = ulongval ();
2327 fprintf (f, "%lu", i);
2329 /* Do not output a trailing newline, as this causes \r\n confusion
2330 on some platforms. */
2331 return ferror (f) || fclose (f) != 0;
2337 if ac_fn_c_try_run "$LINENO"; then :
2338 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2343 conftest.$ac_objext conftest.beam conftest.$ac_ext
2347 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2348 as_fn_set_status $ac_retval
2350 } # ac_fn_c_compute_int
2352 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2353 # ----------------------------------------------------
2354 # Tries to find if the field MEMBER exists in type AGGR, after including
2355 # INCLUDES, setting cache variable VAR accordingly.
2356 ac_fn_c_check_member ()
2358 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2360 $as_echo_n "checking for $2.$3... " >&6; }
2361 if eval \${$4+:} false; then :
2362 $as_echo_n "(cached) " >&6
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2377 if ac_fn_c_try_compile "$LINENO"; then :
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2387 if (sizeof ac_aggr.$3)
2393 if ac_fn_c_try_compile "$LINENO"; then :
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2407 } # ac_fn_c_check_member
2408 cat >config.log <<_ACEOF
2409 This file contains any messages produced by compilers while
2410 running configure, to aid debugging if configure makes a mistake.
2412 It was created by sntp $as_me 4.2.8p10, which was
2413 generated by GNU Autoconf 2.69. Invocation command line was
2425 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2426 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2427 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2428 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2429 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2431 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2432 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2434 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2435 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2436 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2437 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2438 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2439 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2440 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 test -z "$as_dir" && as_dir=.
2449 $as_echo "PATH: $as_dir"
2465 # Keep a trace of the command line.
2466 # Strip out --no-create and --no-recursion so they do not pile up.
2467 # Strip out --silent because we don't want to record it for future runs.
2468 # Also quote any args containing shell meta-characters.
2469 # Make two passes to allow for proper duplicate-argument suppression.
2473 ac_must_keep_next=false
2479 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2480 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2481 | -silent | --silent | --silen | --sile | --sil)
2484 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2487 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2489 as_fn_append ac_configure_args1 " '$ac_arg'"
2490 if test $ac_must_keep_next = true; then
2491 ac_must_keep_next=false # Got value, back to normal.
2494 *=* | --config-cache | -C | -disable-* | --disable-* \
2495 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2496 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2497 | -with-* | --with-* | -without-* | --without-* | --x)
2498 case "$ac_configure_args0 " in
2499 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2502 -* ) ac_must_keep_next=true ;;
2505 as_fn_append ac_configure_args " '$ac_arg'"
2510 { ac_configure_args0=; unset ac_configure_args0;}
2511 { ac_configure_args1=; unset ac_configure_args1;}
2513 # When interrupted or exit'd, cleanup temporary files, and complete
2514 # config.log. We remove comments because anyway the quotes in there
2515 # would cause problems or look ugly.
2516 # WARNING: Use '\'' to represent an apostrophe within the trap.
2517 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2518 trap 'exit_status=$?
2519 # Save into config.log some information that might help in debugging.
2523 $as_echo "## ---------------- ##
2524 ## Cache variables. ##
2525 ## ---------------- ##"
2527 # The following way of writing the cache mishandles newlines in values,
2529 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2530 eval ac_val=\$$ac_var
2534 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2535 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2538 _ | IFS | as_nl) ;; #(
2539 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2540 *) { eval $ac_var=; unset $ac_var;} ;;
2545 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2546 *${as_nl}ac_space=\ *)
2548 "s/'\''/'\''\\\\'\'''\''/g;
2549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2559 $as_echo "## ----------------- ##
2560 ## Output variables. ##
2561 ## ----------------- ##"
2563 for ac_var in $ac_subst_vars
2565 eval ac_val=\$$ac_var
2567 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2569 $as_echo "$ac_var='\''$ac_val'\''"
2573 if test -n "$ac_subst_files"; then
2574 $as_echo "## ------------------- ##
2575 ## File substitutions. ##
2576 ## ------------------- ##"
2578 for ac_var in $ac_subst_files
2580 eval ac_val=\$$ac_var
2582 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2584 $as_echo "$ac_var='\''$ac_val'\''"
2589 if test -s confdefs.h; then
2590 $as_echo "## ----------- ##
2597 test "$ac_signal" != 0 &&
2598 $as_echo "$as_me: caught signal $ac_signal"
2599 $as_echo "$as_me: exit $exit_status"
2601 rm -f core *.core core.conftest.* &&
2602 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2605 for ac_signal in 1 2 13 15; do
2606 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2610 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2611 rm -f -r conftest* confdefs.h
2613 $as_echo "/* confdefs.h */" > confdefs.h
2615 # Predefined preprocessor variables.
2617 cat >>confdefs.h <<_ACEOF
2618 #define PACKAGE_NAME "$PACKAGE_NAME"
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE_STRING "$PACKAGE_STRING"
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_URL "$PACKAGE_URL"
2642 # Let the site file select an alternate cache file if it wants to.
2643 # Prefer an explicitly selected file to automatically selected ones.
2646 if test -n "$CONFIG_SITE"; then
2647 # We do not want a PATH search for config.site.
2648 case $CONFIG_SITE in #((
2649 -*) ac_site_file1=./$CONFIG_SITE;;
2650 */*) ac_site_file1=$CONFIG_SITE;;
2651 *) ac_site_file1=./$CONFIG_SITE;;
2653 elif test "x$prefix" != xNONE; then
2654 ac_site_file1=$prefix/share/config.site
2655 ac_site_file2=$prefix/etc/config.site
2657 ac_site_file1=$ac_default_prefix/share/config.site
2658 ac_site_file2=$ac_default_prefix/etc/config.site
2660 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2662 test "x$ac_site_file" = xNONE && continue
2663 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2665 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2666 sed 's/^/| /' "$ac_site_file" >&5
2668 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2670 as_fn_error $? "failed to load site script $ac_site_file
2671 See \`config.log' for more details" "$LINENO" 5; }
2675 if test -r "$cache_file"; then
2676 # Some versions of bash will fail to source /dev/null (special files
2677 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2678 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2680 $as_echo "$as_me: loading cache $cache_file" >&6;}
2682 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2683 *) . "./$cache_file";;
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2688 $as_echo "$as_me: creating cache $cache_file" >&6;}
2692 as_fn_append ac_header_list " stdarg.h"
2693 # Check that the precious variables saved in the cache have kept the same
2695 ac_cache_corrupted=false
2696 for ac_var in $ac_precious_vars; do
2697 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2698 eval ac_new_set=\$ac_env_${ac_var}_set
2699 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2700 eval ac_new_val=\$ac_env_${ac_var}_value
2701 case $ac_old_set,$ac_new_set in
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2704 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2705 ac_cache_corrupted=: ;;
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2708 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2709 ac_cache_corrupted=: ;;
2712 if test "x$ac_old_val" != "x$ac_new_val"; then
2713 # differences in whitespace do not lead to failure.
2714 ac_old_val_w=`echo x $ac_old_val`
2715 ac_new_val_w=`echo x $ac_new_val`
2716 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2718 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2719 ac_cache_corrupted=:
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2722 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2723 eval $ac_var=\$ac_old_val
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2726 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2728 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2731 # Pass precious variables to config.status.
2732 if test "$ac_new_set" = set; then
2734 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2735 *) ac_arg=$ac_var=$ac_new_val ;;
2737 case " $ac_configure_args " in
2738 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2739 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2743 if $ac_cache_corrupted; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2747 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2748 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2750 ## -------------------- ##
2751 ## Main body of script. ##
2752 ## -------------------- ##
2755 ac_cpp='$CPP $CPPFLAGS'
2756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763 for ac_dir in libevent/build-aux "$srcdir"/libevent/build-aux; do
2764 if test -f "$ac_dir/install-sh"; then
2766 ac_install_sh="$ac_aux_dir/install-sh -c"
2768 elif test -f "$ac_dir/install.sh"; then
2770 ac_install_sh="$ac_aux_dir/install.sh -c"
2772 elif test -f "$ac_dir/shtool"; then
2774 ac_install_sh="$ac_aux_dir/shtool install -c"
2778 if test -z "$ac_aux_dir"; then
2779 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libevent/build-aux \"$srcdir\"/libevent/build-aux" "$LINENO" 5
2782 # These three variables are undocumented and unsupported,
2783 # and are intended to be withdrawn in a future Autoconf release.
2784 # They can cause serious problems if a builder's source tree is in a directory
2785 # whose full name contains unusual characters.
2786 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2787 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2788 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 # Bump sntp_configure_cache_version for each change to configure.ac or
2799 # .m4 files which invalidates cached values from previous configure
2802 # If the change affects cache variables used only by the main NTP
2803 # configure.ac, then only its version number should be bumped, while
2804 # the subdir configure.ac version numbers should be unchanged. The
2805 # same is true for a test/variable that is used only by one subdir
2806 # being changed incompatibly; only that subdir's cache version needs
2809 # If a change affects variables shared by all NTP configure scripts,
2810 # please bump the version numbers of each. If you are not sure, the
2811 # safe choice is to bump all on any cache-invalidating change.
2813 # In order to avoid the risk of version stamp collision between -stable
2814 # and -dev branches, do not simply increment the version, instead use
2815 # the date YYYYMMDD optionally with -HHMM if there is more than one
2818 sntp_configure_cache_version=20120806
2820 # When the version of config.cache and configure do not
2821 # match, NTP_CACHEVERSION will flush the cache.
2827 case "$ntp_cv_sntp_cache_version" in
2828 $sntp_configure_cache_version)
2829 # same version, good
2833 # No cache, predates ntp_cv_sntp_cache_version, or is empty.
2834 case "$cache_file" in
2839 case "$NTP_CACHEVERSION_PARENT" in
2841 # Do not clear the cache immediately after it is created
2842 # empty as it is noisy. Differentiate a newly-created
2843 # config.cache from one predating the cache version
2844 # mechanism by looking for the first cached variable set
2846 case "$ac_cv_path_install" in
2848 # empty config.cache file
2853 # Parent configure just created cache from empty,
2854 # flushing would be counterproductive.
2861 # configure cache version mismatches config.cache version
2865 case "$ntp_cache_flush" in
2867 c_version="${ntp_cv_sntp_cache_version:-(no version found)}"
2869 # Do we flush all variables or exclude others' version stamps?
2871 case "$NTP_CACHEVERSION_PARENT" in
2873 # Clear all *_cv_* variables including our child subdirs'
2874 # ntp_cv_*_cache_version variables. This prevents subdir
2875 # configure scripts from noticing a version mismatch just
2876 # after the top configure in the invocation cleared and
2877 # recreated the cache.
2879 c_varname_list=`set |
2880 sed -n -e 's/=.*$//' \
2885 # This is not the top configure this particular invocation.
2886 # Clear all *_cv_* variables sparing the version stamps
2887 # of other configure scripts, so we don't trigger
2888 # useless repeated clearings.
2890 c_varname_list=`set |
2891 sed -n -e 's/=.*$//' \
2892 -e '/ntp_cv_.*_cache_version/d' \
2897 for c_varname in $c_varname_list
2899 { eval $c_varname=; unset $c_varname; }
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
2903 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5
2905 $as_echo "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;}
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
2907 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
2908 { c_varname=; unset c_varname;}
2909 { c_varname_list=; unset c_varname_list;}
2910 { c_version=; unset c_version;}
2913 { ntp_cache_flush=; unset ntp_cache_flush;}
2915 # save configure version in config.cache for next time
2916 ntp_cv_sntp_cache_version="$sntp_configure_cache_version"
2918 # let any subdir configure.ac NTP_CACHEVERSION invocations
2919 # know they are not the top level.
2920 NTP_CACHEVERSION_PARENT='sntp' ; export NTP_CACHEVERSION_PARENT
2923 am__api_version='1.15'
2925 # Find a good install program. We prefer a C program (faster),
2926 # so one script is as good as another. But avoid the broken or
2927 # incompatible versions:
2928 # SysV /etc/install, /usr/sbin/install
2929 # SunOS /usr/etc/install
2930 # IRIX /sbin/install
2932 # AmigaOS /C/install, which installs bootblocks on floppy discs
2933 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2934 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2935 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2936 # OS/2's system install, which has a completely different semantic
2937 # ./install, which can be erroneously created by make from ./install.sh.
2938 # Reject install programs that cannot install multiple files.
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2940 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2941 if test -z "$INSTALL"; then
2942 if ${ac_cv_path_install+:} false; then :
2943 $as_echo_n "(cached) " >&6
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 test -z "$as_dir" && as_dir=.
2950 # Account for people who put trailing slashes in PATH elements.
2951 case $as_dir/ in #((
2952 ./ | .// | /[cC]/* | \
2953 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2954 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2957 # OSF1 and SCO ODT 3.0 have their own names for install.
2958 # Don't use installbsd from OSF since it installs stuff as root
2960 for ac_prog in ginstall scoinst install; do
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2963 if test $ac_prog = install &&
2964 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2965 # AIX install. It has an incompatible calling convention.
2967 elif test $ac_prog = install &&
2968 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2969 # program-specific install script used by HP pwplus--don't use.
2972 rm -rf conftest.one conftest.two conftest.dir
2973 echo one > conftest.one
2974 echo two > conftest.two
2976 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2977 test -s conftest.one && test -s conftest.two &&
2978 test -s conftest.dir/conftest.one &&
2979 test -s conftest.dir/conftest.two
2981 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2994 rm -rf conftest.one conftest.two conftest.dir
2997 if test "${ac_cv_path_install+set}" = set; then
2998 INSTALL=$ac_cv_path_install
3000 # As a last resort, use the slow shell script. Don't cache a
3001 # value for INSTALL within a source directory, because that will
3002 # break other packages using the cache if that directory is
3003 # removed, or if the value is a relative name.
3004 INSTALL=$ac_install_sh
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3008 $as_echo "$INSTALL" >&6; }
3010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3011 # It thinks the first close brace ends the variable substitution.
3012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3019 $as_echo_n "checking whether build environment is sane... " >&6; }
3020 # Reject unsafe characters in $srcdir or the absolute working directory
3021 # name. Accept space and tab only in the latter.
3025 *[\\\"\#\$\&\'\`$am_lf]*)
3026 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3029 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3030 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3033 # Do 'set' in a subshell so we don't clobber the current shell's
3034 # arguments. Must try -L first in case configure is actually a
3035 # symlink; some systems play weird games with the mod time of symlinks
3036 # (eg FreeBSD returns the mod time of the symlink's containing
3040 for am_try in 1 2; do
3041 echo "timestamp, slept: $am_has_slept" > conftest.file
3042 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3043 if test "$*" = "X"; then
3045 set X `ls -t "$srcdir/configure" conftest.file`
3047 if test "$*" != "X $srcdir/configure conftest.file" \
3048 && test "$*" != "X conftest.file $srcdir/configure"; then
3050 # If neither matched, then we have a broken ls. This can happen
3051 # if, for instance, CONFIG_SHELL is bash and it inherits a
3052 # broken ls alias from the environment. This has actually
3053 # happened. Such a system could not be considered "sane".
3054 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3055 alias in your environment" "$LINENO" 5
3057 if test "$2" = conftest.file || test $am_try -eq 2; then
3064 test "$2" = conftest.file
3070 as_fn_error $? "newly created file is older than distributed files!
3071 Check your system clock" "$LINENO" 5
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3074 $as_echo "yes" >&6; }
3075 # If we didn't sleep, we still need to ensure time stamps of config.status and
3076 # generated files are strictly newer.
3078 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3085 test "$program_prefix" != NONE &&
3086 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3087 # Use a double $ so make ignores it.
3088 test "$program_suffix" != NONE &&
3089 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3090 # Double any \ or $.
3091 # By default was `s,x,x', remove it if useless.
3092 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3093 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3095 # Expand $ac_aux_dir to an absolute path.
3096 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3098 if test x"${MISSING+set}" != xset; then
3101 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3103 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3106 # Use eval to expand $SHELL
3107 if eval "$MISSING --is-lightweight"; then
3108 am_missing_run="$MISSING "
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3112 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3115 if test x"${install_sh+set}" != xset; then
3118 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3120 install_sh="\${SHELL} $am_aux_dir/install-sh"
3124 # Installed binaries are usually stripped using 'strip' when the user
3125 # run "make install-strip". However 'strip' might not be the right
3126 # tool to use in cross-compilation environments, therefore Automake
3127 # will honor the 'STRIP' environment variable to overrule this program.
3128 if test "$cross_compiling" != no; then
3129 if test -n "$ac_tool_prefix"; then
3130 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3131 set dummy ${ac_tool_prefix}strip; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if ${ac_cv_prog_STRIP+:} false; then :
3135 $as_echo_n "(cached) " >&6
3137 if test -n "$STRIP"; then
3138 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 STRIP=$ac_cv_prog_STRIP
3158 if test -n "$STRIP"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3160 $as_echo "$STRIP" >&6; }
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3168 if test -z "$ac_cv_prog_STRIP"; then
3170 # Extract the first word of "strip", so it can be a program name with args.
3171 set dummy strip; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3175 $as_echo_n "(cached) " >&6
3177 if test -n "$ac_ct_STRIP"; then
3178 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_ac_ct_STRIP="strip"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3198 if test -n "$ac_ct_STRIP"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3200 $as_echo "$ac_ct_STRIP" >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3206 if test "x$ac_ct_STRIP" = x; then
3209 case $cross_compiling:$ac_tool_warned in
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3213 ac_tool_warned=yes ;;
3218 STRIP="$ac_cv_prog_STRIP"
3222 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3225 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3226 if test -z "$MKDIR_P"; then
3227 if ${ac_cv_path_mkdir+:} false; then :
3228 $as_echo_n "(cached) " >&6
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3234 test -z "$as_dir" && as_dir=.
3235 for ac_prog in mkdir gmkdir; do
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3238 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3239 'mkdir (GNU coreutils) '* | \
3240 'mkdir (coreutils) '* | \
3241 'mkdir (fileutils) '4.1*)
3242 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3252 test -d ./--version && rmdir ./--version
3253 if test "${ac_cv_path_mkdir+set}" = set; then
3254 MKDIR_P="$ac_cv_path_mkdir -p"
3256 # As a last resort, use the slow shell script. Don't cache a
3257 # value for MKDIR_P within a source directory, because that will
3258 # break other packages using the cache if that directory is
3259 # removed, or if the value is a relative name.
3260 MKDIR_P="$ac_install_sh -d"
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3264 $as_echo "$MKDIR_P" >&6; }
3266 for ac_prog in gawk mawk nawk awk
3268 # Extract the first word of "$ac_prog", so it can be a program name with args.
3269 set dummy $ac_prog; ac_word=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if ${ac_cv_prog_AWK+:} false; then :
3273 $as_echo_n "(cached) " >&6
3275 if test -n "$AWK"; then
3276 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285 ac_cv_prog_AWK="$ac_prog"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 if test -n "$AWK"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3298 $as_echo "$AWK" >&6; }
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3305 test -n "$AWK" && break
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3309 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3311 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3312 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3313 $as_echo_n "(cached) " >&6
3315 cat >conftest.make <<\_ACEOF
3318 @echo '@@@%%%=$(MAKE)=@@@%%%'
3320 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3321 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3323 eval ac_cv_prog_make_${ac_make}_set=yes;;
3325 eval ac_cv_prog_make_${ac_make}_set=no;;
3329 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331 $as_echo "yes" >&6; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 SET_MAKE="MAKE=${MAKE-make}"
3339 rm -rf .tst 2>/dev/null
3340 mkdir .tst 2>/dev/null
3341 if test -d .tst; then
3346 rmdir .tst 2>/dev/null
3348 # Check whether --enable-silent-rules was given.
3349 if test "${enable_silent_rules+set}" = set; then :
3350 enableval=$enable_silent_rules;
3353 case $enable_silent_rules in # (((
3354 yes) AM_DEFAULT_VERBOSITY=0;;
3355 no) AM_DEFAULT_VERBOSITY=1;;
3356 *) AM_DEFAULT_VERBOSITY=1;;
3358 am_make=${MAKE-make}
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3360 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3361 if ${am_cv_make_support_nested_variables+:} false; then :
3362 $as_echo_n "(cached) " >&6
3364 if $as_echo 'TRUE=$(BAR$(V))
3370 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3371 am_cv_make_support_nested_variables=yes
3373 am_cv_make_support_nested_variables=no
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3377 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3378 if test $am_cv_make_support_nested_variables = yes; then
3380 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3382 AM_V=$AM_DEFAULT_VERBOSITY
3383 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3387 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3388 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3389 # is not polluted with repeated "-I."
3390 am__isrc=' -I$(srcdir)'
3391 # test to see if srcdir already configured
3392 if test -f $srcdir/config.status; then
3393 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3397 # test whether we have cygpath
3398 if test -z "$CYGPATH_W"; then
3399 if (cygpath --version) >/dev/null 2>/dev/null; then
3400 CYGPATH_W='cygpath -w'
3407 # Define the identity of the package.
3412 cat >>confdefs.h <<_ACEOF
3413 #define PACKAGE "$PACKAGE"
3417 cat >>confdefs.h <<_ACEOF
3418 #define VERSION "$VERSION"
3421 # Some tools Automake needs.
3423 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3426 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3429 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3432 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3435 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3437 # For better backward compatibility. To be removed once Automake 1.9.x
3438 # dies out for good. For more background, see:
3439 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3440 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3441 mkdir_p='$(MKDIR_P)'
3443 # We need awk for the "check" target (and possibly the TAP driver). The
3444 # system "awk" is bad on some platforms.
3445 # Always define AMTAR for backward compatibility. Yes, it's still used
3446 # in the wild :-( We should find a proper way to deprecate it ...
3450 # We'll loop over all known methods to create a tar archive until one works.
3451 _am_tools='gnutar pax cpio none'
3453 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3460 # POSIX will say in a future version that running "rm -f" with no argument
3461 # is OK; and we want to be able to make that assumption in our Makefile
3462 # recipes. So use an aggressive probe to check that the usage we want is
3463 # actually supported "in the wild" to an acceptable degree.
3464 # See automake bug#10828.
3465 # To make any issue more visible, cause the running configure to be aborted
3466 # by default if the 'rm' program in use doesn't match our expectations; the
3467 # user can still override this though.
3468 if rm -f && rm -fr && rm -rf; then : OK; else
3472 Your 'rm' program seems unable to run without file operands specified
3473 on the command line, even when the '-f' option is present. This is contrary
3474 to the behaviour of most rm programs out there, and not conforming with
3475 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3477 Please tell bug-automake@gnu.org about your system, including the value
3478 of your $PATH and any error possibly output before this message. This
3479 can help us improve future automake versions.
3482 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3483 echo 'Configuration will proceed anyway, since you have set the' >&2
3484 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3488 Aborting the configuration process, to ensure you take notice of the issue.
3490 You can download and install GNU coreutils to get an 'rm' implementation
3491 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3493 If you want to complete the configuration process using your problematic
3494 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3495 to "yes", and re-run configure.
3498 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3502 # Check whether --enable-silent-rules was given.
3503 if test "${enable_silent_rules+set}" = set; then :
3504 enableval=$enable_silent_rules;
3507 case $enable_silent_rules in # (((
3508 yes) AM_DEFAULT_VERBOSITY=0;;
3509 no) AM_DEFAULT_VERBOSITY=1;;
3510 *) AM_DEFAULT_VERBOSITY=0;;
3512 am_make=${MAKE-make}
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3514 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3515 if ${am_cv_make_support_nested_variables+:} false; then :
3516 $as_echo_n "(cached) " >&6
3518 if $as_echo 'TRUE=$(BAR$(V))
3524 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3525 am_cv_make_support_nested_variables=yes
3527 am_cv_make_support_nested_variables=no
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3531 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3532 if test $am_cv_make_support_nested_variables = yes; then
3534 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3536 AM_V=$AM_DEFAULT_VERBOSITY
3537 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3542 # Make sure we can run config.sub.
3543 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3544 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3547 $as_echo_n "checking build system type... " >&6; }
3548 if ${ac_cv_build+:} false; then :
3549 $as_echo_n "(cached) " >&6
3551 ac_build_alias=$build_alias
3552 test "x$ac_build_alias" = x &&
3553 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3554 test "x$ac_build_alias" = x &&
3555 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3556 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3557 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3561 $as_echo "$ac_cv_build" >&6; }
3562 case $ac_cv_build in
3564 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3567 ac_save_IFS=$IFS; IFS='-'
3573 # Remember, the first character of IFS is used to create $*,
3574 # except with old shells:
3577 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3581 $as_echo_n "checking host system type... " >&6; }
3582 if ${ac_cv_host+:} false; then :
3583 $as_echo_n "(cached) " >&6
3585 if test "x$host_alias" = x; then
3586 ac_cv_host=$ac_cv_build
3588 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3589 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3594 $as_echo "$ac_cv_host" >&6; }
3597 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3600 ac_save_IFS=$IFS; IFS='-'
3606 # Remember, the first character of IFS is used to create $*,
3607 # except with old shells:
3610 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3614 cat >>confdefs.h <<_ACEOF
3615 #define STR_SYSTEM "$host"
3618 ac_config_headers="$ac_config_headers config.h"
3621 DEPDIR="${am__leading_dot}deps"
3623 ac_config_commands="$ac_config_commands depfiles"
3626 am_make=${MAKE-make}
3627 cat > confinc << 'END'
3629 @echo this is the am__doit target
3632 # If we don't find an include directive, just comment out the code.
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3634 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3638 # First try GNU make style include.
3639 echo "include confinc" > confmf
3640 # Ignore all kinds of additional output from 'make'.
3641 case `$am_make -s -f confmf 2> /dev/null` in #(
3642 *the\ am__doit\ target*)
3648 # Now try BSD make style include.
3649 if test "$am__include" = "#"; then
3650 echo '.include "confinc"' > confmf
3651 case `$am_make -s -f confmf 2> /dev/null` in #(
3652 *the\ am__doit\ target*)
3653 am__include=.include
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3662 $as_echo "$_am_result" >&6; }
3663 rm -f confinc confmf
3665 # Check whether --enable-dependency-tracking was given.
3666 if test "${enable_dependency_tracking+set}" = set; then :
3667 enableval=$enable_dependency_tracking;
3670 if test "x$enable_dependency_tracking" != xno; then
3671 am_depcomp="$ac_aux_dir/depcomp"
3675 if test "x$enable_dependency_tracking" != xno; then
3695 #AC_USE_SYSTEM_EXTENSIONS
3698 ac_cpp='$CPP $CPPFLAGS'
3699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702 if test -n "$ac_tool_prefix"; then
3703 for ac_prog in $cclist
3705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 $as_echo_n "checking for $ac_word... " >&6; }
3709 if ${ac_cv_prog_CC+:} false; then :
3710 $as_echo_n "(cached) " >&6
3712 if test -n "$CC"; then
3713 ac_cv_prog_CC="$CC" # Let the user override the test.
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3722 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 if test -n "$CC"; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3735 $as_echo "$CC" >&6; }
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3742 test -n "$CC" && break
3745 if test -z "$CC"; then
3747 for ac_prog in $cclist
3749 # Extract the first word of "$ac_prog", so it can be a program name with args.
3750 set dummy $ac_prog; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3754 $as_echo_n "(cached) " >&6
3756 if test -n "$ac_ct_CC"; then
3757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 test -z "$as_dir" && as_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3766 ac_cv_prog_ac_ct_CC="$ac_prog"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3777 if test -n "$ac_ct_CC"; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3779 $as_echo "$ac_ct_CC" >&6; }
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3786 test -n "$ac_ct_CC" && break
3789 if test "x$ac_ct_CC" = x; then
3792 case $cross_compiling:$ac_tool_warned in
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3796 ac_tool_warned=yes ;;
3803 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805 as_fn_error $? "no acceptable C compiler found in \$PATH
3806 See \`config.log' for more details" "$LINENO" 5; }
3808 # Provide some information about the compiler.
3809 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3812 for ac_option in --version -v -V -qversion; do
3813 { { ac_try="$ac_compiler $ac_option >&5"
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3822 if test -s conftest.err; then
3824 ... rest of stderr output deleted ...
3825 10q' conftest.err >conftest.er1
3826 cat conftest.er1 >&5
3828 rm -f conftest.er1 conftest.err
3829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3830 test $ac_status = 0; }
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3844 ac_clean_files_save=$ac_clean_files
3845 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3846 # Try to create an executable without -o first, disregard a.out.
3847 # It will help us diagnose broken compilers, and finding out an intuition
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3850 $as_echo_n "checking whether the C compiler works... " >&6; }
3851 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3853 # The possible output files:
3854 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3857 for ac_file in $ac_files
3860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3861 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3866 if { { ac_try="$ac_link_default"
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872 $as_echo "$ac_try_echo"; } >&5
3873 (eval "$ac_link_default") 2>&5
3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876 test $ac_status = 0; }; then :
3877 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3878 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3879 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3880 # so that the user can short-circuit this test for compilers unknown to
3882 for ac_file in $ac_files ''
3884 test -f "$ac_file" || continue
3886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3889 # We found the default executable, but exeext='' is most
3893 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3895 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3897 # We set ac_cv_exeext here because the later test for it is not
3898 # safe: cross compilers may not add the suffix if given an `-o'
3899 # argument, so we may need to know it at that point already.
3900 # Even if this section looks crufty: it has the advantage of
3907 test "$ac_cv_exeext" = no && ac_cv_exeext=
3912 if test -z "$ac_file"; then :
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3915 $as_echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3920 as_fn_error 77 "C compiler cannot create executables
3921 See \`config.log' for more details" "$LINENO" 5; }
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3924 $as_echo "yes" >&6; }
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3927 $as_echo_n "checking for C compiler default output file name... " >&6; }
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3929 $as_echo "$ac_file" >&6; }
3930 ac_exeext=$ac_cv_exeext
3932 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3933 ac_clean_files=$ac_clean_files_save
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3935 $as_echo_n "checking for suffix of executables... " >&6; }
3936 if { { ac_try="$ac_link"
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942 $as_echo "$ac_try_echo"; } >&5
3943 (eval "$ac_link") 2>&5
3945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946 test $ac_status = 0; }; then :
3947 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3948 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3949 # work properly (i.e., refer to `conftest.exe'), while it won't with
3951 for ac_file in conftest.exe conftest conftest.*; do
3952 test -f "$ac_file" || continue
3954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3955 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3963 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3964 See \`config.log' for more details" "$LINENO" 5; }
3966 rm -f conftest conftest$ac_cv_exeext
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3968 $as_echo "$ac_cv_exeext" >&6; }
3970 rm -f conftest.$ac_ext
3971 EXEEXT=$ac_cv_exeext
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3979 FILE *f = fopen ("conftest.out", "w");
3980 return ferror (f) || fclose (f) != 0;
3986 ac_clean_files="$ac_clean_files conftest.out"
3987 # Check that the compiler produces executables we can run. If not, either
3988 # the compiler is broken, or we cross compile.
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3990 $as_echo_n "checking whether we are cross compiling... " >&6; }
3991 if test "$cross_compiling" != yes; then
3992 { { ac_try="$ac_link"
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999 (eval "$ac_link") 2>&5
4001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; }
4003 if { ac_try='./conftest$ac_cv_exeext'
4004 { { case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009 $as_echo "$ac_try_echo"; } >&5
4010 (eval "$ac_try") 2>&5
4012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013 test $ac_status = 0; }; }; then
4016 if test "$cross_compiling" = maybe; then
4019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 as_fn_error $? "cannot run C compiled programs.
4022 If you meant to cross compile, use \`--host'.
4023 See \`config.log' for more details" "$LINENO" 5; }
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4028 $as_echo "$cross_compiling" >&6; }
4030 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4031 ac_clean_files=$ac_clean_files_save
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4033 $as_echo_n "checking for suffix of object files... " >&6; }
4034 if ${ac_cv_objext+:} false; then :
4035 $as_echo_n "(cached) " >&6
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4048 rm -f conftest.o conftest.obj
4049 if { { ac_try="$ac_compile"
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055 $as_echo "$ac_try_echo"; } >&5
4056 (eval "$ac_compile") 2>&5
4058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059 test $ac_status = 0; }; then :
4060 for ac_file in conftest.o conftest.obj conftest.*; do
4061 test -f "$ac_file" || continue;
4063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4064 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4069 $as_echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4074 as_fn_error $? "cannot compute suffix of object files: cannot compile
4075 See \`config.log' for more details" "$LINENO" 5; }
4077 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4080 $as_echo "$ac_cv_objext" >&6; }
4081 OBJEXT=$ac_cv_objext
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4084 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4085 if ${ac_cv_c_compiler_gnu+:} false; then :
4086 $as_echo_n "(cached) " >&6
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4102 if ac_fn_c_try_compile "$LINENO"; then :
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4112 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4113 if test $ac_compiler_gnu = yes; then
4118 ac_test_CFLAGS=${CFLAGS+set}
4119 ac_save_CFLAGS=$CFLAGS
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4121 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4122 if ${ac_cv_prog_cc_g+:} false; then :
4123 $as_echo_n "(cached) " >&6
4125 ac_save_c_werror_flag=$ac_c_werror_flag
4126 ac_c_werror_flag=yes
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4140 if ac_fn_c_try_compile "$LINENO"; then :
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4155 if ac_fn_c_try_compile "$LINENO"; then :
4158 ac_c_werror_flag=$ac_save_c_werror_flag
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4171 if ac_fn_c_try_compile "$LINENO"; then :
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 ac_c_werror_flag=$ac_save_c_werror_flag
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4182 $as_echo "$ac_cv_prog_cc_g" >&6; }
4183 if test "$ac_test_CFLAGS" = set; then
4184 CFLAGS=$ac_save_CFLAGS
4185 elif test $ac_cv_prog_cc_g = yes; then
4186 if test "$GCC" = yes; then
4192 if test "$GCC" = yes; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4199 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4200 if ${ac_cv_prog_cc_c89+:} false; then :
4201 $as_echo_n "(cached) " >&6
4203 ac_cv_prog_cc_c89=no
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4210 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4211 struct buf { int x; };
4212 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4213 static char *e (p, i)
4219 static char *f (char * (*g) (char **, int), char **p, ...)
4224 s = g (p, va_arg (v,int));
4229 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4230 function prototypes and stuff, but not '\xHH' hex character constants.
4231 These don't provoke an error unfortunately, instead are silently treated
4232 as 'x'. The following induces an error, until -std is added to get
4233 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4234 array size at least. It's necessary to write '\x00'==0 to get something
4235 that's true only with -std. */
4236 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4238 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4239 inside strings and character constants. */
4241 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4243 int test (int i, double x);
4244 struct s1 {int (*f) (int a);};
4245 struct s2 {int (*f) (double a);};
4246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4257 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4258 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4260 CC="$ac_save_CC $ac_arg"
4261 if ac_fn_c_try_compile "$LINENO"; then :
4262 ac_cv_prog_cc_c89=$ac_arg
4264 rm -f core conftest.err conftest.$ac_objext
4265 test "x$ac_cv_prog_cc_c89" != "xno" && break
4267 rm -f conftest.$ac_ext
4272 case "x$ac_cv_prog_cc_c89" in
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4275 $as_echo "none needed" >&6; } ;;
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4278 $as_echo "unsupported" >&6; } ;;
4280 CC="$CC $ac_cv_prog_cc_c89"
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4282 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4284 if test "x$ac_cv_prog_cc_c89" != xno; then :
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295 ac_cpp='$CPP $CPPFLAGS'
4296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4300 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4301 if ${am_cv_prog_cc_c_o+:} false; then :
4302 $as_echo_n "(cached) " >&6
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4315 # Make sure it works both with $CC and with simple cc.
4316 # Following AC_PROG_CC_C_O, we do the test twice because some
4317 # compilers refuse to overwrite an existing .o file with -o,
4318 # though they will create one.
4319 am_cv_prog_cc_c_o=yes
4321 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4322 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } \
4326 && test -f conftest2.$ac_objext; then
4329 am_cv_prog_cc_c_o=no
4333 rm -f core conftest*
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4337 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4338 if test "$am_cv_prog_cc_c_o" != yes; then
4339 # Losing compiler, so override with the script.
4340 # FIXME: It is wrong to rewrite CC.
4341 # But if we don't then we get into trouble of one sort or another.
4342 # A longer-term fix would be to have automake use am__CC in this case,
4343 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4344 CC="$am_aux_dir/compile $CC"
4347 ac_cpp='$CPP $CPPFLAGS'
4348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4353 depcc="$CC" am_compiler_list=
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4356 $as_echo_n "checking dependency style of $depcc... " >&6; }
4357 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4358 $as_echo_n "(cached) " >&6
4360 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4361 # We make a subdir and do the tests there. Otherwise we can end up
4362 # making bogus files that we don't know about and never remove. For
4363 # instance it was reported that on HP-UX the gcc test will end up
4364 # making a dummy file named 'D' -- because '-MD' means "put the output
4368 # Copy depcomp to subdir because otherwise we won't find it if we're
4369 # using a relative directory.
4370 cp "$am_depcomp" conftest.dir
4372 # We will build objects and dependencies in a subdirectory because
4373 # it helps to detect inapplicable dependency modes. For instance
4374 # both Tru64's cc and ICC support -MD to output dependencies as a
4375 # side effect of compilation, but ICC will put the dependencies in
4376 # the current directory while Tru64 will put them in the object
4380 am_cv_CC_dependencies_compiler_type=none
4381 if test "$am_compiler_list" = ""; then
4382 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4385 case " $depcc " in #(
4386 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4389 for depmode in $am_compiler_list; do
4390 # Setup a source with many dependencies, because some compilers
4391 # like to wrap large dependency lists on column 80 (with \), and
4392 # we should not choose a depcomp mode which is confused by this.
4394 # We need to recreate these files for each test, as the compiler may
4395 # overwrite some of them when testing with obscure command lines.
4396 # This happens at least with the AIX C compiler.
4398 for i in 1 2 3 4 5 6; do
4399 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4400 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4401 # Solaris 10 /bin/sh.
4402 echo '/* dummy */' > sub/conftst$i.h
4404 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4406 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4407 # mode. It turns out that the SunPro C++ compiler does not properly
4408 # handle '-M -o', and we need to detect this. Also, some Intel
4409 # versions had trouble with output in subdirs.
4410 am__obj=sub/conftest.${OBJEXT-o}
4411 am__minus_obj="-o $am__obj"
4414 # This depmode causes a compiler race in universal mode.
4415 test "$am__universal" = false || continue
4418 # After this tag, mechanisms are not by side-effect, so they'll
4419 # only be used when explicitly requested.
4420 if test "x$enable_dependency_tracking" = xyes; then
4426 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4427 # This compiler won't grok '-c -o', but also, the minuso test has
4428 # not run yet. These depmodes are late enough in the game, and
4429 # so weak that their functioning should not be impacted.
4430 am__obj=conftest.${OBJEXT-o}
4435 if depmode=$depmode \
4436 source=sub/conftest.c object=$am__obj \
4437 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4438 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4439 >/dev/null 2>conftest.err &&
4440 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4441 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4442 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4443 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4444 # icc doesn't choke on unknown options, it will just issue warnings
4445 # or remarks (even with -Werror). So we grep stderr for any message
4446 # that says an option was ignored or not supported.
4447 # When given -MP, icc 7.0 and 7.1 complain thusly:
4448 # icc: Command line warning: ignoring option '-M'; no argument required
4449 # The diagnosis changed in icc 8.0:
4450 # icc: Command line remark: option '-MP' not supported
4451 if (grep 'ignoring option' conftest.err ||
4452 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4453 am_cv_CC_dependencies_compiler_type=$depmode
4462 am_cv_CC_dependencies_compiler_type=none
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4467 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4468 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4471 test "x$enable_dependency_tracking" != xno \
4472 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4474 am__fastdepCC_FALSE='#'
4476 am__fastdepCC_TRUE='#'
4477 am__fastdepCC_FALSE=
4485 ac_cpp='$CPP $CPPFLAGS'
4486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4490 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4491 # On Suns, sometimes $CPP names a directory.
4492 if test -n "$CPP" && test -d "$CPP"; then
4495 if test -z "$CPP"; then
4496 if ${ac_cv_prog_CPP+:} false; then :
4497 $as_echo_n "(cached) " >&6
4499 # Double quotes because CPP needs to be expanded
4500 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4503 for ac_c_preproc_warn_flag in '' yes
4505 # Use a header file that comes with gcc, so configuring glibc
4506 # with a fresh cross-compiler works.
4507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4508 # <limits.h> exists even on freestanding compilers.
4509 # On the NeXT, cc -E runs the code through the compiler's parser,
4510 # not just through cpp. "Syntax error" is here to catch this case.
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4514 # include <limits.h>
4516 # include <assert.h>
4520 if ac_fn_c_try_cpp "$LINENO"; then :
4523 # Broken: fails on valid input.
4526 rm -f conftest.err conftest.i conftest.$ac_ext
4528 # OK, works on sane cases. Now check whether nonexistent headers
4529 # can be detected and how.
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4532 #include <ac_nonexistent.h>
4534 if ac_fn_c_try_cpp "$LINENO"; then :
4535 # Broken: success on invalid input.
4538 # Passes both tests.
4542 rm -f conftest.err conftest.i conftest.$ac_ext
4545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4546 rm -f conftest.i conftest.err conftest.$ac_ext
4547 if $ac_preproc_ok; then :
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4560 $as_echo "$CPP" >&6; }
4562 for ac_c_preproc_warn_flag in '' yes
4564 # Use a header file that comes with gcc, so configuring glibc
4565 # with a fresh cross-compiler works.
4566 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4567 # <limits.h> exists even on freestanding compilers.
4568 # On the NeXT, cc -E runs the code through the compiler's parser,
4569 # not just through cpp. "Syntax error" is here to catch this case.
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4573 # include <limits.h>
4575 # include <assert.h>
4579 if ac_fn_c_try_cpp "$LINENO"; then :
4582 # Broken: fails on valid input.
4585 rm -f conftest.err conftest.i conftest.$ac_ext
4587 # OK, works on sane cases. Now check whether nonexistent headers
4588 # can be detected and how.
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591 #include <ac_nonexistent.h>
4593 if ac_fn_c_try_cpp "$LINENO"; then :
4594 # Broken: success on invalid input.
4597 # Passes both tests.
4601 rm -f conftest.err conftest.i conftest.$ac_ext
4604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4605 rm -f conftest.i conftest.err conftest.$ac_ext
4606 if $ac_preproc_ok; then :
4609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4611 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4612 See \`config.log' for more details" "$LINENO" 5; }
4616 ac_cpp='$CPP $CPPFLAGS'
4617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4623 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4624 if ${ac_cv_path_GREP+:} false; then :
4625 $as_echo_n "(cached) " >&6
4627 if test -z "$GREP"; then
4628 ac_path_GREP_found=false
4629 # Loop through the user's path and test for each of PROGNAME-LIST
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4634 test -z "$as_dir" && as_dir=.
4635 for ac_prog in grep ggrep; do
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4638 as_fn_executable_p "$ac_path_GREP" || continue
4639 # Check for GNU ac_path_GREP and select it if it is found.
4640 # Check for GNU $ac_path_GREP
4641 case `"$ac_path_GREP" --version 2>&1` in
4643 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4646 $as_echo_n 0123456789 >"conftest.in"
4649 cat "conftest.in" "conftest.in" >"conftest.tmp"
4650 mv "conftest.tmp" "conftest.in"
4651 cp "conftest.in" "conftest.nl"
4652 $as_echo 'GREP' >> "conftest.nl"
4653 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4655 as_fn_arith $ac_count + 1 && ac_count=$as_val
4656 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4657 # Best one so far, save it but keep looking for a better one
4658 ac_cv_path_GREP="$ac_path_GREP"
4659 ac_path_GREP_max=$ac_count
4661 # 10*(2^10) chars as input seems more than enough
4662 test $ac_count -gt 10 && break
4664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4667 $ac_path_GREP_found && break 3
4672 if test -z "$ac_cv_path_GREP"; then
4673 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4676 ac_cv_path_GREP=$GREP
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4681 $as_echo "$ac_cv_path_GREP" >&6; }
4682 GREP="$ac_cv_path_GREP"
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4686 $as_echo_n "checking for egrep... " >&6; }
4687 if ${ac_cv_path_EGREP+:} false; then :
4688 $as_echo_n "(cached) " >&6
4690 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4691 then ac_cv_path_EGREP="$GREP -E"
4693 if test -z "$EGREP"; then
4694 ac_path_EGREP_found=false
4695 # Loop through the user's path and test for each of PROGNAME-LIST
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4700 test -z "$as_dir" && as_dir=.
4701 for ac_prog in egrep; do
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4704 as_fn_executable_p "$ac_path_EGREP" || continue
4705 # Check for GNU ac_path_EGREP and select it if it is found.
4706 # Check for GNU $ac_path_EGREP
4707 case `"$ac_path_EGREP" --version 2>&1` in
4709 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4712 $as_echo_n 0123456789 >"conftest.in"
4715 cat "conftest.in" "conftest.in" >"conftest.tmp"
4716 mv "conftest.tmp" "conftest.in"
4717 cp "conftest.in" "conftest.nl"
4718 $as_echo 'EGREP' >> "conftest.nl"
4719 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4721 as_fn_arith $ac_count + 1 && ac_count=$as_val
4722 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4723 # Best one so far, save it but keep looking for a better one
4724 ac_cv_path_EGREP="$ac_path_EGREP"
4725 ac_path_EGREP_max=$ac_count
4727 # 10*(2^10) chars as input seems more than enough
4728 test $ac_count -gt 10 && break
4730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4733 $ac_path_EGREP_found && break 3
4738 if test -z "$ac_cv_path_EGREP"; then
4739 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4742 ac_cv_path_EGREP=$EGREP
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4748 $as_echo "$ac_cv_path_EGREP" >&6; }
4749 EGREP="$ac_cv_path_EGREP"
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4753 $as_echo_n "checking for ANSI C header files... " >&6; }
4754 if ${ac_cv_header_stdc+:} false; then :
4755 $as_echo_n "(cached) " >&6
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4772 if ac_fn_c_try_compile "$LINENO"; then :
4773 ac_cv_header_stdc=yes
4775 ac_cv_header_stdc=no
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 if test $ac_cv_header_stdc = yes; then
4780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4787 $EGREP "memchr" >/dev/null 2>&1; then :
4790 ac_cv_header_stdc=no
4796 if test $ac_cv_header_stdc = yes; then
4797 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h. */
4803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4804 $EGREP "free" >/dev/null 2>&1; then :
4807 ac_cv_header_stdc=no
4813 if test $ac_cv_header_stdc = yes; then
4814 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4815 if test "$cross_compiling" = yes; then :
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4822 #if ((' ' & 0x0FF) == 0x020)
4823 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4824 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4826 # define ISLOWER(c) \
4827 (('a' <= (c) && (c) <= 'i') \
4828 || ('j' <= (c) && (c) <= 'r') \
4829 || ('s' <= (c) && (c) <= 'z'))
4830 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4833 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4838 for (i = 0; i < 256; i++)
4839 if (XOR (islower (i), ISLOWER (i))
4840 || toupper (i) != TOUPPER (i))
4845 if ac_fn_c_try_run "$LINENO"; then :
4848 ac_cv_header_stdc=no
4850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4851 conftest.$ac_objext conftest.beam conftest.$ac_ext
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4857 $as_echo "$ac_cv_header_stdc" >&6; }
4858 if test $ac_cv_header_stdc = yes; then
4860 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4864 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4865 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4866 inttypes.h stdint.h unistd.h
4868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4869 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4872 cat >>confdefs.h <<_ACEOF
4873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4884 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4885 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4892 if test "$MINIX" = yes; then
4894 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4897 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4900 $as_echo "#define _MINIX 1" >>confdefs.h
4907 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4914 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4915 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4916 $as_echo_n "(cached) " >&6
4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919 /* end confdefs.h. */
4921 # define __EXTENSIONS__ 1
4922 $ac_includes_default
4931 if ac_fn_c_try_compile "$LINENO"; then :
4932 ac_cv_safe_to_define___extensions__=yes
4934 ac_cv_safe_to_define___extensions__=no
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4939 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4940 test $ac_cv_safe_to_define___extensions__ = yes &&
4941 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4943 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4945 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4947 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4949 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4953 case $ac_cv_prog_cc_stdc in #(
4955 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4958 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4959 if ${ac_cv_prog_cc_c99+:} false; then :
4960 $as_echo_n "(cached) " >&6
4962 ac_cv_prog_cc_c99=no
4964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965 /* end confdefs.h. */
4967 #include <stdbool.h>
4972 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4973 #define debug(...) fprintf (stderr, __VA_ARGS__)
4974 #define showlist(...) puts (#__VA_ARGS__)
4975 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4977 test_varargs_macros (void)
4982 debug ("X = %d\n", x);
4983 showlist (The first, second, and third items.);
4984 report (x>y, "x is %d but y is %d", x, y);
4987 // Check long long types.
4988 #define BIG64 18446744073709551615ull
4989 #define BIG32 4294967295ul
4990 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4992 your preprocessor is broken;
4996 your preprocessor is broken;
4998 static long long int bignum = -9223372036854775807LL;
4999 static unsigned long long int ubignum = BIG64;
5001 struct incomplete_array
5009 const wchar_t *name;
5013 typedef const char *ccp;
5016 test_restrict (ccp restrict text)
5018 // See if C++-style comments work.
5019 // Iterate through items via the restricted pointer.
5020 // Also check for declarations in for loops.
5021 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5026 // Check varargs and va_copy.
5028 test_varargs (const char *format, ...)
5031 va_start (args, format);
5033 va_copy (args_copy, args);
5044 str = va_arg (args_copy, const char *);
5047 number = va_arg (args_copy, int);
5050 fnumber = va_arg (args_copy, double);
5065 _Bool success = false;
5068 if (test_restrict ("String literal") == 0)
5070 char *restrict newvar = "Another string";
5073 test_varargs ("s, d' f .", "string", 65, 34.234);
5074 test_varargs_macros ();
5076 // Check flexible array members.
5077 struct incomplete_array *ia =
5078 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5080 for (int i = 0; i < ia->datasize; ++i)
5081 ia->data[i] = i * 1.234;
5083 // Check named initializers.
5084 struct named_init ni = {
5086 .name = L"Test wide string",
5087 .average = 543.34343,
5092 int dynamic_array[ni.number];
5093 dynamic_array[ni.number - 1] = 543;
5095 // work around unused variable warnings
5096 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5097 || dynamic_array[ni.number - 1] != 543);
5103 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5105 CC="$ac_save_CC $ac_arg"
5106 if ac_fn_c_try_compile "$LINENO"; then :
5107 ac_cv_prog_cc_c99=$ac_arg
5109 rm -f core conftest.err conftest.$ac_objext
5110 test "x$ac_cv_prog_cc_c99" != "xno" && break
5112 rm -f conftest.$ac_ext
5117 case "x$ac_cv_prog_cc_c99" in
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5120 $as_echo "none needed" >&6; } ;;
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5123 $as_echo "unsupported" >&6; } ;;
5125 CC="$CC $ac_cv_prog_cc_c99"
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5127 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5129 if test "x$ac_cv_prog_cc_c99" != xno; then :
5130 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5133 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5134 if ${ac_cv_prog_cc_c89+:} false; then :
5135 $as_echo_n "(cached) " >&6
5137 ac_cv_prog_cc_c89=no
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5144 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5145 struct buf { int x; };
5146 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5147 static char *e (p, i)
5153 static char *f (char * (*g) (char **, int), char **p, ...)
5158 s = g (p, va_arg (v,int));
5163 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5164 function prototypes and stuff, but not '\xHH' hex character constants.
5165 These don't provoke an error unfortunately, instead are silently treated
5166 as 'x'. The following induces an error, until -std is added to get
5167 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5168 array size at least. It's necessary to write '\x00'==0 to get something
5169 that's true only with -std. */
5170 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5172 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5173 inside strings and character constants. */
5175 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5177 int test (int i, double x);
5178 struct s1 {int (*f) (int a);};
5179 struct s2 {int (*f) (double a);};
5180 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5186 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5191 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5192 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5194 CC="$ac_save_CC $ac_arg"
5195 if ac_fn_c_try_compile "$LINENO"; then :
5196 ac_cv_prog_cc_c89=$ac_arg
5198 rm -f core conftest.err conftest.$ac_objext
5199 test "x$ac_cv_prog_cc_c89" != "xno" && break
5201 rm -f conftest.$ac_ext
5206 case "x$ac_cv_prog_cc_c89" in
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5209 $as_echo "none needed" >&6; } ;;
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5212 $as_echo "unsupported" >&6; } ;;
5214 CC="$CC $ac_cv_prog_cc_c89"
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5216 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5218 if test "x$ac_cv_prog_cc_c89" != xno; then :
5219 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5221 ac_cv_prog_cc_stdc=no
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5228 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5229 if ${ac_cv_prog_cc_stdc+:} false; then :
5230 $as_echo_n "(cached) " >&6
5233 case $ac_cv_prog_cc_stdc in #(
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5236 $as_echo "unsupported" >&6; } ;; #(
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5239 $as_echo "none needed" >&6; } ;; #(
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5242 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5249 # Ralf Wildenhues: With per-target flags we need CC_C_O
5250 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
5252 if test $ac_cv_c_compiler_gnu = yes; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5254 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5255 if ${ac_cv_prog_gcc_traditional+:} false; then :
5256 $as_echo_n "(cached) " >&6
5258 ac_pattern="Autoconf.*'x'"
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5265 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5266 ac_cv_prog_gcc_traditional=yes
5268 ac_cv_prog_gcc_traditional=no
5273 if test $ac_cv_prog_gcc_traditional = no; then
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5281 ac_cv_prog_gcc_traditional=yes
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5288 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5289 if test $ac_cv_prog_gcc_traditional = yes; then
5290 CC="$CC -traditional"
5305 case "$ac_cv_prog_cc_c89" in
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5308 version 4.2.5 and higher." >&5
5309 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5310 version 4.2.5 and higher." >&2;}
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
5315 $as_echo_n "checking if $CC can handle #warning... " >&6; }
5316 if ${ntp_cv_cpp_warning+:} false; then :
5317 $as_echo_n "(cached) " >&6
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5330 if ac_fn_c_try_compile "$LINENO"; then :
5331 ntp_cv_cpp_warning=yes
5333 ntp_cv_cpp_warning=no
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
5340 $as_echo "$ntp_cv_cpp_warning" >&6; }
5341 case "$ntp_cv_cpp_warning" in
5344 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
5349 $as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
5350 if ${ntp_cv_cc_attribute+:} false; then :
5351 $as_echo_n "(cached) " >&6
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5359 void foo(void) __attribute__((__noreturn__));
5365 if ac_fn_c_try_compile "$LINENO"; then :
5366 ntp_cv_cc_attribute=yes
5368 ntp_cv_cc_attribute=no
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
5375 $as_echo "$ntp_cv_cc_attribute" >&6; }
5376 case "$ntp_cv_cc_attribute" in
5379 $as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
5386 SAVED_CFLAGS="$CFLAGS"
5387 CFLAGS="$CFLAGS -Wstrict-overflow"
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
5389 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
5390 if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
5391 $as_echo_n "(cached) " >&6
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5404 if ac_fn_c_try_compile "$LINENO"; then :
5405 ntp_cv_gcc_Wstrict_overflow=yes
5407 ntp_cv_gcc_Wstrict_overflow=no
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
5414 $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
5416 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
5419 CFLAGS="$SAVED_CFLAGS -Winit-self"
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
5421 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
5422 if ${ntp_cv_gcc_Winit_self+:} false; then :
5423 $as_echo_n "(cached) " >&6
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5437 if ac_fn_c_try_compile "$LINENO"; then :
5438 ntp_cv_gcc_Winit_self=yes
5440 ntp_cv_gcc_Winit_self=no
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
5448 $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
5449 CFLAGS="$SAVED_CFLAGS"
5450 { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
5452 # $ntp_cv_gcc_Winit_self is tested later to add the
5453 # flag to CFLAGS_NTP.
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
5456 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
5457 if ${ntp_cv_gc_sections_runs+:} false; then :
5458 $as_echo_n "(cached) " >&6
5461 origCFLAGS="$CFLAGS"
5462 CFLAGS="$CFLAGS -Wl,--gc-sections"
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5476 int read_success_once;
5478 fpC = fopen("conftest.c", "r");
5482 cch = fread(buf, sizeof(buf), 1, fpC);
5483 read_success_once |= (0 != cch);
5485 if (!read_success_once)
5489 if (0 != fclose(fpC))
5499 if ac_fn_c_try_link "$LINENO"; then :
5501 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
5502 ntp_cv_gc_sections_runs=no
5504 ntp_cv_gc_sections_runs=no
5505 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
5509 ntp_cv_gc_sections_runs=no
5512 rm -f core conftest.err conftest.$ac_objext \
5513 conftest$ac_exeext conftest.$ac_ext
5514 CFLAGS="$origCFLAGS"
5515 { origCFLAGS=; unset origCFLAGS;}
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
5520 $as_echo "$ntp_cv_gc_sections_runs" >&6; }
5521 case "$ntp_cv_gc_sections_runs" in
5523 LDADD_LIBNTP="-Wl,--gc-sections"
5524 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
5530 CFLAGS_NTP="$CFLAGS_NTP -Wall"
5531 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
5532 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
5533 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
5534 # CFLAGS_NTP="$CFLAGS_NTP -Werror"
5535 # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
5536 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
5537 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
5538 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
5539 CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
5540 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
5541 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
5542 case "$ntp_cv_gcc_Winit_self" in
5544 CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
5546 case "$ntp_cv_gcc_Wstrict_overflow" in
5548 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
5550 # -W[no-]strict-prototypes might be added by NTP_OPENSSL
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
5555 $as_echo_n "checking additional compiler flags... " >&6; }
5556 # allow ntp_os_cflags to be preset to skip this stuff
5557 case "${ntp_os_cflags+set}" in
5566 # turn on additional headers
5567 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
5570 # avoid circular dependencies in yp headers, and more
5571 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
5572 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
5575 # XXX Only verified thru AIX6.
5576 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
5577 # avoid circular dependencies in yp headers
5578 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
5579 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
5580 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
5581 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
5582 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
5585 ntp_os_cflags="-DSYS_AMIGA"
5587 darwin*|macosx*|rhapsody*)
5588 ntp_os_cflags="-D_P1003_1B_VISIBLE"
5590 hpux10.*) # at least for hppa2.0-hp-hpux10.20
5595 # use Ansi compiler on HPUX, and some -Wp magic
5596 ntp_os_cflags="-Ae -Wp,-H18816"
5599 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5606 # use Ansi compiler on HPUX
5609 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5614 # do not use 64-bit compiler
5615 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
5619 ntp_os_cflags="-posix"
5621 solaris1*|solaris2.[0-5]|solaris2.5.*)
5623 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
5626 # turn on 64-bit file offset interface
5627 ntp_os_cflags="-D_LARGEFILE64_SOURCE"
5634 # Quick and dirty sanity check
5635 case "$VX_KERNEL" in
5637 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
5639 ntp_os_cflags="-DSYS_VXWORKS"
5644 case "$ntp_os_cflags" in
5646 ntp_os_cflags_msg="none needed"
5649 ntp_os_cflags_msg="$ntp_os_cflags"
5651 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
5653 $as_echo "$ntp_os_cflags_msg" >&6; }
5654 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
5657 $as_echo_n "checking additional linker flags... " >&6; }
5658 # HMS: The following might still need tweaking
5659 # allow ntp_os_ldflags to be preset to skip this stuff
5660 case "${ntp_os_ldflags+set}" in
5669 ntp_os_ldflags="-Wl,+allowdups"
5676 case "$ntp_os_ldflags" in
5678 ntp_os_ldflags_msg="none needed"
5681 ntp_os_ldflags_msg="$ntp_os_ldflags"
5683 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
5685 $as_echo "$ntp_os_ldflags_msg" >&6; }
5686 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5690 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5691 if ${ac_cv_c_bigendian+:} false; then :
5692 $as_echo_n "(cached) " >&6
5694 ac_cv_c_bigendian=unknown
5695 # See if we're dealing with a universal compiler.
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 #ifndef __APPLE_CC__
5699 not a universal capable compiler
5704 if ac_fn_c_try_compile "$LINENO"; then :
5706 # Check for potential -arch flags. It is not universal unless
5707 # there are at least two -arch flags with different values.
5710 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5711 if test -n "$ac_prev"; then
5713 i?86 | x86_64 | ppc | ppc64)
5714 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5717 ac_cv_c_bigendian=universal
5723 elif test "x$ac_word" = "x-arch"; then
5728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729 if test $ac_cv_c_bigendian = unknown; then
5730 # See if sys/param.h defines the BYTE_ORDER macro.
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5733 #include <sys/types.h>
5734 #include <sys/param.h>
5739 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5740 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5749 if ac_fn_c_try_compile "$LINENO"; then :
5750 # It does; now see whether it defined to BIG_ENDIAN or not.
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753 #include <sys/types.h>
5754 #include <sys/param.h>
5759 #if BYTE_ORDER != BIG_ENDIAN
5767 if ac_fn_c_try_compile "$LINENO"; then :
5768 ac_cv_c_bigendian=yes
5770 ac_cv_c_bigendian=no
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 if test $ac_cv_c_bigendian = unknown; then
5777 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5785 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5793 if ac_fn_c_try_compile "$LINENO"; then :
5794 # It does; now see whether it defined to _BIG_ENDIAN or not.
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5810 if ac_fn_c_try_compile "$LINENO"; then :
5811 ac_cv_c_bigendian=yes
5813 ac_cv_c_bigendian=no
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 if test $ac_cv_c_bigendian = unknown; then
5820 # Compile a test program.
5821 if test "$cross_compiling" = yes; then :
5822 # Try to guess by grepping values from an object file.
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5825 short int ascii_mm[] =
5826 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5827 short int ascii_ii[] =
5828 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5829 int use_ascii (int i) {
5830 return ascii_mm[i] + ascii_ii[i];
5832 short int ebcdic_ii[] =
5833 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5834 short int ebcdic_mm[] =
5835 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5836 int use_ebcdic (int i) {
5837 return ebcdic_mm[i] + ebcdic_ii[i];
5844 return use_ascii (foo) == use_ebcdic (foo);
5849 if ac_fn_c_try_compile "$LINENO"; then :
5850 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5851 ac_cv_c_bigendian=yes
5853 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5854 if test "$ac_cv_c_bigendian" = unknown; then
5855 ac_cv_c_bigendian=no
5857 # finding both strings is unlikely to happen, but who knows?
5858 ac_cv_c_bigendian=unknown
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5866 $ac_includes_default
5871 /* Are we little or big endian? From Harbison&Steele. */
5875 char c[sizeof (long int)];
5878 return u.c[sizeof (long int) - 1] == 1;
5884 if ac_fn_c_try_run "$LINENO"; then :
5885 ac_cv_c_bigendian=no
5887 ac_cv_c_bigendian=yes
5889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5890 conftest.$ac_objext conftest.beam conftest.$ac_ext
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5896 $as_echo "$ac_cv_c_bigendian" >&6; }
5897 case $ac_cv_c_bigendian in #(
5899 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5905 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5909 as_fn_error $? "unknown endianness
5910 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5914 $as_echo_n "checking for working volatile... " >&6; }
5915 if ${ac_cv_c_volatile+:} false; then :
5916 $as_echo_n "(cached) " >&6
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5926 int * volatile y = (int *) 0;
5932 if ac_fn_c_try_compile "$LINENO"; then :
5933 ac_cv_c_volatile=yes
5937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5940 $as_echo "$ac_cv_c_volatile" >&6; }
5941 if test $ac_cv_c_volatile = no; then
5943 $as_echo "#define volatile /**/" >>confdefs.h
5948 ac_cpp='$CPP $CPPFLAGS'
5949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5953 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5954 # On Suns, sometimes $CPP names a directory.
5955 if test -n "$CPP" && test -d "$CPP"; then
5958 if test -z "$CPP"; then
5959 if ${ac_cv_prog_CPP+:} false; then :
5960 $as_echo_n "(cached) " >&6
5962 # Double quotes because CPP needs to be expanded
5963 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5966 for ac_c_preproc_warn_flag in '' yes
5968 # Use a header file that comes with gcc, so configuring glibc
5969 # with a fresh cross-compiler works.
5970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5971 # <limits.h> exists even on freestanding compilers.
5972 # On the NeXT, cc -E runs the code through the compiler's parser,
5973 # not just through cpp. "Syntax error" is here to catch this case.
5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h. */
5977 # include <limits.h>
5979 # include <assert.h>
5983 if ac_fn_c_try_cpp "$LINENO"; then :
5986 # Broken: fails on valid input.
5989 rm -f conftest.err conftest.i conftest.$ac_ext
5991 # OK, works on sane cases. Now check whether nonexistent headers
5992 # can be detected and how.
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 #include <ac_nonexistent.h>
5997 if ac_fn_c_try_cpp "$LINENO"; then :
5998 # Broken: success on invalid input.
6001 # Passes both tests.
6005 rm -f conftest.err conftest.i conftest.$ac_ext
6008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6009 rm -f conftest.i conftest.err conftest.$ac_ext
6010 if $ac_preproc_ok; then :
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6023 $as_echo "$CPP" >&6; }
6025 for ac_c_preproc_warn_flag in '' yes
6027 # Use a header file that comes with gcc, so configuring glibc
6028 # with a fresh cross-compiler works.
6029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6030 # <limits.h> exists even on freestanding compilers.
6031 # On the NeXT, cc -E runs the code through the compiler's parser,
6032 # not just through cpp. "Syntax error" is here to catch this case.
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6036 # include <limits.h>
6038 # include <assert.h>
6042 if ac_fn_c_try_cpp "$LINENO"; then :
6045 # Broken: fails on valid input.
6048 rm -f conftest.err conftest.i conftest.$ac_ext
6050 # OK, works on sane cases. Now check whether nonexistent headers
6051 # can be detected and how.
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 #include <ac_nonexistent.h>
6056 if ac_fn_c_try_cpp "$LINENO"; then :
6057 # Broken: success on invalid input.
6060 # Passes both tests.
6064 rm -f conftest.err conftest.i conftest.$ac_ext
6067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6068 rm -f conftest.i conftest.err conftest.$ac_ext
6069 if $ac_preproc_ok; then :
6072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6074 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6075 See \`config.log' for more details" "$LINENO" 5; }
6079 ac_cpp='$CPP $CPPFLAGS'
6080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
6089 $as_echo_n "checking for compile/link hardening flags... " >&6; }
6092 # Check whether --with-locfile was given.
6093 if test "${with_locfile+set}" = set; then :
6094 withval=$with_locfile;
6102 SENTINEL_DIR="$PWD" && \
6104 case "$with_locfile" in \
6106 scripts/genHardFlags -d "$SENTINEL_DIR" \
6109 scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_locfile" \
6112 ) > genHardFlags.i 2> genHardFlags.err
6115 case "$GENHARDFLAG" in
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
6118 $as_echo "in file $GENHARDFLAGFILE" >&6; }
6119 rm genHardFlags.err genHardFlags.i
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6123 $as_echo "failed." >&6; }
6124 as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
6137 $as_echo_n "checking for install dir and man conventions... " >&6; }
6140 # Check whether --with-locfile was given.
6141 if test "${with_locfile+set}" = set; then :
6142 withval=$with_locfile;
6150 SENTINEL_DIR="$PWD" && \
6152 case "$with_locfile" in \
6154 scripts/genLocInfo -d "$SENTINEL_DIR" \
6157 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \
6160 ) > genLocInfo.i 2> genLocInfo.err
6163 case "$GENLOCINFO" in
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
6166 $as_echo "in file $GENLOCINFOFILE" >&6; }
6167 rm genLocInfo.err genLocInfo.i
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6171 $as_echo "failed." >&6; }
6172 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
6176 if test "$CALC_TICKADJ_MS" ; then
6177 WANT_CALC_TICKADJ_MS_TRUE=
6178 WANT_CALC_TICKADJ_MS_FALSE='#'
6180 WANT_CALC_TICKADJ_MS_TRUE='#'
6181 WANT_CALC_TICKADJ_MS_FALSE=
6226 if test -z "$NTPSWEEP_NI" ; then
6227 INSTALL_NTPSWEEP_TRUE=
6228 INSTALL_NTPSWEEP_FALSE='#'
6230 INSTALL_NTPSWEEP_TRUE='#'
6231 INSTALL_NTPSWEEP_FALSE=
6274 if test -z "$UPDATE_LEAP_NI" ; then
6275 INSTALL_UPDATE_LEAP_TRUE=
6276 INSTALL_UPDATE_LEAP_FALSE='#'
6278 INSTALL_UPDATE_LEAP_TRUE='#'
6279 INSTALL_UPDATE_LEAP_FALSE=
6285 if test -n "$ac_tool_prefix"; then
6286 for ac_prog in ar lib "link -lib"
6288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if ${ac_cv_prog_AR+:} false; then :
6293 $as_echo_n "(cached) " >&6
6295 if test -n "$AR"; then
6296 ac_cv_prog_AR="$AR" # Let the user override the test.
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6305 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 if test -n "$AR"; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6318 $as_echo "$AR" >&6; }
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6325 test -n "$AR" && break
6328 if test -z "$AR"; then
6330 for ac_prog in ar lib "link -lib"
6332 # Extract the first word of "$ac_prog", so it can be a program name with args.
6333 set dummy $ac_prog; ac_word=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6337 $as_echo_n "(cached) " >&6
6339 if test -n "$ac_ct_AR"; then
6340 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349 ac_cv_prog_ac_ct_AR="$ac_prog"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6360 if test -n "$ac_ct_AR"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6362 $as_echo "$ac_ct_AR" >&6; }
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6369 test -n "$ac_ct_AR" && break
6372 if test "x$ac_ct_AR" = x; then
6375 case $cross_compiling:$ac_tool_warned in
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6379 ac_tool_warned=yes ;;
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6388 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6389 if ${am_cv_ar_interface+:} false; then :
6390 $as_echo_n "(cached) " >&6
6393 ac_cpp='$CPP $CPPFLAGS'
6394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6398 am_cv_ar_interface=ar
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6401 int some_variable = 0;
6403 if ac_fn_c_try_compile "$LINENO"; then :
6404 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6406 (eval $am_ar_try) 2>&5
6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409 test $ac_status = 0; }
6410 if test "$ac_status" -eq 0; then
6411 am_cv_ar_interface=ar
6413 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6415 (eval $am_ar_try) 2>&5
6417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6418 test $ac_status = 0; }
6419 if test "$ac_status" -eq 0; then
6420 am_cv_ar_interface=lib
6422 am_cv_ar_interface=unknown
6425 rm -f conftest.lib libconftest.a
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 ac_cpp='$CPP $CPPFLAGS'
6431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6437 $as_echo "$am_cv_ar_interface" >&6; }
6439 case $am_cv_ar_interface in
6443 # Microsoft lib, so override with the ar-lib wrapper script.
6444 # FIXME: It is wrong to rewrite AR.
6445 # But if we don't then we get into trouble of one sort or another.
6446 # A longer-term fix would be to have automake use am__AR in this case,
6447 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6449 AR="$am_aux_dir/ar-lib $AR"
6452 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6460 # Expose a cross-compilation indicator to makefiles
6461 if test $build != $host; then
6462 NTP_CROSSCOMPILE_TRUE=
6463 NTP_CROSSCOMPILE_FALSE='#'
6465 NTP_CROSSCOMPILE_TRUE='#'
6466 NTP_CROSSCOMPILE_FALSE=
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6472 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6473 if ${ac_cv_path_SED+:} false; then :
6474 $as_echo_n "(cached) " >&6
6476 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6477 for ac_i in 1 2 3 4 5 6 7; do
6478 ac_script="$ac_script$as_nl$ac_script"
6480 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6481 { ac_script=; unset ac_script;}
6482 if test -z "$SED"; then
6483 ac_path_SED_found=false
6484 # Loop through the user's path and test for each of PROGNAME-LIST
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 test -z "$as_dir" && as_dir=.
6490 for ac_prog in sed gsed; do
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6493 as_fn_executable_p "$ac_path_SED" || continue
6494 # Check for GNU ac_path_SED and select it if it is found.
6495 # Check for GNU $ac_path_SED
6496 case `"$ac_path_SED" --version 2>&1` in
6498 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6501 $as_echo_n 0123456789 >"conftest.in"
6504 cat "conftest.in" "conftest.in" >"conftest.tmp"
6505 mv "conftest.tmp" "conftest.in"
6506 cp "conftest.in" "conftest.nl"
6507 $as_echo '' >> "conftest.nl"
6508 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6510 as_fn_arith $ac_count + 1 && ac_count=$as_val
6511 if test $ac_count -gt ${ac_path_SED_max-0}; then
6512 # Best one so far, save it but keep looking for a better one
6513 ac_cv_path_SED="$ac_path_SED"
6514 ac_path_SED_max=$ac_count
6516 # 10*(2^10) chars as input seems more than enough
6517 test $ac_count -gt 10 && break
6519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6522 $ac_path_SED_found && break 3
6527 if test -z "$ac_cv_path_SED"; then
6528 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6536 $as_echo "$ac_cv_path_SED" >&6; }
6537 SED="$ac_cv_path_SED"
6540 test -z "$SED" && SED=sed
6541 Xsed="$SED -e 1s/^X//"
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6554 $as_echo_n "checking for fgrep... " >&6; }
6555 if ${ac_cv_path_FGREP+:} false; then :
6556 $as_echo_n "(cached) " >&6
6558 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6559 then ac_cv_path_FGREP="$GREP -F"
6561 if test -z "$FGREP"; then
6562 ac_path_FGREP_found=false
6563 # Loop through the user's path and test for each of PROGNAME-LIST
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6568 test -z "$as_dir" && as_dir=.
6569 for ac_prog in fgrep; do
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6572 as_fn_executable_p "$ac_path_FGREP" || continue
6573 # Check for GNU ac_path_FGREP and select it if it is found.
6574 # Check for GNU $ac_path_FGREP
6575 case `"$ac_path_FGREP" --version 2>&1` in
6577 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6580 $as_echo_n 0123456789 >"conftest.in"
6583 cat "conftest.in" "conftest.in" >"conftest.tmp"
6584 mv "conftest.tmp" "conftest.in"
6585 cp "conftest.in" "conftest.nl"
6586 $as_echo 'FGREP' >> "conftest.nl"
6587 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6589 as_fn_arith $ac_count + 1 && ac_count=$as_val
6590 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6591 # Best one so far, save it but keep looking for a better one
6592 ac_cv_path_FGREP="$ac_path_FGREP"
6593 ac_path_FGREP_max=$ac_count
6595 # 10*(2^10) chars as input seems more than enough
6596 test $ac_count -gt 10 && break
6598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6601 $ac_path_FGREP_found && break 3
6606 if test -z "$ac_cv_path_FGREP"; then
6607 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6610 ac_cv_path_FGREP=$FGREP
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6616 $as_echo "$ac_cv_path_FGREP" >&6; }
6617 FGREP="$ac_cv_path_FGREP"
6620 test -z "$GREP" && GREP=grep
6638 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6639 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6640 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6643 $as_echo_n "checking how to print strings... " >&6; }
6644 # Test print first, because it will be a builtin if present.
6645 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6646 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6648 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6651 # Use this function as a fallback that always works.
6652 func_fallback_echo ()
6654 eval 'cat <<_LTECHO_EOF
6658 ECHO='func_fallback_echo'
6661 # func_echo_all arg...
6662 # Invoke $ECHO with all args, space-separated.
6669 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6670 $as_echo "printf" >&6; } ;;
6671 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6672 $as_echo "print -r" >&6; } ;;
6673 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6674 $as_echo "cat" >&6; } ;;
6690 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6691 if test "x$ac_cv_type_pid_t" = xyes; then :
6695 cat >>confdefs.h <<_ACEOF
6701 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6702 if test "x$ac_cv_type_size_t" = xyes; then :
6706 cat >>confdefs.h <<_ACEOF
6707 #define size_t unsigned int
6713 # Check whether --enable-c99-snprintf was given.
6714 if test "${enable_c99_snprintf+set}" = set; then :
6715 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
6717 force_c99_snprintf=no
6721 case "$force_c99_snprintf" in
6723 hw_force_rpl_snprintf=yes
6724 hw_force_rpl_vsnprintf=yes
6732 for ac_header in $ac_header_list
6734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6735 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6737 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6738 cat >>confdefs.h <<_ACEOF
6739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6753 $as_echo_n "checking for unsigned long long int... " >&6; }
6754 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6755 $as_echo_n "(cached) " >&6
6757 ac_cv_type_unsigned_long_long_int=yes
6758 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6762 /* For now, do not test the preprocessor; as of 2007 there are too many
6763 implementations with broken preprocessors. Perhaps this can
6764 be revisited in 2012. In the meantime, code should not expect
6765 #if to work with literals wider than 32 bits. */
6766 /* Test literals. */
6767 long long int ll = 9223372036854775807ll;
6768 long long int nll = -9223372036854775807LL;
6769 unsigned long long int ull = 18446744073709551615ULL;
6770 /* Test constant expressions. */
6771 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6773 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6779 /* Test availability of runtime routines for shift and division. */
6780 long long int llmax = 9223372036854775807ll;
6781 unsigned long long int ullmax = 18446744073709551615ull;
6782 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6783 | (llmax / ll) | (llmax % ll)
6784 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6785 | (ullmax / ull) | (ullmax % ull));
6791 if ac_fn_c_try_link "$LINENO"; then :
6794 ac_cv_type_unsigned_long_long_int=no
6796 rm -f core conftest.err conftest.$ac_objext \
6797 conftest$ac_exeext conftest.$ac_ext
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6801 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6802 if test $ac_cv_type_unsigned_long_long_int = yes; then
6804 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6809 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
6810 if test "x$ac_cv_func_vsnprintf" = xyes; then :
6811 hw_cv_func_vsnprintf=yes
6813 hw_cv_func_vsnprintf=no
6816 if test "$hw_cv_func_vsnprintf" = yes; then :
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
6818 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
6819 if ${hw_cv_func_vsnprintf_c99+:} false; then :
6820 $as_echo_n "(cached) " >&6
6822 if test "$cross_compiling" = yes; then :
6823 hw_cv_func_vsnprintf_c99=no
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6831 static int testprintf(char *buf, size_t size, const char *format, ...)
6835 va_start(ap, format);
6836 result = vsnprintf(buf, size, format, ap);
6844 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
6845 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
6846 buf[0] != 'T' || buf[3] != '\0')
6852 if ac_fn_c_try_run "$LINENO"; then :
6853 hw_cv_func_vsnprintf_c99=yes
6855 hw_cv_func_vsnprintf_c99=no
6857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6858 conftest.$ac_objext conftest.beam conftest.$ac_ext
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
6863 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
6865 hw_cv_func_vsnprintf_c99=no
6868 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
6871 $as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
6872 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
6873 hw_use_rpl_vsnprintf=yes
6875 hw_use_rpl_vsnprintf=no
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
6878 $as_echo "$hw_use_rpl_vsnprintf" >&6; }
6879 if test "$hw_use_rpl_vsnprintf" = yes; then :
6881 $as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
6883 if test ${hw_nodef_vsnprintf=no} = no; then :
6885 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
6888 for ac_header in inttypes.h locale.h stddef.h stdint.h
6890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6891 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6892 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6893 cat >>confdefs.h <<_ACEOF
6894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6901 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
6903 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
6905 cat >>confdefs.h <<_ACEOF
6906 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
6911 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
6913 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
6915 cat >>confdefs.h <<_ACEOF
6916 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6924 $as_echo_n "checking for long double... " >&6; }
6925 if ${ac_cv_type_long_double+:} false; then :
6926 $as_echo_n "(cached) " >&6
6928 if test "$GCC" = yes; then
6929 ac_cv_type_long_double=yes
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6933 /* The Stardent Vistra knows sizeof (long double), but does
6935 long double foo = 0.0L;
6939 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6940 sizeof (double) <= sizeof (long double))];
6942 return test_array [0];
6948 if ac_fn_c_try_compile "$LINENO"; then :
6949 ac_cv_type_long_double=yes
6951 ac_cv_type_long_double=no
6953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
6957 $as_echo "$ac_cv_type_long_double" >&6; }
6958 if test $ac_cv_type_long_double = yes; then
6960 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6967 $as_echo_n "checking for long long int... " >&6; }
6968 if ${ac_cv_type_long_long_int+:} false; then :
6969 $as_echo_n "(cached) " >&6
6971 ac_cv_type_long_long_int=yes
6972 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6973 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6974 if test $ac_cv_type_long_long_int = yes; then
6975 if test "$cross_compiling" = yes; then :
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6983 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6984 # define LLONG_MAX (HALF - 1 + HALF)
6989 long long int n = 1;
6993 long long int m = n << i;
6996 if (LLONG_MAX / 2 < m)
7004 if ac_fn_c_try_run "$LINENO"; then :
7007 ac_cv_type_long_long_int=no
7009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7010 conftest.$ac_objext conftest.beam conftest.$ac_ext
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7017 $as_echo "$ac_cv_type_long_long_int" >&6; }
7018 if test $ac_cv_type_long_long_int = yes; then
7020 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7026 $as_echo_n "checking for unsigned long long int... " >&6; }
7027 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7028 $as_echo_n "(cached) " >&6
7030 ac_cv_type_unsigned_long_long_int=yes
7031 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7035 /* For now, do not test the preprocessor; as of 2007 there are too many
7036 implementations with broken preprocessors. Perhaps this can
7037 be revisited in 2012. In the meantime, code should not expect
7038 #if to work with literals wider than 32 bits. */
7039 /* Test literals. */
7040 long long int ll = 9223372036854775807ll;
7041 long long int nll = -9223372036854775807LL;
7042 unsigned long long int ull = 18446744073709551615ULL;
7043 /* Test constant expressions. */
7044 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7046 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7052 /* Test availability of runtime routines for shift and division. */
7053 long long int llmax = 9223372036854775807ll;
7054 unsigned long long int ullmax = 18446744073709551615ull;
7055 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7056 | (llmax / ll) | (llmax % ll)
7057 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7058 | (ullmax / ull) | (ullmax % ull));
7064 if ac_fn_c_try_link "$LINENO"; then :
7067 ac_cv_type_unsigned_long_long_int=no
7069 rm -f core conftest.err conftest.$ac_objext \
7070 conftest$ac_exeext conftest.$ac_ext
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7074 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7075 if test $ac_cv_type_unsigned_long_long_int = yes; then
7077 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7081 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7082 if test "x$ac_cv_type_size_t" = xyes; then :
7086 cat >>confdefs.h <<_ACEOF
7087 #define size_t unsigned int
7094 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
7095 if test "x$ac_cv_type_intmax_t" = xyes; then :
7097 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
7100 test $ac_cv_type_long_long_int = yes \
7101 && ac_type='long long int' \
7102 || ac_type='long int'
7104 cat >>confdefs.h <<_ACEOF
7105 #define intmax_t $ac_type
7113 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
7114 if test "x$ac_cv_type_uintmax_t" = xyes; then :
7116 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7119 test $ac_cv_type_unsigned_long_long_int = yes \
7120 && ac_type='unsigned long long int' \
7121 || ac_type='unsigned long int'
7123 cat >>confdefs.h <<_ACEOF
7124 #define uintmax_t $ac_type
7131 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
7132 if test "x$ac_cv_type_uintptr_t" = xyes; then :
7134 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
7137 for ac_type in 'unsigned int' 'unsigned long int' \
7138 'unsigned long long int'; do
7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h. */
7141 $ac_includes_default
7145 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
7147 return test_array [0];
7153 if ac_fn_c_try_compile "$LINENO"; then :
7155 cat >>confdefs.h <<_ACEOF
7156 #define uintptr_t $ac_type
7161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7162 test -z "$ac_type" && break
7167 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7168 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
7170 cat >>confdefs.h <<_ACEOF
7171 #define HAVE_PTRDIFF_T 1
7177 for ac_func in localeconv
7179 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
7180 if test "x$ac_cv_func_localeconv" = xyes; then :
7181 cat >>confdefs.h <<_ACEOF
7182 #define HAVE_LOCALECONV 1
7189 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7191 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7192 if ${ac_cv_c_const+:} false; then :
7193 $as_echo_n "(cached) " >&6
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7203 /* Ultrix mips cc rejects this sort of thing. */
7204 typedef int charset[2];
7205 const charset cs = { 0, 0 };
7206 /* SunOS 4.1.1 cc rejects this. */
7207 char const *const *pcpcc;
7209 /* NEC SVR4.0.2 mips cc rejects this. */
7210 struct point {int x, y;};
7211 static struct point const zero = {0,0};
7212 /* AIX XL C 1.02.0.0 rejects this.
7213 It does not let you subtract one const X* pointer from another in
7214 an arm of an if-expression whose if-part is not a constant
7216 const char *g = "string";
7217 pcpcc = &g + (g ? g-g : 0);
7218 /* HPUX 7.0 cc rejects these. */
7220 ppc = (char**) pcpcc;
7221 pcpcc = (char const *const *) ppc;
7222 { /* SCO 3.2v4 cc rejects this sort of thing. */
7225 char const *s = 0 ? (char *) 0 : (char const *) 0;
7230 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7232 const int *foo = &x[0];
7235 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7236 typedef const int *iptr;
7240 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7241 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7242 struct s { int j; const int *ap[3]; } bx;
7243 struct s *b = &bx; b->j = 5;
7245 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7249 return !cs[0] && !zero.x;
7256 if ac_fn_c_try_compile "$LINENO"; then :
7261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7264 $as_echo "$ac_cv_c_const" >&6; }
7265 if test $ac_cv_c_const = no; then
7267 $as_echo "#define const /**/" >>confdefs.h
7274 case " $LIBOBJS " in
7275 *" snprintf.$ac_objext "* ) ;;
7276 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7280 _hw_cv_func_xprintf_replace_done=yes
7286 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
7287 if test "x$ac_cv_func_snprintf" = xyes; then :
7288 hw_cv_func_snprintf=yes
7290 hw_cv_func_snprintf=no
7293 if test "$hw_cv_func_snprintf" = yes; then :
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
7295 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
7296 if ${hw_cv_func_snprintf_c99+:} false; then :
7297 $as_echo_n "(cached) " >&6
7299 if test "$cross_compiling" = yes; then :
7300 hw_cv_func_snprintf_c99=no
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7309 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
7310 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
7311 buf[0] != 'T' || buf[3] != '\0')
7317 if ac_fn_c_try_run "$LINENO"; then :
7318 hw_cv_func_snprintf_c99=yes
7320 hw_cv_func_snprintf_c99=no
7322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7323 conftest.$ac_objext conftest.beam conftest.$ac_ext
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
7328 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
7330 hw_cv_func_snprintf_c99=no
7333 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
7336 $as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
7337 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
7338 hw_use_rpl_snprintf=yes
7340 hw_use_rpl_snprintf=no
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
7343 $as_echo "$hw_use_rpl_snprintf" >&6; }
7344 if test "$hw_use_rpl_snprintf" = yes; then :
7346 $as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
7348 if test ${hw_nodef_snprintf=no} = no; then :
7350 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
7354 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7356 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7357 if ${ac_cv_c_const+:} false; then :
7358 $as_echo_n "(cached) " >&6
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7368 /* Ultrix mips cc rejects this sort of thing. */
7369 typedef int charset[2];
7370 const charset cs = { 0, 0 };
7371 /* SunOS 4.1.1 cc rejects this. */
7372 char const *const *pcpcc;
7374 /* NEC SVR4.0.2 mips cc rejects this. */
7375 struct point {int x, y;};
7376 static struct point const zero = {0,0};
7377 /* AIX XL C 1.02.0.0 rejects this.
7378 It does not let you subtract one const X* pointer from another in
7379 an arm of an if-expression whose if-part is not a constant
7381 const char *g = "string";
7382 pcpcc = &g + (g ? g-g : 0);
7383 /* HPUX 7.0 cc rejects these. */
7385 ppc = (char**) pcpcc;
7386 pcpcc = (char const *const *) ppc;
7387 { /* SCO 3.2v4 cc rejects this sort of thing. */
7390 char const *s = 0 ? (char *) 0 : (char const *) 0;
7395 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7397 const int *foo = &x[0];
7400 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7401 typedef const int *iptr;
7405 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7406 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7407 struct s { int j; const int *ap[3]; } bx;
7408 struct s *b = &bx; b->j = 5;
7410 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7414 return !cs[0] && !zero.x;
7421 if ac_fn_c_try_compile "$LINENO"; then :
7426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7429 $as_echo "$ac_cv_c_const" >&6; }
7430 if test $ac_cv_c_const = no; then
7432 $as_echo "#define const /**/" >>confdefs.h
7439 case " $LIBOBJS " in
7440 *" snprintf.$ac_objext "* ) ;;
7441 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7445 _hw_cv_func_xprintf_replace_done=yes
7454 # HMS: Save $LIBS and empty it.
7455 # any LIBS we add here should go in to LDADD_LIBNTP
7462 # [Bug 2332] because we need to know if we are using GNU ld...
7465 # Check whether --with-gnu-ld was given.
7466 if test "${with_gnu_ld+set}" = set; then :
7467 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7473 if test yes = "$GCC"; then
7474 # Check if gcc -print-prog-name=ld gives a path.
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7476 $as_echo_n "checking for ld used by $CC... " >&6; }
7479 # gcc leaves a trailing carriage return, which upsets mingw
7480 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7482 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7485 # Accept absolute paths.
7487 re_direlt='/[^/][^/]*/\.\./'
7488 # Canonicalize the pathname of ld
7489 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7490 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7491 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7493 test -z "$LD" && LD=$ac_prog
7496 # If it fails, then pretend we aren't using GCC.
7500 # If it is relative, then search for the first ld in PATH.
7504 elif test yes = "$with_gnu_ld"; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7506 $as_echo_n "checking for GNU ld... " >&6; }
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7509 $as_echo_n "checking for non-GNU ld... " >&6; }
7511 if ${lt_cv_path_LD+:} false; then :
7512 $as_echo_n "(cached) " >&6
7514 if test -z "$LD"; then
7515 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7516 for ac_dir in $PATH; do
7518 test -z "$ac_dir" && ac_dir=.
7519 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7520 lt_cv_path_LD=$ac_dir/$ac_prog
7521 # Check to see if the program is GNU ld. I'd rather use --version,
7522 # but apparently some variants of GNU ld only accept -v.
7523 # Break only if it was the GNU/non-GNU ld that we prefer.
7524 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7525 *GNU* | *'with BFD'*)
7526 test no != "$with_gnu_ld" && break
7529 test yes != "$with_gnu_ld" && break
7536 lt_cv_path_LD=$LD # Let the user override the test with a path.
7541 if test -n "$LD"; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7543 $as_echo "$LD" >&6; }
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546 $as_echo "no" >&6; }
7548 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7550 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7551 if ${lt_cv_prog_gnu_ld+:} false; then :
7552 $as_echo_n "(cached) " >&6
7554 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7555 case `$LD -v 2>&1 </dev/null` in
7556 *GNU* | *'with BFD'*)
7557 lt_cv_prog_gnu_ld=yes
7560 lt_cv_prog_gnu_ld=no
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7565 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7566 with_gnu_ld=$lt_cv_prog_gnu_ld
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
7579 $as_echo_n "checking for directory path separator... " >&6; }
7580 if ${ntp_cv_dir_sep+:} false; then :
7581 $as_echo_n "(cached) " >&6
7584 case "$ntp_cv_dir_sep" in
7587 *djgpp | *mingw32* | *emx*)
7588 ntp_cv_dir_sep="'\\'"
7591 ntp_cv_dir_sep="'/'"
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
7599 $as_echo "$ntp_cv_dir_sep" >&6; }
7601 cat >>confdefs.h <<_ACEOF
7602 #define DIR_SEP $ntp_cv_dir_sep
7607 NTP_ORIG_LIBS="$LIBS"
7609 # Check whether --with-lineeditlibs was given.
7610 if test "${with_lineeditlibs+set}" = set; then :
7611 withval=$with_lineeditlibs; use_lineeditlibs="$withval"
7613 use_lineeditlibs="edit,editline"
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
7618 $as_echo_n "checking line editing libraries... " >&6; }
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
7620 $as_echo "$use_lineeditlibs" >&6; }
7621 case "$use_lineeditlibs" in
7626 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
7627 for term_lib in "" termcap curses ncurses; do
7630 TRY_LIB="-l$lineedit_lib"
7633 TRY_LIB="-l$lineedit_lib -l$term_lib"
7636 LIBS="$NTP_ORIG_LIBS $TRY_LIB"
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
7638 $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7642 /* Override any GCC internal prototype to avoid an error.
7643 Use char because int might match the return type of a GCC
7644 builtin and then its argument prototype would still apply. */
7657 if ac_fn_c_try_link "$LINENO"; then :
7658 ntp_lib_lineedit="$TRY_LIB"
7660 rm -f core conftest.err conftest.$ac_objext \
7661 conftest$ac_exeext conftest.$ac_ext
7662 case "$ntp_lib_lineedit" in
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7670 $as_echo "yes" >&6; }
7675 # do not try el_gets without a terminal library
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
7679 $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7683 /* Override any GCC internal prototype to avoid an error.
7684 Use char because int might match the return type of a GCC
7685 builtin and then its argument prototype would still apply. */
7698 if ac_fn_c_try_link "$LINENO"; then :
7699 ntp_lib_lineedit="$TRY_LIB"
7701 rm -f core conftest.err conftest.$ac_objext \
7702 conftest$ac_exeext conftest.$ac_ext
7703 case "$ntp_lib_lineedit" in
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7710 $as_echo "yes" >&6; }
7713 esac # $ntp_lib_lineedit
7716 case "$ntp_lib_lineedit" in
7724 LIBS="$NTP_ORIG_LIBS"
7726 esac # $use_lineeditlibs
7728 case "$ntp_lib_lineedit" in
7730 ntp_lib_lineedit="no"
7735 EDITLINE_LIBS="$ntp_lib_lineedit"
7738 esac # $ntp_lib_lineedit
7740 case "$ntp_lib_lineedit" in
7744 for ac_header in readline.h readline/readline.h histedit.h
7746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7747 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7748 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7749 cat >>confdefs.h <<_ACEOF
7750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7757 for ac_header in history.h readline/history.h
7759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7760 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7761 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7762 cat >>confdefs.h <<_ACEOF
7763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7771 case "$ac_cv_header_histedit_h" in
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
7774 $as_echo_n "checking number of arguments to el_init()... " >&6; }
7775 if ${ntp_cv_el_init_args+:} false; then :
7776 $as_echo_n "(cached) " >&6
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7782 #include <histedit.h>
7788 el_init("conftest", stdin, stdout, stderr);
7795 if ac_fn_c_try_compile "$LINENO"; then :
7796 ntp_cv_el_init_args=4
7798 ntp_cv_el_init_args=3
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
7805 $as_echo "$ntp_cv_el_init_args" >&6; }
7807 cat >>confdefs.h <<_ACEOF
7808 #define EL_INIT_ARGS $ntp_cv_el_init_args
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
7814 $as_echo_n "checking whether readline supports history... " >&6; }
7816 ntp_lib_lineedit_history="no"
7818 LIBS="$ORIG_LIBS $ntp_lib_lineedit"
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7822 /* Override any GCC internal prototype to avoid an error.
7823 Use char because int might match the return type of a GCC
7824 builtin and then its argument prototype would still apply. */
7828 char add_history ();
7832 return add_history ();
7837 if ac_fn_c_try_link "$LINENO"; then :
7838 ntp_lib_lineedit_history="yes"
7840 rm -f core conftest.err conftest.$ac_objext \
7841 conftest$ac_exeext conftest.$ac_ext
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
7845 $as_echo "$ntp_lib_lineedit_history" >&6; }
7847 case "$ntp_lib_lineedit_history" in
7850 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
7853 esac # $ntp_lib_lineedit
7854 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
7855 { ORIG_LIBS=; unset ORIG_LIBS;}
7856 { TRY_LIB=; unset TRY_LIB;}
7857 { use_lineeditlibs=; unset use_lineeditlibs;}
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
7867 $as_echo_n "checking for library containing cos... " >&6; }
7868 if ${ac_cv_search_cos+:} false; then :
7869 $as_echo_n "(cached) " >&6
7871 ac_func_search_save_LIBS=$LIBS
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7875 /* Override any GCC internal prototype to avoid an error.
7876 Use char because int might match the return type of a GCC
7877 builtin and then its argument prototype would still apply. */
7890 for ac_lib in '' m; do
7891 if test -z "$ac_lib"; then
7892 ac_res="none required"
7895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7897 if ac_fn_c_try_link "$LINENO"; then :
7898 ac_cv_search_cos=$ac_res
7900 rm -f core conftest.err conftest.$ac_objext \
7902 if ${ac_cv_search_cos+:} false; then :
7906 if ${ac_cv_search_cos+:} false; then :
7912 LIBS=$ac_func_search_save_LIBS
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
7915 $as_echo "$ac_cv_search_cos" >&6; }
7916 ac_res=$ac_cv_search_cos
7917 if test "$ac_res" != no; then :
7918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7926 { _libs=; unset _libs;}
7929 for ac_header in vfork.h
7931 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7932 if test "x$ac_cv_header_vfork_h" = xyes; then :
7933 cat >>confdefs.h <<_ACEOF
7934 #define HAVE_VFORK_H 1
7941 for ac_func in fork vfork
7943 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7944 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7945 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7946 cat >>confdefs.h <<_ACEOF
7947 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7953 if test "x$ac_cv_func_fork" = xyes; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7955 $as_echo_n "checking for working fork... " >&6; }
7956 if ${ac_cv_func_fork_works+:} false; then :
7957 $as_echo_n "(cached) " >&6
7959 if test "$cross_compiling" = yes; then :
7960 ac_cv_func_fork_works=cross
7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h. */
7964 $ac_includes_default
7969 /* By Ruediger Kuhlmann. */
7976 if ac_fn_c_try_run "$LINENO"; then :
7977 ac_cv_func_fork_works=yes
7979 ac_cv_func_fork_works=no
7981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7982 conftest.$ac_objext conftest.beam conftest.$ac_ext
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7987 $as_echo "$ac_cv_func_fork_works" >&6; }
7990 ac_cv_func_fork_works=$ac_cv_func_fork
7992 if test "x$ac_cv_func_fork_works" = xcross; then
7994 *-*-amigaos* | *-*-msdosdjgpp*)
7995 # Override, as these systems have only a dummy fork() stub
7996 ac_cv_func_fork_works=no
7999 ac_cv_func_fork_works=yes
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8003 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8005 ac_cv_func_vfork_works=$ac_cv_func_vfork
8006 if test "x$ac_cv_func_vfork" = xyes; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8008 $as_echo_n "checking for working vfork... " >&6; }
8009 if ${ac_cv_func_vfork_works+:} false; then :
8010 $as_echo_n "(cached) " >&6
8012 if test "$cross_compiling" = yes; then :
8013 ac_cv_func_vfork_works=cross
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8017 /* Thanks to Paul Eggert for this test. */
8018 $ac_includes_default
8019 #include <sys/wait.h>
8023 /* On some sparc systems, changes by the child to local and incoming
8024 argument registers are propagated back to the parent. The compiler
8025 is told about this with #include <vfork.h>, but some compilers
8026 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8027 static variable whose address is put into a register that is
8028 clobbered by the vfork. */
8031 sparc_address_test (int arg)
8033 sparc_address_test (arg) int arg;
8054 pid_t parent = getpid ();
8057 sparc_address_test (0);
8062 /* Here is another test for sparc vfork register problems. This
8063 test uses lots of local variables, at least as many local
8064 variables as main has allocated so far including compiler
8065 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8066 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8067 reuse the register of parent for one of the local variables,
8068 since it will think that parent can't possibly be used any more
8069 in this routine. Assigning to the local variable will thus
8070 munge parent in the parent process. */
8072 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8073 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8074 /* Convince the compiler that p..p7 are live; otherwise, it might
8075 use the same hardware register for all 8 local variables. */
8076 if (p != p1 || p != p2 || p != p3 || p != p4
8077 || p != p5 || p != p6 || p != p7)
8080 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8081 from child file descriptors. If the child closes a descriptor
8082 before it execs or exits, this munges the parent's descriptor
8083 as well. Test for this by closing stdout in the child. */
8084 _exit(close(fileno(stdout)) != 0);
8089 while (wait(&status) != child)
8092 /* Was there some problem with vforking? */
8095 /* Did the child fail? (This shouldn't happen.) */
8098 /* Did the vfork/compiler bug occur? */
8099 || parent != getpid()
8101 /* Did the file descriptor bug occur? */
8102 || fstat(fileno(stdout), &st) != 0
8107 if ac_fn_c_try_run "$LINENO"; then :
8108 ac_cv_func_vfork_works=yes
8110 ac_cv_func_vfork_works=no
8112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8113 conftest.$ac_objext conftest.beam conftest.$ac_ext
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8118 $as_echo "$ac_cv_func_vfork_works" >&6; }
8121 if test "x$ac_cv_func_fork_works" = xcross; then
8122 ac_cv_func_vfork_works=$ac_cv_func_vfork
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8124 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8127 if test "x$ac_cv_func_vfork_works" = xyes; then
8129 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8133 $as_echo "#define vfork fork" >>confdefs.h
8136 if test "x$ac_cv_func_fork_works" = xyes; then
8138 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8142 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8143 # for constant arguments. Useless!
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8145 $as_echo_n "checking for working alloca.h... " >&6; }
8146 if ${ac_cv_working_alloca_h+:} false; then :
8147 $as_echo_n "(cached) " >&6
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8155 char *p = (char *) alloca (2 * sizeof (int));
8161 if ac_fn_c_try_link "$LINENO"; then :
8162 ac_cv_working_alloca_h=yes
8164 ac_cv_working_alloca_h=no
8166 rm -f core conftest.err conftest.$ac_objext \
8167 conftest$ac_exeext conftest.$ac_ext
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8170 $as_echo "$ac_cv_working_alloca_h" >&6; }
8171 if test $ac_cv_working_alloca_h = yes; then
8173 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8178 $as_echo_n "checking for alloca... " >&6; }
8179 if ${ac_cv_func_alloca_works+:} false; then :
8180 $as_echo_n "(cached) " >&6
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8185 # define alloca __builtin_alloca
8188 # include <malloc.h>
8189 # define alloca _alloca
8191 # ifdef HAVE_ALLOCA_H
8192 # include <alloca.h>
8197 # ifndef alloca /* predefined by HP cc +Olibcalls */
8198 void *alloca (size_t);
8208 char *p = (char *) alloca (1);
8214 if ac_fn_c_try_link "$LINENO"; then :
8215 ac_cv_func_alloca_works=yes
8217 ac_cv_func_alloca_works=no
8219 rm -f core conftest.err conftest.$ac_objext \
8220 conftest$ac_exeext conftest.$ac_ext
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8223 $as_echo "$ac_cv_func_alloca_works" >&6; }
8225 if test $ac_cv_func_alloca_works = yes; then
8227 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8230 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8231 # that cause trouble. Some versions do not even contain alloca or
8232 # contain a buggy version. If you still want to use their alloca,
8233 # use ar to extract alloca.o from them instead of compiling alloca.c.
8235 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8237 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8241 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8242 if ${ac_cv_os_cray+:} false; then :
8243 $as_echo_n "(cached) " >&6
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8247 #if defined CRAY && ! defined CRAY2
8254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8255 $EGREP "webecray" >/dev/null 2>&1; then :
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8264 $as_echo "$ac_cv_os_cray" >&6; }
8265 if test $ac_cv_os_cray = yes; then
8266 for ac_func in _getb67 GETB67 getb67; do
8267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8268 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8269 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8271 cat >>confdefs.h <<_ACEOF
8272 #define CRAY_STACKSEG_END $ac_func
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8282 $as_echo_n "checking stack direction for C alloca... " >&6; }
8283 if ${ac_cv_c_stack_direction+:} false; then :
8284 $as_echo_n "(cached) " >&6
8286 if test "$cross_compiling" = yes; then :
8287 ac_cv_c_stack_direction=0
8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8291 $ac_includes_default
8293 find_stack_direction (int *addr, int depth)
8298 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8299 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8304 main (int argc, char **argv)
8306 return find_stack_direction (0, argc + !argv + 20) < 0;
8309 if ac_fn_c_try_run "$LINENO"; then :
8310 ac_cv_c_stack_direction=1
8312 ac_cv_c_stack_direction=-1
8314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8315 conftest.$ac_objext conftest.beam conftest.$ac_ext
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8320 $as_echo "$ac_cv_c_stack_direction" >&6; }
8321 cat >>confdefs.h <<_ACEOF
8322 #define STACK_DIRECTION $ac_cv_c_stack_direction
8328 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8329 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
8335 cat >>confdefs.h <<_ACEOF
8336 #define HAVE_DECL_STRERROR_R $ac_have_decl
8339 for ac_func in strerror_r
8341 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8342 if test "x$ac_cv_func_strerror_r" = xyes; then :
8343 cat >>confdefs.h <<_ACEOF
8344 #define HAVE_STRERROR_R 1
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8351 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8352 if ${ac_cv_func_strerror_r_char_p+:} false; then :
8353 $as_echo_n "(cached) " >&6
8356 ac_cv_func_strerror_r_char_p=no
8357 if test $ac_cv_have_decl_strerror_r = yes; then
8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8360 $ac_includes_default
8366 char x = *strerror_r (0, buf, sizeof buf);
8367 char *p = strerror_r (0, buf, sizeof buf);
8374 if ac_fn_c_try_compile "$LINENO"; then :
8375 ac_cv_func_strerror_r_char_p=yes
8377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379 # strerror_r is not declared. Choose between
8380 # systems that have relatively inaccessible declarations for the
8381 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8382 # former has a strerror_r that returns char*, while the latter
8383 # has a strerror_r that returns `int'.
8384 # This test should segfault on the DEC system.
8385 if test "$cross_compiling" = yes; then :
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 $ac_includes_default
8391 extern char *strerror_r ();
8396 char x = *strerror_r (0, buf, sizeof buf);
8397 return ! isalpha (x);
8402 if ac_fn_c_try_run "$LINENO"; then :
8403 ac_cv_func_strerror_r_char_p=yes
8405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8406 conftest.$ac_objext conftest.beam conftest.$ac_ext
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8413 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8414 if test $ac_cv_func_strerror_r_char_p = yes; then
8416 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8421 ac_busted_vpath_in_make=no
8423 *-*-irix6.1*) # 64 bit only
8426 *-*-irix6*) # 6.2 (and later?)
8427 ac_busted_vpath_in_make=yes
8430 ac_busted_vpath_in_make=yes
8433 ac_busted_vpath_in_make=yes
8437 case "$ac_busted_vpath_in_make$srcdir" in
8440 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
8442 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
8450 # Was *-*-aix[[4-9]]*
8451 # XXX only verified thru AIX6. But...
8452 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
8453 # that this support would be in 5.3, removed in 6, and added back.
8455 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
8456 # (returning ENOSYS). I didn't check 4.2. If, in the future,
8457 # IBM pulls its thumbs out long enough to implement clock_settime,
8458 # this conditional will need to change. Maybe use AC_TRY_RUN
8459 # instead to try to set the time to itself and check errno.
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
8463 $as_echo_n "checking for library containing clock_gettime... " >&6; }
8464 if ${ac_cv_search_clock_gettime+:} false; then :
8465 $as_echo_n "(cached) " >&6
8467 ac_func_search_save_LIBS=$LIBS
8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h. */
8471 /* Override any GCC internal prototype to avoid an error.
8472 Use char because int might match the return type of a GCC
8473 builtin and then its argument prototype would still apply. */
8477 char clock_gettime ();
8481 return clock_gettime ();
8486 for ac_lib in '' rt; do
8487 if test -z "$ac_lib"; then
8488 ac_res="none required"
8491 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8493 if ac_fn_c_try_link "$LINENO"; then :
8494 ac_cv_search_clock_gettime=$ac_res
8496 rm -f core conftest.err conftest.$ac_objext \
8498 if ${ac_cv_search_clock_gettime+:} false; then :
8502 if ${ac_cv_search_clock_gettime+:} false; then :
8505 ac_cv_search_clock_gettime=no
8508 LIBS=$ac_func_search_save_LIBS
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
8511 $as_echo "$ac_cv_search_clock_gettime" >&6; }
8512 ac_res=$ac_cv_search_clock_gettime
8513 if test "$ac_res" != no; then :
8514 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8515 case "$ac_cv_search_clock_gettime" in
8518 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
8523 for ac_func in clock_getres clock_gettime clock_settime
8525 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8526 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8527 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8528 cat >>confdefs.h <<_ACEOF
8529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8538 for ac_func in getclock stime timegm strlcpy strlcat
8540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8541 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8542 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8543 cat >>confdefs.h <<_ACEOF
8544 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
8555 $as_echo_n "checking for library containing snprintb... " >&6; }
8556 if ${ac_cv_search_snprintb+:} false; then :
8557 $as_echo_n "(cached) " >&6
8559 ac_func_search_save_LIBS=$LIBS
8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h. */
8563 /* Override any GCC internal prototype to avoid an error.
8564 Use char because int might match the return type of a GCC
8565 builtin and then its argument prototype would still apply. */
8578 for ac_lib in '' util; do
8579 if test -z "$ac_lib"; then
8580 ac_res="none required"
8583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8585 if ac_fn_c_try_link "$LINENO"; then :
8586 ac_cv_search_snprintb=$ac_res
8588 rm -f core conftest.err conftest.$ac_objext \
8590 if ${ac_cv_search_snprintb+:} false; then :
8594 if ${ac_cv_search_snprintb+:} false; then :
8597 ac_cv_search_snprintb=no
8600 LIBS=$ac_func_search_save_LIBS
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
8603 $as_echo "$ac_cv_search_snprintb" >&6; }
8604 ac_res=$ac_cv_search_snprintb
8605 if test "$ac_res" != no; then :
8606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8607 case "$ac_cv_search_snprintb" in
8610 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
8613 $as_echo "#define USE_SNPRINTB 1" >>confdefs.h
8619 for ac_header in errno.h sys/socket.h sys/types.h time.h
8621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8622 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8623 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8624 cat >>confdefs.h <<_ACEOF
8625 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8632 for ac_header in net/if.h
8634 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
8635 #ifdef HAVE_SYS_SOCKET_H
8636 # include <sys/socket.h>
8640 if test "x$ac_cv_header_net_if_h" = xyes; then :
8641 cat >>confdefs.h <<_ACEOF
8642 #define HAVE_NET_IF_H 1
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
8652 $as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
8653 if ${ntp_cv_predecl_mpinfou+:} false; then :
8654 $as_echo_n "(cached) " >&6
8657 np_cv_predecl_mpinfou=no
8658 case "$ac_cv_header_net_if_h" in
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8663 typedef union mpinfou {
8664 struct pdk_mpinfo *pdkptr;
8665 struct mpinfo *pikptr;
8667 #ifdef HAVE_SYS_SOCKET_H
8668 # include <sys/socket.h>
8682 if ac_fn_c_try_compile "$LINENO"; then :
8684 ntp_cv_predecl_mpinfou=yes
8685 ac_cv_header_net_if_h=yes
8689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
8695 $as_echo "$ntp_cv_predecl_mpinfou" >&6; }
8696 case "$ntp_cv_predecl_mpinfou" in
8698 cat >>confdefs.h <<_ACEOF
8699 #ifndef MPINFOU_PREDECLARED
8700 # define MPINFOU_PREDECLARED
8701 typedef union mpinfou {
8702 struct pdk_mpinfo *pdkptr;
8703 struct mpinfo *pikptr;
8713 for ac_header in linux/if_addr.h
8715 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
8716 #ifdef HAVE_SYS_SOCKET_H
8717 # include <sys/socket.h>
8721 if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
8722 cat >>confdefs.h <<_ACEOF
8723 #define HAVE_LINUX_IF_ADDR_H 1
8731 $as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h
8735 for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
8737 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8738 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8739 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8740 cat >>confdefs.h <<_ACEOF
8741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8748 # sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
8749 for ac_header in sys/sysctl.h
8751 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
8752 #if defined HAVE_SYS_PARAM_H
8753 # include <sys/param.h>
8757 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
8758 cat >>confdefs.h <<_ACEOF
8759 #define HAVE_SYS_SYSCTL_H 1
8766 for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
8768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8769 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8770 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8771 cat >>confdefs.h <<_ACEOF
8772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8780 for ac_header in resolv.h
8782 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
8783 #ifdef HAVE_SYS_TYPES_H
8784 # include <sys/types.h>
8786 #ifdef HAVE_NETINET_IN_H
8787 # include <netinet/in.h>
8789 #ifdef HAVE_ARPA_NAMESER_H
8790 # include <arpa/nameser.h>
8794 if test "x$ac_cv_header_resolv_h" = xyes; then :
8795 cat >>confdefs.h <<_ACEOF
8796 #define HAVE_RESOLV_H 1
8804 for ac_header in net/if_var.h
8806 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
8807 #if HAVE_SYS_TYPES_H
8808 # include <sys/types.h>
8810 #ifdef HAVE_SYS_SOCKET_H
8811 # include <sys/socket.h>
8813 #ifdef HAVE_NETINET_IN_H
8814 # include <netinet/in.h>
8816 #ifdef HAVE_NET_IF_H
8817 # include <net/if.h>
8821 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
8822 cat >>confdefs.h <<_ACEOF
8823 #define HAVE_NET_IF_VAR_H 1
8831 for ac_header in netinet/ip.h netinet/in_var.h
8833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8834 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8835 #ifdef HAVE_SYS_TYPES_H
8836 # include <sys/types.h>
8838 #ifdef HAVE_SYS_SOCKET_H
8839 # include <sys/socket.h>
8841 #ifdef HAVE_NET_IF_H
8842 # include <net/if.h>
8844 #ifdef HAVE_NETINET_IN_H
8845 # include <netinet/in.h>
8847 #ifdef HAVE_NET_IF_VAR_H
8848 # include <net/if_var.h>
8850 #ifdef HAVE_NETINET_IN_SYSTM_H
8851 # include <netinet/in_systm.h>
8855 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8856 cat >>confdefs.h <<_ACEOF
8857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8865 # HMS: Do we need to check for -lsocket before or after these tests?
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
8867 $as_echo_n "checking for library containing inet_pton... " >&6; }
8868 if ${ac_cv_search_inet_pton+:} false; then :
8869 $as_echo_n "(cached) " >&6
8871 ac_func_search_save_LIBS=$LIBS
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8875 /* Override any GCC internal prototype to avoid an error.
8876 Use char because int might match the return type of a GCC
8877 builtin and then its argument prototype would still apply. */
8885 return inet_pton ();
8890 for ac_lib in '' nsl; do
8891 if test -z "$ac_lib"; then
8892 ac_res="none required"
8895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8897 if ac_fn_c_try_link "$LINENO"; then :
8898 ac_cv_search_inet_pton=$ac_res
8900 rm -f core conftest.err conftest.$ac_objext \
8902 if ${ac_cv_search_inet_pton+:} false; then :
8906 if ${ac_cv_search_inet_pton+:} false; then :
8909 ac_cv_search_inet_pton=no
8912 LIBS=$ac_func_search_save_LIBS
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
8915 $as_echo "$ac_cv_search_inet_pton" >&6; }
8916 ac_res=$ac_cv_search_inet_pton
8917 if test "$ac_res" != no; then :
8918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8919 case "$ac_cv_search_inet_pton" in
8922 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
8928 $as_echo_n "checking for library containing inet_ntop... " >&6; }
8929 if ${ac_cv_search_inet_ntop+:} false; then :
8930 $as_echo_n "(cached) " >&6
8932 ac_func_search_save_LIBS=$LIBS
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8936 /* Override any GCC internal prototype to avoid an error.
8937 Use char because int might match the return type of a GCC
8938 builtin and then its argument prototype would still apply. */
8946 return inet_ntop ();
8951 for ac_lib in '' resolv; do
8952 if test -z "$ac_lib"; then
8953 ac_res="none required"
8956 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
8958 if ac_fn_c_try_link "$LINENO"; then :
8959 ac_cv_search_inet_ntop=$ac_res
8961 rm -f core conftest.err conftest.$ac_objext \
8963 if ${ac_cv_search_inet_ntop+:} false; then :
8967 if ${ac_cv_search_inet_ntop+:} false; then :
8970 ac_cv_search_inet_ntop=no
8973 LIBS=$ac_func_search_save_LIBS
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
8976 $as_echo "$ac_cv_search_inet_ntop" >&6; }
8977 ac_res=$ac_cv_search_inet_ntop
8978 if test "$ac_res" != no; then :
8979 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8980 case "$ac_cv_search_inet_ntop" in
8983 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
8989 # [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to
8990 # avoid keying on the OS name: If we find socket functions in
8991 # libsocket, next try for them in libxnet without libsocket, if found,
8992 # list both. If we simply tested libxnet first, we would find the
8993 # functions there and never add libsocket. See also [Bug 660]
8994 # http://bugs.ntp.org/show_bug.cgi?id=660#c9
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
8997 $as_echo_n "checking for library containing setsockopt... " >&6; }
8998 if ${ac_cv_search_setsockopt+:} false; then :
8999 $as_echo_n "(cached) " >&6
9001 ac_func_search_save_LIBS=$LIBS
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9005 /* Override any GCC internal prototype to avoid an error.
9006 Use char because int might match the return type of a GCC
9007 builtin and then its argument prototype would still apply. */
9015 return setsockopt ();
9020 for ac_lib in '' socket; do
9021 if test -z "$ac_lib"; then
9022 ac_res="none required"
9025 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9027 if ac_fn_c_try_link "$LINENO"; then :
9028 ac_cv_search_setsockopt=$ac_res
9030 rm -f core conftest.err conftest.$ac_objext \
9032 if ${ac_cv_search_setsockopt+:} false; then :
9036 if ${ac_cv_search_setsockopt+:} false; then :
9039 ac_cv_search_setsockopt=no
9042 LIBS=$ac_func_search_save_LIBS
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
9045 $as_echo "$ac_cv_search_setsockopt" >&6; }
9046 ac_res=$ac_cv_search_setsockopt
9047 if test "$ac_res" != no; then :
9048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9049 case "$ac_cv_search_setsockopt" in
9052 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
9057 case "$ac_cv_search_setsockopt" in
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
9061 $as_echo_n "checking for library containing getsockopt... " >&6; }
9062 if ${ac_cv_search_getsockopt+:} false; then :
9063 $as_echo_n "(cached) " >&6
9065 ac_func_search_save_LIBS=$LIBS
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9069 /* Override any GCC internal prototype to avoid an error.
9070 Use char because int might match the return type of a GCC
9071 builtin and then its argument prototype would still apply. */
9079 return getsockopt ();
9084 for ac_lib in '' xnet; do
9085 if test -z "$ac_lib"; then
9086 ac_res="none required"
9089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9091 if ac_fn_c_try_link "$LINENO"; then :
9092 ac_cv_search_getsockopt=$ac_res
9094 rm -f core conftest.err conftest.$ac_objext \
9096 if ${ac_cv_search_getsockopt+:} false; then :
9100 if ${ac_cv_search_getsockopt+:} false; then :
9103 ac_cv_search_getsockopt=no
9106 LIBS=$ac_func_search_save_LIBS
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
9109 $as_echo "$ac_cv_search_getsockopt" >&6; }
9110 ac_res=$ac_cv_search_getsockopt
9111 if test "$ac_res" != no; then :
9112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9113 case "$ac_cv_search_getsockopt" in
9116 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
9121 # XXX Possible trouble here - reading the comments above and looking at the
9122 # code below I wonder if we'll add -lxnet when we don't need it.
9123 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
9124 # there when it is not needed?
9125 case "$ac_cv_search_getsockopt" in
9127 LIBS="-lxnet -lsocket $saved_LIBS"
9129 *) LIBS="-lsocket $saved_LIBS"
9134 { saved_LIBS=; unset saved_LIBS;}
9136 # Bug 2427 - look for recvmsg here.
9137 for ac_func in recvmsg
9139 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
9140 if test "x$ac_cv_func_recvmsg" = xyes; then :
9141 cat >>confdefs.h <<_ACEOF
9142 #define HAVE_RECVMSG 1
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9150 $as_echo_n "checking for inline... " >&6; }
9151 if ${ac_cv_c_inline+:} false; then :
9152 $as_echo_n "(cached) " >&6
9155 for ac_kw in inline __inline__ __inline; do
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9160 static $ac_kw foo_t static_foo () {return 0; }
9161 $ac_kw foo_t foo () {return 0; }
9165 if ac_fn_c_try_compile "$LINENO"; then :
9166 ac_cv_c_inline=$ac_kw
9168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9169 test "$ac_cv_c_inline" != no && break
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9174 $as_echo "$ac_cv_c_inline" >&6; }
9176 case $ac_cv_c_inline in
9179 case $ac_cv_c_inline in
9181 *) ac_val=$ac_cv_c_inline;;
9183 cat >>confdefs.h <<_ACEOF
9185 #define inline $ac_val
9192 case "$ac_cv_c_inline" in
9197 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9203 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9204 if ${ac_cv_header_time+:} false; then :
9205 $as_echo_n "(cached) " >&6
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9209 #include <sys/types.h>
9210 #include <sys/time.h>
9216 if ((struct tm *) 0)
9222 if ac_fn_c_try_compile "$LINENO"; then :
9223 ac_cv_header_time=yes
9225 ac_cv_header_time=no
9227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9230 $as_echo "$ac_cv_header_time" >&6; }
9231 if test $ac_cv_header_time = yes; then
9233 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9237 # The cast to long int works around a bug in the HP C Compiler
9238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9240 # This bug is HP SR number 8606223364.
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
9242 $as_echo_n "checking size of time_t... " >&6; }
9243 if ${ac_cv_sizeof_time_t+:} false; then :
9244 $as_echo_n "(cached) " >&6
9246 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
9249 if test "$ac_cv_type_time_t" = yes; then
9250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9252 as_fn_error 77 "cannot compute sizeof (time_t)
9253 See \`config.log' for more details" "$LINENO" 5; }
9255 ac_cv_sizeof_time_t=0
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
9261 $as_echo "$ac_cv_sizeof_time_t" >&6; }
9265 cat >>confdefs.h <<_ACEOF
9266 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
9271 $as_echo_n "checking whether char is unsigned... " >&6; }
9272 if ${ac_cv_c_char_unsigned+:} false; then :
9273 $as_echo_n "(cached) " >&6
9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276 /* end confdefs.h. */
9277 $ac_includes_default
9281 static int test_array [1 - 2 * !(((char) -1) < 0)];
9283 return test_array [0];
9289 if ac_fn_c_try_compile "$LINENO"; then :
9290 ac_cv_c_char_unsigned=no
9292 ac_cv_c_char_unsigned=yes
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
9297 $as_echo "$ac_cv_c_char_unsigned" >&6; }
9298 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
9299 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
9302 # The cast to long int works around a bug in the HP C Compiler
9303 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9304 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9305 # This bug is HP SR number 8606223364.
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
9307 $as_echo_n "checking size of signed char... " >&6; }
9308 if ${ac_cv_sizeof_signed_char+:} false; then :
9309 $as_echo_n "(cached) " >&6
9311 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
9314 if test "$ac_cv_type_signed_char" = yes; then
9315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9317 as_fn_error 77 "cannot compute sizeof (signed char)
9318 See \`config.log' for more details" "$LINENO" 5; }
9320 ac_cv_sizeof_signed_char=0
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
9326 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
9330 cat >>confdefs.h <<_ACEOF
9331 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
9335 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
9336 if test "x$ac_cv_type_s_char" = xyes; then :
9338 cat >>confdefs.h <<_ACEOF
9339 #define HAVE_S_CHAR 1
9344 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
9345 if test "x$ac_cv_type_long_long" = xyes; then :
9347 cat >>confdefs.h <<_ACEOF
9348 #define HAVE_LONG_LONG 1
9354 # The cast to long int works around a bug in the HP C Compiler
9355 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9356 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9357 # This bug is HP SR number 8606223364.
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
9359 $as_echo_n "checking size of short... " >&6; }
9360 if ${ac_cv_sizeof_short+:} false; then :
9361 $as_echo_n "(cached) " >&6
9363 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
9366 if test "$ac_cv_type_short" = yes; then
9367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9369 as_fn_error 77 "cannot compute sizeof (short)
9370 See \`config.log' for more details" "$LINENO" 5; }
9372 ac_cv_sizeof_short=0
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
9378 $as_echo "$ac_cv_sizeof_short" >&6; }
9382 cat >>confdefs.h <<_ACEOF
9383 #define SIZEOF_SHORT $ac_cv_sizeof_short
9387 # The cast to long int works around a bug in the HP C Compiler
9388 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9389 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9390 # This bug is HP SR number 8606223364.
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
9392 $as_echo_n "checking size of int... " >&6; }
9393 if ${ac_cv_sizeof_int+:} false; then :
9394 $as_echo_n "(cached) " >&6
9396 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
9399 if test "$ac_cv_type_int" = yes; then
9400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9402 as_fn_error 77 "cannot compute sizeof (int)
9403 See \`config.log' for more details" "$LINENO" 5; }
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
9411 $as_echo "$ac_cv_sizeof_int" >&6; }
9415 cat >>confdefs.h <<_ACEOF
9416 #define SIZEOF_INT $ac_cv_sizeof_int
9420 # The cast to long int works around a bug in the HP C Compiler
9421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9423 # This bug is HP SR number 8606223364.
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9425 $as_echo_n "checking size of long... " >&6; }
9426 if ${ac_cv_sizeof_long+:} false; then :
9427 $as_echo_n "(cached) " >&6
9429 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
9432 if test "$ac_cv_type_long" = yes; then
9433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9435 as_fn_error 77 "cannot compute sizeof (long)
9436 See \`config.log' for more details" "$LINENO" 5; }
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9444 $as_echo "$ac_cv_sizeof_long" >&6; }
9448 cat >>confdefs.h <<_ACEOF
9449 #define SIZEOF_LONG $ac_cv_sizeof_long
9454 case "$ac_cv_type_long_long" in
9458 # The cast to long int works around a bug in the HP C Compiler
9459 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9460 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9461 # This bug is HP SR number 8606223364.
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
9463 $as_echo_n "checking size of long long... " >&6; }
9464 if ${ac_cv_sizeof_long_long+:} false; then :
9465 $as_echo_n "(cached) " >&6
9467 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
9470 if test "$ac_cv_type_long_long" = yes; then
9471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9473 as_fn_error 77 "cannot compute sizeof (long long)
9474 See \`config.log' for more details" "$LINENO" 5; }
9476 ac_cv_sizeof_long_long=0
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
9482 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9486 cat >>confdefs.h <<_ACEOF
9487 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9494 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
9496 # We have a typedef for s_char. Might as well believe it...
9499 # We have signed chars, can't say 'signed char', no s_char typedef.
9501 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
9505 # We have signed chars, can say 'signed char', no s_char typedef.
9507 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
9511 # We have unsigned chars, can't say 'signed char', no s_char typedef.
9512 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
9515 # We have unsigned chars, can say 'signed char', no s_char typedef.
9517 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9523 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9524 if ${ac_cv_type_uid_t+:} false; then :
9525 $as_echo_n "(cached) " >&6
9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528 /* end confdefs.h. */
9529 #include <sys/types.h>
9532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9533 $EGREP "uid_t" >/dev/null 2>&1; then :
9534 ac_cv_type_uid_t=yes
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9542 $as_echo "$ac_cv_type_uid_t" >&6; }
9543 if test $ac_cv_type_uid_t = no; then
9545 $as_echo "#define uid_t int" >>confdefs.h
9548 $as_echo "#define gid_t int" >>confdefs.h
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
9558 $as_echo_n "checking if we're including debugging code... " >&6; }
9559 # Check whether --enable-debugging was given.
9560 if test "${enable_debugging+set}" = set; then :
9561 enableval=$enable_debugging; ntp_ok=$enableval
9570 $as_echo "#define DEBUG 1" >>confdefs.h
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
9574 $as_echo "$ntp_ok" >&6; }
9578 # check if we can compile with pthreads
9579 for ac_header in semaphore.h
9581 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
9582 if test "x$ac_cv_header_semaphore_h" = xyes; then :
9583 cat >>confdefs.h <<_ACEOF
9584 #define HAVE_SEMAPHORE_H 1
9591 for ac_func in socketpair
9593 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
9594 if test "x$ac_cv_func_socketpair" = xyes; then :
9595 cat >>confdefs.h <<_ACEOF
9596 #define HAVE_SOCKETPAIR 1
9602 # Check whether --enable-thread-support was given.
9603 if test "${enable_thread_support+set}" = set; then :
9604 enableval=$enable_thread_support;
9606 enable_thread_support=yes
9611 case "$enable_thread_support" in
9614 ol_found_pthreads=no
9619 ac_cpp='$CPP $CPPFLAGS'
9620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9624 # OpenLDAP --with-threads
9626 # Check whether --with-threads was given.
9627 if test "${with_threads+set}" = set; then :
9628 withval=$with_threads;
9630 for ol_val in auto nt posix mach pth lwp yes no manual ; do
9631 if test "$withval" = "$ol_val" ; then
9635 if test "$ol_arg" = "invalid" ; then
9636 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
9638 ol_with_threads="$ol_arg"
9641 ol_with_threads="auto"
9643 # end --with-threads
9646 case "$ol_with_threads$host" in
9647 auto*-*-solaris2.[0-6])
9655 *-*-aix*) if test -z "$CC" ; then
9656 case "$ol_with_threads" in
9657 auto | yes | posix) ol_aix_threads=yes ;;
9663 if test $ol_aix_threads = yes ; then
9664 if test -z "${CC}" ; then
9665 for ac_prog in cc_r xlc_r cc
9667 # Extract the first word of "$ac_prog", so it can be a program name with args.
9668 set dummy $ac_prog; ac_word=$2
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9670 $as_echo_n "checking for $ac_word... " >&6; }
9671 if ${ac_cv_prog_CC+:} false; then :
9672 $as_echo_n "(cached) " >&6
9674 if test -n "$CC"; then
9675 ac_cv_prog_CC="$CC" # Let the user override the test.
9677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 test -z "$as_dir" && as_dir=.
9682 for ac_exec_ext in '' $ac_executable_extensions; do
9683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9684 ac_cv_prog_CC="$ac_prog"
9685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 if test -n "$CC"; then
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9697 $as_echo "$CC" >&6; }
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700 $as_echo "no" >&6; }
9704 test -n "$CC" && break
9708 if test "$CC" = cc ; then
9709 if test $ol_with_threads != auto ; then
9710 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
9713 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
9719 case ${CC} in cc_r | xlc_r)
9720 ol_with_threads=posix
9721 ol_cv_pthread_create=yes
9727 # OpenLDAP --with-yielding_select
9729 # Check whether --with-yielding_select was given.
9730 if test "${with_yielding_select+set}" = set; then :
9731 withval=$with_yielding_select;
9733 for ol_val in auto yes no manual ; do
9734 if test "$withval" = "$ol_val" ; then
9738 if test "$ol_arg" = "invalid" ; then
9739 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
9741 ol_with_yielding_select="$ol_arg"
9744 ol_with_yielding_select="auto"
9746 # end --with-yielding_select
9749 case $ol_with_threads in auto | yes | nt)
9752 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
9753 if test "x$ac_cv_func__beginthread" = xyes; then :
9758 if test $ac_cv_func__beginthread = yes ; then
9760 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
9762 ol_cv_nt_threads=yes
9766 if test "$ol_cv_nt_threads" = yes ; then
9768 ol_with_threads=found
9769 ol_with_yielding_select=yes
9772 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
9775 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
9779 if test $ol_with_threads = nt ; then
9780 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
9785 case $ol_with_threads in auto | yes | posix)
9787 for ac_header in pthread.h
9789 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9790 if test "x$ac_cv_header_pthread_h" = xyes; then :
9791 cat >>confdefs.h <<_ACEOF
9792 #define HAVE_PTHREAD_H 1
9800 if test $ac_cv_header_pthread_h = yes ; then
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
9802 $as_echo_n "checking POSIX thread version... " >&6; }
9803 if ${ol_cv_pthread_version+:} false; then :
9804 $as_echo_n "(cached) " >&6
9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h. */
9810 # include <pthread.h>
9816 int i = PTHREAD_CREATE_JOINABLE;
9822 if ac_fn_c_try_compile "$LINENO"; then :
9824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825 /* end confdefs.h. */
9826 #include <pthread.h>
9829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9830 $EGREP "pthread_detach" >/dev/null 2>&1; then :
9831 ol_cv_pthread_version=10
9833 ol_cv_pthread_version=8
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9842 # include <pthread.h>
9843 # ifdef PTHREAD_CREATE_UNDETACHED
9848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9849 $EGREP "draft7" >/dev/null 2>&1; then :
9850 ol_cv_pthread_version=7
9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854 /* end confdefs.h. */
9855 #include <pthread.h>
9858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9859 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
9860 ol_cv_pthread_version=6
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9866 # include <pthread.h>
9867 #ifdef PTHREAD_MUTEX_INITIALIZER
9872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9873 $EGREP "draft5" >/dev/null 2>&1; then :
9874 ol_cv_pthread_version=5
9876 ol_cv_pthread_version=4
9887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
9891 $as_echo "$ol_cv_pthread_version" >&6; }
9894 if test $ol_cv_pthread_version != 0 ; then
9896 cat >>confdefs.h <<_ACEOF
9897 #define HAVE_PTHREADS $ol_cv_pthread_version
9901 as_fn_error $? "unknown pthread version" "$LINENO" 5
9904 # consider threads found
9905 ol_with_threads=found
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
9909 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
9910 if ${ol_cv_header_linux_threads+:} false; then :
9911 $as_echo_n "(cached) " >&6
9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h. */
9915 #include <pthread.h>
9917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9918 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
9919 ol_cv_header_linux_threads=yes
9921 ol_cv_header_linux_threads=no
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
9928 $as_echo "$ol_cv_header_linux_threads" >&6; }
9929 if test $ol_cv_header_linux_threads = yes; then
9931 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
9937 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
9938 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
9939 $as_echo_n "(cached) " >&6
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9943 #include <pthread.h>
9944 #ifdef _POSIX_THREAD_IS_GNU_PTH
9949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9950 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
9951 ol_cv_header_gnu_pth_pthread_h=yes
9953 ol_cv_header_gnu_pth_pthread_h=no
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
9960 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
9963 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
9964 for ac_header in sched.h
9966 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
9967 if test "x$ac_cv_header_sched_h" = xyes; then :
9968 cat >>confdefs.h <<_ACEOF
9969 #define HAVE_SCHED_H 1
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
9980 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
9981 if ${ol_cv_pthread_create+:} false; then :
9982 $as_echo_n "(cached) " >&6
9985 if test "$cross_compiling" = yes; then :
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h. */
9989 /* pthread test headers */
9990 #include <pthread.h>
9991 #if HAVE_PTHREADS < 7
9995 #define NULL (void*)0
9998 static void *task(p)
10001 return (void *) (p == NULL);
10008 /* pthread test function */
10009 #ifndef PTHREAD_CREATE_DETACHED
10010 #define PTHREAD_CREATE_DETACHED 1
10014 int detach = PTHREAD_CREATE_DETACHED;
10016 #if HAVE_PTHREADS > 4
10017 /* Final pthreads */
10018 pthread_attr_t attr;
10020 status = pthread_attr_init(&attr);
10021 if( status ) return status;
10023 #if HAVE_PTHREADS < 7
10024 status = pthread_attr_setdetachstate(&attr, &detach);
10025 if( status < 0 ) status = errno;
10027 status = pthread_attr_setdetachstate(&attr, detach);
10029 if( status ) return status;
10030 status = pthread_create( &t, &attr, task, NULL );
10031 #if HAVE_PTHREADS < 7
10032 if( status < 0 ) status = errno;
10034 if( status ) return status;
10036 /* Draft 4 pthreads */
10037 status = pthread_create( &t, pthread_attr_default, task, NULL );
10038 if( status ) return errno;
10040 /* give thread a chance to complete */
10041 /* it should remain joinable and hence detachable */
10044 status = pthread_detach( &t );
10045 if( status ) return errno;
10048 #ifdef HAVE_LINUX_THREADS
10049 pthread_kill_other_threads_np();
10058 if ac_fn_c_try_link "$LINENO"; then :
10059 ol_cv_pthread_create=yes
10061 ol_cv_pthread_create=no
10063 rm -f core conftest.err conftest.$ac_objext \
10064 conftest$ac_exeext conftest.$ac_ext
10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h. */
10070 /* pthread test headers */
10071 #include <pthread.h>
10072 #if HAVE_PTHREADS < 7
10076 #define NULL (void*)0
10079 static void *task(p)
10082 return (void *) (p == NULL);
10086 int main(argc, argv)
10091 /* pthread test function */
10092 #ifndef PTHREAD_CREATE_DETACHED
10093 #define PTHREAD_CREATE_DETACHED 1
10097 int detach = PTHREAD_CREATE_DETACHED;
10099 #if HAVE_PTHREADS > 4
10100 /* Final pthreads */
10101 pthread_attr_t attr;
10103 status = pthread_attr_init(&attr);
10104 if( status ) return status;
10106 #if HAVE_PTHREADS < 7
10107 status = pthread_attr_setdetachstate(&attr, &detach);
10108 if( status < 0 ) status = errno;
10110 status = pthread_attr_setdetachstate(&attr, detach);
10112 if( status ) return status;
10113 status = pthread_create( &t, &attr, task, NULL );
10114 #if HAVE_PTHREADS < 7
10115 if( status < 0 ) status = errno;
10117 if( status ) return status;
10119 /* Draft 4 pthreads */
10120 status = pthread_create( &t, pthread_attr_default, task, NULL );
10121 if( status ) return errno;
10123 /* give thread a chance to complete */
10124 /* it should remain joinable and hence detachable */
10127 status = pthread_detach( &t );
10128 if( status ) return errno;
10131 #ifdef HAVE_LINUX_THREADS
10132 pthread_kill_other_threads_np();
10140 if ac_fn_c_try_run "$LINENO"; then :
10141 ol_cv_pthread_create=yes
10143 ol_cv_pthread_create=no
10145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10146 conftest.$ac_objext conftest.beam conftest.$ac_ext
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
10151 $as_echo "$ol_cv_pthread_create" >&6; }
10153 if test $ol_cv_pthread_create != no ; then
10154 ol_link_threads=posix
10155 ol_link_pthreads=""
10158 # Pthread try link: -kthread (ol_cv_pthread_kthread)
10159 if test "$ol_link_threads" = no ; then
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
10162 $as_echo_n "checking for pthread link with -kthread... " >&6; }
10163 if ${ol_cv_pthread_kthread+:} false; then :
10164 $as_echo_n "(cached) " >&6
10169 LIBS="-kthread $LIBS"
10171 if test "$cross_compiling" = yes; then :
10172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h. */
10175 /* pthread test headers */
10176 #include <pthread.h>
10177 #if HAVE_PTHREADS < 7
10181 #define NULL (void*)0
10184 static void *task(p)
10187 return (void *) (p == NULL);
10194 /* pthread test function */
10195 #ifndef PTHREAD_CREATE_DETACHED
10196 #define PTHREAD_CREATE_DETACHED 1
10200 int detach = PTHREAD_CREATE_DETACHED;
10202 #if HAVE_PTHREADS > 4
10203 /* Final pthreads */
10204 pthread_attr_t attr;
10206 status = pthread_attr_init(&attr);
10207 if( status ) return status;
10209 #if HAVE_PTHREADS < 7
10210 status = pthread_attr_setdetachstate(&attr, &detach);
10211 if( status < 0 ) status = errno;
10213 status = pthread_attr_setdetachstate(&attr, detach);
10215 if( status ) return status;
10216 status = pthread_create( &t, &attr, task, NULL );
10217 #if HAVE_PTHREADS < 7
10218 if( status < 0 ) status = errno;
10220 if( status ) return status;
10222 /* Draft 4 pthreads */
10223 status = pthread_create( &t, pthread_attr_default, task, NULL );
10224 if( status ) return errno;
10226 /* give thread a chance to complete */
10227 /* it should remain joinable and hence detachable */
10230 status = pthread_detach( &t );
10231 if( status ) return errno;
10234 #ifdef HAVE_LINUX_THREADS
10235 pthread_kill_other_threads_np();
10244 if ac_fn_c_try_link "$LINENO"; then :
10245 ol_cv_pthread_kthread=yes
10247 ol_cv_pthread_kthread=no
10249 rm -f core conftest.err conftest.$ac_objext \
10250 conftest$ac_exeext conftest.$ac_ext
10252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253 /* end confdefs.h. */
10256 /* pthread test headers */
10257 #include <pthread.h>
10258 #if HAVE_PTHREADS < 7
10262 #define NULL (void*)0
10265 static void *task(p)
10268 return (void *) (p == NULL);
10272 int main(argc, argv)
10277 /* pthread test function */
10278 #ifndef PTHREAD_CREATE_DETACHED
10279 #define PTHREAD_CREATE_DETACHED 1
10283 int detach = PTHREAD_CREATE_DETACHED;
10285 #if HAVE_PTHREADS > 4
10286 /* Final pthreads */
10287 pthread_attr_t attr;
10289 status = pthread_attr_init(&attr);
10290 if( status ) return status;
10292 #if HAVE_PTHREADS < 7
10293 status = pthread_attr_setdetachstate(&attr, &detach);
10294 if( status < 0 ) status = errno;
10296 status = pthread_attr_setdetachstate(&attr, detach);
10298 if( status ) return status;
10299 status = pthread_create( &t, &attr, task, NULL );
10300 #if HAVE_PTHREADS < 7
10301 if( status < 0 ) status = errno;
10303 if( status ) return status;
10305 /* Draft 4 pthreads */
10306 status = pthread_create( &t, pthread_attr_default, task, NULL );
10307 if( status ) return errno;
10309 /* give thread a chance to complete */
10310 /* it should remain joinable and hence detachable */
10313 status = pthread_detach( &t );
10314 if( status ) return errno;
10317 #ifdef HAVE_LINUX_THREADS
10318 pthread_kill_other_threads_np();
10326 if ac_fn_c_try_run "$LINENO"; then :
10327 ol_cv_pthread_kthread=yes
10329 ol_cv_pthread_kthread=no
10331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10332 conftest.$ac_objext conftest.beam conftest.$ac_ext
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
10341 $as_echo "$ol_cv_pthread_kthread" >&6; }
10343 if test $ol_cv_pthread_kthread = yes ; then
10344 ol_link_pthreads="-kthread"
10345 ol_link_threads=posix
10349 # Pthread try link: -pthread (ol_cv_pthread_pthread)
10350 if test "$ol_link_threads" = no ; then
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
10353 $as_echo_n "checking for pthread link with -pthread... " >&6; }
10354 if ${ol_cv_pthread_pthread+:} false; then :
10355 $as_echo_n "(cached) " >&6
10360 LIBS="-pthread $LIBS"
10362 if test "$cross_compiling" = yes; then :
10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10366 /* pthread test headers */
10367 #include <pthread.h>
10368 #if HAVE_PTHREADS < 7
10372 #define NULL (void*)0
10375 static void *task(p)
10378 return (void *) (p == NULL);
10385 /* pthread test function */
10386 #ifndef PTHREAD_CREATE_DETACHED
10387 #define PTHREAD_CREATE_DETACHED 1
10391 int detach = PTHREAD_CREATE_DETACHED;
10393 #if HAVE_PTHREADS > 4
10394 /* Final pthreads */
10395 pthread_attr_t attr;
10397 status = pthread_attr_init(&attr);
10398 if( status ) return status;
10400 #if HAVE_PTHREADS < 7
10401 status = pthread_attr_setdetachstate(&attr, &detach);
10402 if( status < 0 ) status = errno;
10404 status = pthread_attr_setdetachstate(&attr, detach);
10406 if( status ) return status;
10407 status = pthread_create( &t, &attr, task, NULL );
10408 #if HAVE_PTHREADS < 7
10409 if( status < 0 ) status = errno;
10411 if( status ) return status;
10413 /* Draft 4 pthreads */
10414 status = pthread_create( &t, pthread_attr_default, task, NULL );
10415 if( status ) return errno;
10417 /* give thread a chance to complete */
10418 /* it should remain joinable and hence detachable */
10421 status = pthread_detach( &t );
10422 if( status ) return errno;
10425 #ifdef HAVE_LINUX_THREADS
10426 pthread_kill_other_threads_np();
10435 if ac_fn_c_try_link "$LINENO"; then :
10436 ol_cv_pthread_pthread=yes
10438 ol_cv_pthread_pthread=no
10440 rm -f core conftest.err conftest.$ac_objext \
10441 conftest$ac_exeext conftest.$ac_ext
10443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h. */
10447 /* pthread test headers */
10448 #include <pthread.h>
10449 #if HAVE_PTHREADS < 7
10453 #define NULL (void*)0
10456 static void *task(p)
10459 return (void *) (p == NULL);
10463 int main(argc, argv)
10468 /* pthread test function */
10469 #ifndef PTHREAD_CREATE_DETACHED
10470 #define PTHREAD_CREATE_DETACHED 1
10474 int detach = PTHREAD_CREATE_DETACHED;
10476 #if HAVE_PTHREADS > 4
10477 /* Final pthreads */
10478 pthread_attr_t attr;
10480 status = pthread_attr_init(&attr);
10481 if( status ) return status;
10483 #if HAVE_PTHREADS < 7
10484 status = pthread_attr_setdetachstate(&attr, &detach);
10485 if( status < 0 ) status = errno;
10487 status = pthread_attr_setdetachstate(&attr, detach);
10489 if( status ) return status;
10490 status = pthread_create( &t, &attr, task, NULL );
10491 #if HAVE_PTHREADS < 7
10492 if( status < 0 ) status = errno;
10494 if( status ) return status;
10496 /* Draft 4 pthreads */
10497 status = pthread_create( &t, pthread_attr_default, task, NULL );
10498 if( status ) return errno;
10500 /* give thread a chance to complete */
10501 /* it should remain joinable and hence detachable */
10504 status = pthread_detach( &t );
10505 if( status ) return errno;
10508 #ifdef HAVE_LINUX_THREADS
10509 pthread_kill_other_threads_np();
10517 if ac_fn_c_try_run "$LINENO"; then :
10518 ol_cv_pthread_pthread=yes
10520 ol_cv_pthread_pthread=no
10522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10523 conftest.$ac_objext conftest.beam conftest.$ac_ext
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
10532 $as_echo "$ol_cv_pthread_pthread" >&6; }
10534 if test $ol_cv_pthread_pthread = yes ; then
10535 ol_link_pthreads="-pthread"
10536 ol_link_threads=posix
10540 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
10541 if test "$ol_link_threads" = no ; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
10544 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
10545 if ${ol_cv_pthread_pthreads+:} false; then :
10546 $as_echo_n "(cached) " >&6
10551 LIBS="-pthreads $LIBS"
10553 if test "$cross_compiling" = yes; then :
10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10557 /* pthread test headers */
10558 #include <pthread.h>
10559 #if HAVE_PTHREADS < 7
10563 #define NULL (void*)0
10566 static void *task(p)
10569 return (void *) (p == NULL);
10576 /* pthread test function */
10577 #ifndef PTHREAD_CREATE_DETACHED
10578 #define PTHREAD_CREATE_DETACHED 1
10582 int detach = PTHREAD_CREATE_DETACHED;
10584 #if HAVE_PTHREADS > 4
10585 /* Final pthreads */
10586 pthread_attr_t attr;
10588 status = pthread_attr_init(&attr);
10589 if( status ) return status;
10591 #if HAVE_PTHREADS < 7
10592 status = pthread_attr_setdetachstate(&attr, &detach);
10593 if( status < 0 ) status = errno;
10595 status = pthread_attr_setdetachstate(&attr, detach);
10597 if( status ) return status;
10598 status = pthread_create( &t, &attr, task, NULL );
10599 #if HAVE_PTHREADS < 7
10600 if( status < 0 ) status = errno;
10602 if( status ) return status;
10604 /* Draft 4 pthreads */
10605 status = pthread_create( &t, pthread_attr_default, task, NULL );
10606 if( status ) return errno;
10608 /* give thread a chance to complete */
10609 /* it should remain joinable and hence detachable */
10612 status = pthread_detach( &t );
10613 if( status ) return errno;
10616 #ifdef HAVE_LINUX_THREADS
10617 pthread_kill_other_threads_np();
10626 if ac_fn_c_try_link "$LINENO"; then :
10627 ol_cv_pthread_pthreads=yes
10629 ol_cv_pthread_pthreads=no
10631 rm -f core conftest.err conftest.$ac_objext \
10632 conftest$ac_exeext conftest.$ac_ext
10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h. */
10638 /* pthread test headers */
10639 #include <pthread.h>
10640 #if HAVE_PTHREADS < 7
10644 #define NULL (void*)0
10647 static void *task(p)
10650 return (void *) (p == NULL);
10654 int main(argc, argv)
10659 /* pthread test function */
10660 #ifndef PTHREAD_CREATE_DETACHED
10661 #define PTHREAD_CREATE_DETACHED 1
10665 int detach = PTHREAD_CREATE_DETACHED;
10667 #if HAVE_PTHREADS > 4
10668 /* Final pthreads */
10669 pthread_attr_t attr;
10671 status = pthread_attr_init(&attr);
10672 if( status ) return status;
10674 #if HAVE_PTHREADS < 7
10675 status = pthread_attr_setdetachstate(&attr, &detach);
10676 if( status < 0 ) status = errno;
10678 status = pthread_attr_setdetachstate(&attr, detach);
10680 if( status ) return status;
10681 status = pthread_create( &t, &attr, task, NULL );
10682 #if HAVE_PTHREADS < 7
10683 if( status < 0 ) status = errno;
10685 if( status ) return status;
10687 /* Draft 4 pthreads */
10688 status = pthread_create( &t, pthread_attr_default, task, NULL );
10689 if( status ) return errno;
10691 /* give thread a chance to complete */
10692 /* it should remain joinable and hence detachable */
10695 status = pthread_detach( &t );
10696 if( status ) return errno;
10699 #ifdef HAVE_LINUX_THREADS
10700 pthread_kill_other_threads_np();
10708 if ac_fn_c_try_run "$LINENO"; then :
10709 ol_cv_pthread_pthreads=yes
10711 ol_cv_pthread_pthreads=no
10713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10714 conftest.$ac_objext conftest.beam conftest.$ac_ext
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
10723 $as_echo "$ol_cv_pthread_pthreads" >&6; }
10725 if test $ol_cv_pthread_pthreads = yes ; then
10726 ol_link_pthreads="-pthreads"
10727 ol_link_threads=posix
10731 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
10732 if test "$ol_link_threads" = no ; then
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
10735 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
10736 if ${ol_cv_pthread_mthreads+:} false; then :
10737 $as_echo_n "(cached) " >&6
10742 LIBS="-mthreads $LIBS"
10744 if test "$cross_compiling" = yes; then :
10745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10746 /* end confdefs.h. */
10748 /* pthread test headers */
10749 #include <pthread.h>
10750 #if HAVE_PTHREADS < 7
10754 #define NULL (void*)0
10757 static void *task(p)
10760 return (void *) (p == NULL);
10767 /* pthread test function */
10768 #ifndef PTHREAD_CREATE_DETACHED
10769 #define PTHREAD_CREATE_DETACHED 1
10773 int detach = PTHREAD_CREATE_DETACHED;
10775 #if HAVE_PTHREADS > 4
10776 /* Final pthreads */
10777 pthread_attr_t attr;
10779 status = pthread_attr_init(&attr);
10780 if( status ) return status;
10782 #if HAVE_PTHREADS < 7
10783 status = pthread_attr_setdetachstate(&attr, &detach);
10784 if( status < 0 ) status = errno;
10786 status = pthread_attr_setdetachstate(&attr, detach);
10788 if( status ) return status;
10789 status = pthread_create( &t, &attr, task, NULL );
10790 #if HAVE_PTHREADS < 7
10791 if( status < 0 ) status = errno;
10793 if( status ) return status;
10795 /* Draft 4 pthreads */
10796 status = pthread_create( &t, pthread_attr_default, task, NULL );
10797 if( status ) return errno;
10799 /* give thread a chance to complete */
10800 /* it should remain joinable and hence detachable */
10803 status = pthread_detach( &t );
10804 if( status ) return errno;
10807 #ifdef HAVE_LINUX_THREADS
10808 pthread_kill_other_threads_np();
10817 if ac_fn_c_try_link "$LINENO"; then :
10818 ol_cv_pthread_mthreads=yes
10820 ol_cv_pthread_mthreads=no
10822 rm -f core conftest.err conftest.$ac_objext \
10823 conftest$ac_exeext conftest.$ac_ext
10825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10829 /* pthread test headers */
10830 #include <pthread.h>
10831 #if HAVE_PTHREADS < 7
10835 #define NULL (void*)0
10838 static void *task(p)
10841 return (void *) (p == NULL);
10845 int main(argc, argv)
10850 /* pthread test function */
10851 #ifndef PTHREAD_CREATE_DETACHED
10852 #define PTHREAD_CREATE_DETACHED 1
10856 int detach = PTHREAD_CREATE_DETACHED;
10858 #if HAVE_PTHREADS > 4
10859 /* Final pthreads */
10860 pthread_attr_t attr;
10862 status = pthread_attr_init(&attr);
10863 if( status ) return status;
10865 #if HAVE_PTHREADS < 7
10866 status = pthread_attr_setdetachstate(&attr, &detach);
10867 if( status < 0 ) status = errno;
10869 status = pthread_attr_setdetachstate(&attr, detach);
10871 if( status ) return status;
10872 status = pthread_create( &t, &attr, task, NULL );
10873 #if HAVE_PTHREADS < 7
10874 if( status < 0 ) status = errno;
10876 if( status ) return status;
10878 /* Draft 4 pthreads */
10879 status = pthread_create( &t, pthread_attr_default, task, NULL );
10880 if( status ) return errno;
10882 /* give thread a chance to complete */
10883 /* it should remain joinable and hence detachable */
10886 status = pthread_detach( &t );
10887 if( status ) return errno;
10890 #ifdef HAVE_LINUX_THREADS
10891 pthread_kill_other_threads_np();
10899 if ac_fn_c_try_run "$LINENO"; then :
10900 ol_cv_pthread_mthreads=yes
10902 ol_cv_pthread_mthreads=no
10904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10905 conftest.$ac_objext conftest.beam conftest.$ac_ext
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
10914 $as_echo "$ol_cv_pthread_mthreads" >&6; }
10916 if test $ol_cv_pthread_mthreads = yes ; then
10917 ol_link_pthreads="-mthreads"
10918 ol_link_threads=posix
10922 # Pthread try link: -thread (ol_cv_pthread_thread)
10923 if test "$ol_link_threads" = no ; then
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
10926 $as_echo_n "checking for pthread link with -thread... " >&6; }
10927 if ${ol_cv_pthread_thread+:} false; then :
10928 $as_echo_n "(cached) " >&6
10933 LIBS="-thread $LIBS"
10935 if test "$cross_compiling" = yes; then :
10936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h. */
10939 /* pthread test headers */
10940 #include <pthread.h>
10941 #if HAVE_PTHREADS < 7
10945 #define NULL (void*)0
10948 static void *task(p)
10951 return (void *) (p == NULL);
10958 /* pthread test function */
10959 #ifndef PTHREAD_CREATE_DETACHED
10960 #define PTHREAD_CREATE_DETACHED 1
10964 int detach = PTHREAD_CREATE_DETACHED;
10966 #if HAVE_PTHREADS > 4
10967 /* Final pthreads */
10968 pthread_attr_t attr;
10970 status = pthread_attr_init(&attr);
10971 if( status ) return status;
10973 #if HAVE_PTHREADS < 7
10974 status = pthread_attr_setdetachstate(&attr, &detach);
10975 if( status < 0 ) status = errno;
10977 status = pthread_attr_setdetachstate(&attr, detach);
10979 if( status ) return status;
10980 status = pthread_create( &t, &attr, task, NULL );
10981 #if HAVE_PTHREADS < 7
10982 if( status < 0 ) status = errno;
10984 if( status ) return status;
10986 /* Draft 4 pthreads */
10987 status = pthread_create( &t, pthread_attr_default, task, NULL );
10988 if( status ) return errno;
10990 /* give thread a chance to complete */
10991 /* it should remain joinable and hence detachable */
10994 status = pthread_detach( &t );
10995 if( status ) return errno;
10998 #ifdef HAVE_LINUX_THREADS
10999 pthread_kill_other_threads_np();
11008 if ac_fn_c_try_link "$LINENO"; then :
11009 ol_cv_pthread_thread=yes
11011 ol_cv_pthread_thread=no
11013 rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017 /* end confdefs.h. */
11020 /* pthread test headers */
11021 #include <pthread.h>
11022 #if HAVE_PTHREADS < 7
11026 #define NULL (void*)0
11029 static void *task(p)
11032 return (void *) (p == NULL);
11036 int main(argc, argv)
11041 /* pthread test function */
11042 #ifndef PTHREAD_CREATE_DETACHED
11043 #define PTHREAD_CREATE_DETACHED 1
11047 int detach = PTHREAD_CREATE_DETACHED;
11049 #if HAVE_PTHREADS > 4
11050 /* Final pthreads */
11051 pthread_attr_t attr;
11053 status = pthread_attr_init(&attr);
11054 if( status ) return status;
11056 #if HAVE_PTHREADS < 7
11057 status = pthread_attr_setdetachstate(&attr, &detach);
11058 if( status < 0 ) status = errno;
11060 status = pthread_attr_setdetachstate(&attr, detach);
11062 if( status ) return status;
11063 status = pthread_create( &t, &attr, task, NULL );
11064 #if HAVE_PTHREADS < 7
11065 if( status < 0 ) status = errno;
11067 if( status ) return status;
11069 /* Draft 4 pthreads */
11070 status = pthread_create( &t, pthread_attr_default, task, NULL );
11071 if( status ) return errno;
11073 /* give thread a chance to complete */
11074 /* it should remain joinable and hence detachable */
11077 status = pthread_detach( &t );
11078 if( status ) return errno;
11081 #ifdef HAVE_LINUX_THREADS
11082 pthread_kill_other_threads_np();
11090 if ac_fn_c_try_run "$LINENO"; then :
11091 ol_cv_pthread_thread=yes
11093 ol_cv_pthread_thread=no
11095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11096 conftest.$ac_objext conftest.beam conftest.$ac_ext
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
11105 $as_echo "$ol_cv_pthread_thread" >&6; }
11107 if test $ol_cv_pthread_thread = yes ; then
11108 ol_link_pthreads="-thread"
11109 ol_link_threads=posix
11114 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
11115 if test "$ol_link_threads" = no ; then
11116 # try -lpthread -lmach -lexc -lc_r
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
11118 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
11119 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
11120 $as_echo_n "(cached) " >&6
11125 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
11127 if test "$cross_compiling" = yes; then :
11128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11129 /* end confdefs.h. */
11131 /* pthread test headers */
11132 #include <pthread.h>
11133 #if HAVE_PTHREADS < 7
11137 #define NULL (void*)0
11140 static void *task(p)
11143 return (void *) (p == NULL);
11150 /* pthread test function */
11151 #ifndef PTHREAD_CREATE_DETACHED
11152 #define PTHREAD_CREATE_DETACHED 1
11156 int detach = PTHREAD_CREATE_DETACHED;
11158 #if HAVE_PTHREADS > 4
11159 /* Final pthreads */
11160 pthread_attr_t attr;
11162 status = pthread_attr_init(&attr);
11163 if( status ) return status;
11165 #if HAVE_PTHREADS < 7
11166 status = pthread_attr_setdetachstate(&attr, &detach);
11167 if( status < 0 ) status = errno;
11169 status = pthread_attr_setdetachstate(&attr, detach);
11171 if( status ) return status;
11172 status = pthread_create( &t, &attr, task, NULL );
11173 #if HAVE_PTHREADS < 7
11174 if( status < 0 ) status = errno;
11176 if( status ) return status;
11178 /* Draft 4 pthreads */
11179 status = pthread_create( &t, pthread_attr_default, task, NULL );
11180 if( status ) return errno;
11182 /* give thread a chance to complete */
11183 /* it should remain joinable and hence detachable */
11186 status = pthread_detach( &t );
11187 if( status ) return errno;
11190 #ifdef HAVE_LINUX_THREADS
11191 pthread_kill_other_threads_np();
11200 if ac_fn_c_try_link "$LINENO"; then :
11201 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
11203 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
11205 rm -f core conftest.err conftest.$ac_objext \
11206 conftest$ac_exeext conftest.$ac_ext
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11212 /* pthread test headers */
11213 #include <pthread.h>
11214 #if HAVE_PTHREADS < 7
11218 #define NULL (void*)0
11221 static void *task(p)
11224 return (void *) (p == NULL);
11228 int main(argc, argv)
11233 /* pthread test function */
11234 #ifndef PTHREAD_CREATE_DETACHED
11235 #define PTHREAD_CREATE_DETACHED 1
11239 int detach = PTHREAD_CREATE_DETACHED;
11241 #if HAVE_PTHREADS > 4
11242 /* Final pthreads */
11243 pthread_attr_t attr;
11245 status = pthread_attr_init(&attr);
11246 if( status ) return status;
11248 #if HAVE_PTHREADS < 7
11249 status = pthread_attr_setdetachstate(&attr, &detach);
11250 if( status < 0 ) status = errno;
11252 status = pthread_attr_setdetachstate(&attr, detach);
11254 if( status ) return status;
11255 status = pthread_create( &t, &attr, task, NULL );
11256 #if HAVE_PTHREADS < 7
11257 if( status < 0 ) status = errno;
11259 if( status ) return status;
11261 /* Draft 4 pthreads */
11262 status = pthread_create( &t, pthread_attr_default, task, NULL );
11263 if( status ) return errno;
11265 /* give thread a chance to complete */
11266 /* it should remain joinable and hence detachable */
11269 status = pthread_detach( &t );
11270 if( status ) return errno;
11273 #ifdef HAVE_LINUX_THREADS
11274 pthread_kill_other_threads_np();
11282 if ac_fn_c_try_run "$LINENO"; then :
11283 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
11285 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
11287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11288 conftest.$ac_objext conftest.beam conftest.$ac_ext
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
11297 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
11299 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
11300 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
11301 ol_link_threads=posix
11305 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
11306 if test "$ol_link_threads" = no ; then
11307 # try -lpthread -lmach -lexc
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
11309 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
11310 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
11311 $as_echo_n "(cached) " >&6
11316 LIBS="-lpthread -lmach -lexc $LIBS"
11318 if test "$cross_compiling" = yes; then :
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11322 /* pthread test headers */
11323 #include <pthread.h>
11324 #if HAVE_PTHREADS < 7
11328 #define NULL (void*)0
11331 static void *task(p)
11334 return (void *) (p == NULL);
11341 /* pthread test function */
11342 #ifndef PTHREAD_CREATE_DETACHED
11343 #define PTHREAD_CREATE_DETACHED 1
11347 int detach = PTHREAD_CREATE_DETACHED;
11349 #if HAVE_PTHREADS > 4
11350 /* Final pthreads */
11351 pthread_attr_t attr;
11353 status = pthread_attr_init(&attr);
11354 if( status ) return status;
11356 #if HAVE_PTHREADS < 7
11357 status = pthread_attr_setdetachstate(&attr, &detach);
11358 if( status < 0 ) status = errno;
11360 status = pthread_attr_setdetachstate(&attr, detach);
11362 if( status ) return status;
11363 status = pthread_create( &t, &attr, task, NULL );
11364 #if HAVE_PTHREADS < 7
11365 if( status < 0 ) status = errno;
11367 if( status ) return status;
11369 /* Draft 4 pthreads */
11370 status = pthread_create( &t, pthread_attr_default, task, NULL );
11371 if( status ) return errno;
11373 /* give thread a chance to complete */
11374 /* it should remain joinable and hence detachable */
11377 status = pthread_detach( &t );
11378 if( status ) return errno;
11381 #ifdef HAVE_LINUX_THREADS
11382 pthread_kill_other_threads_np();
11391 if ac_fn_c_try_link "$LINENO"; then :
11392 ol_cv_pthread_lpthread_lmach_lexc=yes
11394 ol_cv_pthread_lpthread_lmach_lexc=no
11396 rm -f core conftest.err conftest.$ac_objext \
11397 conftest$ac_exeext conftest.$ac_ext
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11403 /* pthread test headers */
11404 #include <pthread.h>
11405 #if HAVE_PTHREADS < 7
11409 #define NULL (void*)0
11412 static void *task(p)
11415 return (void *) (p == NULL);
11419 int main(argc, argv)
11424 /* pthread test function */
11425 #ifndef PTHREAD_CREATE_DETACHED
11426 #define PTHREAD_CREATE_DETACHED 1
11430 int detach = PTHREAD_CREATE_DETACHED;
11432 #if HAVE_PTHREADS > 4
11433 /* Final pthreads */
11434 pthread_attr_t attr;
11436 status = pthread_attr_init(&attr);
11437 if( status ) return status;
11439 #if HAVE_PTHREADS < 7
11440 status = pthread_attr_setdetachstate(&attr, &detach);
11441 if( status < 0 ) status = errno;
11443 status = pthread_attr_setdetachstate(&attr, detach);
11445 if( status ) return status;
11446 status = pthread_create( &t, &attr, task, NULL );
11447 #if HAVE_PTHREADS < 7
11448 if( status < 0 ) status = errno;
11450 if( status ) return status;
11452 /* Draft 4 pthreads */
11453 status = pthread_create( &t, pthread_attr_default, task, NULL );
11454 if( status ) return errno;
11456 /* give thread a chance to complete */
11457 /* it should remain joinable and hence detachable */
11460 status = pthread_detach( &t );
11461 if( status ) return errno;
11464 #ifdef HAVE_LINUX_THREADS
11465 pthread_kill_other_threads_np();
11473 if ac_fn_c_try_run "$LINENO"; then :
11474 ol_cv_pthread_lpthread_lmach_lexc=yes
11476 ol_cv_pthread_lpthread_lmach_lexc=no
11478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11479 conftest.$ac_objext conftest.beam conftest.$ac_ext
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
11488 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
11490 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
11491 ol_link_pthreads="-lpthread -lmach -lexc"
11492 ol_link_threads=posix
11497 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
11498 if test "$ol_link_threads" = no ; then
11499 # try -lpthread -Wl,-woff,85
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
11501 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
11502 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
11503 $as_echo_n "(cached) " >&6
11508 LIBS="-lpthread -Wl,-woff,85 $LIBS"
11510 if test "$cross_compiling" = yes; then :
11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h. */
11514 /* pthread test headers */
11515 #include <pthread.h>
11516 #if HAVE_PTHREADS < 7
11520 #define NULL (void*)0
11523 static void *task(p)
11526 return (void *) (p == NULL);
11533 /* pthread test function */
11534 #ifndef PTHREAD_CREATE_DETACHED
11535 #define PTHREAD_CREATE_DETACHED 1
11539 int detach = PTHREAD_CREATE_DETACHED;
11541 #if HAVE_PTHREADS > 4
11542 /* Final pthreads */
11543 pthread_attr_t attr;
11545 status = pthread_attr_init(&attr);
11546 if( status ) return status;
11548 #if HAVE_PTHREADS < 7
11549 status = pthread_attr_setdetachstate(&attr, &detach);
11550 if( status < 0 ) status = errno;
11552 status = pthread_attr_setdetachstate(&attr, detach);
11554 if( status ) return status;
11555 status = pthread_create( &t, &attr, task, NULL );
11556 #if HAVE_PTHREADS < 7
11557 if( status < 0 ) status = errno;
11559 if( status ) return status;
11561 /* Draft 4 pthreads */
11562 status = pthread_create( &t, pthread_attr_default, task, NULL );
11563 if( status ) return errno;
11565 /* give thread a chance to complete */
11566 /* it should remain joinable and hence detachable */
11569 status = pthread_detach( &t );
11570 if( status ) return errno;
11573 #ifdef HAVE_LINUX_THREADS
11574 pthread_kill_other_threads_np();
11583 if ac_fn_c_try_link "$LINENO"; then :
11584 ol_cv_pthread_lib_lpthread_woff=yes
11586 ol_cv_pthread_lib_lpthread_woff=no
11588 rm -f core conftest.err conftest.$ac_objext \
11589 conftest$ac_exeext conftest.$ac_ext
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11595 /* pthread test headers */
11596 #include <pthread.h>
11597 #if HAVE_PTHREADS < 7
11601 #define NULL (void*)0
11604 static void *task(p)
11607 return (void *) (p == NULL);
11611 int main(argc, argv)
11616 /* pthread test function */
11617 #ifndef PTHREAD_CREATE_DETACHED
11618 #define PTHREAD_CREATE_DETACHED 1
11622 int detach = PTHREAD_CREATE_DETACHED;
11624 #if HAVE_PTHREADS > 4
11625 /* Final pthreads */
11626 pthread_attr_t attr;
11628 status = pthread_attr_init(&attr);
11629 if( status ) return status;
11631 #if HAVE_PTHREADS < 7
11632 status = pthread_attr_setdetachstate(&attr, &detach);
11633 if( status < 0 ) status = errno;
11635 status = pthread_attr_setdetachstate(&attr, detach);
11637 if( status ) return status;
11638 status = pthread_create( &t, &attr, task, NULL );
11639 #if HAVE_PTHREADS < 7
11640 if( status < 0 ) status = errno;
11642 if( status ) return status;
11644 /* Draft 4 pthreads */
11645 status = pthread_create( &t, pthread_attr_default, task, NULL );
11646 if( status ) return errno;
11648 /* give thread a chance to complete */
11649 /* it should remain joinable and hence detachable */
11652 status = pthread_detach( &t );
11653 if( status ) return errno;
11656 #ifdef HAVE_LINUX_THREADS
11657 pthread_kill_other_threads_np();
11665 if ac_fn_c_try_run "$LINENO"; then :
11666 ol_cv_pthread_lib_lpthread_woff=yes
11668 ol_cv_pthread_lib_lpthread_woff=no
11670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11671 conftest.$ac_objext conftest.beam conftest.$ac_ext
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
11680 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
11682 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
11683 ol_link_pthreads="-lpthread -Wl,-woff,85"
11684 ol_link_threads=posix
11689 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
11690 if test "$ol_link_threads" = no ; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
11693 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
11694 if ${ol_cv_pthread_lpthread+:} false; then :
11695 $as_echo_n "(cached) " >&6
11700 LIBS="-lpthread $LIBS"
11702 if test "$cross_compiling" = yes; then :
11703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11704 /* end confdefs.h. */
11706 /* pthread test headers */
11707 #include <pthread.h>
11708 #if HAVE_PTHREADS < 7
11712 #define NULL (void*)0
11715 static void *task(p)
11718 return (void *) (p == NULL);
11725 /* pthread test function */
11726 #ifndef PTHREAD_CREATE_DETACHED
11727 #define PTHREAD_CREATE_DETACHED 1
11731 int detach = PTHREAD_CREATE_DETACHED;
11733 #if HAVE_PTHREADS > 4
11734 /* Final pthreads */
11735 pthread_attr_t attr;
11737 status = pthread_attr_init(&attr);
11738 if( status ) return status;
11740 #if HAVE_PTHREADS < 7
11741 status = pthread_attr_setdetachstate(&attr, &detach);
11742 if( status < 0 ) status = errno;
11744 status = pthread_attr_setdetachstate(&attr, detach);
11746 if( status ) return status;
11747 status = pthread_create( &t, &attr, task, NULL );
11748 #if HAVE_PTHREADS < 7
11749 if( status < 0 ) status = errno;
11751 if( status ) return status;
11753 /* Draft 4 pthreads */
11754 status = pthread_create( &t, pthread_attr_default, task, NULL );
11755 if( status ) return errno;
11757 /* give thread a chance to complete */
11758 /* it should remain joinable and hence detachable */
11761 status = pthread_detach( &t );
11762 if( status ) return errno;
11765 #ifdef HAVE_LINUX_THREADS
11766 pthread_kill_other_threads_np();
11775 if ac_fn_c_try_link "$LINENO"; then :
11776 ol_cv_pthread_lpthread=yes
11778 ol_cv_pthread_lpthread=no
11780 rm -f core conftest.err conftest.$ac_objext \
11781 conftest$ac_exeext conftest.$ac_ext
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11787 /* pthread test headers */
11788 #include <pthread.h>
11789 #if HAVE_PTHREADS < 7
11793 #define NULL (void*)0
11796 static void *task(p)
11799 return (void *) (p == NULL);
11803 int main(argc, argv)
11808 /* pthread test function */
11809 #ifndef PTHREAD_CREATE_DETACHED
11810 #define PTHREAD_CREATE_DETACHED 1
11814 int detach = PTHREAD_CREATE_DETACHED;
11816 #if HAVE_PTHREADS > 4
11817 /* Final pthreads */
11818 pthread_attr_t attr;
11820 status = pthread_attr_init(&attr);
11821 if( status ) return status;
11823 #if HAVE_PTHREADS < 7
11824 status = pthread_attr_setdetachstate(&attr, &detach);
11825 if( status < 0 ) status = errno;
11827 status = pthread_attr_setdetachstate(&attr, detach);
11829 if( status ) return status;
11830 status = pthread_create( &t, &attr, task, NULL );
11831 #if HAVE_PTHREADS < 7
11832 if( status < 0 ) status = errno;
11834 if( status ) return status;
11836 /* Draft 4 pthreads */
11837 status = pthread_create( &t, pthread_attr_default, task, NULL );
11838 if( status ) return errno;
11840 /* give thread a chance to complete */
11841 /* it should remain joinable and hence detachable */
11844 status = pthread_detach( &t );
11845 if( status ) return errno;
11848 #ifdef HAVE_LINUX_THREADS
11849 pthread_kill_other_threads_np();
11857 if ac_fn_c_try_run "$LINENO"; then :
11858 ol_cv_pthread_lpthread=yes
11860 ol_cv_pthread_lpthread=no
11862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11863 conftest.$ac_objext conftest.beam conftest.$ac_ext
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
11872 $as_echo "$ol_cv_pthread_lpthread" >&6; }
11874 if test $ol_cv_pthread_lpthread = yes ; then
11875 ol_link_pthreads="-lpthread"
11876 ol_link_threads=posix
11880 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
11881 if test "$ol_link_threads" = no ; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
11884 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
11885 if ${ol_cv_pthread_lc_r+:} false; then :
11886 $as_echo_n "(cached) " >&6
11893 if test "$cross_compiling" = yes; then :
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11897 /* pthread test headers */
11898 #include <pthread.h>
11899 #if HAVE_PTHREADS < 7
11903 #define NULL (void*)0
11906 static void *task(p)
11909 return (void *) (p == NULL);
11916 /* pthread test function */
11917 #ifndef PTHREAD_CREATE_DETACHED
11918 #define PTHREAD_CREATE_DETACHED 1
11922 int detach = PTHREAD_CREATE_DETACHED;
11924 #if HAVE_PTHREADS > 4
11925 /* Final pthreads */
11926 pthread_attr_t attr;
11928 status = pthread_attr_init(&attr);
11929 if( status ) return status;
11931 #if HAVE_PTHREADS < 7
11932 status = pthread_attr_setdetachstate(&attr, &detach);
11933 if( status < 0 ) status = errno;
11935 status = pthread_attr_setdetachstate(&attr, detach);
11937 if( status ) return status;
11938 status = pthread_create( &t, &attr, task, NULL );
11939 #if HAVE_PTHREADS < 7
11940 if( status < 0 ) status = errno;
11942 if( status ) return status;
11944 /* Draft 4 pthreads */
11945 status = pthread_create( &t, pthread_attr_default, task, NULL );
11946 if( status ) return errno;
11948 /* give thread a chance to complete */
11949 /* it should remain joinable and hence detachable */
11952 status = pthread_detach( &t );
11953 if( status ) return errno;
11956 #ifdef HAVE_LINUX_THREADS
11957 pthread_kill_other_threads_np();
11966 if ac_fn_c_try_link "$LINENO"; then :
11967 ol_cv_pthread_lc_r=yes
11969 ol_cv_pthread_lc_r=no
11971 rm -f core conftest.err conftest.$ac_objext \
11972 conftest$ac_exeext conftest.$ac_ext
11974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975 /* end confdefs.h. */
11978 /* pthread test headers */
11979 #include <pthread.h>
11980 #if HAVE_PTHREADS < 7
11984 #define NULL (void*)0
11987 static void *task(p)
11990 return (void *) (p == NULL);
11994 int main(argc, argv)
11999 /* pthread test function */
12000 #ifndef PTHREAD_CREATE_DETACHED
12001 #define PTHREAD_CREATE_DETACHED 1
12005 int detach = PTHREAD_CREATE_DETACHED;
12007 #if HAVE_PTHREADS > 4
12008 /* Final pthreads */
12009 pthread_attr_t attr;
12011 status = pthread_attr_init(&attr);
12012 if( status ) return status;
12014 #if HAVE_PTHREADS < 7
12015 status = pthread_attr_setdetachstate(&attr, &detach);
12016 if( status < 0 ) status = errno;
12018 status = pthread_attr_setdetachstate(&attr, detach);
12020 if( status ) return status;
12021 status = pthread_create( &t, &attr, task, NULL );
12022 #if HAVE_PTHREADS < 7
12023 if( status < 0 ) status = errno;
12025 if( status ) return status;
12027 /* Draft 4 pthreads */
12028 status = pthread_create( &t, pthread_attr_default, task, NULL );
12029 if( status ) return errno;
12031 /* give thread a chance to complete */
12032 /* it should remain joinable and hence detachable */
12035 status = pthread_detach( &t );
12036 if( status ) return errno;
12039 #ifdef HAVE_LINUX_THREADS
12040 pthread_kill_other_threads_np();
12048 if ac_fn_c_try_run "$LINENO"; then :
12049 ol_cv_pthread_lc_r=yes
12051 ol_cv_pthread_lc_r=no
12053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12054 conftest.$ac_objext conftest.beam conftest.$ac_ext
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
12063 $as_echo "$ol_cv_pthread_lc_r" >&6; }
12065 if test $ol_cv_pthread_lc_r = yes ; then
12066 ol_link_pthreads="-lc_r"
12067 ol_link_threads=posix
12072 # Pthread try link: -threads (ol_cv_pthread_threads)
12073 if test "$ol_link_threads" = no ; then
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
12076 $as_echo_n "checking for pthread link with -threads... " >&6; }
12077 if ${ol_cv_pthread_threads+:} false; then :
12078 $as_echo_n "(cached) " >&6
12083 LIBS="-threads $LIBS"
12085 if test "$cross_compiling" = yes; then :
12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12089 /* pthread test headers */
12090 #include <pthread.h>
12091 #if HAVE_PTHREADS < 7
12095 #define NULL (void*)0
12098 static void *task(p)
12101 return (void *) (p == NULL);
12108 /* pthread test function */
12109 #ifndef PTHREAD_CREATE_DETACHED
12110 #define PTHREAD_CREATE_DETACHED 1
12114 int detach = PTHREAD_CREATE_DETACHED;
12116 #if HAVE_PTHREADS > 4
12117 /* Final pthreads */
12118 pthread_attr_t attr;
12120 status = pthread_attr_init(&attr);
12121 if( status ) return status;
12123 #if HAVE_PTHREADS < 7
12124 status = pthread_attr_setdetachstate(&attr, &detach);
12125 if( status < 0 ) status = errno;
12127 status = pthread_attr_setdetachstate(&attr, detach);
12129 if( status ) return status;
12130 status = pthread_create( &t, &attr, task, NULL );
12131 #if HAVE_PTHREADS < 7
12132 if( status < 0 ) status = errno;
12134 if( status ) return status;
12136 /* Draft 4 pthreads */
12137 status = pthread_create( &t, pthread_attr_default, task, NULL );
12138 if( status ) return errno;
12140 /* give thread a chance to complete */
12141 /* it should remain joinable and hence detachable */
12144 status = pthread_detach( &t );
12145 if( status ) return errno;
12148 #ifdef HAVE_LINUX_THREADS
12149 pthread_kill_other_threads_np();
12158 if ac_fn_c_try_link "$LINENO"; then :
12159 ol_cv_pthread_threads=yes
12161 ol_cv_pthread_threads=no
12163 rm -f core conftest.err conftest.$ac_objext \
12164 conftest$ac_exeext conftest.$ac_ext
12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h. */
12170 /* pthread test headers */
12171 #include <pthread.h>
12172 #if HAVE_PTHREADS < 7
12176 #define NULL (void*)0
12179 static void *task(p)
12182 return (void *) (p == NULL);
12186 int main(argc, argv)
12191 /* pthread test function */
12192 #ifndef PTHREAD_CREATE_DETACHED
12193 #define PTHREAD_CREATE_DETACHED 1
12197 int detach = PTHREAD_CREATE_DETACHED;
12199 #if HAVE_PTHREADS > 4
12200 /* Final pthreads */
12201 pthread_attr_t attr;
12203 status = pthread_attr_init(&attr);
12204 if( status ) return status;
12206 #if HAVE_PTHREADS < 7
12207 status = pthread_attr_setdetachstate(&attr, &detach);
12208 if( status < 0 ) status = errno;
12210 status = pthread_attr_setdetachstate(&attr, detach);
12212 if( status ) return status;
12213 status = pthread_create( &t, &attr, task, NULL );
12214 #if HAVE_PTHREADS < 7
12215 if( status < 0 ) status = errno;
12217 if( status ) return status;
12219 /* Draft 4 pthreads */
12220 status = pthread_create( &t, pthread_attr_default, task, NULL );
12221 if( status ) return errno;
12223 /* give thread a chance to complete */
12224 /* it should remain joinable and hence detachable */
12227 status = pthread_detach( &t );
12228 if( status ) return errno;
12231 #ifdef HAVE_LINUX_THREADS
12232 pthread_kill_other_threads_np();
12240 if ac_fn_c_try_run "$LINENO"; then :
12241 ol_cv_pthread_threads=yes
12243 ol_cv_pthread_threads=no
12245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12246 conftest.$ac_objext conftest.beam conftest.$ac_ext
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
12255 $as_echo "$ol_cv_pthread_threads" >&6; }
12257 if test $ol_cv_pthread_threads = yes ; then
12258 ol_link_pthreads="-threads"
12259 ol_link_threads=posix
12264 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
12265 if test "$ol_link_threads" = no ; then
12266 # try -lpthreads -lmach -lexc -lc_r
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
12268 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
12269 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
12270 $as_echo_n "(cached) " >&6
12275 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
12277 if test "$cross_compiling" = yes; then :
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12281 /* pthread test headers */
12282 #include <pthread.h>
12283 #if HAVE_PTHREADS < 7
12287 #define NULL (void*)0
12290 static void *task(p)
12293 return (void *) (p == NULL);
12300 /* pthread test function */
12301 #ifndef PTHREAD_CREATE_DETACHED
12302 #define PTHREAD_CREATE_DETACHED 1
12306 int detach = PTHREAD_CREATE_DETACHED;
12308 #if HAVE_PTHREADS > 4
12309 /* Final pthreads */
12310 pthread_attr_t attr;
12312 status = pthread_attr_init(&attr);
12313 if( status ) return status;
12315 #if HAVE_PTHREADS < 7
12316 status = pthread_attr_setdetachstate(&attr, &detach);
12317 if( status < 0 ) status = errno;
12319 status = pthread_attr_setdetachstate(&attr, detach);
12321 if( status ) return status;
12322 status = pthread_create( &t, &attr, task, NULL );
12323 #if HAVE_PTHREADS < 7
12324 if( status < 0 ) status = errno;
12326 if( status ) return status;
12328 /* Draft 4 pthreads */
12329 status = pthread_create( &t, pthread_attr_default, task, NULL );
12330 if( status ) return errno;
12332 /* give thread a chance to complete */
12333 /* it should remain joinable and hence detachable */
12336 status = pthread_detach( &t );
12337 if( status ) return errno;
12340 #ifdef HAVE_LINUX_THREADS
12341 pthread_kill_other_threads_np();
12350 if ac_fn_c_try_link "$LINENO"; then :
12351 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
12353 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
12355 rm -f core conftest.err conftest.$ac_objext \
12356 conftest$ac_exeext conftest.$ac_ext
12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359 /* end confdefs.h. */
12362 /* pthread test headers */
12363 #include <pthread.h>
12364 #if HAVE_PTHREADS < 7
12368 #define NULL (void*)0
12371 static void *task(p)
12374 return (void *) (p == NULL);
12378 int main(argc, argv)
12383 /* pthread test function */
12384 #ifndef PTHREAD_CREATE_DETACHED
12385 #define PTHREAD_CREATE_DETACHED 1
12389 int detach = PTHREAD_CREATE_DETACHED;
12391 #if HAVE_PTHREADS > 4
12392 /* Final pthreads */
12393 pthread_attr_t attr;
12395 status = pthread_attr_init(&attr);
12396 if( status ) return status;
12398 #if HAVE_PTHREADS < 7
12399 status = pthread_attr_setdetachstate(&attr, &detach);
12400 if( status < 0 ) status = errno;
12402 status = pthread_attr_setdetachstate(&attr, detach);
12404 if( status ) return status;
12405 status = pthread_create( &t, &attr, task, NULL );
12406 #if HAVE_PTHREADS < 7
12407 if( status < 0 ) status = errno;
12409 if( status ) return status;
12411 /* Draft 4 pthreads */
12412 status = pthread_create( &t, pthread_attr_default, task, NULL );
12413 if( status ) return errno;
12415 /* give thread a chance to complete */
12416 /* it should remain joinable and hence detachable */
12419 status = pthread_detach( &t );
12420 if( status ) return errno;
12423 #ifdef HAVE_LINUX_THREADS
12424 pthread_kill_other_threads_np();
12432 if ac_fn_c_try_run "$LINENO"; then :
12433 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
12435 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
12437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12438 conftest.$ac_objext conftest.beam conftest.$ac_ext
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
12447 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
12449 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
12450 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
12451 ol_link_threads=posix
12455 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
12456 if test "$ol_link_threads" = no ; then
12457 # try -lpthreads -lmach -lexc
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
12459 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
12460 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
12461 $as_echo_n "(cached) " >&6
12466 LIBS="-lpthreads -lmach -lexc $LIBS"
12468 if test "$cross_compiling" = yes; then :
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12472 /* pthread test headers */
12473 #include <pthread.h>
12474 #if HAVE_PTHREADS < 7
12478 #define NULL (void*)0
12481 static void *task(p)
12484 return (void *) (p == NULL);
12491 /* pthread test function */
12492 #ifndef PTHREAD_CREATE_DETACHED
12493 #define PTHREAD_CREATE_DETACHED 1
12497 int detach = PTHREAD_CREATE_DETACHED;
12499 #if HAVE_PTHREADS > 4
12500 /* Final pthreads */
12501 pthread_attr_t attr;
12503 status = pthread_attr_init(&attr);
12504 if( status ) return status;
12506 #if HAVE_PTHREADS < 7
12507 status = pthread_attr_setdetachstate(&attr, &detach);
12508 if( status < 0 ) status = errno;
12510 status = pthread_attr_setdetachstate(&attr, detach);
12512 if( status ) return status;
12513 status = pthread_create( &t, &attr, task, NULL );
12514 #if HAVE_PTHREADS < 7
12515 if( status < 0 ) status = errno;
12517 if( status ) return status;
12519 /* Draft 4 pthreads */
12520 status = pthread_create( &t, pthread_attr_default, task, NULL );
12521 if( status ) return errno;
12523 /* give thread a chance to complete */
12524 /* it should remain joinable and hence detachable */
12527 status = pthread_detach( &t );
12528 if( status ) return errno;
12531 #ifdef HAVE_LINUX_THREADS
12532 pthread_kill_other_threads_np();
12541 if ac_fn_c_try_link "$LINENO"; then :
12542 ol_cv_pthread_lpthreads_lmach_lexc=yes
12544 ol_cv_pthread_lpthreads_lmach_lexc=no
12546 rm -f core conftest.err conftest.$ac_objext \
12547 conftest$ac_exeext conftest.$ac_ext
12549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550 /* end confdefs.h. */
12553 /* pthread test headers */
12554 #include <pthread.h>
12555 #if HAVE_PTHREADS < 7
12559 #define NULL (void*)0
12562 static void *task(p)
12565 return (void *) (p == NULL);
12569 int main(argc, argv)
12574 /* pthread test function */
12575 #ifndef PTHREAD_CREATE_DETACHED
12576 #define PTHREAD_CREATE_DETACHED 1
12580 int detach = PTHREAD_CREATE_DETACHED;
12582 #if HAVE_PTHREADS > 4
12583 /* Final pthreads */
12584 pthread_attr_t attr;
12586 status = pthread_attr_init(&attr);
12587 if( status ) return status;
12589 #if HAVE_PTHREADS < 7
12590 status = pthread_attr_setdetachstate(&attr, &detach);
12591 if( status < 0 ) status = errno;
12593 status = pthread_attr_setdetachstate(&attr, detach);
12595 if( status ) return status;
12596 status = pthread_create( &t, &attr, task, NULL );
12597 #if HAVE_PTHREADS < 7
12598 if( status < 0 ) status = errno;
12600 if( status ) return status;
12602 /* Draft 4 pthreads */
12603 status = pthread_create( &t, pthread_attr_default, task, NULL );
12604 if( status ) return errno;
12606 /* give thread a chance to complete */
12607 /* it should remain joinable and hence detachable */
12610 status = pthread_detach( &t );
12611 if( status ) return errno;
12614 #ifdef HAVE_LINUX_THREADS
12615 pthread_kill_other_threads_np();
12623 if ac_fn_c_try_run "$LINENO"; then :
12624 ol_cv_pthread_lpthreads_lmach_lexc=yes
12626 ol_cv_pthread_lpthreads_lmach_lexc=no
12628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12629 conftest.$ac_objext conftest.beam conftest.$ac_ext
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
12638 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
12640 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
12641 ol_link_pthreads="-lpthreads -lmach -lexc"
12642 ol_link_threads=posix
12646 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
12647 if test "$ol_link_threads" = no ; then
12648 # try -lpthreads -lexc
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
12650 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
12651 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
12652 $as_echo_n "(cached) " >&6
12657 LIBS="-lpthreads -lexc $LIBS"
12659 if test "$cross_compiling" = yes; then :
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12663 /* pthread test headers */
12664 #include <pthread.h>
12665 #if HAVE_PTHREADS < 7
12669 #define NULL (void*)0
12672 static void *task(p)
12675 return (void *) (p == NULL);
12682 /* pthread test function */
12683 #ifndef PTHREAD_CREATE_DETACHED
12684 #define PTHREAD_CREATE_DETACHED 1
12688 int detach = PTHREAD_CREATE_DETACHED;
12690 #if HAVE_PTHREADS > 4
12691 /* Final pthreads */
12692 pthread_attr_t attr;
12694 status = pthread_attr_init(&attr);
12695 if( status ) return status;
12697 #if HAVE_PTHREADS < 7
12698 status = pthread_attr_setdetachstate(&attr, &detach);
12699 if( status < 0 ) status = errno;
12701 status = pthread_attr_setdetachstate(&attr, detach);
12703 if( status ) return status;
12704 status = pthread_create( &t, &attr, task, NULL );
12705 #if HAVE_PTHREADS < 7
12706 if( status < 0 ) status = errno;
12708 if( status ) return status;
12710 /* Draft 4 pthreads */
12711 status = pthread_create( &t, pthread_attr_default, task, NULL );
12712 if( status ) return errno;
12714 /* give thread a chance to complete */
12715 /* it should remain joinable and hence detachable */
12718 status = pthread_detach( &t );
12719 if( status ) return errno;
12722 #ifdef HAVE_LINUX_THREADS
12723 pthread_kill_other_threads_np();
12732 if ac_fn_c_try_link "$LINENO"; then :
12733 ol_cv_pthread_lpthreads_lexc=yes
12735 ol_cv_pthread_lpthreads_lexc=no
12737 rm -f core conftest.err conftest.$ac_objext \
12738 conftest$ac_exeext conftest.$ac_ext
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12744 /* pthread test headers */
12745 #include <pthread.h>
12746 #if HAVE_PTHREADS < 7
12750 #define NULL (void*)0
12753 static void *task(p)
12756 return (void *) (p == NULL);
12760 int main(argc, argv)
12765 /* pthread test function */
12766 #ifndef PTHREAD_CREATE_DETACHED
12767 #define PTHREAD_CREATE_DETACHED 1
12771 int detach = PTHREAD_CREATE_DETACHED;
12773 #if HAVE_PTHREADS > 4
12774 /* Final pthreads */
12775 pthread_attr_t attr;
12777 status = pthread_attr_init(&attr);
12778 if( status ) return status;
12780 #if HAVE_PTHREADS < 7
12781 status = pthread_attr_setdetachstate(&attr, &detach);
12782 if( status < 0 ) status = errno;
12784 status = pthread_attr_setdetachstate(&attr, detach);
12786 if( status ) return status;
12787 status = pthread_create( &t, &attr, task, NULL );
12788 #if HAVE_PTHREADS < 7
12789 if( status < 0 ) status = errno;
12791 if( status ) return status;
12793 /* Draft 4 pthreads */
12794 status = pthread_create( &t, pthread_attr_default, task, NULL );
12795 if( status ) return errno;
12797 /* give thread a chance to complete */
12798 /* it should remain joinable and hence detachable */
12801 status = pthread_detach( &t );
12802 if( status ) return errno;
12805 #ifdef HAVE_LINUX_THREADS
12806 pthread_kill_other_threads_np();
12814 if ac_fn_c_try_run "$LINENO"; then :
12815 ol_cv_pthread_lpthreads_lexc=yes
12817 ol_cv_pthread_lpthreads_lexc=no
12819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12820 conftest.$ac_objext conftest.beam conftest.$ac_ext
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
12829 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
12831 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
12832 ol_link_pthreads="-lpthreads -lexc"
12833 ol_link_threads=posix
12838 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
12839 if test "$ol_link_threads" = no ; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
12842 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
12843 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
12844 $as_echo_n "(cached) " >&6
12849 LIBS="-lpthreads $LIBS"
12851 if test "$cross_compiling" = yes; then :
12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853 /* end confdefs.h. */
12855 /* pthread test headers */
12856 #include <pthread.h>
12857 #if HAVE_PTHREADS < 7
12861 #define NULL (void*)0
12864 static void *task(p)
12867 return (void *) (p == NULL);
12874 /* pthread test function */
12875 #ifndef PTHREAD_CREATE_DETACHED
12876 #define PTHREAD_CREATE_DETACHED 1
12880 int detach = PTHREAD_CREATE_DETACHED;
12882 #if HAVE_PTHREADS > 4
12883 /* Final pthreads */
12884 pthread_attr_t attr;
12886 status = pthread_attr_init(&attr);
12887 if( status ) return status;
12889 #if HAVE_PTHREADS < 7
12890 status = pthread_attr_setdetachstate(&attr, &detach);
12891 if( status < 0 ) status = errno;
12893 status = pthread_attr_setdetachstate(&attr, detach);
12895 if( status ) return status;
12896 status = pthread_create( &t, &attr, task, NULL );
12897 #if HAVE_PTHREADS < 7
12898 if( status < 0 ) status = errno;
12900 if( status ) return status;
12902 /* Draft 4 pthreads */
12903 status = pthread_create( &t, pthread_attr_default, task, NULL );
12904 if( status ) return errno;
12906 /* give thread a chance to complete */
12907 /* it should remain joinable and hence detachable */
12910 status = pthread_detach( &t );
12911 if( status ) return errno;
12914 #ifdef HAVE_LINUX_THREADS
12915 pthread_kill_other_threads_np();
12924 if ac_fn_c_try_link "$LINENO"; then :
12925 ol_cv_pthread_lib_lpthreads=yes
12927 ol_cv_pthread_lib_lpthreads=no
12929 rm -f core conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
12932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12933 /* end confdefs.h. */
12936 /* pthread test headers */
12937 #include <pthread.h>
12938 #if HAVE_PTHREADS < 7
12942 #define NULL (void*)0
12945 static void *task(p)
12948 return (void *) (p == NULL);
12952 int main(argc, argv)
12957 /* pthread test function */
12958 #ifndef PTHREAD_CREATE_DETACHED
12959 #define PTHREAD_CREATE_DETACHED 1
12963 int detach = PTHREAD_CREATE_DETACHED;
12965 #if HAVE_PTHREADS > 4
12966 /* Final pthreads */
12967 pthread_attr_t attr;
12969 status = pthread_attr_init(&attr);
12970 if( status ) return status;
12972 #if HAVE_PTHREADS < 7
12973 status = pthread_attr_setdetachstate(&attr, &detach);
12974 if( status < 0 ) status = errno;
12976 status = pthread_attr_setdetachstate(&attr, detach);
12978 if( status ) return status;
12979 status = pthread_create( &t, &attr, task, NULL );
12980 #if HAVE_PTHREADS < 7
12981 if( status < 0 ) status = errno;
12983 if( status ) return status;
12985 /* Draft 4 pthreads */
12986 status = pthread_create( &t, pthread_attr_default, task, NULL );
12987 if( status ) return errno;
12989 /* give thread a chance to complete */
12990 /* it should remain joinable and hence detachable */
12993 status = pthread_detach( &t );
12994 if( status ) return errno;
12997 #ifdef HAVE_LINUX_THREADS
12998 pthread_kill_other_threads_np();
13006 if ac_fn_c_try_run "$LINENO"; then :
13007 ol_cv_pthread_lib_lpthreads=yes
13009 ol_cv_pthread_lib_lpthreads=no
13011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13012 conftest.$ac_objext conftest.beam conftest.$ac_ext
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
13021 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
13023 if test $ol_cv_pthread_lib_lpthreads = yes ; then
13024 ol_link_pthreads="-lpthreads"
13025 ol_link_threads=posix
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
13031 $as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
13033 if test $ol_link_threads != no ; then
13034 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
13036 save_CPPFLAGS="$CPPFLAGS"
13038 LIBS="$LTHREAD_LIBS $LIBS"
13040 for ac_func in sched_yield pthread_yield thr_yield
13042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13043 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13044 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13045 cat >>confdefs.h <<_ACEOF
13046 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13053 if test $ac_cv_func_sched_yield = no &&
13054 test $ac_cv_func_pthread_yield = no &&
13055 test $ac_cv_func_thr_yield = no ; then
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
13057 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
13058 if ${ac_cv_lib_rt_sched_yield+:} false; then :
13059 $as_echo_n "(cached) " >&6
13061 ac_check_lib_save_LIBS=$LIBS
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13066 /* Override any GCC internal prototype to avoid an error.
13067 Use char because int might match the return type of a GCC
13068 builtin and then its argument prototype would still apply. */
13072 char sched_yield ();
13076 return sched_yield ();
13081 if ac_fn_c_try_link "$LINENO"; then :
13082 ac_cv_lib_rt_sched_yield=yes
13084 ac_cv_lib_rt_sched_yield=no
13086 rm -f core conftest.err conftest.$ac_objext \
13087 conftest$ac_exeext conftest.$ac_ext
13088 LIBS=$ac_check_lib_save_LIBS
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
13091 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
13092 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
13093 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
13095 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
13097 ac_cv_func_sched_yield=yes
13099 ac_cv_func_sched_yield=no
13103 if test $ac_cv_func_sched_yield = no &&
13104 test $ac_cv_func_pthread_yield = no &&
13105 test "$ac_cv_func_thr_yield" = no ; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
13107 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
13110 for ac_func in pthread_kill
13112 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
13113 if test "x$ac_cv_func_pthread_kill" = xyes; then :
13114 cat >>confdefs.h <<_ACEOF
13115 #define HAVE_PTHREAD_KILL 1
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
13123 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
13124 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
13125 $as_echo_n "(cached) " >&6
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13131 #include <pthread.h>
13132 pthread_rwlock_t rwlock;
13137 pthread_rwlock_destroy(&rwlock);
13142 if ac_fn_c_try_link "$LINENO"; then :
13143 ol_cv_func_pthread_rwlock_destroy=yes
13145 ol_cv_func_pthread_rwlock_destroy=no
13147 rm -f core conftest.err conftest.$ac_objext \
13148 conftest$ac_exeext conftest.$ac_ext
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
13152 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
13153 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
13155 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
13160 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
13161 if ${ol_cv_func_pthread_detach+:} false; then :
13162 $as_echo_n "(cached) " >&6
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h. */
13168 #include <pthread.h>
13170 #define NULL (void*)0
13176 pthread_detach(NULL);
13181 if ac_fn_c_try_link "$LINENO"; then :
13182 ol_cv_func_pthread_detach=yes
13184 ol_cv_func_pthread_detach=no
13186 rm -f core conftest.err conftest.$ac_objext \
13187 conftest$ac_exeext conftest.$ac_ext
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
13191 $as_echo "$ol_cv_func_pthread_detach" >&6; }
13193 if test $ol_cv_func_pthread_detach = no ; then
13194 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
13198 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
13202 pthread_setconcurrency \
13203 pthread_getconcurrency \
13204 thr_setconcurrency \
13205 thr_getconcurrency \
13208 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13209 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13210 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13211 cat >>confdefs.h <<_ACEOF
13212 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13220 for ac_func in pthread_kill_other_threads_np
13222 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
13223 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
13224 cat >>confdefs.h <<_ACEOF
13225 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
13232 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
13233 if ${ol_cv_sys_linux_threads+:} false; then :
13234 $as_echo_n "(cached) " >&6
13236 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
13239 $as_echo "$ol_cv_sys_linux_threads" >&6; }
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
13245 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
13246 if ${ol_cv_linux_threads+:} false; then :
13247 $as_echo_n "(cached) " >&6
13250 if test $ol_cv_header_linux_threads = yes &&
13251 test $ol_cv_sys_linux_threads = yes; then
13252 ol_cv_linux_threads=yes
13253 elif test $ol_cv_header_linux_threads = no &&
13254 test $ol_cv_sys_linux_threads = no; then
13255 ol_cv_linux_threads=no
13257 ol_cv_linux_threads=error
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
13262 $as_echo "$ol_cv_linux_threads" >&6; }
13265 if test $ol_cv_linux_threads = error; then
13266 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
13270 $as_echo_n "checking if pthread_create() works... " >&6; }
13271 if ${ol_cv_pthread_create_works+:} false; then :
13272 $as_echo_n "(cached) " >&6
13275 if test "$cross_compiling" = yes; then :
13276 ol_cv_pthread_create_works=yes
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13282 /* pthread test headers */
13283 #include <pthread.h>
13284 #if HAVE_PTHREADS < 7
13288 #define NULL (void*)0
13291 static void *task(p)
13294 return (void *) (p == NULL);
13298 int main(argc, argv)
13303 /* pthread test function */
13304 #ifndef PTHREAD_CREATE_DETACHED
13305 #define PTHREAD_CREATE_DETACHED 1
13309 int detach = PTHREAD_CREATE_DETACHED;
13311 #if HAVE_PTHREADS > 4
13312 /* Final pthreads */
13313 pthread_attr_t attr;
13315 status = pthread_attr_init(&attr);
13316 if( status ) return status;
13318 #if HAVE_PTHREADS < 7
13319 status = pthread_attr_setdetachstate(&attr, &detach);
13320 if( status < 0 ) status = errno;
13322 status = pthread_attr_setdetachstate(&attr, detach);
13324 if( status ) return status;
13325 status = pthread_create( &t, &attr, task, NULL );
13326 #if HAVE_PTHREADS < 7
13327 if( status < 0 ) status = errno;
13329 if( status ) return status;
13331 /* Draft 4 pthreads */
13332 status = pthread_create( &t, pthread_attr_default, task, NULL );
13333 if( status ) return errno;
13335 /* give thread a chance to complete */
13336 /* it should remain joinable and hence detachable */
13339 status = pthread_detach( &t );
13340 if( status ) return errno;
13343 #ifdef HAVE_LINUX_THREADS
13344 pthread_kill_other_threads_np();
13352 if ac_fn_c_try_run "$LINENO"; then :
13353 ol_cv_pthread_create_works=yes
13355 ol_cv_pthread_create_works=no
13357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13358 conftest.$ac_objext conftest.beam conftest.$ac_ext
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
13363 $as_echo "$ol_cv_pthread_create_works" >&6; }
13365 if test $ol_cv_pthread_create_works = no ; then
13366 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
13369 ol_replace_broken_yield=no
13371 if test $ol_replace_broken_yield = yes ; then
13373 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
13377 if test x$ol_with_yielding_select = xauto ; then
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
13379 $as_echo_n "checking if select yields when using pthreads... " >&6; }
13380 if ${ol_cv_pthread_select_yields+:} false; then :
13381 $as_echo_n "(cached) " >&6
13384 if test "$cross_compiling" = yes; then :
13385 ol_cv_pthread_select_yields=cross
13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388 /* end confdefs.h. */
13390 #include <sys/types.h>
13391 #include <sys/time.h>
13392 #include <unistd.h>
13393 #include <pthread.h>
13395 #define NULL (void*) 0
13398 static int fildes[2];
13400 static void *task(p)
13412 FD_SET(fildes[0], &rfds);
13414 /* we're not interested in any fds */
13415 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
13422 exit(0); /* if we exit here, the select blocked the whole process */
13425 int main(argc, argv)
13431 /* create a pipe to select */
13432 if(pipe(&fildes[0])) {
13437 #ifdef HAVE_PTHREAD_SETCONCURRENCY
13438 (void) pthread_setconcurrency(2);
13440 #ifdef HAVE_THR_SETCONCURRENCY
13441 /* Set Solaris LWP concurrency to 2 */
13442 thr_setconcurrency(2);
13446 #if HAVE_PTHREADS < 6
13447 pthread_create(&t, pthread_attr_default, task, NULL);
13449 pthread_create(&t, NULL, task, NULL);
13452 /* make sure task runs first */
13453 #ifdef HAVE_THR_YIELD
13455 #elif defined( HAVE_SCHED_YIELD )
13457 #elif defined( HAVE_PTHREAD_YIELD )
13464 if ac_fn_c_try_run "$LINENO"; then :
13465 ol_cv_pthread_select_yields=no
13467 ol_cv_pthread_select_yields=yes
13469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13470 conftest.$ac_objext conftest.beam conftest.$ac_ext
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
13475 $as_echo "$ol_cv_pthread_select_yields" >&6; }
13477 if test $ol_cv_pthread_select_yields = cross ; then
13478 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
13481 if test $ol_cv_pthread_select_yields = yes ; then
13482 ol_with_yielding_select=yes
13486 CPPFLAGS="$save_CPPFLAGS"
13489 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
13493 if test $ol_with_threads = posix ; then
13494 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
13499 case $ol_with_threads in auto | yes | mach)
13501 for ac_header in mach/cthreads.h cthreads.h
13503 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13504 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13505 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13506 cat >>confdefs.h <<_ACEOF
13507 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13514 if test $ac_cv_header_mach_cthreads_h = yes ; then
13515 ol_with_threads=found
13517 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
13518 if test "x$ac_cv_func_cthread_fork" = xyes; then :
13519 ol_link_threads=yes
13523 if test $ol_link_threads = no ; then
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
13525 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
13526 if ${ol_cv_cthread_all_load+:} false; then :
13527 $as_echo_n "(cached) " >&6
13531 LIBS="-all_load $LIBS"
13532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h. */
13534 #include <mach/cthreads.h>
13539 cthread_fork((void *)0, (void *)0);
13545 if ac_fn_c_try_link "$LINENO"; then :
13546 ol_cv_cthread_all_load=yes
13548 ol_cv_cthread_all_load=no
13550 rm -f core conftest.err conftest.$ac_objext \
13551 conftest$ac_exeext conftest.$ac_ext
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
13556 $as_echo "$ol_cv_cthread_all_load" >&6; }
13558 if test $ol_cv_cthread_all_load = yes ; then
13559 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
13560 ol_link_threads=mach
13561 ol_with_threads=found
13565 elif test $ac_cv_header_cthreads_h = yes ; then
13567 ol_with_threads=found
13570 LIBS="$LIBS -lthreads"
13571 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
13572 if test "x$ac_cv_func_cthread_fork" = xyes; then :
13573 ol_link_threads=yes
13578 if test $ol_link_threads = yes ; then
13579 LTHREAD_LIBS="-lthreads"
13580 ol_link_threads=mach
13581 ol_with_threads=found
13583 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
13586 elif test $ol_with_threads = mach ; then
13587 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
13590 if test $ol_link_threads = mach ; then
13592 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
13594 elif test $ol_with_threads = found ; then
13595 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
13600 case $ol_with_threads in auto | yes | pth)
13602 for ac_header in pth.h
13604 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
13605 if test "x$ac_cv_header_pth_h" = xyes; then :
13606 cat >>confdefs.h <<_ACEOF
13607 #define HAVE_PTH_H 1
13615 if test $ac_cv_header_pth_h = yes ; then
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
13617 $as_echo_n "checking for pth_version in -lpth... " >&6; }
13618 if ${ac_cv_lib_pth_pth_version+:} false; then :
13619 $as_echo_n "(cached) " >&6
13621 ac_check_lib_save_LIBS=$LIBS
13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13626 /* Override any GCC internal prototype to avoid an error.
13627 Use char because int might match the return type of a GCC
13628 builtin and then its argument prototype would still apply. */
13632 char pth_version ();
13636 return pth_version ();
13641 if ac_fn_c_try_link "$LINENO"; then :
13642 ac_cv_lib_pth_pth_version=yes
13644 ac_cv_lib_pth_pth_version=no
13646 rm -f core conftest.err conftest.$ac_objext \
13647 conftest$ac_exeext conftest.$ac_ext
13648 LIBS=$ac_check_lib_save_LIBS
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
13651 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
13652 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
13659 if test $have_pth = yes ; then
13661 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
13663 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
13664 ol_link_threads=pth
13665 ol_with_threads=found
13667 if test x$ol_with_yielding_select = xauto ; then
13668 ol_with_yielding_select=yes
13675 case $ol_with_threads in auto | yes | lwp)
13677 for ac_header in thread.h synch.h
13679 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13680 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13681 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13682 cat >>confdefs.h <<_ACEOF
13683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13690 if test $ac_cv_header_thread_h = yes &&
13691 test $ac_cv_header_synch_h = yes ; then
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
13693 $as_echo_n "checking for thr_create in -lthread... " >&6; }
13694 if ${ac_cv_lib_thread_thr_create+:} false; then :
13695 $as_echo_n "(cached) " >&6
13697 ac_check_lib_save_LIBS=$LIBS
13698 LIBS="-lthread $LIBS"
13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700 /* end confdefs.h. */
13702 /* Override any GCC internal prototype to avoid an error.
13703 Use char because int might match the return type of a GCC
13704 builtin and then its argument prototype would still apply. */
13708 char thr_create ();
13712 return thr_create ();
13717 if ac_fn_c_try_link "$LINENO"; then :
13718 ac_cv_lib_thread_thr_create=yes
13720 ac_cv_lib_thread_thr_create=no
13722 rm -f core conftest.err conftest.$ac_objext \
13723 conftest$ac_exeext conftest.$ac_ext
13724 LIBS=$ac_check_lib_save_LIBS
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
13727 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
13728 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
13735 if test $have_thr = yes ; then
13737 $as_echo "#define HAVE_THR 1" >>confdefs.h
13739 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
13740 ol_link_threads=thr
13742 if test x$ol_with_yielding_select = xauto ; then
13743 ol_with_yielding_select=yes
13747 thr_setconcurrency \
13748 thr_getconcurrency \
13751 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13752 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13753 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13754 cat >>confdefs.h <<_ACEOF
13755 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13764 for ac_header in lwp/lwp.h
13766 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
13767 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
13768 cat >>confdefs.h <<_ACEOF
13769 #define HAVE_LWP_LWP_H 1
13776 if test $ac_cv_header_lwp_lwp_h = yes ; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
13778 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
13779 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
13780 $as_echo_n "(cached) " >&6
13782 ac_check_lib_save_LIBS=$LIBS
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13787 /* Override any GCC internal prototype to avoid an error.
13788 Use char because int might match the return type of a GCC
13789 builtin and then its argument prototype would still apply. */
13793 char lwp_create ();
13797 return lwp_create ();
13802 if ac_fn_c_try_link "$LINENO"; then :
13803 ac_cv_lib_lwp_lwp_create=yes
13805 ac_cv_lib_lwp_lwp_create=no
13807 rm -f core conftest.err conftest.$ac_objext \
13808 conftest$ac_exeext conftest.$ac_ext
13809 LIBS=$ac_check_lib_save_LIBS
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
13812 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
13813 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
13820 if test $have_lwp = yes ; then
13822 $as_echo "#define HAVE_LWP 1" >>confdefs.h
13824 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
13825 ol_link_threads=lwp
13827 if test x$ol_with_yielding_select = xauto ; then
13828 ol_with_yielding_select=no
13835 if test $ol_with_yielding_select = yes ; then
13837 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
13841 if test $ol_with_threads = manual ; then
13842 ol_link_threads=yes
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
13845 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
13847 for ac_header in pthread.h sched.h
13849 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13850 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13851 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13852 cat >>confdefs.h <<_ACEOF
13853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13860 for ac_func in sched_yield pthread_yield
13862 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13863 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13864 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13865 cat >>confdefs.h <<_ACEOF
13866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
13874 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
13875 if ${ol_cv_header_linux_threads+:} false; then :
13876 $as_echo_n "(cached) " >&6
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13880 #include <pthread.h>
13882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13883 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
13884 ol_cv_header_linux_threads=yes
13886 ol_cv_header_linux_threads=no
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
13893 $as_echo "$ol_cv_header_linux_threads" >&6; }
13894 if test $ol_cv_header_linux_threads = yes; then
13896 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
13901 for ac_header in mach/cthreads.h
13903 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
13904 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
13905 cat >>confdefs.h <<_ACEOF
13906 #define HAVE_MACH_CTHREADS_H 1
13913 for ac_header in lwp/lwp.h
13915 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
13916 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
13917 cat >>confdefs.h <<_ACEOF
13918 #define HAVE_LWP_LWP_H 1
13925 for ac_header in thread.h synch.h
13927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13928 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13929 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13930 cat >>confdefs.h <<_ACEOF
13931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13940 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
13942 $as_echo "#define REENTRANT 1" >>confdefs.h
13945 $as_echo "#define _REENTRANT 1" >>confdefs.h
13948 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
13951 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
13954 $as_echo "#define THREADSAFE 1" >>confdefs.h
13957 $as_echo "#define _THREADSAFE 1" >>confdefs.h
13960 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
13964 $as_echo_n "checking for thread specific errno... " >&6; }
13965 if ${ol_cv_errno_thread_specific+:} false; then :
13966 $as_echo_n "(cached) " >&6
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13980 if ac_fn_c_try_link "$LINENO"; then :
13981 ol_cv_errno_thread_specific=yes
13983 ol_cv_errno_thread_specific=no
13985 rm -f core conftest.err conftest.$ac_objext \
13986 conftest$ac_exeext conftest.$ac_ext
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
13990 $as_echo "$ol_cv_errno_thread_specific" >&6; }
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
13993 $as_echo_n "checking for thread specific h_errno... " >&6; }
13994 if ${ol_cv_h_errno_thread_specific+:} false; then :
13995 $as_echo_n "(cached) " >&6
13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999 /* end confdefs.h. */
14009 if ac_fn_c_try_link "$LINENO"; then :
14010 ol_cv_h_errno_thread_specific=yes
14012 ol_cv_h_errno_thread_specific=no
14014 rm -f core conftest.err conftest.$ac_objext \
14015 conftest$ac_exeext conftest.$ac_ext
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
14019 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
14021 if test $ol_cv_errno_thread_specific != yes ||
14022 test $ol_cv_h_errno_thread_specific != yes ; then
14023 LIBS="$LTHREAD_LIBS $LIBS"
14029 if test $ol_link_threads = no ; then
14030 if test $ol_with_threads = yes ; then
14031 as_fn_error $? "no suitable thread support" "$LINENO" 5
14034 if test $ol_with_threads = auto ; then
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
14036 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
14041 $as_echo "#define NO_THREADS 1" >>confdefs.h
14049 if test $ol_link_threads != no ; then
14051 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
14055 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14056 case "$ol_with_threads" in
14062 ol_found_pthreads=yes
14067 ac_cpp='$CPP $CPPFLAGS'
14068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14077 case "$ol_found_pthreads" in
14080 LIBS="$LTHREAD_LIBS $LIBS"
14081 saved_CFLAGS="$CFLAGS"
14082 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
14083 for ac_func in sem_timedwait
14085 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14086 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
14087 cat >>confdefs.h <<_ACEOF
14088 #define HAVE_SEM_TIMEDWAIT 1
14095 { saved_LIBS=; unset saved_LIBS;}
14096 CFLAGS="$saved_CFLAGS"
14097 { saved_CFLAGS=; unset saved_CFLAGS;}
14098 case "$ac_cv_func_sem_timedwait" in
14100 PTHREAD_LIBS="$LTHREAD_LIBS"
14106 case "$have_pthreads" in
14108 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
14110 LIBS="$LTHREAD_LIBS $LIBS"
14111 saved_CFLAGS="$CFLAGS"
14112 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
14113 # The cast to long int works around a bug in the HP C Compiler
14114 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14115 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14116 # This bug is HP SR number 8606223364.
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14118 $as_echo_n "checking size of pthread_t... " >&6; }
14119 if ${ac_cv_sizeof_pthread_t+:} false; then :
14120 $as_echo_n "(cached) " >&6
14122 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
14123 $ac_includes_default
14124 #include <pthread.h>
14130 if test "$ac_cv_type_pthread_t" = yes; then
14131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14133 as_fn_error 77 "cannot compute sizeof (pthread_t)
14134 See \`config.log' for more details" "$LINENO" 5; }
14136 ac_cv_sizeof_pthread_t=0
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14142 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14146 cat >>confdefs.h <<_ACEOF
14147 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14151 LIBISC_PTHREADS_NOTHREADS=pthreads
14153 $as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
14156 # We'd like to use sigwait() too
14158 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
14159 if test "x$ac_cv_func_sigwait" = xyes; then :
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
14163 $as_echo_n "checking for sigwait in -lc... " >&6; }
14164 if ${ac_cv_lib_c_sigwait+:} false; then :
14165 $as_echo_n "(cached) " >&6
14167 ac_check_lib_save_LIBS=$LIBS
14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14172 /* Override any GCC internal prototype to avoid an error.
14173 Use char because int might match the return type of a GCC
14174 builtin and then its argument prototype would still apply. */
14187 if ac_fn_c_try_link "$LINENO"; then :
14188 ac_cv_lib_c_sigwait=yes
14190 ac_cv_lib_c_sigwait=no
14192 rm -f core conftest.err conftest.$ac_objext \
14193 conftest$ac_exeext conftest.$ac_ext
14194 LIBS=$ac_check_lib_save_LIBS
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
14197 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
14198 if test "x$ac_cv_lib_c_sigwait" = xyes; then :
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
14202 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
14203 if ${ac_cv_lib_pthread_sigwait+:} false; then :
14204 $as_echo_n "(cached) " >&6
14206 ac_check_lib_save_LIBS=$LIBS
14207 LIBS="-lpthread $LIBS"
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14211 /* Override any GCC internal prototype to avoid an error.
14212 Use char because int might match the return type of a GCC
14213 builtin and then its argument prototype would still apply. */
14226 if ac_fn_c_try_link "$LINENO"; then :
14227 ac_cv_lib_pthread_sigwait=yes
14229 ac_cv_lib_pthread_sigwait=no
14231 rm -f core conftest.err conftest.$ac_objext \
14232 conftest$ac_exeext conftest.$ac_ext
14233 LIBS=$ac_check_lib_save_LIBS
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
14236 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
14237 if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
14241 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
14242 if ${ac_cv_lib_pthread__Psigwait+:} false; then :
14243 $as_echo_n "(cached) " >&6
14245 ac_check_lib_save_LIBS=$LIBS
14246 LIBS="-lpthread $LIBS"
14247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14248 /* end confdefs.h. */
14250 /* Override any GCC internal prototype to avoid an error.
14251 Use char because int might match the return type of a GCC
14252 builtin and then its argument prototype would still apply. */
14260 return _Psigwait ();
14265 if ac_fn_c_try_link "$LINENO"; then :
14266 ac_cv_lib_pthread__Psigwait=yes
14268 ac_cv_lib_pthread__Psigwait=no
14270 rm -f core conftest.err conftest.$ac_objext \
14271 conftest$ac_exeext conftest.$ac_ext
14272 LIBS=$ac_check_lib_save_LIBS
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
14275 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
14276 if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
14292 case "$host:$have_sigwait" in
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
14295 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
14296 if ${ac_cv_lib_c_r_sigwait+:} false; then :
14297 $as_echo_n "(cached) " >&6
14299 ac_check_lib_save_LIBS=$LIBS
14301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h. */
14304 /* Override any GCC internal prototype to avoid an error.
14305 Use char because int might match the return type of a GCC
14306 builtin and then its argument prototype would still apply. */
14319 if ac_fn_c_try_link "$LINENO"; then :
14320 ac_cv_lib_c_r_sigwait=yes
14322 ac_cv_lib_c_r_sigwait=no
14324 rm -f core conftest.err conftest.$ac_objext \
14325 conftest$ac_exeext conftest.$ac_ext
14326 LIBS=$ac_check_lib_save_LIBS
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
14329 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
14330 if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
14336 case "$have_sigwait" in
14338 ac_cv_func_sigwait=yes
14340 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
14344 for ac_func in pthread_attr_getstacksize
14346 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
14347 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
14348 cat >>confdefs.h <<_ACEOF
14349 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
14355 for ac_func in pthread_attr_setstacksize sysconf
14357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14358 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14359 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14360 cat >>confdefs.h <<_ACEOF
14361 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14369 *-freebsd5.[012]|*-freebsd5.[012].*)
14371 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
14373 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
14376 *-bsdi3.*|*-bsdi4.0*)
14378 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
14383 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
14387 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
14389 for ac_func in pthread_setconcurrency
14391 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
14392 if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
14393 cat >>confdefs.h <<_ACEOF
14394 #define HAVE_PTHREAD_SETCONCURRENCY 1
14400 case "$ac_cv_func_pthread_setconcurrency" in
14403 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
14407 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
14409 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
14413 hack_shutup_pthreadonceinit=no
14416 hack_shutup_pthreadonceinit=yes
14419 hack_shutup_pthreadonceinit=yes
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
14423 $as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
14424 if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
14425 $as_echo_n "(cached) " >&6
14427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428 /* end confdefs.h. */
14430 #include <pthread.h>
14436 static pthread_once_t once_test =
14444 if ac_fn_c_try_compile "$LINENO"; then :
14445 ntp_cv_braces_around_pthread_once_init=no
14447 ntp_cv_braces_around_pthread_once_init=yes
14450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
14454 $as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
14455 case "$ntp_cv_braces_around_pthread_once_init" in
14457 hack_shutup_pthreadonceinit=yes
14461 case "$hack_shutup_pthreadonceinit" in
14464 $as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
14468 { saved_LIBS=; unset saved_LIBS;}
14469 CFLAGS="$saved_CFLAGS"
14470 { saved_CFLAGS=; unset saved_CFLAGS;}
14473 LIBISC_PTHREADS_NOTHREADS=nothreads
14477 if test "$have_pthreads" != "no"; then
14491 case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
14494 $as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
14495 if ${ntp_cv_vsnprintf_percent_m+:} false; then :
14496 $as_echo_n "(cached) " >&6
14498 if test "$cross_compiling" = yes; then :
14499 ntp_cv_vsnprintf_percent_m=no
14502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14503 /* end confdefs.h. */
14505 #include <stdarg.h>
14508 #include <string.h>
14510 int call_vsnprintf(
14517 int call_vsnprintf(
14528 rc = vsnprintf(dst, sz, fmt, ap);
14542 strcpy(sbuf, strerror(ENOENT));
14544 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
14546 return strcmp(sbuf, pbuf);
14553 if ac_fn_c_try_run "$LINENO"; then :
14554 ntp_cv_vsnprintf_percent_m=yes
14556 ntp_cv_vsnprintf_percent_m=no
14558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14559 conftest.$ac_objext conftest.beam conftest.$ac_ext
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
14565 $as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
14566 case "$ntp_cv_vsnprintf_percent_m" in
14569 $as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
14574 for ac_header in sys/clockctl.h
14576 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
14577 if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
14578 cat >>confdefs.h <<_ACEOF
14579 #define HAVE_SYS_CLOCKCTL_H 1
14587 # Check whether --enable-clockctl was given.
14588 if test "${enable_clockctl+set}" = set; then :
14589 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
14591 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
14597 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
14599 $as_echo "$ntp_use_dev_clockctl" >&6; }
14602 for ac_header in sys/capability.h sys/prctl.h
14604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14605 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14606 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14607 cat >>confdefs.h <<_ACEOF
14608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
14617 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
14619 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
14623 ntp_have_linuxcaps=no
14625 *) ntp_have_linuxcaps=yes
14630 ntp_have_linuxcaps=no
14634 # Check whether --enable-linuxcaps was given.
14635 if test "${enable_linuxcaps+set}" = set; then :
14636 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
14642 $as_echo "$ntp_have_linuxcaps" >&6; }
14644 case "$ntp_have_linuxcaps" in
14647 $as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
14654 for ac_header in priv.h
14656 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
14657 if test "x$ac_cv_header_priv_h" = xyes; then :
14658 cat >>confdefs.h <<_ACEOF
14659 #define HAVE_PRIV_H 1
14666 case "$ac_cv_header_priv_h" in
14670 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
14671 if test "x$ac_cv_func_setppriv" = xyes; then :
14672 ntp_have_solarisprivs=yes
14674 ntp_have_solarisprivs=no
14682 # Check whether --enable-solarisprivs was given.
14683 if test "${enable_solarisprivs+set}" = set; then :
14684 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
14690 $as_echo_n "checking if we have solaris privileges... " >&6; }
14692 case "$ntp_have_solarisprivs" in
14695 $as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
14700 $as_echo "$ntp_have_solarisprivs" >&6; }
14702 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
14705 $as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
14712 $as_echo_n "checking for library containing res_9_init... " >&6; }
14713 if ${ac_cv_search_res_9_init+:} false; then :
14714 $as_echo_n "(cached) " >&6
14716 ac_func_search_save_LIBS=$LIBS
14717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718 /* end confdefs.h. */
14720 /* Override any GCC internal prototype to avoid an error.
14721 Use char because int might match the return type of a GCC
14722 builtin and then its argument prototype would still apply. */
14726 char res_9_init ();
14730 return res_9_init ();
14735 for ac_lib in '' resolv; do
14736 if test -z "$ac_lib"; then
14737 ac_res="none required"
14740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14742 if ac_fn_c_try_link "$LINENO"; then :
14743 ac_cv_search_res_9_init=$ac_res
14745 rm -f core conftest.err conftest.$ac_objext \
14747 if ${ac_cv_search_res_9_init+:} false; then :
14751 if ${ac_cv_search_res_9_init+:} false; then :
14754 ac_cv_search_res_9_init=no
14756 rm conftest.$ac_ext
14757 LIBS=$ac_func_search_save_LIBS
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
14760 $as_echo "$ac_cv_search_res_9_init" >&6; }
14761 ac_res=$ac_cv_search_res_9_init
14762 if test "$ac_res" != no; then :
14763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14768 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
14769 $as_echo_n "checking for library containing res_init... " >&6; }
14770 if ${ac_cv_search_res_init+:} false; then :
14771 $as_echo_n "(cached) " >&6
14773 ac_func_search_save_LIBS=$LIBS
14774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14775 /* end confdefs.h. */
14777 /* Override any GCC internal prototype to avoid an error.
14778 Use char because int might match the return type of a GCC
14779 builtin and then its argument prototype would still apply. */
14787 return res_init ();
14792 for ac_lib in '' resolv; do
14793 if test -z "$ac_lib"; then
14794 ac_res="none required"
14797 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14799 if ac_fn_c_try_link "$LINENO"; then :
14800 ac_cv_search_res_init=$ac_res
14802 rm -f core conftest.err conftest.$ac_objext \
14804 if ${ac_cv_search_res_init+:} false; then :
14808 if ${ac_cv_search_res_init+:} false; then :
14811 ac_cv_search_res_init=no
14813 rm conftest.$ac_ext
14814 LIBS=$ac_func_search_save_LIBS
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
14817 $as_echo "$ac_cv_search_res_init" >&6; }
14818 ac_res=$ac_cv_search_res_init
14819 if test "$ac_res" != no; then :
14820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14826 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
14828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14829 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
14830 # include <sys/types.h>
14832 #ifdef HAVE_NETINET_IN_H
14833 # include <netinet/in.h> /* inet_ functions / structs */
14835 #ifdef HAVE_ARPA_NAMESER_H
14836 # include <arpa/nameser.h> /* DNS HEADER struct */
14838 #ifdef HAVE_NETDB_H
14839 # include <netdb.h>
14842 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14843 cat >>confdefs.h <<_ACEOF
14844 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14852 #HMS: Why do we do this check so "early"?
14853 for ac_func in res_init
14855 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
14856 if test "x$ac_cv_func_res_init" = xyes; then :
14857 cat >>confdefs.h <<_ACEOF
14858 #define HAVE_RES_INIT 1
14862 for ac_func in __res_init
14864 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
14865 if test "x$ac_cv_func___res_init" = xyes; then :
14866 cat >>confdefs.h <<_ACEOF
14867 #define HAVE___RES_INIT 1
14877 # We also need -lsocket, but we have tested for that already.
14878 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
14879 if test "x$ac_cv_func_inet_ntop" = xyes; then :
14883 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
14887 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
14888 if test "x$ac_cv_func_inet_pton" = xyes; then :
14892 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
14897 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14898 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14900 cat >>confdefs.h <<_ACEOF
14901 #define HAVE_UINTPTR_T 1
14906 ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
14907 if test "x$ac_cv_type_int32" = xyes; then :
14909 cat >>confdefs.h <<_ACEOF
14910 #define HAVE_INT32 1
14915 ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
14916 if test "x$ac_cv_type_u_int32" = xyes; then :
14918 cat >>confdefs.h <<_ACEOF
14919 #define HAVE_U_INT32 1
14928 case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
14931 $as_echo_n "checking for int32 with DNS headers included... " >&6; }
14932 if ${ntp_cv_type_int32_with_dns+:} false; then :
14933 $as_echo_n "(cached) " >&6
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h. */
14938 #ifdef HAVE_ARPA_NAMESER_H
14939 # include <arpa/nameser.h>
14941 #include <resolv.h>
14947 size_t cb = sizeof(int32);
14954 if ac_fn_c_try_compile "$LINENO"; then :
14955 ntp_cv_type_int32_with_dns=yes
14957 ntp_cv_type_int32_with_dns=no
14960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
14964 $as_echo "$ntp_cv_type_int32_with_dns" >&6; }
14965 case "$ntp_cv_type_int32_with_dns" in
14968 $as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
14973 case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
14976 $as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
14977 if ${ntp_cv_type_u_int32_with_dns+:} false; then :
14978 $as_echo_n "(cached) " >&6
14980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981 /* end confdefs.h. */
14983 #ifdef HAVE_ARPA_NAMESER_H
14984 # include <arpa/nameser.h>
14986 #include <resolv.h>
14992 size_t cb = sizeof(u_int32);
14999 if ac_fn_c_try_compile "$LINENO"; then :
15000 ntp_cv_type_u_int32_with_dns=yes
15002 ntp_cv_type_u_int32_with_dns=no
15005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
15009 $as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
15010 case "$ntp_cv_type_u_int32_with_dns" in
15013 $as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
15018 for ac_header in sys/timepps.h
15020 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
15021 #ifdef HAVE_SYS_TIME_H
15022 # include <sys/time.h>
15024 #ifdef HAVE_ERRNO_H
15025 # include <errno.h>
15030 if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
15031 cat >>confdefs.h <<_ACEOF
15032 #define HAVE_SYS_TIMEPPS_H 1
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
15041 $as_echo_n "checking for struct timespec... " >&6; }
15042 if ${ntp_cv_struct_timespec+:} false; then :
15043 $as_echo_n "(cached) " >&6
15045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15046 /* end confdefs.h. */
15048 #include <sys/time.h>
15049 /* Under SunOS, timespec is in sys/timepps.h,
15050 which needs errno.h and FRAC */
15051 #ifdef HAVE_ERRNO_H
15052 # include <errno.h>
15054 #ifdef HAVE_SYS_TIMEPPS_H
15055 # define FRAC 4294967296
15056 # include <sys/timepps.h>
15070 if ac_fn_c_try_compile "$LINENO"; then :
15071 ntp_cv_struct_timespec=yes
15073 ntp_cv_struct_timespec=no
15076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
15080 $as_echo "$ntp_cv_struct_timespec" >&6; }
15081 case "$ntp_cv_struct_timespec" in
15084 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
15089 $as_echo_n "checking for struct ntptimeval... " >&6; }
15090 if ${ntp_cv_struct_ntptimeval+:} false; then :
15091 $as_echo_n "(cached) " >&6
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15096 #include <sys/time.h>
15097 #include <sys/timex.h>
15103 struct ntptimeval n;
15110 if ac_fn_c_try_compile "$LINENO"; then :
15111 ntp_cv_struct_ntptimeval=yes
15113 ntp_cv_struct_ntptimeval=no
15116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
15120 $as_echo "$ntp_cv_struct_ntptimeval" >&6; }
15121 case "$ntp_cv_struct_ntptimeval" in
15124 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
15128 for ac_header in md5.h
15130 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
15131 #ifdef HAVE_SYS_TYPES_H
15132 # include <sys/types.h>
15137 if test "x$ac_cv_header_md5_h" = xyes; then :
15138 cat >>confdefs.h <<_ACEOF
15139 #define HAVE_MD5_H 1
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
15148 $as_echo_n "checking for library containing MD5Init... " >&6; }
15149 if ${ac_cv_search_MD5Init+:} false; then :
15150 $as_echo_n "(cached) " >&6
15152 ac_func_search_save_LIBS=$LIBS
15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154 /* end confdefs.h. */
15156 /* Override any GCC internal prototype to avoid an error.
15157 Use char because int might match the return type of a GCC
15158 builtin and then its argument prototype would still apply. */
15171 for ac_lib in '' md5 md; do
15172 if test -z "$ac_lib"; then
15173 ac_res="none required"
15176 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15178 if ac_fn_c_try_link "$LINENO"; then :
15179 ac_cv_search_MD5Init=$ac_res
15181 rm -f core conftest.err conftest.$ac_objext \
15183 if ${ac_cv_search_MD5Init+:} false; then :
15187 if ${ac_cv_search_MD5Init+:} false; then :
15190 ac_cv_search_MD5Init=no
15192 rm conftest.$ac_ext
15193 LIBS=$ac_func_search_save_LIBS
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
15196 $as_echo "$ac_cv_search_MD5Init" >&6; }
15197 ac_res=$ac_cv_search_MD5Init
15198 if test "$ac_res" != no; then :
15199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15203 for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
15205 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15206 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15207 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15208 cat >>confdefs.h <<_ACEOF
15209 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
15217 $as_echo_n "checking for SIGIO... " >&6; }
15218 if ${ntp_cv_hdr_def_sigio+:} false; then :
15219 $as_echo_n "(cached) " >&6
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h. */
15224 #include <signal.h>
15231 if ac_fn_c_try_cpp "$LINENO"; then :
15232 ntp_cv_hdr_def_sigio=yes
15234 ntp_cv_hdr_def_sigio=no
15237 rm -f conftest.err conftest.i conftest.$ac_ext
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
15241 $as_echo "$ntp_cv_hdr_def_sigio" >&6; }
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
15244 $as_echo_n "checking if we want to use SIGIO... " >&6; }
15246 case "$ntp_cv_hdr_def_sigio" in
15250 alpha*-dec-osf4*|alpha*-dec-osf5*)
15295 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15299 $as_echo "$ans" >&6; }
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
15302 $as_echo_n "checking for SIGPOLL... " >&6; }
15303 if ${ntp_cv_hdr_def_sigpoll+:} false; then :
15304 $as_echo_n "(cached) " >&6
15306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h. */
15309 #include <signal.h>
15316 if ac_fn_c_try_cpp "$LINENO"; then :
15317 ntp_cv_hdr_def_sigpoll=yes
15319 ntp_cv_hdr_def_sigpoll=no
15322 rm -f conftest.err conftest.i conftest.$ac_ext
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
15326 $as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
15329 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
15331 case "$ntp_cv_hdr_def_sigpoll" in
15350 # XXX Only verified thru AIX6
15388 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15392 $as_echo "$ans" >&6; }
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
15395 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
15397 case "$ntp_cv_hdr_def_sigpoll" in
15416 # XXX Only verified thru AIX6
15451 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15455 $as_echo "$ans" >&6; }
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
15458 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
15459 if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
15460 $as_echo_n "(cached) " >&6
15462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15463 /* end confdefs.h. */
15465 #include <sys/time.h>
15471 gettimeofday(0, 0);
15472 settimeofday(0, 0);
15479 if ac_fn_c_try_compile "$LINENO"; then :
15480 ntp_cv_func_Xettimeofday_nargs=2
15482 ntp_cv_func_Xettimeofday_nargs=1
15485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
15489 $as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
15490 case "$ntp_cv_func_Xettimeofday_nargs" in
15493 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
15497 for ac_func in settimeofday
15499 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
15500 if test "x$ac_cv_func_settimeofday" = xyes; then :
15501 cat >>confdefs.h <<_ACEOF
15502 #define HAVE_SETTIMEOFDAY 1
15508 *-*-mpeix*) ac_cv_func_settimeofday=yes
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
15516 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
15517 ntp_warning='GRONK'
15519 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
15522 ans='clock_settime()'
15525 ntp_warning='But clock_settime() would be better (if we had it)'
15526 ans='settimeofday()'
15529 ntp_warning='Which is the worst of the three'
15535 ntp_warning='Which leaves us with nothing to use!'
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15539 $as_echo "$ans" >&6; }
15540 case "$ntp_warning" in
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
15545 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
15550 LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
15552 { __LIBS=; unset __LIBS;}
15556 # Check whether --enable-shared was given.
15557 if test "${enable_shared+set}" = set; then :
15558 enableval=$enable_shared; p=${PACKAGE-default}
15560 yes) enable_shared=yes ;;
15561 no) enable_shared=no ;;
15564 # Look at the argument we got. We use all the common list separators.
15565 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15566 for pkg in $enableval; do
15568 if test "X$pkg" = "X$p"; then
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15590 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15595 macro_version='2.4.6'
15596 macro_revision='2.4.6'
15610 ltmain=$ac_aux_dir/ltmain.sh
15612 # Backslashify metacharacters that are still active within
15613 # double-quoted strings.
15614 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15616 # Same as above, but do not quote variable references.
15617 double_quote_subst='s/\(["`\\]\)/\\\1/g'
15619 # Sed substitution to delay expansion of an escaped shell variable in a
15620 # double_quote_subst'ed string.
15621 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15623 # Sed substitution to delay expansion of an escaped single quote.
15624 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
15626 # Sed substitution to avoid accidental globbing in evaled expressions
15627 no_glob_subst='s/\*/\\\*/g'
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15630 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15631 if ${lt_cv_path_NM+:} false; then :
15632 $as_echo_n "(cached) " >&6
15634 if test -n "$NM"; then
15635 # Let the user override the test.
15638 lt_nm_to_check=${ac_tool_prefix}nm
15639 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15640 lt_nm_to_check="$lt_nm_to_check nm"
15642 for lt_tmp_nm in $lt_nm_to_check; do
15643 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15644 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
15646 test -z "$ac_dir" && ac_dir=.
15647 tmp_nm=$ac_dir/$lt_tmp_nm
15648 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
15649 # Check to see if the nm accepts a BSD-compat flag.
15650 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
15651 # nm: unknown option "B" ignored
15652 # Tru64's nm complains that /dev/null is an invalid object file
15653 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
15655 mingw*) lt_bad_file=conftest.nm/nofile ;;
15656 *) lt_bad_file=/dev/null ;;
15658 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
15659 *$lt_bad_file* | *'Invalid file or object type'*)
15660 lt_cv_path_NM="$tmp_nm -B"
15664 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
15666 lt_cv_path_NM="$tmp_nm -p"
15670 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15671 continue # so that we can try to find one that supports BSD flags
15680 : ${lt_cv_path_NM=no}
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15684 $as_echo "$lt_cv_path_NM" >&6; }
15685 if test no != "$lt_cv_path_NM"; then
15688 # Didn't find any BSD compatible name lister, look for dumpbin.
15689 if test -n "$DUMPBIN"; then :
15690 # Let the user override the test.
15692 if test -n "$ac_tool_prefix"; then
15693 for ac_prog in dumpbin "link -dump"
15695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15698 $as_echo_n "checking for $ac_word... " >&6; }
15699 if ${ac_cv_prog_DUMPBIN+:} false; then :
15700 $as_echo_n "(cached) " >&6
15702 if test -n "$DUMPBIN"; then
15703 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
15705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15706 for as_dir in $PATH
15709 test -z "$as_dir" && as_dir=.
15710 for ac_exec_ext in '' $ac_executable_extensions; do
15711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15712 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
15713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15722 DUMPBIN=$ac_cv_prog_DUMPBIN
15723 if test -n "$DUMPBIN"; then
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15725 $as_echo "$DUMPBIN" >&6; }
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15728 $as_echo "no" >&6; }
15732 test -n "$DUMPBIN" && break
15735 if test -z "$DUMPBIN"; then
15736 ac_ct_DUMPBIN=$DUMPBIN
15737 for ac_prog in dumpbin "link -dump"
15739 # Extract the first word of "$ac_prog", so it can be a program name with args.
15740 set dummy $ac_prog; ac_word=$2
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15742 $as_echo_n "checking for $ac_word... " >&6; }
15743 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
15744 $as_echo_n "(cached) " >&6
15746 if test -n "$ac_ct_DUMPBIN"; then
15747 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
15749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15750 for as_dir in $PATH
15753 test -z "$as_dir" && as_dir=.
15754 for ac_exec_ext in '' $ac_executable_extensions; do
15755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15756 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
15757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15766 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
15767 if test -n "$ac_ct_DUMPBIN"; then
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15769 $as_echo "$ac_ct_DUMPBIN" >&6; }
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15772 $as_echo "no" >&6; }
15776 test -n "$ac_ct_DUMPBIN" && break
15779 if test "x$ac_ct_DUMPBIN" = x; then
15782 case $cross_compiling:$ac_tool_warned in
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15786 ac_tool_warned=yes ;;
15788 DUMPBIN=$ac_ct_DUMPBIN
15792 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
15794 DUMPBIN="$DUMPBIN -symbols -headers"
15802 if test : != "$DUMPBIN"; then
15806 test -z "$NM" && NM=nm
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15814 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
15815 if ${lt_cv_nm_interface+:} false; then :
15816 $as_echo_n "(cached) " >&6
15818 lt_cv_nm_interface="BSD nm"
15819 echo "int some_variable = 0;" > conftest.$ac_ext
15820 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15821 (eval "$ac_compile" 2>conftest.err)
15822 cat conftest.err >&5
15823 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15824 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
15825 cat conftest.err >&5
15826 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
15827 cat conftest.out >&5
15828 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
15829 lt_cv_nm_interface="MS dumpbin"
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
15834 $as_echo "$lt_cv_nm_interface" >&6; }
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15837 $as_echo_n "checking whether ln -s works... " >&6; }
15839 if test "$LN_S" = "ln -s"; then
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15841 $as_echo "yes" >&6; }
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15844 $as_echo "no, using $LN_S" >&6; }
15847 # find the maximum length of command line arguments
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
15849 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
15850 if ${lt_cv_sys_max_cmd_len+:} false; then :
15851 $as_echo_n "(cached) " >&6
15858 # On DJGPP, this test can blow up pretty badly due to problems in libc
15859 # (any single argument exceeding 2000 bytes causes a buffer overrun
15860 # during glob expansion). Even if it were fixed, the result of this
15861 # check would be larger than it should be.
15862 lt_cv_sys_max_cmd_len=12288; # 12K is about right
15866 # Under GNU Hurd, this test is not required because there is
15867 # no limit to the length of command line arguments.
15868 # Libtool will interpret -1 as no limit whatsoever
15869 lt_cv_sys_max_cmd_len=-1;
15872 cygwin* | mingw* | cegcc*)
15873 # On Win9x/ME, this test blows up -- it succeeds, but takes
15874 # about 5 minutes as the teststring grows exponentially.
15875 # Worse, since 9x/ME are not pre-emptively multitasking,
15876 # you end up with a "frozen" computer, even though with patience
15877 # the test eventually succeeds (with a max line length of 256k).
15878 # Instead, let's just punt: use the minimum linelength reported by
15879 # all of the supported platforms: 8192 (on NT/2K/XP).
15880 lt_cv_sys_max_cmd_len=8192;
15884 # On MiNT this can take a long time and run out of memory.
15885 lt_cv_sys_max_cmd_len=8192;
15889 # On AmigaOS with pdksh, this test takes hours, literally.
15890 # So we just punt and use a minimum line length of 8192.
15891 lt_cv_sys_max_cmd_len=8192;
15894 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
15895 # This has been around since 386BSD, at least. Likely further.
15896 if test -x /sbin/sysctl; then
15897 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15898 elif test -x /usr/sbin/sysctl; then
15899 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15901 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
15903 # And add a safety zone
15904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15909 # We know the value 262144 and hardcode it with a safety zone (like BSD)
15910 lt_cv_sys_max_cmd_len=196608
15914 # The test takes a long time on OS/2.
15915 lt_cv_sys_max_cmd_len=8192
15919 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15920 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15921 # nice to cause kernel panics so lets avoid the loop below.
15922 # First set a reasonable default.
15923 lt_cv_sys_max_cmd_len=16384
15925 if test -x /sbin/sysconfig; then
15926 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15927 *1*) lt_cv_sys_max_cmd_len=-1 ;;
15932 lt_cv_sys_max_cmd_len=102400
15934 sysv5* | sco5v6* | sysv4.2uw2*)
15935 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15936 if test -n "$kargmax"; then
15937 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
15939 lt_cv_sys_max_cmd_len=32768
15943 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
15944 if test -n "$lt_cv_sys_max_cmd_len" && \
15945 test undefined != "$lt_cv_sys_max_cmd_len"; then
15946 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15947 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15949 # Make teststring a little bigger before we do anything with it.
15950 # a 1K string should be a reasonable start.
15951 for i in 1 2 3 4 5 6 7 8; do
15952 teststring=$teststring$teststring
15954 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15955 # If test is not a shell built-in, we'll probably end up computing a
15956 # maximum length that is only half of the actual maximum length, but
15958 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
15959 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
15960 test 17 != "$i" # 1/2 MB should be enough
15963 teststring=$teststring$teststring
15965 # Only check the string length outside the loop.
15966 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
15968 # Add a significant safety factor because C++ compilers can tack on
15969 # massive amounts of additional arguments before passing them to the
15970 # linker. It appears as though 1/2 is a usable value.
15971 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
15978 if test -n "$lt_cv_sys_max_cmd_len"; then
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
15980 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
15983 $as_echo "none" >&6; }
15985 max_cmd_len=$lt_cv_sys_max_cmd_len
15996 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16006 # test EBCDIC or ASCII
16007 case `echo X|tr X '\101'` in
16008 A) # ASCII based system
16009 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16010 lt_SP2NL='tr \040 \012'
16011 lt_NL2SP='tr \015\012 \040\040'
16013 *) # EBCDIC based system
16014 lt_SP2NL='tr \100 \n'
16015 lt_NL2SP='tr \r\n \100\100'
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
16028 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
16029 if ${lt_cv_to_host_file_cmd+:} false; then :
16030 $as_echo_n "(cached) " >&6
16035 *-*-mingw* ) # actually msys
16036 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
16039 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
16041 * ) # otherwise, assume *nix
16042 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
16048 *-*-mingw* ) # actually msys
16049 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
16052 lt_cv_to_host_file_cmd=func_convert_file_noop
16054 * ) # otherwise, assume *nix
16055 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
16059 * ) # unhandled hosts (and "normal" native builds)
16060 lt_cv_to_host_file_cmd=func_convert_file_noop
16066 to_host_file_cmd=$lt_cv_to_host_file_cmd
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
16068 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
16075 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
16076 if ${lt_cv_to_tool_file_cmd+:} false; then :
16077 $as_echo_n "(cached) " >&6
16079 #assume ordinary cross tools, or native build.
16080 lt_cv_to_tool_file_cmd=func_convert_file_noop
16084 *-*-mingw* ) # actually msys
16085 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
16093 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
16095 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
16102 $as_echo_n "checking for $LD option to reload object files... " >&6; }
16103 if ${lt_cv_ld_reload_flag+:} false; then :
16104 $as_echo_n "(cached) " >&6
16106 lt_cv_ld_reload_flag='-r'
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
16109 $as_echo "$lt_cv_ld_reload_flag" >&6; }
16110 reload_flag=$lt_cv_ld_reload_flag
16111 case $reload_flag in
16113 *) reload_flag=" $reload_flag" ;;
16115 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16117 cygwin* | mingw* | pw32* | cegcc*)
16118 if test yes != "$GCC"; then
16123 if test yes = "$GCC"; then
16124 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
16126 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16139 if test -n "$ac_tool_prefix"; then
16140 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16141 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16143 $as_echo_n "checking for $ac_word... " >&6; }
16144 if ${ac_cv_prog_OBJDUMP+:} false; then :
16145 $as_echo_n "(cached) " >&6
16147 if test -n "$OBJDUMP"; then
16148 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16151 for as_dir in $PATH
16154 test -z "$as_dir" && as_dir=.
16155 for ac_exec_ext in '' $ac_executable_extensions; do
16156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16157 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16167 OBJDUMP=$ac_cv_prog_OBJDUMP
16168 if test -n "$OBJDUMP"; then
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16170 $as_echo "$OBJDUMP" >&6; }
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16173 $as_echo "no" >&6; }
16178 if test -z "$ac_cv_prog_OBJDUMP"; then
16179 ac_ct_OBJDUMP=$OBJDUMP
16180 # Extract the first word of "objdump", so it can be a program name with args.
16181 set dummy objdump; ac_word=$2
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16183 $as_echo_n "checking for $ac_word... " >&6; }
16184 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16185 $as_echo_n "(cached) " >&6
16187 if test -n "$ac_ct_OBJDUMP"; then
16188 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16191 for as_dir in $PATH
16194 test -z "$as_dir" && as_dir=.
16195 for ac_exec_ext in '' $ac_executable_extensions; do
16196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16197 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16207 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16208 if test -n "$ac_ct_OBJDUMP"; then
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16210 $as_echo "$ac_ct_OBJDUMP" >&6; }
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16213 $as_echo "no" >&6; }
16216 if test "x$ac_ct_OBJDUMP" = x; then
16219 case $cross_compiling:$ac_tool_warned in
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16223 ac_tool_warned=yes ;;
16225 OBJDUMP=$ac_ct_OBJDUMP
16228 OBJDUMP="$ac_cv_prog_OBJDUMP"
16231 test -z "$OBJDUMP" && OBJDUMP=objdump
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
16242 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
16243 if ${lt_cv_deplibs_check_method+:} false; then :
16244 $as_echo_n "(cached) " >&6
16246 lt_cv_file_magic_cmd='$MAGIC_CMD'
16247 lt_cv_file_magic_test_file=
16248 lt_cv_deplibs_check_method='unknown'
16249 # Need to set the preceding variable on all platforms that support
16250 # interlibrary dependencies.
16251 # 'none' -- dependencies not supported.
16252 # 'unknown' -- same as none, but documents that we really don't know.
16253 # 'pass_all' -- all dependencies passed with no checks.
16254 # 'test_compile' -- check by making test program.
16255 # 'file_magic [[regex]]' -- check by looking for files in library path
16256 # that responds to the $file_magic_cmd with a given extended regex.
16257 # If you have 'file' or equivalent on your system and you're not sure
16258 # whether 'pass_all' will *always* work, you probably want this one.
16262 lt_cv_deplibs_check_method=pass_all
16266 lt_cv_deplibs_check_method=pass_all
16270 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16271 lt_cv_file_magic_cmd='/usr/bin/file -L'
16272 lt_cv_file_magic_test_file=/shlib/libc.so
16276 # func_win32_libid is a shell function defined in ltmain.sh
16277 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16278 lt_cv_file_magic_cmd='func_win32_libid'
16282 # Base MSYS/MinGW do not provide the 'file' command needed by
16283 # func_win32_libid shell function, so use a weaker test based on 'objdump',
16284 # unless we find 'file', for example because we are cross-compiling.
16285 if ( file / ) >/dev/null 2>&1; then
16286 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16287 lt_cv_file_magic_cmd='func_win32_libid'
16289 # Keep this pattern in sync with the one in func_win32_libid.
16290 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
16291 lt_cv_file_magic_cmd='$OBJDUMP -f'
16296 # use the weaker test based on 'objdump'. See mingw*.
16297 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16298 lt_cv_file_magic_cmd='$OBJDUMP -f'
16301 darwin* | rhapsody*)
16302 lt_cv_deplibs_check_method=pass_all
16305 freebsd* | dragonfly*)
16306 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16309 # Not sure whether the presence of OpenBSD here was a mistake.
16310 # Let's accept both of them until this is cleared up.
16311 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16312 lt_cv_file_magic_cmd=/usr/bin/file
16313 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16317 lt_cv_deplibs_check_method=pass_all
16322 lt_cv_deplibs_check_method=pass_all
16325 hpux10.20* | hpux11*)
16326 lt_cv_file_magic_cmd=/usr/bin/file
16329 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16330 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16333 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]'
16334 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16337 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16338 lt_cv_file_magic_test_file=/usr/lib/libc.sl
16344 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16345 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16348 irix5* | irix6* | nonstopux*)
16350 *-32|*"-32 ") libmagic=32-bit;;
16351 *-n32|*"-n32 ") libmagic=N32;;
16352 *-64|*"-64 ") libmagic=64-bit;;
16353 *) libmagic=never-match;;
16355 lt_cv_deplibs_check_method=pass_all
16358 # This must be glibc/ELF.
16359 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16360 lt_cv_deplibs_check_method=pass_all
16364 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16367 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16372 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16373 lt_cv_file_magic_cmd=/usr/bin/file
16374 lt_cv_file_magic_test_file=/usr/lib/libnls.so
16378 lt_cv_deplibs_check_method=pass_all
16381 openbsd* | bitrig*)
16382 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16389 osf3* | osf4* | osf5*)
16390 lt_cv_deplibs_check_method=pass_all
16394 lt_cv_deplibs_check_method=pass_all
16398 lt_cv_deplibs_check_method=pass_all
16401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16402 lt_cv_deplibs_check_method=pass_all
16406 case $host_vendor in
16408 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]'
16409 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16412 lt_cv_deplibs_check_method=pass_all
16415 lt_cv_file_magic_cmd='/bin/file'
16416 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16419 lt_cv_file_magic_cmd='/bin/file'
16420 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
16421 lt_cv_file_magic_test_file=/lib/libc.so
16424 lt_cv_deplibs_check_method=pass_all
16427 lt_cv_deplibs_check_method=pass_all
16433 lt_cv_deplibs_check_method=pass_all
16436 lt_cv_deplibs_check_method=pass_all
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
16442 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16446 if test "$build" = "$host"; then
16449 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
16450 want_nocaseglob=yes
16452 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
16458 file_magic_cmd=$lt_cv_file_magic_cmd
16459 deplibs_check_method=$lt_cv_deplibs_check_method
16460 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16483 if test -n "$ac_tool_prefix"; then
16484 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
16485 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16487 $as_echo_n "checking for $ac_word... " >&6; }
16488 if ${ac_cv_prog_DLLTOOL+:} false; then :
16489 $as_echo_n "(cached) " >&6
16491 if test -n "$DLLTOOL"; then
16492 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16495 for as_dir in $PATH
16498 test -z "$as_dir" && as_dir=.
16499 for ac_exec_ext in '' $ac_executable_extensions; do
16500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16501 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
16502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16511 DLLTOOL=$ac_cv_prog_DLLTOOL
16512 if test -n "$DLLTOOL"; then
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
16514 $as_echo "$DLLTOOL" >&6; }
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16517 $as_echo "no" >&6; }
16522 if test -z "$ac_cv_prog_DLLTOOL"; then
16523 ac_ct_DLLTOOL=$DLLTOOL
16524 # Extract the first word of "dlltool", so it can be a program name with args.
16525 set dummy dlltool; ac_word=$2
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16527 $as_echo_n "checking for $ac_word... " >&6; }
16528 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
16529 $as_echo_n "(cached) " >&6
16531 if test -n "$ac_ct_DLLTOOL"; then
16532 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16535 for as_dir in $PATH
16538 test -z "$as_dir" && as_dir=.
16539 for ac_exec_ext in '' $ac_executable_extensions; do
16540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16541 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16551 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16552 if test -n "$ac_ct_DLLTOOL"; then
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
16554 $as_echo "$ac_ct_DLLTOOL" >&6; }
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16557 $as_echo "no" >&6; }
16560 if test "x$ac_ct_DLLTOOL" = x; then
16563 case $cross_compiling:$ac_tool_warned in
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16567 ac_tool_warned=yes ;;
16569 DLLTOOL=$ac_ct_DLLTOOL
16572 DLLTOOL="$ac_cv_prog_DLLTOOL"
16575 test -z "$DLLTOOL" && DLLTOOL=dlltool
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
16587 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
16588 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
16589 $as_echo_n "(cached) " >&6
16591 lt_cv_sharedlib_from_linklib_cmd='unknown'
16594 cygwin* | mingw* | pw32* | cegcc*)
16595 # two different shell functions defined in ltmain.sh;
16596 # decide which one to use based on capabilities of $DLLTOOL
16597 case `$DLLTOOL --help 2>&1` in
16598 *--identify-strict*)
16599 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
16602 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
16607 # fallback: assume linklib IS sharedlib
16608 lt_cv_sharedlib_from_linklib_cmd=$ECHO
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
16614 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
16615 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
16616 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
16624 if test -n "$ac_tool_prefix"; then
16627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16630 $as_echo_n "checking for $ac_word... " >&6; }
16631 if ${ac_cv_prog_AR+:} false; then :
16632 $as_echo_n "(cached) " >&6
16634 if test -n "$AR"; then
16635 ac_cv_prog_AR="$AR" # Let the user override the test.
16637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16638 for as_dir in $PATH
16641 test -z "$as_dir" && as_dir=.
16642 for ac_exec_ext in '' $ac_executable_extensions; do
16643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16644 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
16645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16655 if test -n "$AR"; then
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16657 $as_echo "$AR" >&6; }
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16660 $as_echo "no" >&6; }
16664 test -n "$AR" && break
16667 if test -z "$AR"; then
16671 # Extract the first word of "$ac_prog", so it can be a program name with args.
16672 set dummy $ac_prog; ac_word=$2
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16674 $as_echo_n "checking for $ac_word... " >&6; }
16675 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16676 $as_echo_n "(cached) " >&6
16678 if test -n "$ac_ct_AR"; then
16679 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16682 for as_dir in $PATH
16685 test -z "$as_dir" && as_dir=.
16686 for ac_exec_ext in '' $ac_executable_extensions; do
16687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16688 ac_cv_prog_ac_ct_AR="$ac_prog"
16689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16698 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16699 if test -n "$ac_ct_AR"; then
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16701 $as_echo "$ac_ct_AR" >&6; }
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16704 $as_echo "no" >&6; }
16708 test -n "$ac_ct_AR" && break
16711 if test "x$ac_ct_AR" = x; then
16714 case $cross_compiling:$ac_tool_warned in
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16718 ac_tool_warned=yes ;;
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
16738 $as_echo_n "checking for archiver @FILE support... " >&6; }
16739 if ${lt_cv_ar_at_file+:} false; then :
16740 $as_echo_n "(cached) " >&6
16742 lt_cv_ar_at_file=no
16743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16744 /* end confdefs.h. */
16754 if ac_fn_c_try_compile "$LINENO"; then :
16755 echo conftest.$ac_objext > conftest.lst
16756 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
16757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16758 (eval $lt_ar_try) 2>&5
16760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16761 test $ac_status = 0; }
16762 if test 0 -eq "$ac_status"; then
16763 # Ensure the archiver fails upon bogus file names.
16764 rm -f conftest.$ac_objext libconftest.a
16765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16766 (eval $lt_ar_try) 2>&5
16768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16769 test $ac_status = 0; }
16770 if test 0 -ne "$ac_status"; then
16774 rm -f conftest.* libconftest.a
16777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
16781 $as_echo "$lt_cv_ar_at_file" >&6; }
16783 if test no = "$lt_cv_ar_at_file"; then
16784 archiver_list_spec=
16786 archiver_list_spec=$lt_cv_ar_at_file
16795 if test -n "$ac_tool_prefix"; then
16796 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16797 set dummy ${ac_tool_prefix}strip; ac_word=$2
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16799 $as_echo_n "checking for $ac_word... " >&6; }
16800 if ${ac_cv_prog_STRIP+:} false; then :
16801 $as_echo_n "(cached) " >&6
16803 if test -n "$STRIP"; then
16804 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16807 for as_dir in $PATH
16810 test -z "$as_dir" && as_dir=.
16811 for ac_exec_ext in '' $ac_executable_extensions; do
16812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16813 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16823 STRIP=$ac_cv_prog_STRIP
16824 if test -n "$STRIP"; then
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16826 $as_echo "$STRIP" >&6; }
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16829 $as_echo "no" >&6; }
16834 if test -z "$ac_cv_prog_STRIP"; then
16836 # Extract the first word of "strip", so it can be a program name with args.
16837 set dummy strip; ac_word=$2
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16839 $as_echo_n "checking for $ac_word... " >&6; }
16840 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16841 $as_echo_n "(cached) " >&6
16843 if test -n "$ac_ct_STRIP"; then
16844 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16847 for as_dir in $PATH
16850 test -z "$as_dir" && as_dir=.
16851 for ac_exec_ext in '' $ac_executable_extensions; do
16852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16853 ac_cv_prog_ac_ct_STRIP="strip"
16854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16863 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16864 if test -n "$ac_ct_STRIP"; then
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16866 $as_echo "$ac_ct_STRIP" >&6; }
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16869 $as_echo "no" >&6; }
16872 if test "x$ac_ct_STRIP" = x; then
16875 case $cross_compiling:$ac_tool_warned in
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16879 ac_tool_warned=yes ;;
16884 STRIP="$ac_cv_prog_STRIP"
16887 test -z "$STRIP" && STRIP=:
16894 if test -n "$ac_tool_prefix"; then
16895 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16896 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16898 $as_echo_n "checking for $ac_word... " >&6; }
16899 if ${ac_cv_prog_RANLIB+:} false; then :
16900 $as_echo_n "(cached) " >&6
16902 if test -n "$RANLIB"; then
16903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16906 for as_dir in $PATH
16909 test -z "$as_dir" && as_dir=.
16910 for ac_exec_ext in '' $ac_executable_extensions; do
16911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16912 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16922 RANLIB=$ac_cv_prog_RANLIB
16923 if test -n "$RANLIB"; then
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16925 $as_echo "$RANLIB" >&6; }
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16928 $as_echo "no" >&6; }
16933 if test -z "$ac_cv_prog_RANLIB"; then
16934 ac_ct_RANLIB=$RANLIB
16935 # Extract the first word of "ranlib", so it can be a program name with args.
16936 set dummy ranlib; ac_word=$2
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16938 $as_echo_n "checking for $ac_word... " >&6; }
16939 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16940 $as_echo_n "(cached) " >&6
16942 if test -n "$ac_ct_RANLIB"; then
16943 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16946 for as_dir in $PATH
16949 test -z "$as_dir" && as_dir=.
16950 for ac_exec_ext in '' $ac_executable_extensions; do
16951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16952 ac_cv_prog_ac_ct_RANLIB="ranlib"
16953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16962 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16963 if test -n "$ac_ct_RANLIB"; then
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16965 $as_echo "$ac_ct_RANLIB" >&6; }
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16968 $as_echo "no" >&6; }
16971 if test "x$ac_ct_RANLIB" = x; then
16974 case $cross_compiling:$ac_tool_warned in
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16978 ac_tool_warned=yes ;;
16980 RANLIB=$ac_ct_RANLIB
16983 RANLIB="$ac_cv_prog_RANLIB"
16986 test -z "$RANLIB" && RANLIB=:
16993 # Determine commands to create old-style static archives.
16994 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16995 old_postinstall_cmds='chmod 644 $oldlib'
16996 old_postuninstall_cmds=
16998 if test -n "$RANLIB"; then
17000 bitrig* | openbsd*)
17001 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
17004 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
17007 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
17012 lock_old_archive_extraction=yes ;;
17014 lock_old_archive_extraction=no ;;
17055 # If no C compiler was specified, use CC.
17058 # If no C compiler flags were specified, use CFLAGS.
17059 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17061 # Allow CC to be a program name with arguments.
17065 # Check for command to grab the raw symbol name followed by C symbol from nm.
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
17067 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
17068 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
17069 $as_echo_n "(cached) " >&6
17072 # These are sane defaults that work on at least a few old systems.
17073 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
17075 # Character class describing NM global symbol codes.
17076 symcode='[BCDEGRST]'
17078 # Regexp to match symbols that can be accessed directly from C.
17079 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
17081 # Define system-specific variables.
17086 cygwin* | mingw* | pw32* | cegcc*)
17087 symcode='[ABCDGISTW]'
17090 if test ia64 = "$host_cpu"; then
17091 symcode='[ABCDEGRST]'
17094 irix* | nonstopux*)
17095 symcode='[BCDEGRST]'
17098 symcode='[BCDEGQRST]'
17109 sysv5* | sco5v6* | unixware* | OpenUNIX*)
17117 # If we're using GNU nm, then use its standard symbol codes.
17118 case `$NM -V 2>&1` in
17119 *GNU* | *'with BFD'*)
17120 symcode='[ABCDGIRSTW]' ;;
17123 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17124 # Gets list of data symbols to import.
17125 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
17126 # Adjust the below global symbol transforms to fixup imported variables.
17127 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
17128 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
17129 lt_c_name_lib_hook="\
17130 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
17131 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
17133 # Disable hooks by default.
17134 lt_cv_sys_global_symbol_to_import=
17137 lt_c_name_lib_hook=
17140 # Transform an extracted symbol line into a proper C declaration.
17141 # Some systems (esp. on ia64) link data and code symbols differently,
17142 # so use this general approach.
17143 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
17145 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
17146 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
17148 # Transform an extracted symbol line into symbol name and symbol address
17149 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
17151 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
17152 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
17154 # Transform an extracted symbol line into symbol name with lib prefix and
17156 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
17157 $lt_c_name_lib_hook\
17158 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
17159 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
17160 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
17162 # Handle CRLF in mingw tool chain
17166 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
17170 # Try without a prefix underscore, then with it.
17171 for ac_symprfx in "" "_"; do
17173 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
17174 symxfrm="\\1 $ac_symprfx\\2 \\2"
17176 # Write the raw and C identifiers.
17177 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17178 # Fake it for dumpbin and say T for any non-static function,
17179 # D for any global variable and I for any imported variable.
17180 # Also find C++ and __fastcall symbols from MSVC++,
17181 # which start with @ or ?.
17182 lt_cv_sys_global_symbol_pipe="$AWK '"\
17183 " {last_section=section; section=\$ 3};"\
17184 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
17185 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
17186 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
17187 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
17188 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
17189 " \$ 0!~/External *\|/{next};"\
17190 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
17191 " {if(hide[section]) next};"\
17192 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
17193 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
17194 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
17195 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
17196 " ' prfx=^$ac_symprfx"
17198 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
17200 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
17202 # Check to see that the pipe works correctly.
17206 cat > conftest.$ac_ext <<_LT_EOF
17211 void nm_test_func(void);
17212 void nm_test_func(void){}
17216 int main(){nm_test_var='a';nm_test_func();return(0);}
17219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17220 (eval $ac_compile) 2>&5
17222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17223 test $ac_status = 0; }; then
17224 # Now try to grab the symbols.
17226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
17227 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
17229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17230 test $ac_status = 0; } && test -s "$nlist"; then
17231 # Try sorting and uniquifying the output.
17232 if sort "$nlist" | uniq > "$nlist"T; then
17233 mv -f "$nlist"T "$nlist"
17238 # Make sure that we snagged all the symbols we need.
17239 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
17240 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
17241 cat <<_LT_EOF > conftest.$ac_ext
17242 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
17243 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
17244 /* DATA imports from DLLs on WIN32 can't be const, because runtime
17245 relocations are performed -- see ld's documentation on pseudo-relocs. */
17246 # define LT_DLSYM_CONST
17247 #elif defined __osf__
17248 /* This system does not cope well with relocations in const data. */
17249 # define LT_DLSYM_CONST
17251 # define LT_DLSYM_CONST const
17259 # Now generate the symbol file.
17260 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
17262 cat <<_LT_EOF >> conftest.$ac_ext
17264 /* The mapping between symbol names and symbols. */
17265 LT_DLSYM_CONST struct {
17269 lt__PROGRAM__LTX_preloaded_symbols[] =
17271 { "@PROGRAM@", (void *) 0 },
17273 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
17274 cat <<\_LT_EOF >> conftest.$ac_ext
17278 /* This works around a problem in FreeBSD linker */
17279 #ifdef FREEBSD_WORKAROUND
17280 static const void *lt_preloaded_setup() {
17281 return lt__PROGRAM__LTX_preloaded_symbols;
17289 # Now try linking the two files.
17290 mv conftest.$ac_objext conftstm.$ac_objext
17291 lt_globsym_save_LIBS=$LIBS
17292 lt_globsym_save_CFLAGS=$CFLAGS
17293 LIBS=conftstm.$ac_objext
17294 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
17295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17296 (eval $ac_link) 2>&5
17298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17299 test $ac_status = 0; } && test -s conftest$ac_exeext; then
17302 LIBS=$lt_globsym_save_LIBS
17303 CFLAGS=$lt_globsym_save_CFLAGS
17305 echo "cannot find nm_test_func in $nlist" >&5
17308 echo "cannot find nm_test_var in $nlist" >&5
17311 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
17314 echo "$progname: failed program was:" >&5
17315 cat conftest.$ac_ext >&5
17317 rm -rf conftest* conftst*
17319 # Do not use the global_symbol_pipe unless it works.
17320 if test yes = "$pipe_works"; then
17323 lt_cv_sys_global_symbol_pipe=
17329 if test -z "$lt_cv_sys_global_symbol_pipe"; then
17330 lt_cv_sys_global_symbol_to_cdecl=
17332 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
17334 $as_echo "failed" >&6; }
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17337 $as_echo "ok" >&6; }
17340 # Response file support.
17341 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17342 nm_file_list_spec='@'
17343 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
17344 nm_file_list_spec='@'
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17384 $as_echo_n "checking for sysroot... " >&6; }
17386 # Check whether --with-sysroot was given.
17387 if test "${with_sysroot+set}" = set; then :
17388 withval=$with_sysroot;
17395 case $with_sysroot in #(
17397 if test yes = "$GCC"; then
17398 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
17402 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
17408 $as_echo "$with_sysroot" >&6; }
17409 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
17414 $as_echo "${lt_sysroot:-no}" >&6; }
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
17421 $as_echo_n "checking for a working dd... " >&6; }
17422 if ${ac_cv_path_lt_DD+:} false; then :
17423 $as_echo_n "(cached) " >&6
17425 printf 0123456789abcdef0123456789abcdef >conftest.i
17426 cat conftest.i conftest.i >conftest2.i
17428 if test -z "$lt_DD"; then
17429 ac_path_lt_DD_found=false
17430 # Loop through the user's path and test for each of PROGNAME-LIST
17431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17432 for as_dir in $PATH
17435 test -z "$as_dir" && as_dir=.
17436 for ac_prog in dd; do
17437 for ac_exec_ext in '' $ac_executable_extensions; do
17438 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
17439 as_fn_executable_p "$ac_path_lt_DD" || continue
17440 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
17441 cmp -s conftest.i conftest.out \
17442 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
17444 $ac_path_lt_DD_found && break 3
17449 if test -z "$ac_cv_path_lt_DD"; then
17453 ac_cv_path_lt_DD=$lt_DD
17456 rm -f conftest.i conftest2.i conftest.out
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
17459 $as_echo "$ac_cv_path_lt_DD" >&6; }
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
17463 $as_echo_n "checking how to truncate binary pipes... " >&6; }
17464 if ${lt_cv_truncate_bin+:} false; then :
17465 $as_echo_n "(cached) " >&6
17467 printf 0123456789abcdef0123456789abcdef >conftest.i
17468 cat conftest.i conftest.i >conftest2.i
17469 lt_cv_truncate_bin=
17470 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
17471 cmp -s conftest.i conftest.out \
17472 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
17474 rm -f conftest.i conftest2.i conftest.out
17475 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
17478 $as_echo "$lt_cv_truncate_bin" >&6; }
17486 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17487 func_cc_basename ()
17489 for cc_temp in $*""; do
17491 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17492 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17497 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17500 # Check whether --enable-libtool-lock was given.
17501 if test "${enable_libtool_lock+set}" = set; then :
17502 enableval=$enable_libtool_lock;
17505 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
17507 # Some flags need to be propagated to the compiler or linker for good
17511 # Find out what ABI is being produced by ac_compile, and set mode
17512 # options accordingly.
17513 echo 'int i;' > conftest.$ac_ext
17514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17515 (eval $ac_compile) 2>&5
17517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17518 test $ac_status = 0; }; then
17519 case `/usr/bin/file conftest.$ac_objext` in
17531 # Find out what ABI is being produced by ac_compile, and set linker
17532 # options accordingly.
17533 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17535 (eval $ac_compile) 2>&5
17537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17538 test $ac_status = 0; }; then
17539 if test yes = "$lt_cv_prog_gnu_ld"; then
17540 case `/usr/bin/file conftest.$ac_objext` in
17542 LD="${LD-ld} -melf32bsmip"
17545 LD="${LD-ld} -melf32bmipn32"
17548 LD="${LD-ld} -melf64bmip"
17552 case `/usr/bin/file conftest.$ac_objext` in
17569 # Find out what ABI is being produced by ac_compile, and set linker
17570 # options accordingly.
17571 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17573 (eval $ac_compile) 2>&5
17575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17576 test $ac_status = 0; }; then
17578 case `/usr/bin/file conftest.$ac_objext` in
17586 case `/usr/bin/file conftest.$ac_objext` in
17588 emul="${emul}btsmip"
17591 emul="${emul}ltsmip"
17594 case `/usr/bin/file conftest.$ac_objext` in
17599 LD="${LD-ld} -m $emul"
17604 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
17605 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
17606 # Find out what ABI is being produced by ac_compile, and set linker
17607 # options accordingly. Note that the listed cases only cover the
17608 # situations where additional linker options are needed (such as when
17609 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
17610 # vice versa); the common cases where no linker options are needed do
17611 # not appear in the list.
17612 echo 'int i;' > conftest.$ac_ext
17613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17614 (eval $ac_compile) 2>&5
17616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17617 test $ac_status = 0; }; then
17618 case `/usr/bin/file conftest.o` in
17621 x86_64-*kfreebsd*-gnu)
17622 LD="${LD-ld} -m elf_i386_fbsd"
17625 case `/usr/bin/file conftest.o` in
17627 LD="${LD-ld} -m elf32_x86_64"
17630 LD="${LD-ld} -m elf_i386"
17634 powerpc64le-*linux*)
17635 LD="${LD-ld} -m elf32lppclinux"
17638 LD="${LD-ld} -m elf32ppclinux"
17641 LD="${LD-ld} -m elf_s390"
17644 LD="${LD-ld} -m elf32_sparc"
17650 x86_64-*kfreebsd*-gnu)
17651 LD="${LD-ld} -m elf_x86_64_fbsd"
17654 LD="${LD-ld} -m elf_x86_64"
17657 LD="${LD-ld} -m elf64lppc"
17660 LD="${LD-ld} -m elf64ppc"
17662 s390*-*linux*|s390*-*tpf*)
17663 LD="${LD-ld} -m elf64_s390"
17666 LD="${LD-ld} -m elf64_sparc"
17676 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17677 SAVE_CFLAGS=$CFLAGS
17678 CFLAGS="$CFLAGS -belf"
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
17680 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
17681 if ${lt_cv_cc_needs_belf+:} false; then :
17682 $as_echo_n "(cached) " >&6
17685 ac_cpp='$CPP $CPPFLAGS'
17686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691 /* end confdefs.h. */
17701 if ac_fn_c_try_link "$LINENO"; then :
17702 lt_cv_cc_needs_belf=yes
17704 lt_cv_cc_needs_belf=no
17706 rm -f core conftest.err conftest.$ac_objext \
17707 conftest$ac_exeext conftest.$ac_ext
17709 ac_cpp='$CPP $CPPFLAGS'
17710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
17716 $as_echo "$lt_cv_cc_needs_belf" >&6; }
17717 if test yes != "$lt_cv_cc_needs_belf"; then
17718 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17719 CFLAGS=$SAVE_CFLAGS
17723 # Find out what ABI is being produced by ac_compile, and set linker
17724 # options accordingly.
17725 echo 'int i;' > conftest.$ac_ext
17726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17727 (eval $ac_compile) 2>&5
17729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17730 test $ac_status = 0; }; then
17731 case `/usr/bin/file conftest.o` in
17733 case $lt_cv_prog_gnu_ld in
17736 i?86-*-solaris*|x86_64-*-solaris*)
17737 LD="${LD-ld} -m elf_x86_64"
17740 LD="${LD-ld} -m elf64_sparc"
17743 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
17744 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
17749 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17761 need_locks=$enable_libtool_lock
17763 if test -n "$ac_tool_prefix"; then
17764 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
17765 set dummy ${ac_tool_prefix}mt; ac_word=$2
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17767 $as_echo_n "checking for $ac_word... " >&6; }
17768 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
17769 $as_echo_n "(cached) " >&6
17771 if test -n "$MANIFEST_TOOL"; then
17772 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
17774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17775 for as_dir in $PATH
17778 test -z "$as_dir" && as_dir=.
17779 for ac_exec_ext in '' $ac_executable_extensions; do
17780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17781 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
17782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17791 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
17792 if test -n "$MANIFEST_TOOL"; then
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
17794 $as_echo "$MANIFEST_TOOL" >&6; }
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17797 $as_echo "no" >&6; }
17802 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
17803 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
17804 # Extract the first word of "mt", so it can be a program name with args.
17805 set dummy mt; ac_word=$2
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17807 $as_echo_n "checking for $ac_word... " >&6; }
17808 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
17809 $as_echo_n "(cached) " >&6
17811 if test -n "$ac_ct_MANIFEST_TOOL"; then
17812 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
17814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17815 for as_dir in $PATH
17818 test -z "$as_dir" && as_dir=.
17819 for ac_exec_ext in '' $ac_executable_extensions; do
17820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17821 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
17822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17831 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
17832 if test -n "$ac_ct_MANIFEST_TOOL"; then
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
17834 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17837 $as_echo "no" >&6; }
17840 if test "x$ac_ct_MANIFEST_TOOL" = x; then
17843 case $cross_compiling:$ac_tool_warned in
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17847 ac_tool_warned=yes ;;
17849 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
17852 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
17855 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
17857 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
17858 if ${lt_cv_path_mainfest_tool+:} false; then :
17859 $as_echo_n "(cached) " >&6
17861 lt_cv_path_mainfest_tool=no
17862 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
17863 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
17864 cat conftest.err >&5
17865 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
17866 lt_cv_path_mainfest_tool=yes
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
17871 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
17872 if test yes != "$lt_cv_path_mainfest_tool"; then
17882 rhapsody* | darwin*)
17883 if test -n "$ac_tool_prefix"; then
17884 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
17885 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17887 $as_echo_n "checking for $ac_word... " >&6; }
17888 if ${ac_cv_prog_DSYMUTIL+:} false; then :
17889 $as_echo_n "(cached) " >&6
17891 if test -n "$DSYMUTIL"; then
17892 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17895 for as_dir in $PATH
17898 test -z "$as_dir" && as_dir=.
17899 for ac_exec_ext in '' $ac_executable_extensions; do
17900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17901 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
17902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17911 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17912 if test -n "$DSYMUTIL"; then
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
17914 $as_echo "$DSYMUTIL" >&6; }
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17917 $as_echo "no" >&6; }
17922 if test -z "$ac_cv_prog_DSYMUTIL"; then
17923 ac_ct_DSYMUTIL=$DSYMUTIL
17924 # Extract the first word of "dsymutil", so it can be a program name with args.
17925 set dummy dsymutil; ac_word=$2
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17927 $as_echo_n "checking for $ac_word... " >&6; }
17928 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17929 $as_echo_n "(cached) " >&6
17931 if test -n "$ac_ct_DSYMUTIL"; then
17932 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17935 for as_dir in $PATH
17938 test -z "$as_dir" && as_dir=.
17939 for ac_exec_ext in '' $ac_executable_extensions; do
17940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17941 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
17942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17951 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17952 if test -n "$ac_ct_DSYMUTIL"; then
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
17954 $as_echo "$ac_ct_DSYMUTIL" >&6; }
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17957 $as_echo "no" >&6; }
17960 if test "x$ac_ct_DSYMUTIL" = x; then
17963 case $cross_compiling:$ac_tool_warned in
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17967 ac_tool_warned=yes ;;
17969 DSYMUTIL=$ac_ct_DSYMUTIL
17972 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17975 if test -n "$ac_tool_prefix"; then
17976 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
17977 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17979 $as_echo_n "checking for $ac_word... " >&6; }
17980 if ${ac_cv_prog_NMEDIT+:} false; then :
17981 $as_echo_n "(cached) " >&6
17983 if test -n "$NMEDIT"; then
17984 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17987 for as_dir in $PATH
17990 test -z "$as_dir" && as_dir=.
17991 for ac_exec_ext in '' $ac_executable_extensions; do
17992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17993 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
17994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18003 NMEDIT=$ac_cv_prog_NMEDIT
18004 if test -n "$NMEDIT"; then
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
18006 $as_echo "$NMEDIT" >&6; }
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18009 $as_echo "no" >&6; }
18014 if test -z "$ac_cv_prog_NMEDIT"; then
18015 ac_ct_NMEDIT=$NMEDIT
18016 # Extract the first word of "nmedit", so it can be a program name with args.
18017 set dummy nmedit; ac_word=$2
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18019 $as_echo_n "checking for $ac_word... " >&6; }
18020 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
18021 $as_echo_n "(cached) " >&6
18023 if test -n "$ac_ct_NMEDIT"; then
18024 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
18026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18027 for as_dir in $PATH
18030 test -z "$as_dir" && as_dir=.
18031 for ac_exec_ext in '' $ac_executable_extensions; do
18032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18033 ac_cv_prog_ac_ct_NMEDIT="nmedit"
18034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18043 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
18044 if test -n "$ac_ct_NMEDIT"; then
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
18046 $as_echo "$ac_ct_NMEDIT" >&6; }
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18049 $as_echo "no" >&6; }
18052 if test "x$ac_ct_NMEDIT" = x; then
18055 case $cross_compiling:$ac_tool_warned in
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18059 ac_tool_warned=yes ;;
18061 NMEDIT=$ac_ct_NMEDIT
18064 NMEDIT="$ac_cv_prog_NMEDIT"
18067 if test -n "$ac_tool_prefix"; then
18068 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
18069 set dummy ${ac_tool_prefix}lipo; ac_word=$2
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18071 $as_echo_n "checking for $ac_word... " >&6; }
18072 if ${ac_cv_prog_LIPO+:} false; then :
18073 $as_echo_n "(cached) " >&6
18075 if test -n "$LIPO"; then
18076 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
18078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18079 for as_dir in $PATH
18082 test -z "$as_dir" && as_dir=.
18083 for ac_exec_ext in '' $ac_executable_extensions; do
18084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18085 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
18086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18095 LIPO=$ac_cv_prog_LIPO
18096 if test -n "$LIPO"; then
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
18098 $as_echo "$LIPO" >&6; }
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18101 $as_echo "no" >&6; }
18106 if test -z "$ac_cv_prog_LIPO"; then
18108 # Extract the first word of "lipo", so it can be a program name with args.
18109 set dummy lipo; ac_word=$2
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18111 $as_echo_n "checking for $ac_word... " >&6; }
18112 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
18113 $as_echo_n "(cached) " >&6
18115 if test -n "$ac_ct_LIPO"; then
18116 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
18118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18119 for as_dir in $PATH
18122 test -z "$as_dir" && as_dir=.
18123 for ac_exec_ext in '' $ac_executable_extensions; do
18124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18125 ac_cv_prog_ac_ct_LIPO="lipo"
18126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18135 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
18136 if test -n "$ac_ct_LIPO"; then
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
18138 $as_echo "$ac_ct_LIPO" >&6; }
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18141 $as_echo "no" >&6; }
18144 if test "x$ac_ct_LIPO" = x; then
18147 case $cross_compiling:$ac_tool_warned in
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18151 ac_tool_warned=yes ;;
18156 LIPO="$ac_cv_prog_LIPO"
18159 if test -n "$ac_tool_prefix"; then
18160 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
18161 set dummy ${ac_tool_prefix}otool; ac_word=$2
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18163 $as_echo_n "checking for $ac_word... " >&6; }
18164 if ${ac_cv_prog_OTOOL+:} false; then :
18165 $as_echo_n "(cached) " >&6
18167 if test -n "$OTOOL"; then
18168 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
18170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18171 for as_dir in $PATH
18174 test -z "$as_dir" && as_dir=.
18175 for ac_exec_ext in '' $ac_executable_extensions; do
18176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18177 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
18178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18187 OTOOL=$ac_cv_prog_OTOOL
18188 if test -n "$OTOOL"; then
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
18190 $as_echo "$OTOOL" >&6; }
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18193 $as_echo "no" >&6; }
18198 if test -z "$ac_cv_prog_OTOOL"; then
18200 # Extract the first word of "otool", so it can be a program name with args.
18201 set dummy otool; ac_word=$2
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18203 $as_echo_n "checking for $ac_word... " >&6; }
18204 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
18205 $as_echo_n "(cached) " >&6
18207 if test -n "$ac_ct_OTOOL"; then
18208 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
18210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18211 for as_dir in $PATH
18214 test -z "$as_dir" && as_dir=.
18215 for ac_exec_ext in '' $ac_executable_extensions; do
18216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18217 ac_cv_prog_ac_ct_OTOOL="otool"
18218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18227 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
18228 if test -n "$ac_ct_OTOOL"; then
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
18230 $as_echo "$ac_ct_OTOOL" >&6; }
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18233 $as_echo "no" >&6; }
18236 if test "x$ac_ct_OTOOL" = x; then
18239 case $cross_compiling:$ac_tool_warned in
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18243 ac_tool_warned=yes ;;
18248 OTOOL="$ac_cv_prog_OTOOL"
18251 if test -n "$ac_tool_prefix"; then
18252 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
18253 set dummy ${ac_tool_prefix}otool64; ac_word=$2
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18255 $as_echo_n "checking for $ac_word... " >&6; }
18256 if ${ac_cv_prog_OTOOL64+:} false; then :
18257 $as_echo_n "(cached) " >&6
18259 if test -n "$OTOOL64"; then
18260 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
18262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18263 for as_dir in $PATH
18266 test -z "$as_dir" && as_dir=.
18267 for ac_exec_ext in '' $ac_executable_extensions; do
18268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18269 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
18270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18279 OTOOL64=$ac_cv_prog_OTOOL64
18280 if test -n "$OTOOL64"; then
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
18282 $as_echo "$OTOOL64" >&6; }
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18285 $as_echo "no" >&6; }
18290 if test -z "$ac_cv_prog_OTOOL64"; then
18291 ac_ct_OTOOL64=$OTOOL64
18292 # Extract the first word of "otool64", so it can be a program name with args.
18293 set dummy otool64; ac_word=$2
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18295 $as_echo_n "checking for $ac_word... " >&6; }
18296 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
18297 $as_echo_n "(cached) " >&6
18299 if test -n "$ac_ct_OTOOL64"; then
18300 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
18302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18303 for as_dir in $PATH
18306 test -z "$as_dir" && as_dir=.
18307 for ac_exec_ext in '' $ac_executable_extensions; do
18308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18309 ac_cv_prog_ac_ct_OTOOL64="otool64"
18310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18319 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
18320 if test -n "$ac_ct_OTOOL64"; then
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
18322 $as_echo "$ac_ct_OTOOL64" >&6; }
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18325 $as_echo "no" >&6; }
18328 if test "x$ac_ct_OTOOL64" = x; then
18331 case $cross_compiling:$ac_tool_warned in
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18335 ac_tool_warned=yes ;;
18337 OTOOL64=$ac_ct_OTOOL64
18340 OTOOL64="$ac_cv_prog_OTOOL64"
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
18370 $as_echo_n "checking for -single_module linker flag... " >&6; }
18371 if ${lt_cv_apple_cc_single_mod+:} false; then :
18372 $as_echo_n "(cached) " >&6
18374 lt_cv_apple_cc_single_mod=no
18375 if test -z "$LT_MULTI_MODULE"; then
18376 # By default we will add the -single_module flag. You can override
18377 # by either setting the environment variable LT_MULTI_MODULE
18378 # non-empty at configure time, or by adding -multi_module to the
18380 rm -rf libconftest.dylib*
18381 echo "int foo(void){return 1;}" > conftest.c
18382 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
18383 -dynamiclib -Wl,-single_module conftest.c" >&5
18384 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
18385 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
18387 # If there is a non-empty error log, and "single_module"
18388 # appears in it, assume the flag caused a linker warning
18389 if test -s conftest.err && $GREP single_module conftest.err; then
18390 cat conftest.err >&5
18391 # Otherwise, if the output was created with a 0 exit code from
18392 # the compiler, it worked.
18393 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
18394 lt_cv_apple_cc_single_mod=yes
18396 cat conftest.err >&5
18398 rm -rf libconftest.dylib*
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
18403 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
18406 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
18407 if ${lt_cv_ld_exported_symbols_list+:} false; then :
18408 $as_echo_n "(cached) " >&6
18410 lt_cv_ld_exported_symbols_list=no
18411 save_LDFLAGS=$LDFLAGS
18412 echo "_main" > conftest.sym
18413 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
18414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18415 /* end confdefs.h. */
18425 if ac_fn_c_try_link "$LINENO"; then :
18426 lt_cv_ld_exported_symbols_list=yes
18428 lt_cv_ld_exported_symbols_list=no
18430 rm -f core conftest.err conftest.$ac_objext \
18431 conftest$ac_exeext conftest.$ac_ext
18432 LDFLAGS=$save_LDFLAGS
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
18436 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
18439 $as_echo_n "checking for -force_load linker flag... " >&6; }
18440 if ${lt_cv_ld_force_load+:} false; then :
18441 $as_echo_n "(cached) " >&6
18443 lt_cv_ld_force_load=no
18444 cat > conftest.c << _LT_EOF
18445 int forced_loaded() { return 2;}
18447 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
18448 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
18449 echo "$AR cru libconftest.a conftest.o" >&5
18450 $AR cru libconftest.a conftest.o 2>&5
18451 echo "$RANLIB libconftest.a" >&5
18452 $RANLIB libconftest.a 2>&5
18453 cat > conftest.c << _LT_EOF
18454 int main() { return 0;}
18456 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
18457 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
18459 if test -s conftest.err && $GREP force_load conftest.err; then
18460 cat conftest.err >&5
18461 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
18462 lt_cv_ld_force_load=yes
18464 cat conftest.err >&5
18466 rm -f conftest.err libconftest.a conftest conftest.c
18467 rm -rf conftest.dSYM
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
18471 $as_echo "$lt_cv_ld_force_load" >&6; }
18473 rhapsody* | darwin1.[012])
18474 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
18476 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
18477 darwin*) # darwin 5.x on
18478 # if running on 10.5 or later, the deployment target defaults
18479 # to the OS version, if on x86, and 10.4, the deployment
18480 # target defaults to 10.4. Don't you love it?
18481 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
18482 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
18483 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
18485 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
18487 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
18491 if test yes = "$lt_cv_apple_cc_single_mod"; then
18492 _lt_dar_single_mod='$single_module'
18494 if test yes = "$lt_cv_ld_exported_symbols_list"; then
18495 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
18497 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
18499 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
18500 _lt_dsymutil='~$DSYMUTIL $lib || :'
18507 # func_munge_path_list VARIABLE PATH
18508 # -----------------------------------
18509 # VARIABLE is name of variable containing _space_ separated list of
18510 # directories to be munged by the contents of PATH, which is string
18513 # string "DIR[ DIR]" will be prepended to VARIABLE
18515 # string "DIR[ DIR]" will be appended to VARIABLE
18516 # "DIRP[:DIRP]::[DIRA:]DIRA"
18517 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18518 # "DIRA[ DIRA]" will be appended to VARIABLE
18520 # VARIABLE will be replaced by "DIR[ DIR]"
18521 func_munge_path_list ()
18527 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18530 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18533 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18534 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18537 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18542 for ac_header in dlfcn.h
18544 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
18546 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
18547 cat >>confdefs.h <<_ACEOF
18548 #define HAVE_DLFCN_H 1
18566 enable_win32_dll=no
18570 # Check whether --enable-static was given.
18571 if test "${enable_static+set}" = set; then :
18572 enableval=$enable_static; p=${PACKAGE-default}
18574 yes) enable_static=yes ;;
18575 no) enable_static=no ;;
18578 # Look at the argument we got. We use all the common list separators.
18579 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18580 for pkg in $enableval; do
18582 if test "X$pkg" = "X$p"; then
18602 # Check whether --with-pic was given.
18603 if test "${with_pic+set}" = set; then :
18604 withval=$with_pic; lt_p=${PACKAGE-default}
18606 yes|no) pic_mode=$withval ;;
18609 # Look at the argument we got. We use all the common list separators.
18610 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18611 for lt_pkg in $withval; do
18613 if test "X$lt_pkg" = "X$lt_p"; then
18631 # Check whether --enable-fast-install was given.
18632 if test "${enable_fast_install+set}" = set; then :
18633 enableval=$enable_fast_install; p=${PACKAGE-default}
18635 yes) enable_fast_install=yes ;;
18636 no) enable_fast_install=no ;;
18638 enable_fast_install=no
18639 # Look at the argument we got. We use all the common list separators.
18640 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18641 for pkg in $enableval; do
18643 if test "X$pkg" = "X$p"; then
18644 enable_fast_install=yes
18651 enable_fast_install=yes
18661 shared_archive_member_spec=
18662 case $host,$enable_shared in
18663 power*-*-aix[5-9]*,yes)
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
18665 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
18667 # Check whether --with-aix-soname was given.
18668 if test "${with_aix_soname+set}" = set; then :
18669 withval=$with_aix_soname; case $withval in
18673 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
18676 lt_cv_with_aix_soname=$with_aix_soname
18678 if ${lt_cv_with_aix_soname+:} false; then :
18679 $as_echo_n "(cached) " >&6
18681 lt_cv_with_aix_soname=aix
18684 with_aix_soname=$lt_cv_with_aix_soname
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
18688 $as_echo "$with_aix_soname" >&6; }
18689 if test aix != "$with_aix_soname"; then
18690 # For the AIX way of multilib, we name the shared archive member
18691 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
18692 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
18693 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
18694 # the AIX toolchain works better with OBJECT_MODE set (default 32).
18695 if test 64 = "${OBJECT_MODE-32}"; then
18696 shared_archive_member_spec=shr_64
18698 shared_archive_member_spec=shr
18703 with_aix_soname=aix
18716 # This can be used to rebuild libtool when needed
18717 LIBTOOL_DEPS=$ltmain
18719 # Always use our own libtool.
18720 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18751 test -z "$LN_S" && LN_S="ln -s"
18766 if test -n "${ZSH_VERSION+set}"; then
18767 setopt NO_GLOB_SUBST
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18771 $as_echo_n "checking for objdir... " >&6; }
18772 if ${lt_cv_objdir+:} false; then :
18773 $as_echo_n "(cached) " >&6
18775 rm -f .libs 2>/dev/null
18776 mkdir .libs 2>/dev/null
18777 if test -d .libs; then
18780 # MS-DOS does not allow filenames that begin with a dot.
18783 rmdir .libs 2>/dev/null
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18786 $as_echo "$lt_cv_objdir" >&6; }
18787 objdir=$lt_cv_objdir
18793 cat >>confdefs.h <<_ACEOF
18794 #define LT_OBJDIR "$lt_cv_objdir/"
18802 # AIX sometimes has problems with the GCC collect2 program. For some
18803 # reason, if we set the COLLECT_NAMES environment variable, the problems
18804 # vanish in a puff of smoke.
18805 if test set != "${COLLECT_NAMES+set}"; then
18807 export COLLECT_NAMES
18812 # Global variables:
18814 can_build_shared=yes
18816 # All known linkers require a '.a' archive for static linking (except MSVC,
18817 # which needs '.lib').
18820 with_gnu_ld=$lt_cv_prog_gnu_ld
18825 # Set sane defaults for various variables
18826 test -z "$CC" && CC=cc
18827 test -z "$LTCC" && LTCC=$CC
18828 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18829 test -z "$LD" && LD=ld
18830 test -z "$ac_objext" && ac_objext=o
18832 func_cc_basename $compiler
18833 cc_basename=$func_cc_basename_result
18836 # Only perform the check for file, if the check method requires it
18837 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18838 case $deplibs_check_method in
18840 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18842 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
18843 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18844 $as_echo_n "(cached) " >&6
18848 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
18851 lt_save_MAGIC_CMD=$MAGIC_CMD
18852 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18853 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18854 for ac_dir in $ac_dummy; do
18856 test -z "$ac_dir" && ac_dir=.
18857 if test -f "$ac_dir/${ac_tool_prefix}file"; then
18858 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
18859 if test -n "$file_magic_test_file"; then
18860 case $deplibs_check_method in
18862 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18863 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18864 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18865 $EGREP "$file_magic_regex" > /dev/null; then
18870 *** Warning: the command libtool uses to detect shared libraries,
18871 *** $file_magic_cmd, produces output that libtool cannot recognize.
18872 *** The result is that libtool may fail to recognize shared libraries
18873 *** as such. This will affect the creation of libtool libraries that
18874 *** depend on shared libraries, but programs linked with such libtool
18875 *** libraries will work regardless of this problem. Nevertheless, you
18876 *** may want to report the problem to your system manager and/or to
18877 *** bug-libtool@gnu.org
18887 MAGIC_CMD=$lt_save_MAGIC_CMD
18892 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18893 if test -n "$MAGIC_CMD"; then
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18895 $as_echo "$MAGIC_CMD" >&6; }
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18898 $as_echo "no" >&6; }
18905 if test -z "$lt_cv_path_MAGIC_CMD"; then
18906 if test -n "$ac_tool_prefix"; then
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18908 $as_echo_n "checking for file... " >&6; }
18909 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18910 $as_echo_n "(cached) " >&6
18914 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
18917 lt_save_MAGIC_CMD=$MAGIC_CMD
18918 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18919 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18920 for ac_dir in $ac_dummy; do
18922 test -z "$ac_dir" && ac_dir=.
18923 if test -f "$ac_dir/file"; then
18924 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
18925 if test -n "$file_magic_test_file"; then
18926 case $deplibs_check_method in
18928 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18929 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18930 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18931 $EGREP "$file_magic_regex" > /dev/null; then
18936 *** Warning: the command libtool uses to detect shared libraries,
18937 *** $file_magic_cmd, produces output that libtool cannot recognize.
18938 *** The result is that libtool may fail to recognize shared libraries
18939 *** as such. This will affect the creation of libtool libraries that
18940 *** depend on shared libraries, but programs linked with such libtool
18941 *** libraries will work regardless of this problem. Nevertheless, you
18942 *** may want to report the problem to your system manager and/or to
18943 *** bug-libtool@gnu.org
18953 MAGIC_CMD=$lt_save_MAGIC_CMD
18958 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18959 if test -n "$MAGIC_CMD"; then
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18961 $as_echo "$MAGIC_CMD" >&6; }
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18964 $as_echo "no" >&6; }
18977 # Use C for the default configuration in the libtool script
18981 ac_cpp='$CPP $CPPFLAGS'
18982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18987 # Source file extension for C test sources.
18990 # Object file extension for compiled C test sources.
18994 # Code to be used in simple compile tests
18995 lt_simple_compile_test_code="int some_variable = 0;"
18997 # Code to be used in simple link tests
18998 lt_simple_link_test_code='int main(){return(0);}'
19006 # If no C compiler was specified, use CC.
19009 # If no C compiler flags were specified, use CFLAGS.
19010 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19012 # Allow CC to be a program name with arguments.
19015 # Save the default compiler, since it gets overwritten when the other
19016 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
19017 compiler_DEFAULT=$CC
19019 # save warnings/boilerplate of simple test code
19020 ac_outfile=conftest.$ac_objext
19021 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19022 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19023 _lt_compiler_boilerplate=`cat conftest.err`
19026 ac_outfile=conftest.$ac_objext
19027 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19028 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19029 _lt_linker_boilerplate=`cat conftest.err`
19034 ## There is no encapsulation within the following macros, do not change
19035 ## the running order or otherwise move them around unless you know exactly
19036 ## what you are doing...
19037 if test -n "$compiler"; then
19039 lt_prog_compiler_no_builtin_flag=
19041 if test yes = "$GCC"; then
19042 case $cc_basename in
19044 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
19046 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19050 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
19051 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
19052 $as_echo_n "(cached) " >&6
19054 lt_cv_prog_compiler_rtti_exceptions=no
19055 ac_outfile=conftest.$ac_objext
19056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19057 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
19058 # Insert the option either (1) after the last *FLAGS variable, or
19059 # (2) before a word containing "conftest.", or (3) at the end.
19060 # Note that $ac_compile itself does not contain backslashes and begins
19061 # with a dollar sign (not a hyphen), so the echo should work correctly.
19062 # The option is referenced via a variable to avoid confusing sed.
19063 lt_compile=`echo "$ac_compile" | $SED \
19064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19066 -e 's:$: $lt_compiler_flag:'`
19067 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19068 (eval "$lt_compile" 2>conftest.err)
19070 cat conftest.err >&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 if (exit $ac_status) && test -s "$ac_outfile"; then
19073 # The compiler can only warn and ignore the option if not recognized
19074 # So say no if there are warnings other than the usual output.
19075 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19077 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19078 lt_cv_prog_compiler_rtti_exceptions=yes
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19085 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19087 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
19088 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
19100 lt_prog_compiler_wl=
19101 lt_prog_compiler_pic=
19102 lt_prog_compiler_static=
19105 if test yes = "$GCC"; then
19106 lt_prog_compiler_wl='-Wl,'
19107 lt_prog_compiler_static='-static'
19111 # All AIX code is PIC.
19112 if test ia64 = "$host_cpu"; then
19113 # AIX 5 now supports IA64 processor
19114 lt_prog_compiler_static='-Bstatic'
19116 lt_prog_compiler_pic='-fPIC'
19122 # see comment about AmigaOS4 .so support
19123 lt_prog_compiler_pic='-fPIC'
19126 # FIXME: we need at least 68020 code to build shared libraries, but
19127 # adding the '-m68020' flag to GCC prevents building anything better,
19129 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
19134 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19135 # PIC is the default for these OSes.
19138 mingw* | cygwin* | pw32* | os2* | cegcc*)
19139 # This hack is so that the source file can tell whether it is being
19140 # built for inclusion in a dll (and should export symbols for example).
19141 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19142 # (--disable-auto-import) libraries
19143 lt_prog_compiler_pic='-DDLL_EXPORT'
19146 lt_prog_compiler_static='$wl-static'
19151 darwin* | rhapsody*)
19152 # PIC is the default on this platform
19153 # Common symbols not allowed in MH_DYLIB files
19154 lt_prog_compiler_pic='-fno-common'
19158 # PIC is the default for Haiku.
19159 # The "-static" flag exists, but is broken.
19160 lt_prog_compiler_static=
19164 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19165 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19166 # sets the default TLS model and affects inlining.
19172 lt_prog_compiler_pic='-fPIC'
19178 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19179 # Instead, we relocate shared libraries at runtime.
19183 # Just because we use GCC doesn't mean we suddenly get shared libraries
19184 # on systems that don't support them.
19185 lt_prog_compiler_can_build_shared=no
19190 # QNX uses GNU C++, but need to define -shared option too, otherwise
19191 # it will coredump.
19192 lt_prog_compiler_pic='-fPIC -shared'
19196 if test -d /usr/nec; then
19197 lt_prog_compiler_pic=-Kconform_pic
19202 lt_prog_compiler_pic='-fPIC'
19206 case $cc_basename in
19207 nvcc*) # Cuda Compiler Driver 2.2
19208 lt_prog_compiler_wl='-Xlinker '
19209 if test -n "$lt_prog_compiler_pic"; then
19210 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
19215 # PORTME Check for flag to pass linker flags through the system compiler.
19218 lt_prog_compiler_wl='-Wl,'
19219 if test ia64 = "$host_cpu"; then
19220 # AIX 5 now supports IA64 processor
19221 lt_prog_compiler_static='-Bstatic'
19223 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
19227 darwin* | rhapsody*)
19228 # PIC is the default on this platform
19229 # Common symbols not allowed in MH_DYLIB files
19230 lt_prog_compiler_pic='-fno-common'
19231 case $cc_basename in
19233 # NAG Fortran compiler
19234 lt_prog_compiler_wl='-Wl,-Wl,,'
19235 lt_prog_compiler_pic='-PIC'
19236 lt_prog_compiler_static='-Bstatic'
19241 mingw* | cygwin* | pw32* | os2* | cegcc*)
19242 # This hack is so that the source file can tell whether it is being
19243 # built for inclusion in a dll (and should export symbols for example).
19244 lt_prog_compiler_pic='-DDLL_EXPORT'
19247 lt_prog_compiler_static='$wl-static'
19252 hpux9* | hpux10* | hpux11*)
19253 lt_prog_compiler_wl='-Wl,'
19254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19255 # not for PA HP-UX.
19261 lt_prog_compiler_pic='+Z'
19264 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19265 lt_prog_compiler_static='$wl-a ${wl}archive'
19268 irix5* | irix6* | nonstopux*)
19269 lt_prog_compiler_wl='-Wl,'
19270 # PIC (with -KPIC) is the default.
19271 lt_prog_compiler_static='-non_shared'
19274 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19275 case $cc_basename in
19276 # old Intel for x86_64, which still supported -KPIC.
19278 lt_prog_compiler_wl='-Wl,'
19279 lt_prog_compiler_pic='-KPIC'
19280 lt_prog_compiler_static='-static'
19282 # icc used to be incompatible with GCC.
19283 # ICC 10 doesn't accept -KPIC any more.
19285 lt_prog_compiler_wl='-Wl,'
19286 lt_prog_compiler_pic='-fPIC'
19287 lt_prog_compiler_static='-static'
19289 # Lahey Fortran 8.1.
19291 lt_prog_compiler_wl='-Wl,'
19292 lt_prog_compiler_pic='--shared'
19293 lt_prog_compiler_static='--static'
19296 # NAG Fortran compiler
19297 lt_prog_compiler_wl='-Wl,-Wl,,'
19298 lt_prog_compiler_pic='-PIC'
19299 lt_prog_compiler_static='-Bstatic'
19302 # Fabrice Bellard et al's Tiny C Compiler
19303 lt_prog_compiler_wl='-Wl,'
19304 lt_prog_compiler_pic='-fPIC'
19305 lt_prog_compiler_static='-static'
19307 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
19308 # Portland Group compilers (*not* the Pentium gcc compiler,
19309 # which looks to be a dead project)
19310 lt_prog_compiler_wl='-Wl,'
19311 lt_prog_compiler_pic='-fpic'
19312 lt_prog_compiler_static='-Bstatic'
19315 lt_prog_compiler_wl='-Wl,'
19316 # All Alpha code is PIC.
19317 lt_prog_compiler_static='-non_shared'
19319 xl* | bgxl* | bgf* | mpixl*)
19320 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
19321 lt_prog_compiler_wl='-Wl,'
19322 lt_prog_compiler_pic='-qpic'
19323 lt_prog_compiler_static='-qstaticlink'
19326 case `$CC -V 2>&1 | sed 5q` in
19327 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
19328 # Sun Fortran 8.3 passes all unrecognized flags to the linker
19329 lt_prog_compiler_pic='-KPIC'
19330 lt_prog_compiler_static='-Bstatic'
19331 lt_prog_compiler_wl=''
19333 *Sun\ F* | *Sun*Fortran*)
19334 lt_prog_compiler_pic='-KPIC'
19335 lt_prog_compiler_static='-Bstatic'
19336 lt_prog_compiler_wl='-Qoption ld '
19340 lt_prog_compiler_pic='-KPIC'
19341 lt_prog_compiler_static='-Bstatic'
19342 lt_prog_compiler_wl='-Wl,'
19344 *Intel*\ [CF]*Compiler*)
19345 lt_prog_compiler_wl='-Wl,'
19346 lt_prog_compiler_pic='-fPIC'
19347 lt_prog_compiler_static='-static'
19350 lt_prog_compiler_wl='-Wl,'
19351 lt_prog_compiler_pic='-fpic'
19352 lt_prog_compiler_static='-Bstatic'
19360 lt_prog_compiler_pic='-KPIC'
19361 lt_prog_compiler_static='-Bstatic'
19365 # QNX uses GNU C++, but need to define -shared option too, otherwise
19366 # it will coredump.
19367 lt_prog_compiler_pic='-fPIC -shared'
19370 osf3* | osf4* | osf5*)
19371 lt_prog_compiler_wl='-Wl,'
19372 # All OSF/1 code is PIC.
19373 lt_prog_compiler_static='-non_shared'
19377 lt_prog_compiler_static='-non_shared'
19381 lt_prog_compiler_pic='-KPIC'
19382 lt_prog_compiler_static='-Bstatic'
19383 case $cc_basename in
19384 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
19385 lt_prog_compiler_wl='-Qoption ld ';;
19387 lt_prog_compiler_wl='-Wl,';;
19392 lt_prog_compiler_wl='-Qoption ld '
19393 lt_prog_compiler_pic='-PIC'
19394 lt_prog_compiler_static='-Bstatic'
19397 sysv4 | sysv4.2uw2* | sysv4.3*)
19398 lt_prog_compiler_wl='-Wl,'
19399 lt_prog_compiler_pic='-KPIC'
19400 lt_prog_compiler_static='-Bstatic'
19404 if test -d /usr/nec; then
19405 lt_prog_compiler_pic='-Kconform_pic'
19406 lt_prog_compiler_static='-Bstatic'
19410 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19411 lt_prog_compiler_wl='-Wl,'
19412 lt_prog_compiler_pic='-KPIC'
19413 lt_prog_compiler_static='-Bstatic'
19417 lt_prog_compiler_wl='-Wl,'
19418 lt_prog_compiler_can_build_shared=no
19422 lt_prog_compiler_pic='-pic'
19423 lt_prog_compiler_static='-Bstatic'
19427 lt_prog_compiler_can_build_shared=no
19433 # For platforms that do not support PIC, -DPIC is meaningless:
19435 lt_prog_compiler_pic=
19438 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19443 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19444 if ${lt_cv_prog_compiler_pic+:} false; then :
19445 $as_echo_n "(cached) " >&6
19447 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
19450 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
19451 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
19454 # Check to make sure the PIC flag actually works.
19456 if test -n "$lt_prog_compiler_pic"; then
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
19458 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
19459 if ${lt_cv_prog_compiler_pic_works+:} false; then :
19460 $as_echo_n "(cached) " >&6
19462 lt_cv_prog_compiler_pic_works=no
19463 ac_outfile=conftest.$ac_objext
19464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19465 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
19466 # Insert the option either (1) after the last *FLAGS variable, or
19467 # (2) before a word containing "conftest.", or (3) at the end.
19468 # Note that $ac_compile itself does not contain backslashes and begins
19469 # with a dollar sign (not a hyphen), so the echo should work correctly.
19470 # The option is referenced via a variable to avoid confusing sed.
19471 lt_compile=`echo "$ac_compile" | $SED \
19472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19474 -e 's:$: $lt_compiler_flag:'`
19475 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19476 (eval "$lt_compile" 2>conftest.err)
19478 cat conftest.err >&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 if (exit $ac_status) && test -s "$ac_outfile"; then
19481 # The compiler can only warn and ignore the option if not recognized
19482 # So say no if there are warnings other than the usual output.
19483 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19485 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19486 lt_cv_prog_compiler_pic_works=yes
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
19493 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
19495 if test yes = "$lt_cv_prog_compiler_pic_works"; then
19496 case $lt_prog_compiler_pic in
19498 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
19501 lt_prog_compiler_pic=
19502 lt_prog_compiler_can_build_shared=no
19518 # Check to make sure the static flag actually works.
19520 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19522 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19523 if ${lt_cv_prog_compiler_static_works+:} false; then :
19524 $as_echo_n "(cached) " >&6
19526 lt_cv_prog_compiler_static_works=no
19527 save_LDFLAGS=$LDFLAGS
19528 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19529 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19530 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19531 # The linker can only warn and ignore the option if not recognized
19532 # So say no if there are warnings
19533 if test -s conftest.err; then
19534 # Append any errors to the config.log.
19535 cat conftest.err 1>&5
19536 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19537 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19538 if diff conftest.exp conftest.er2 >/dev/null; then
19539 lt_cv_prog_compiler_static_works=yes
19542 lt_cv_prog_compiler_static_works=yes
19546 LDFLAGS=$save_LDFLAGS
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
19550 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
19552 if test yes = "$lt_cv_prog_compiler_static_works"; then
19555 lt_prog_compiler_static=
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19565 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19566 if ${lt_cv_prog_compiler_c_o+:} false; then :
19567 $as_echo_n "(cached) " >&6
19569 lt_cv_prog_compiler_c_o=no
19570 $RM -r conftest 2>/dev/null
19574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19576 lt_compiler_flag="-o out/conftest2.$ac_objext"
19577 # Insert the option either (1) after the last *FLAGS variable, or
19578 # (2) before a word containing "conftest.", or (3) at the end.
19579 # Note that $ac_compile itself does not contain backslashes and begins
19580 # with a dollar sign (not a hyphen), so the echo should work correctly.
19581 lt_compile=`echo "$ac_compile" | $SED \
19582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19584 -e 's:$: $lt_compiler_flag:'`
19585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19586 (eval "$lt_compile" 2>out/conftest.err)
19588 cat out/conftest.err >&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19592 # The compiler can only warn and ignore the option if not recognized
19593 # So say no if there are warnings
19594 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19595 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19596 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19597 lt_cv_prog_compiler_c_o=yes
19602 # SGI C++ compiler will create directory out/ii_files/ for
19603 # template instantiation
19604 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19605 $RM out/* && rmdir out
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19612 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19620 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19621 if ${lt_cv_prog_compiler_c_o+:} false; then :
19622 $as_echo_n "(cached) " >&6
19624 lt_cv_prog_compiler_c_o=no
19625 $RM -r conftest 2>/dev/null
19629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19631 lt_compiler_flag="-o out/conftest2.$ac_objext"
19632 # Insert the option either (1) after the last *FLAGS variable, or
19633 # (2) before a word containing "conftest.", or (3) at the end.
19634 # Note that $ac_compile itself does not contain backslashes and begins
19635 # with a dollar sign (not a hyphen), so the echo should work correctly.
19636 lt_compile=`echo "$ac_compile" | $SED \
19637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19639 -e 's:$: $lt_compiler_flag:'`
19640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19641 (eval "$lt_compile" 2>out/conftest.err)
19643 cat out/conftest.err >&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19647 # The compiler can only warn and ignore the option if not recognized
19648 # So say no if there are warnings
19649 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19650 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19651 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19652 lt_cv_prog_compiler_c_o=yes
19657 # SGI C++ compiler will create directory out/ii_files/ for
19658 # template instantiation
19659 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19660 $RM out/* && rmdir out
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19667 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19672 hard_links=nottested
19673 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
19674 # do not overwrite the value of need_locks provided by the user
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19676 $as_echo_n "checking if we can lock with hard links... " >&6; }
19679 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19681 ln conftest.a conftest.b 2>&5 || hard_links=no
19682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19684 $as_echo "$hard_links" >&6; }
19685 if test no = "$hard_links"; then
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
19687 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19700 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19703 allow_undefined_flag=
19704 always_export_symbols=no
19706 archive_expsym_cmds=
19707 compiler_needs_object=no
19708 enable_shared_with_static_runtimes=no
19709 export_dynamic_flag_spec=
19710 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19711 hardcode_automatic=no
19713 hardcode_direct_absolute=no
19714 hardcode_libdir_flag_spec=
19715 hardcode_libdir_separator=
19716 hardcode_minus_L=no
19717 hardcode_shlibpath_var=unsupported
19719 link_all_deplibs=unknown
19721 module_expsym_cmds=
19722 old_archive_from_new_cmds=
19723 old_archive_from_expsyms_cmds=
19724 thread_safe_flag_spec=
19725 whole_archive_flag_spec=
19726 # include_expsyms should be a list of space-separated symbols to be *always*
19727 # included in the symbol list
19729 # exclude_expsyms can be an extended regexp of symbols to exclude
19730 # it will be wrapped by ' (' and ')$', so one must not match beginning or
19731 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
19732 # as well as any symbol that contains 'd'.
19733 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19734 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19735 # platforms (ab)use it in PIC code, but their linkers get confused if
19736 # the symbol is explicitly referenced. Since portable code cannot
19737 # rely on this symbol name, it's probably fine to never include it in
19738 # preloaded symbol tables.
19739 # Exclude shared library initialization/finalization symbols.
19740 extract_expsyms_cmds=
19743 cygwin* | mingw* | pw32* | cegcc*)
19744 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19745 # When not using gcc, we currently assume that we are using
19746 # Microsoft Visual C++.
19747 if test yes != "$GCC"; then
19752 # we just hope/assume this is gcc and not c89 (= MSVC++)
19755 openbsd* | bitrig*)
19762 # On some targets, GNU ld is compatible enough with the native linker
19763 # that we're better off using the native interface for both.
19764 lt_use_gnu_ld_interface=no
19765 if test yes = "$with_gnu_ld"; then
19768 # The AIX port of GNU ld has always aspired to compatibility
19769 # with the native linker. However, as the warning in the GNU ld
19770 # block says, versions before 2.19.5* couldn't really create working
19771 # shared libraries, regardless of the interface used.
19772 case `$LD -v 2>&1` in
19773 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19774 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19775 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19777 lt_use_gnu_ld_interface=yes
19782 lt_use_gnu_ld_interface=yes
19787 if test yes = "$lt_use_gnu_ld_interface"; then
19788 # If archive_cmds runs LD, not CC, wlarc should be empty
19791 # Set some defaults for GNU ld with shared library support. These
19792 # are reset later if shared libraries are not supported. Putting them
19793 # here allows them to be overridden if necessary.
19794 runpath_var=LD_RUN_PATH
19795 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19796 export_dynamic_flag_spec='$wl--export-dynamic'
19797 # ancient GNU ld didn't support --whole-archive et. al.
19798 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19799 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
19801 whole_archive_flag_spec=
19803 supports_anon_versioning=no
19804 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
19805 *GNU\ gold*) supports_anon_versioning=yes ;;
19806 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19807 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19808 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19809 *\ 2.11.*) ;; # other 2.11 versions
19810 *) supports_anon_versioning=yes ;;
19813 # See if GNU ld supports shared libraries.
19816 # On AIX/PPC, the GNU linker is very broken
19817 if test ia64 != "$host_cpu"; then
19821 *** Warning: the GNU linker, at least up to release 2.19, is reported
19822 *** to be unable to reliably create shared libraries on AIX.
19823 *** Therefore, libtool is disabling shared libraries support. If you
19824 *** really care for shared libraries, you may want to install binutils
19825 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19826 *** You will then need to restart the configuration process.
19835 # see comment about AmigaOS4 .so support
19836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19837 archive_expsym_cmds=''
19840 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)'
19841 hardcode_libdir_flag_spec='-L$libdir'
19842 hardcode_minus_L=yes
19848 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19849 allow_undefined_flag=unsupported
19850 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19851 # support --undefined. This deserves some investigation. FIXME
19852 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19858 cygwin* | mingw* | pw32* | cegcc*)
19859 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19860 # as there is no search path for DLLs.
19861 hardcode_libdir_flag_spec='-L$libdir'
19862 export_dynamic_flag_spec='$wl--export-all-symbols'
19863 allow_undefined_flag=unsupported
19864 always_export_symbols=no
19865 enable_shared_with_static_runtimes=yes
19866 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'
19867 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19869 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19871 # If the export-symbols file already is a .def file, use it as
19872 # is; otherwise, prepend EXPORTS...
19873 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
19874 cp $export_symbols $output_objdir/$soname.def;
19876 echo EXPORTS > $output_objdir/$soname.def;
19877 cat $export_symbols >> $output_objdir/$soname.def;
19879 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19887 link_all_deplibs=yes
19891 hardcode_libdir_flag_spec='-L$libdir'
19892 hardcode_minus_L=yes
19893 allow_undefined_flag=unsupported
19895 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19896 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19897 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19898 $ECHO EXPORTS >> $output_objdir/$libname.def~
19899 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19900 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19901 emximp -o $lib $output_objdir/$libname.def'
19902 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19903 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19904 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19905 $ECHO EXPORTS >> $output_objdir/$libname.def~
19906 prefix_cmds="$SED"~
19907 if test EXPORTS = "`$SED 1q $export_symbols`"; then
19908 prefix_cmds="$prefix_cmds -e 1d";
19910 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19911 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19912 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19913 emximp -o $lib $output_objdir/$libname.def'
19914 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19915 enable_shared_with_static_runtimes=yes
19920 hardcode_shlibpath_var=no
19921 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
19922 export_dynamic_flag_spec='$wl-E'
19923 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19924 # Instead, shared libraries are loaded at an image base (0x10000000 by
19925 # default) and relocated if they conflict, which is a slow very memory
19926 # consuming and fragmenting process. To avoid this, we pick a random,
19927 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19928 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19929 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19930 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'
19933 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
19935 if test linux-dietlibc = "$host_os"; then
19936 case $cc_basename in
19937 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
19940 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19941 && test no = "$tmp_diet"
19943 tmp_addflag=' $pic_flag'
19944 tmp_sharedflag='-shared'
19945 case $cc_basename,$host_cpu in
19946 pgcc*) # Portland Group C compiler
19947 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'
19948 tmp_addflag=' $pic_flag'
19950 pgf77* | pgf90* | pgf95* | pgfortran*)
19951 # Portland Group f77 and f90 compilers
19952 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'
19953 tmp_addflag=' $pic_flag -Mnomain' ;;
19954 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19955 tmp_addflag=' -i_dynamic' ;;
19956 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19957 tmp_addflag=' -i_dynamic -nofor_main' ;;
19958 ifc* | ifort*) # Intel Fortran compiler
19959 tmp_addflag=' -nofor_main' ;;
19960 lf95*) # Lahey Fortran 8.1
19961 whole_archive_flag_spec=
19962 tmp_sharedflag='--shared' ;;
19963 nagfor*) # NAGFOR 5.3
19964 tmp_sharedflag='-Wl,-shared' ;;
19965 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19966 tmp_sharedflag='-qmkshrobj'
19968 nvcc*) # Cuda Compiler Driver 2.2
19969 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'
19970 compiler_needs_object=yes
19973 case `$CC -V 2>&1 | sed 5q` in
19974 *Sun\ C*) # Sun C 5.9
19975 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'
19976 compiler_needs_object=yes
19977 tmp_sharedflag='-G' ;;
19978 *Sun\ F*) # Sun Fortran 8.3
19979 tmp_sharedflag='-G' ;;
19981 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19983 if test yes = "$supports_anon_versioning"; then
19984 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19985 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19986 echo "local: *; };" >> $output_objdir/$libname.ver~
19987 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
19990 case $cc_basename in
19992 export_dynamic_flag_spec='-rdynamic'
19994 xlf* | bgf* | bgxlf* | mpixlf*)
19995 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19996 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19997 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19998 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
19999 if test yes = "$supports_anon_versioning"; then
20000 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20001 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20002 echo "local: *; };" >> $output_objdir/$libname.ver~
20003 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
20013 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20014 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20017 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20018 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20023 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
20027 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20028 *** create shared libraries on Solaris systems. Therefore, libtool
20029 *** is disabling shared libraries support. We urge you to upgrade GNU
20030 *** binutils to release 2.9.1 or newer. Another option is to modify
20031 *** your PATH or compiler configuration so that the native linker is
20032 *** used, and then restart.
20035 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20036 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20037 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20043 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20044 case `$LD -v 2>&1` in
20045 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20049 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
20050 *** reliably create shared libraries on SCO systems. Therefore, libtool
20051 *** is disabling shared libraries support. We urge you to upgrade GNU
20052 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20053 *** your PATH or compiler configuration so that the native linker is
20054 *** used, and then restart.
20059 # For security reasons, it is highly recommended that you always
20060 # use absolute paths for naming shared libraries, and exclude the
20061 # DT_RUNPATH tag from executables and libraries. But doing so
20062 # requires that you compile everything twice, which is a pain.
20063 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20064 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20066 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20075 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20077 hardcode_direct=yes
20078 hardcode_shlibpath_var=no
20082 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20083 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20084 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20091 if test no = "$ld_shlibs"; then
20093 hardcode_libdir_flag_spec=
20094 export_dynamic_flag_spec=
20095 whole_archive_flag_spec=
20098 # PORTME fill in a description of your system's linker (not GNU ld)
20101 allow_undefined_flag=unsupported
20102 always_export_symbols=yes
20103 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'
20104 # Note: this linker hardcodes the directories in LIBPATH if there
20105 # are no directories specified by -L.
20106 hardcode_minus_L=yes
20107 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
20108 # Neither direct hardcoding nor static linking is supported with a
20110 hardcode_direct=unsupported
20115 if test ia64 = "$host_cpu"; then
20116 # On IA64, the linker does run time linking by default, so we don't
20117 # have to do anything special.
20118 aix_use_runtimelinking=no
20119 exp_sym_flag='-Bexport'
20122 # If we're using GNU nm, then we don't want the "-C" option.
20123 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
20124 # Without the "-l" option, or with the "-B" option, AIX nm treats
20125 # weak defined symbols like other global defined symbols, whereas
20126 # GNU nm marks them as "W".
20127 # While the 'weak' keyword is ignored in the Export File, we need
20128 # it in the Import File for the 'aix-soname' feature, so we have
20129 # to replace the "-B" option with "-P" for AIX nm.
20130 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20131 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
20133 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
20135 aix_use_runtimelinking=no
20137 # Test if we are trying to use run time linking or normal
20138 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20139 # have runtime linking enabled, and use it for executables.
20140 # For shared libraries, we enable/disable runtime linking
20141 # depending on the kind of the shared library created -
20142 # when "with_aix_soname,aix_use_runtimelinking" is:
20143 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
20144 # "aix,yes" lib.so shared, rtl:yes, for executables
20145 # lib.a static archive
20146 # "both,no" lib.so.V(shr.o) shared, rtl:yes
20147 # lib.a(lib.so.V) shared, rtl:no, for executables
20148 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
20149 # lib.a(lib.so.V) shared, rtl:no
20150 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
20151 # lib.a static archive
20152 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20153 for ld_flag in $LDFLAGS; do
20154 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
20155 aix_use_runtimelinking=yes
20159 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
20160 # With aix-soname=svr4, we create the lib.so.V shared archives only,
20161 # so we don't have lib.a shared libs to link our executables.
20162 # We have to force runtime linking in this case.
20163 aix_use_runtimelinking=yes
20164 LDFLAGS="$LDFLAGS -Wl,-brtl"
20169 exp_sym_flag='-bexport'
20170 no_entry_flag='-bnoentry'
20173 # When large executables or shared objects are built, AIX ld can
20174 # have problems creating the table of contents. If linking a library
20175 # or program results in "error TOC overflow" add -mminimal-toc to
20176 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20177 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20180 hardcode_direct=yes
20181 hardcode_direct_absolute=yes
20182 hardcode_libdir_separator=':'
20183 link_all_deplibs=yes
20184 file_list_spec='$wl-f,'
20185 case $with_aix_soname,$aix_use_runtimelinking in
20186 aix,*) ;; # traditional, no import file
20187 svr4,* | *,yes) # use import file
20188 # The Import File defines what to hardcode.
20190 hardcode_direct_absolute=no
20194 if test yes = "$GCC"; then
20195 case $host_os in aix4.[012]|aix4.[012].*)
20196 # We only want to do this on AIX 4.2 and lower, the check
20197 # below for broken collect2 doesn't work under 4.3+
20198 collect2name=`$CC -print-prog-name=collect2`
20199 if test -f "$collect2name" &&
20200 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20202 # We have reworked collect2
20205 # We have old collect2
20206 hardcode_direct=unsupported
20207 # It fails to find uninstalled libraries when the uninstalled
20208 # path is not listed in the libpath. Setting hardcode_minus_L
20209 # to unsupported forces relinking
20210 hardcode_minus_L=yes
20211 hardcode_libdir_flag_spec='-L$libdir'
20212 hardcode_libdir_separator=
20216 shared_flag='-shared'
20217 if test yes = "$aix_use_runtimelinking"; then
20218 shared_flag="$shared_flag "'$wl-G'
20220 # Need to ensure runtime linking is disabled for the traditional
20221 # shared library, or the linker may eventually find shared libraries
20222 # /with/ Import File - we do not want to mix them.
20223 shared_flag_aix='-shared'
20224 shared_flag_svr4='-shared $wl-G'
20227 if test ia64 = "$host_cpu"; then
20228 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20229 # chokes on -Wl,-G. The following line is correct:
20232 if test yes = "$aix_use_runtimelinking"; then
20233 shared_flag='$wl-G'
20235 shared_flag='$wl-bM:SRE'
20237 shared_flag_aix='$wl-bM:SRE'
20238 shared_flag_svr4='$wl-G'
20242 export_dynamic_flag_spec='$wl-bexpall'
20243 # It seems that -bexpall does not export symbols beginning with
20244 # underscore (_), so it is better to generate a list of symbols to export.
20245 always_export_symbols=yes
20246 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
20247 # Warning - without using the other runtime loading flags (-brtl),
20248 # -berok will link without error, but may produce a broken library.
20249 allow_undefined_flag='-berok'
20250 # Determine the default libpath from the value encoded in an
20251 # empty executable.
20252 if test set = "${lt_cv_aix_libpath+set}"; then
20253 aix_libpath=$lt_cv_aix_libpath
20255 if ${lt_cv_aix_libpath_+:} false; then :
20256 $as_echo_n "(cached) " >&6
20258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20259 /* end confdefs.h. */
20269 if ac_fn_c_try_link "$LINENO"; then :
20271 lt_aix_libpath_sed='
20272 /Import File Strings/,/^$/ {
20274 s/^0 *\([^ ]*\) *$/\1/
20278 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20279 # Check for a 64-bit object if we didn't find anything.
20280 if test -z "$lt_cv_aix_libpath_"; then
20281 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20284 rm -f core conftest.err conftest.$ac_objext \
20285 conftest$ac_exeext conftest.$ac_ext
20286 if test -z "$lt_cv_aix_libpath_"; then
20287 lt_cv_aix_libpath_=/usr/lib:/lib
20292 aix_libpath=$lt_cv_aix_libpath_
20295 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
20296 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
20298 if test ia64 = "$host_cpu"; then
20299 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
20300 allow_undefined_flag="-z nodefs"
20301 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"
20303 # Determine the default libpath from the value encoded in an
20304 # empty executable.
20305 if test set = "${lt_cv_aix_libpath+set}"; then
20306 aix_libpath=$lt_cv_aix_libpath
20308 if ${lt_cv_aix_libpath_+:} false; then :
20309 $as_echo_n "(cached) " >&6
20311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20312 /* end confdefs.h. */
20322 if ac_fn_c_try_link "$LINENO"; then :
20324 lt_aix_libpath_sed='
20325 /Import File Strings/,/^$/ {
20327 s/^0 *\([^ ]*\) *$/\1/
20331 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20332 # Check for a 64-bit object if we didn't find anything.
20333 if test -z "$lt_cv_aix_libpath_"; then
20334 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20337 rm -f core conftest.err conftest.$ac_objext \
20338 conftest$ac_exeext conftest.$ac_ext
20339 if test -z "$lt_cv_aix_libpath_"; then
20340 lt_cv_aix_libpath_=/usr/lib:/lib
20345 aix_libpath=$lt_cv_aix_libpath_
20348 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
20349 # Warning - without using the other run time loading flags,
20350 # -berok will link without error, but may produce a broken library.
20351 no_undefined_flag=' $wl-bernotok'
20352 allow_undefined_flag=' $wl-berok'
20353 if test yes = "$with_gnu_ld"; then
20354 # We only use this code for GNU lds that support --whole-archive.
20355 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
20357 # Exported symbols can be pulled into shared objects from archives
20358 whole_archive_flag_spec='$convenience'
20360 archive_cmds_need_lc=yes
20361 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
20362 # -brtl affects multiple linker settings, -berok does not and is overridden later
20363 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
20364 if test svr4 != "$with_aix_soname"; then
20365 # This is similar to how AIX traditionally builds its shared libraries.
20366 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
20368 if test aix != "$with_aix_soname"; then
20369 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
20371 # used by -dlpreopen to get the symbols
20372 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
20374 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
20382 # see comment about AmigaOS4 .so support
20383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20384 archive_expsym_cmds=''
20387 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)'
20388 hardcode_libdir_flag_spec='-L$libdir'
20389 hardcode_minus_L=yes
20395 export_dynamic_flag_spec=-rdynamic
20398 cygwin* | mingw* | pw32* | cegcc*)
20399 # When not using gcc, we currently assume that we are using
20400 # Microsoft Visual C++.
20401 # hardcode_libdir_flag_spec is actually meaningless, as there is
20402 # no search path for DLLs.
20403 case $cc_basename in
20406 hardcode_libdir_flag_spec=' '
20407 allow_undefined_flag=unsupported
20408 always_export_symbols=yes
20410 # Tell ltmain to make .lib files, not .a files.
20412 # Tell ltmain to make .dll files, not .so files.
20414 # FIXME: Setting linknames here is a bad hack.
20415 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
20416 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
20417 cp "$export_symbols" "$output_objdir/$soname.def";
20418 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
20420 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
20422 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
20424 # The linker will not automatically build a static lib if we build a DLL.
20425 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
20426 enable_shared_with_static_runtimes=yes
20427 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20428 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20430 old_postinstall_cmds='chmod 644 $oldlib'
20431 postlink_cmds='lt_outputfile="@OUTPUT@"~
20432 lt_tool_outputfile="@TOOL_OUTPUT@"~
20433 case $lt_outputfile in
20436 lt_outputfile=$lt_outputfile.exe
20437 lt_tool_outputfile=$lt_tool_outputfile.exe
20440 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
20441 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
20442 $RM "$lt_outputfile.manifest";
20446 # Assume MSVC wrapper
20447 hardcode_libdir_flag_spec=' '
20448 allow_undefined_flag=unsupported
20449 # Tell ltmain to make .lib files, not .a files.
20451 # Tell ltmain to make .dll files, not .so files.
20453 # FIXME: Setting linknames here is a bad hack.
20454 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
20455 # The linker will automatically build a .lib file if we build a DLL.
20456 old_archive_from_new_cmds='true'
20457 # FIXME: Should let the user specify the lib program.
20458 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
20459 enable_shared_with_static_runtimes=yes
20464 darwin* | rhapsody*)
20467 archive_cmds_need_lc=no
20469 hardcode_automatic=yes
20470 hardcode_shlibpath_var=unsupported
20471 if test yes = "$lt_cv_ld_force_load"; then
20472 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\"`'
20475 whole_archive_flag_spec=''
20477 link_all_deplibs=yes
20478 allow_undefined_flag=$_lt_dar_allow_undefined
20479 case $cc_basename in
20480 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
20481 *) _lt_dar_can_shared=$GCC ;;
20483 if test yes = "$_lt_dar_can_shared"; then
20484 output_verbose_link_cmd=func_echo_all
20485 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
20486 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
20487 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"
20488 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"
20497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20498 hardcode_libdir_flag_spec='-L$libdir'
20499 hardcode_shlibpath_var=no
20502 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20503 # support. Future versions do this automatically, but an explicit c++rt0.o
20504 # does not break anything, and helps significantly (at the cost of a little
20507 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20508 hardcode_libdir_flag_spec='-R$libdir'
20509 hardcode_direct=yes
20510 hardcode_shlibpath_var=no
20513 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20516 hardcode_direct=yes
20517 hardcode_minus_L=yes
20518 hardcode_shlibpath_var=no
20521 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20522 freebsd* | dragonfly*)
20523 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20524 hardcode_libdir_flag_spec='-R$libdir'
20525 hardcode_direct=yes
20526 hardcode_shlibpath_var=no
20530 if test yes = "$GCC"; then
20531 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
20533 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
20535 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
20536 hardcode_libdir_separator=:
20537 hardcode_direct=yes
20539 # hardcode_minus_L: Not really in the search PATH,
20540 # but as the default location of the library.
20541 hardcode_minus_L=yes
20542 export_dynamic_flag_spec='$wl-E'
20546 if test yes,no = "$GCC,$with_gnu_ld"; then
20547 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20549 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20551 if test no = "$with_gnu_ld"; then
20552 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
20553 hardcode_libdir_separator=:
20554 hardcode_direct=yes
20555 hardcode_direct_absolute=yes
20556 export_dynamic_flag_spec='$wl-E'
20557 # hardcode_minus_L: Not really in the search PATH,
20558 # but as the default location of the library.
20559 hardcode_minus_L=yes
20564 if test yes,no = "$GCC,$with_gnu_ld"; then
20567 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20570 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20573 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20579 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20582 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20586 # Older versions of the 11.00 compiler do not understand -b yet
20587 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
20589 $as_echo_n "checking if $CC understands -b... " >&6; }
20590 if ${lt_cv_prog_compiler__b+:} false; then :
20591 $as_echo_n "(cached) " >&6
20593 lt_cv_prog_compiler__b=no
20594 save_LDFLAGS=$LDFLAGS
20595 LDFLAGS="$LDFLAGS -b"
20596 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20597 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20598 # The linker can only warn and ignore the option if not recognized
20599 # So say no if there are warnings
20600 if test -s conftest.err; then
20601 # Append any errors to the config.log.
20602 cat conftest.err 1>&5
20603 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20605 if diff conftest.exp conftest.er2 >/dev/null; then
20606 lt_cv_prog_compiler__b=yes
20609 lt_cv_prog_compiler__b=yes
20613 LDFLAGS=$save_LDFLAGS
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
20617 $as_echo "$lt_cv_prog_compiler__b" >&6; }
20619 if test yes = "$lt_cv_prog_compiler__b"; then
20620 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20622 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20628 if test no = "$with_gnu_ld"; then
20629 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
20630 hardcode_libdir_separator=:
20635 hardcode_shlibpath_var=no
20638 hardcode_direct=yes
20639 hardcode_direct_absolute=yes
20640 export_dynamic_flag_spec='$wl-E'
20642 # hardcode_minus_L: Not really in the search PATH,
20643 # but as the default location of the library.
20644 hardcode_minus_L=yes
20650 irix5* | irix6* | nonstopux*)
20651 if test yes = "$GCC"; then
20652 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'
20653 # Try to use the -exported_symbol ld option, if it does not
20654 # work, assume that -exports_file does not work either and
20655 # implicitly export all symbols.
20656 # This should be the same for all languages, so no per-tag cache variable.
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
20658 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
20659 if ${lt_cv_irix_exported_symbol+:} false; then :
20660 $as_echo_n "(cached) " >&6
20662 save_LDFLAGS=$LDFLAGS
20663 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
20664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20665 /* end confdefs.h. */
20666 int foo (void) { return 0; }
20668 if ac_fn_c_try_link "$LINENO"; then :
20669 lt_cv_irix_exported_symbol=yes
20671 lt_cv_irix_exported_symbol=no
20673 rm -f core conftest.err conftest.$ac_objext \
20674 conftest$ac_exeext conftest.$ac_ext
20675 LDFLAGS=$save_LDFLAGS
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
20678 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
20679 if test yes = "$lt_cv_irix_exported_symbol"; then
20680 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'
20683 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'
20684 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'
20686 archive_cmds_need_lc='no'
20687 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20688 hardcode_libdir_separator=:
20690 link_all_deplibs=yes
20694 case $cc_basename in
20696 # Fabrice Bellard et al's Tiny C Compiler
20698 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20704 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20705 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20707 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20709 hardcode_libdir_flag_spec='-R$libdir'
20710 hardcode_direct=yes
20711 hardcode_shlibpath_var=no
20715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20716 hardcode_direct=yes
20717 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20718 hardcode_libdir_separator=:
20719 hardcode_shlibpath_var=no
20725 openbsd* | bitrig*)
20726 if test -f /usr/libexec/ld.so; then
20727 hardcode_direct=yes
20728 hardcode_shlibpath_var=no
20729 hardcode_direct_absolute=yes
20730 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20731 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20732 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
20733 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
20734 export_dynamic_flag_spec='$wl-E'
20736 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20737 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
20745 hardcode_libdir_flag_spec='-L$libdir'
20746 hardcode_minus_L=yes
20747 allow_undefined_flag=unsupported
20749 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20750 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20751 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20752 $ECHO EXPORTS >> $output_objdir/$libname.def~
20753 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
20754 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20755 emximp -o $lib $output_objdir/$libname.def'
20756 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20757 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20758 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20759 $ECHO EXPORTS >> $output_objdir/$libname.def~
20760 prefix_cmds="$SED"~
20761 if test EXPORTS = "`$SED 1q $export_symbols`"; then
20762 prefix_cmds="$prefix_cmds -e 1d";
20764 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
20765 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
20766 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20767 emximp -o $lib $output_objdir/$libname.def'
20768 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
20769 enable_shared_with_static_runtimes=yes
20773 if test yes = "$GCC"; then
20774 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
20775 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'
20777 allow_undefined_flag=' -expect_unresolved \*'
20778 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'
20780 archive_cmds_need_lc='no'
20781 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20782 hardcode_libdir_separator=:
20785 osf4* | osf5*) # as osf3* with the addition of -msym flag
20786 if test yes = "$GCC"; then
20787 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
20788 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'
20789 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20791 allow_undefined_flag=' -expect_unresolved \*'
20792 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'
20793 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~
20794 $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'
20796 # Both c and cxx compiler support -rpath directly
20797 hardcode_libdir_flag_spec='-rpath $libdir'
20799 archive_cmds_need_lc='no'
20800 hardcode_libdir_separator=:
20804 no_undefined_flag=' -z defs'
20805 if test yes = "$GCC"; then
20807 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20808 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20809 $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'
20811 case `$CC -V 2>&1` in
20814 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
20815 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20816 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20820 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20821 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20822 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20826 hardcode_libdir_flag_spec='-R$libdir'
20827 hardcode_shlibpath_var=no
20829 solaris2.[0-5] | solaris2.[0-5].*) ;;
20831 # The compiler driver will combine and reorder linker options,
20832 # but understands '-z linker_flag'. GCC discards it without '$wl',
20833 # but is careful enough not to reorder.
20834 # Supported since Solaris 2.6 (maybe 2.5.1?)
20835 if test yes = "$GCC"; then
20836 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
20838 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
20842 link_all_deplibs=yes
20846 if test sequent = "$host_vendor"; then
20847 # Use $CC to link under sequent, because it throws in some extra .o
20848 # files that make .init and .fini sections work.
20849 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20851 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20853 hardcode_libdir_flag_spec='-L$libdir'
20854 hardcode_direct=yes
20855 hardcode_minus_L=yes
20856 hardcode_shlibpath_var=no
20860 case $host_vendor in
20862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20863 hardcode_direct=yes # is this really true???
20866 ## LD is ld it makes a PLAMLIB
20867 ## CC just makes a GrossModule.
20868 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20869 reload_cmds='$CC -r -o $output$reload_objs'
20873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20874 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
20877 runpath_var='LD_RUN_PATH'
20878 hardcode_shlibpath_var=no
20882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20883 hardcode_shlibpath_var=no
20884 export_dynamic_flag_spec='-Bexport'
20888 if test -d /usr/nec; then
20889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20890 hardcode_shlibpath_var=no
20891 runpath_var=LD_RUN_PATH
20892 hardcode_runpath_var=yes
20897 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20898 no_undefined_flag='$wl-z,text'
20899 archive_cmds_need_lc=no
20900 hardcode_shlibpath_var=no
20901 runpath_var='LD_RUN_PATH'
20903 if test yes = "$GCC"; then
20904 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20905 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20907 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20908 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20912 sysv5* | sco3.2v5* | sco5v6*)
20913 # Note: We CANNOT use -z defs as we might desire, because we do not
20914 # link with -lc, and that would cause any symbols used from libc to
20915 # always be unresolved, which means just about no library would
20916 # ever link correctly. If we're not using GNU ld we use -z text
20917 # though, which does catch some bad symbols but isn't as heavy-handed
20919 no_undefined_flag='$wl-z,text'
20920 allow_undefined_flag='$wl-z,nodefs'
20921 archive_cmds_need_lc=no
20922 hardcode_shlibpath_var=no
20923 hardcode_libdir_flag_spec='$wl-R,$libdir'
20924 hardcode_libdir_separator=':'
20925 link_all_deplibs=yes
20926 export_dynamic_flag_spec='$wl-Bexport'
20927 runpath_var='LD_RUN_PATH'
20929 if test yes = "$GCC"; then
20930 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20931 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20933 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20934 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20940 hardcode_libdir_flag_spec='-L$libdir'
20941 hardcode_shlibpath_var=no
20949 if test sni = "$host_vendor"; then
20951 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20952 export_dynamic_flag_spec='$wl-Blargedynsym'
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20959 $as_echo "$ld_shlibs" >&6; }
20960 test no = "$ld_shlibs" && can_build_shared=no
20962 with_gnu_ld=$with_gnu_ld
20979 # Do we need to explicitly link libc?
20981 case "x$archive_cmds_need_lc" in
20983 # Assume -lc should be added
20984 archive_cmds_need_lc=yes
20986 if test yes,yes = "$GCC,$enable_shared"; then
20987 case $archive_cmds in
20989 # FIXME: we may have to deal with multi-command sequences.
20992 # Test whether the compiler implicitly links with -lc since on some
20993 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20994 # to ld, don't add -lc before -lgcc.
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20996 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20997 if ${lt_cv_archive_cmds_need_lc+:} false; then :
20998 $as_echo_n "(cached) " >&6
21001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21004 (eval $ac_compile) 2>&5
21006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21007 test $ac_status = 0; } 2>conftest.err; then
21010 libobjs=conftest.$ac_objext
21012 wl=$lt_prog_compiler_wl
21013 pic_flag=$lt_prog_compiler_pic
21019 lt_save_allow_undefined_flag=$allow_undefined_flag
21020 allow_undefined_flag=
21021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21022 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21025 test $ac_status = 0; }
21027 lt_cv_archive_cmds_need_lc=no
21029 lt_cv_archive_cmds_need_lc=yes
21031 allow_undefined_flag=$lt_save_allow_undefined_flag
21033 cat conftest.err 1>&5
21038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
21039 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
21040 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21199 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21201 if test yes = "$GCC"; then
21203 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
21204 *) lt_awk_arg='/^libraries:/' ;;
21207 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
21208 *) lt_sed_strip_eq='s|=/|/|g' ;;
21210 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
21211 case $lt_search_path_spec in
21213 # if the path contains ";" then we assume it to be the separator
21214 # otherwise default to the standard path separator (i.e. ":") - it is
21215 # assumed that no part of a normal pathname contains ";" but that should
21216 # okay in the real world where ";" in dirpaths is itself problematic.
21217 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
21220 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
21223 # Ok, now we have the path, separated by spaces, we can step through it
21224 # and add multilib dir if necessary...
21225 lt_tmp_lt_search_path_spec=
21226 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
21227 # ...but if some path component already ends with the multilib dir we assume
21228 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
21229 case "$lt_multi_os_dir; $lt_search_path_spec " in
21230 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
21234 for lt_sys_path in $lt_search_path_spec; do
21235 if test -d "$lt_sys_path$lt_multi_os_dir"; then
21236 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
21237 elif test -n "$lt_multi_os_dir"; then
21238 test -d "$lt_sys_path" && \
21239 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
21242 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
21243 BEGIN {RS = " "; FS = "/|\n";} {
21246 for (lt_i = NF; lt_i > 0; lt_i--) {
21247 if ($lt_i != "" && $lt_i != ".") {
21248 if ($lt_i == "..") {
21251 if (lt_count == 0) {
21252 lt_foo = "/" $lt_i lt_foo;
21259 if (lt_foo != "") { lt_freq[lt_foo]++; }
21260 if (lt_freq[lt_foo] == 1) { print lt_foo; }
21262 # AWK program above erroneously prepends '/' to C:/dos/paths
21265 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
21266 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
21268 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
21270 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21272 library_names_spec=
21273 libname_spec='lib$name'
21277 postuninstall_cmds=
21281 shlibpath_overrides_runpath=unknown
21283 dynamic_linker="$host_os ld.so"
21284 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21285 need_lib_prefix=unknown
21286 hardcode_into_libs=no
21288 # when you set need_version to no, make sure it does not cause -set_version
21289 # flags to be left without arguments
21290 need_version=unknown
21296 version_type=linux # correct to gnu/linux during the next big refactor
21297 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
21298 shlibpath_var=LIBPATH
21300 # AIX 3 has no versioning support, so we append a major version to the name.
21301 soname_spec='$libname$release$shared_ext$major'
21305 version_type=linux # correct to gnu/linux during the next big refactor
21308 hardcode_into_libs=yes
21309 if test ia64 = "$host_cpu"; then
21310 # AIX 5 supports IA64
21311 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
21312 shlibpath_var=LD_LIBRARY_PATH
21314 # With GCC up to 2.95.x, collect2 would create an import file
21315 # for dependence libraries. The import file would start with
21316 # the line '#! .'. This would cause the generated library to
21317 # depend on '.', always an invalid library. This was fixed in
21318 # development snapshots of GCC prior to 3.0.
21320 aix4 | aix4.[01] | aix4.[01].*)
21321 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21323 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
21326 can_build_shared=no
21330 # Using Import Files as archive members, it is possible to support
21331 # filename-based versioning of shared library archives on AIX. While
21332 # this would work for both with and without runtime linking, it will
21333 # prevent static linking of such archives. So we do filename-based
21334 # shared library versioning with .so extension only, which is used
21335 # when both runtime linking and shared linking is enabled.
21336 # Unfortunately, runtime linking may impact performance, so we do
21337 # not want this to be the default eventually. Also, we use the
21338 # versioned .so libs for executables only if there is the -brtl
21339 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
21340 # To allow for filename-based versioning support, we need to create
21341 # libNAME.so.V as an archive file, containing:
21342 # *) an Import File, referring to the versioned filename of the
21343 # archive as well as the shared archive member, telling the
21344 # bitwidth (32 or 64) of that shared object, and providing the
21345 # list of exported symbols of that shared object, eventually
21346 # decorated with the 'weak' keyword
21347 # *) the shared object with the F_LOADONLY flag set, to really avoid
21348 # it being seen by the linker.
21349 # At run time we better use the real file rather than another symlink,
21350 # but for link time we create the symlink libNAME.so -> libNAME.so.V
21352 case $with_aix_soname,$aix_use_runtimelinking in
21353 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
21354 # soname into executable. Probably we can add versioning support to
21355 # collect2, so additional links can be useful in future.
21356 aix,yes) # traditional libtool
21357 dynamic_linker='AIX unversionable lib.so'
21358 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21359 # instead of lib<name>.a to let people know that these are not
21360 # typical AIX shared libraries.
21361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21363 aix,no) # traditional AIX only
21364 dynamic_linker='AIX lib.a(lib.so.V)'
21365 # We preserve .a as extension for shared libraries through AIX4.2
21366 # and later when we are not doing run time linking.
21367 library_names_spec='$libname$release.a $libname.a'
21368 soname_spec='$libname$release$shared_ext$major'
21370 svr4,*) # full svr4 only
21371 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
21372 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21373 # We do not specify a path in Import Files, so LIBPATH fires.
21374 shlibpath_overrides_runpath=yes
21376 *,yes) # both, prefer svr4
21377 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
21378 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21379 # unpreferred sharedlib libNAME.a needs extra handling
21380 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
21381 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
21382 # We do not specify a path in Import Files, so LIBPATH fires.
21383 shlibpath_overrides_runpath=yes
21385 *,no) # both, prefer aix
21386 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
21387 library_names_spec='$libname$release.a $libname.a'
21388 soname_spec='$libname$release$shared_ext$major'
21389 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
21390 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
21391 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
21394 shlibpath_var=LIBPATH
21401 # Since July 2007 AmigaOS4 officially supports .so libraries.
21402 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21406 library_names_spec='$libname.ixlibrary $libname.a'
21407 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21408 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
21414 library_names_spec='$libname$shared_ext'
21415 dynamic_linker="$host_os ld.so"
21416 shlibpath_var=LIBRARY_PATH
21420 version_type=linux # correct to gnu/linux during the next big refactor
21422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21423 soname_spec='$libname$release$shared_ext$major'
21424 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21425 shlibpath_var=LD_LIBRARY_PATH
21426 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21427 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21428 # the default ld.so.conf also contains /usr/contrib/lib and
21429 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21430 # libtool to hard-code these into programs
21433 cygwin* | mingw* | pw32* | cegcc*)
21434 version_type=windows
21439 case $GCC,$cc_basename in
21442 library_names_spec='$libname.dll.a'
21443 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21444 postinstall_cmds='base_file=`basename \$file`~
21445 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21446 dldir=$destdir/`dirname \$dlpath`~
21447 test -d \$dldir || mkdir -p \$dldir~
21448 $install_prog $dir/$dlname \$dldir/$dlname~
21449 chmod a+x \$dldir/$dlname~
21450 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21451 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21453 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21454 dlpath=$dir/\$dldll~
21456 shlibpath_overrides_runpath=yes
21460 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21461 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21463 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
21466 # MinGW DLLs use traditional 'lib' prefix
21467 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21470 # pw32 DLLs use 'pw' prefix rather than 'lib'
21471 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21474 dynamic_linker='Win32 ld.exe'
21479 libname_spec='$name'
21480 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21481 library_names_spec='$libname.dll.lib'
21485 sys_lib_search_path_spec=
21488 for lt_path in $LIB
21491 # Let DOS variable expansion print the short 8.3 style file name.
21492 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21493 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21496 # Convert to MSYS style.
21497 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21500 # Convert to unix form, then to dos form, then back to unix form
21501 # but this time dos style (no spaces!) so that the unix form looks
21502 # like /cygdrive/c/PROGRA~1:/cygdr...
21503 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21504 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21505 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21508 sys_lib_search_path_spec=$LIB
21509 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21510 # It is most probably a Windows format PATH.
21511 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21515 # FIXME: find the short name or the path components, as spaces are
21516 # common. (e.g. "Program Files" -> "PROGRA~1")
21520 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21521 postinstall_cmds='base_file=`basename \$file`~
21522 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21523 dldir=$destdir/`dirname \$dlpath`~
21524 test -d \$dldir || mkdir -p \$dldir~
21525 $install_prog $dir/$dlname \$dldir/$dlname'
21526 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21527 dlpath=$dir/\$dldll~
21529 shlibpath_overrides_runpath=yes
21530 dynamic_linker='Win32 link.exe'
21534 # Assume MSVC wrapper
21535 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
21536 dynamic_linker='Win32 ld.exe'
21539 # FIXME: first we should search . and the directory the executable is in
21543 darwin* | rhapsody*)
21544 dynamic_linker="$host_os dyld"
21545 version_type=darwin
21548 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
21549 soname_spec='$libname$release$major$shared_ext'
21550 shlibpath_overrides_runpath=yes
21551 shlibpath_var=DYLD_LIBRARY_PATH
21552 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21554 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
21555 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21559 version_type=linux # correct to gnu/linux during the next big refactor
21562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21563 soname_spec='$libname$release$shared_ext$major'
21564 shlibpath_var=LD_LIBRARY_PATH
21567 freebsd* | dragonfly*)
21568 # DragonFly does not have aout. When/if they implement a new
21569 # versioning mechanism, adjust this.
21570 if test -x /usr/bin/objformat; then
21571 objformat=`/usr/bin/objformat`
21574 freebsd[23].*) objformat=aout ;;
21575 *) objformat=elf ;;
21578 version_type=freebsd-$objformat
21579 case $version_type in
21581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21582 soname_spec='$libname$release$shared_ext$major'
21587 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21591 shlibpath_var=LD_LIBRARY_PATH
21594 shlibpath_overrides_runpath=yes
21596 freebsd3.[01]* | freebsdelf3.[01]*)
21597 shlibpath_overrides_runpath=yes
21598 hardcode_into_libs=yes
21600 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21601 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21602 shlibpath_overrides_runpath=no
21603 hardcode_into_libs=yes
21605 *) # from 4.6 on, and DragonFly
21606 shlibpath_overrides_runpath=yes
21607 hardcode_into_libs=yes
21613 version_type=linux # correct to gnu/linux during the next big refactor
21616 dynamic_linker="$host_os runtime_loader"
21617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21618 soname_spec='$libname$release$shared_ext$major'
21619 shlibpath_var=LIBRARY_PATH
21620 shlibpath_overrides_runpath=no
21621 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21622 hardcode_into_libs=yes
21625 hpux9* | hpux10* | hpux11*)
21626 # Give a soname corresponding to the major version so that dld.sl refuses to
21627 # link against other versions.
21634 hardcode_into_libs=yes
21635 dynamic_linker="$host_os dld.so"
21636 shlibpath_var=LD_LIBRARY_PATH
21637 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21639 soname_spec='$libname$release$shared_ext$major'
21640 if test 32 = "$HPUX_IA64_MODE"; then
21641 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21642 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
21644 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21645 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
21650 hardcode_into_libs=yes
21651 dynamic_linker="$host_os dld.sl"
21652 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21655 soname_spec='$libname$release$shared_ext$major'
21656 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21657 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21661 dynamic_linker="$host_os dld.sl"
21662 shlibpath_var=SHLIB_PATH
21663 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21665 soname_spec='$libname$release$shared_ext$major'
21668 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21669 postinstall_cmds='chmod 555 $lib'
21670 # or fails outright, so override atomically:
21671 install_override_mode=555
21675 version_type=linux # correct to gnu/linux during the next big refactor
21678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21679 soname_spec='$libname$release$shared_ext$major'
21680 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21681 shlibpath_var=LD_LIBRARY_PATH
21682 shlibpath_overrides_runpath=no
21683 hardcode_into_libs=yes
21686 irix5* | irix6* | nonstopux*)
21688 nonstopux*) version_type=nonstopux ;;
21690 if test yes = "$lt_cv_prog_gnu_ld"; then
21691 version_type=linux # correct to gnu/linux during the next big refactor
21698 soname_spec='$libname$release$shared_ext$major'
21699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
21701 irix5* | nonstopux*)
21702 libsuff= shlibsuff=
21705 case $LD in # libtool.m4 will add one of these switches to LD
21706 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21707 libsuff= shlibsuff= libmagic=32-bit;;
21708 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21709 libsuff=32 shlibsuff=N32 libmagic=N32;;
21710 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21711 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21712 *) libsuff= shlibsuff= libmagic=never-match;;
21716 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21717 shlibpath_overrides_runpath=no
21718 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
21719 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
21720 hardcode_into_libs=yes
21723 # No shared lib support for Linux oldld, aout, or coff.
21724 linux*oldld* | linux*aout* | linux*coff*)
21729 version_type=none # Android doesn't support versioned libraries.
21732 library_names_spec='$libname$release$shared_ext'
21733 soname_spec='$libname$release$shared_ext'
21735 shlibpath_var=LD_LIBRARY_PATH
21736 shlibpath_overrides_runpath=yes
21738 # This implies no fast_install, which is unacceptable.
21739 # Some rework will be needed to allow for fast_install
21740 # before this can be enabled.
21741 hardcode_into_libs=yes
21743 dynamic_linker='Android linker'
21744 # Don't embed -rpath directories since the linker doesn't support them.
21745 hardcode_libdir_flag_spec='-L$libdir'
21748 # This must be glibc/ELF.
21749 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21750 version_type=linux # correct to gnu/linux during the next big refactor
21753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21754 soname_spec='$libname$release$shared_ext$major'
21755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21756 shlibpath_var=LD_LIBRARY_PATH
21757 shlibpath_overrides_runpath=no
21759 # Some binutils ld are patched to set DT_RUNPATH
21760 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21761 $as_echo_n "(cached) " >&6
21763 lt_cv_shlibpath_overrides_runpath=no
21764 save_LDFLAGS=$LDFLAGS
21765 save_libdir=$libdir
21766 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
21767 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
21768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21769 /* end confdefs.h. */
21779 if ac_fn_c_try_link "$LINENO"; then :
21780 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21781 lt_cv_shlibpath_overrides_runpath=yes
21784 rm -f core conftest.err conftest.$ac_objext \
21785 conftest$ac_exeext conftest.$ac_ext
21786 LDFLAGS=$save_LDFLAGS
21787 libdir=$save_libdir
21791 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21793 # This implies no fast_install, which is unacceptable.
21794 # Some rework will be needed to allow for fast_install
21795 # before this can be enabled.
21796 hardcode_into_libs=yes
21798 # Ideally, we could use ldconfig to report *all* directores which are
21799 # searched for libraries, however this is still not possible. Aside from not
21800 # being certain /sbin/ldconfig is available, command
21801 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
21802 # even though it is searched at run-time. Try to do the best guess by
21803 # appending ld.so.conf contents (and includes) to the search path.
21804 if test -f /etc/ld.so.conf; then
21805 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' ' '`
21806 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21809 # We used to test for /lib/ld.so.1 and disable shared libraries on
21810 # powerpc, because MkLinux only supported shared libraries with the
21811 # GNU dynamic linker. Since this was broken with cross compilers,
21812 # most powerpc-linux boxes support dynamic linking these days and
21813 # people can always --disable-shared, the test was removed, and we
21814 # assume the GNU/Linux dynamic linker is in use.
21815 dynamic_linker='GNU/Linux ld.so'
21822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21823 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21825 dynamic_linker='NetBSD (a.out) ld.so'
21827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21828 soname_spec='$libname$release$shared_ext$major'
21829 dynamic_linker='NetBSD ld.elf_so'
21831 shlibpath_var=LD_LIBRARY_PATH
21832 shlibpath_overrides_runpath=yes
21833 hardcode_into_libs=yes
21837 version_type=linux # correct to gnu/linux during the next big refactor
21838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21839 shlibpath_var=LD_LIBRARY_PATH
21840 shlibpath_overrides_runpath=yes
21847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21848 soname_spec='$libname$release$shared_ext$major'
21849 shlibpath_var=LD_LIBRARY_PATH
21850 shlibpath_overrides_runpath=no
21851 hardcode_into_libs=yes
21852 dynamic_linker='ldqnx.so'
21855 openbsd* | bitrig*)
21857 sys_lib_dlsearch_path_spec=/usr/lib
21859 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21864 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21866 shlibpath_var=LD_LIBRARY_PATH
21867 shlibpath_overrides_runpath=yes
21871 libname_spec='$name'
21872 version_type=windows
21876 # OS/2 can only load a DLL with a base name of 8 characters or less.
21877 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
21878 v=$($ECHO $release$versuffix | tr -d .-);
21879 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
21880 $ECHO $n$v`$shared_ext'
21881 library_names_spec='${libname}_dll.$libext'
21882 dynamic_linker='OS/2 ld.exe'
21883 shlibpath_var=BEGINLIBPATH
21884 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21885 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21886 postinstall_cmds='base_file=`basename \$file`~
21887 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
21888 dldir=$destdir/`dirname \$dlpath`~
21889 test -d \$dldir || mkdir -p \$dldir~
21890 $install_prog $dir/$dlname \$dldir/$dlname~
21891 chmod a+x \$dldir/$dlname~
21892 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21893 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21895 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
21896 dlpath=$dir/\$dldll~
21900 osf3* | osf4* | osf5*)
21904 soname_spec='$libname$release$shared_ext$major'
21905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21906 shlibpath_var=LD_LIBRARY_PATH
21907 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21908 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21916 version_type=linux # correct to gnu/linux during the next big refactor
21919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21920 soname_spec='$libname$release$shared_ext$major'
21921 shlibpath_var=LD_LIBRARY_PATH
21922 shlibpath_overrides_runpath=yes
21923 hardcode_into_libs=yes
21924 # ldd complains unless libraries are executable
21925 postinstall_cmds='chmod +x $lib'
21930 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21931 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21932 shlibpath_var=LD_LIBRARY_PATH
21933 shlibpath_overrides_runpath=yes
21934 if test yes = "$with_gnu_ld"; then
21941 version_type=linux # correct to gnu/linux during the next big refactor
21942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21943 soname_spec='$libname$release$shared_ext$major'
21944 shlibpath_var=LD_LIBRARY_PATH
21945 case $host_vendor in
21947 shlibpath_overrides_runpath=no
21949 runpath_var=LD_RUN_PATH
21957 shlibpath_overrides_runpath=no
21958 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21964 if test -d /usr/nec; then
21965 version_type=linux # correct to gnu/linux during the next big refactor
21966 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
21967 soname_spec='$libname$shared_ext.$major'
21968 shlibpath_var=LD_LIBRARY_PATH
21972 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
21977 soname_spec='$libname$release$shared_ext$major'
21978 shlibpath_var=LD_LIBRARY_PATH
21979 shlibpath_overrides_runpath=yes
21980 hardcode_into_libs=yes
21981 if test yes = "$with_gnu_ld"; then
21982 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21984 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21987 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21991 sys_lib_dlsearch_path_spec='/usr/lib'
21995 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21996 version_type=linux # correct to gnu/linux during the next big refactor
21999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22000 shlibpath_var=LD_LIBRARY_PATH
22001 shlibpath_overrides_runpath=no
22002 hardcode_into_libs=yes
22006 version_type=linux # correct to gnu/linux during the next big refactor
22007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22008 soname_spec='$libname$release$shared_ext$major'
22009 shlibpath_var=LD_LIBRARY_PATH
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22017 $as_echo "$dynamic_linker" >&6; }
22018 test no = "$dynamic_linker" && can_build_shared=no
22020 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22021 if test yes = "$GCC"; then
22022 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22025 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
22026 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
22029 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
22030 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
22033 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
22034 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
22036 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
22037 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
22039 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
22040 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22139 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22141 if test -n "$hardcode_libdir_flag_spec" ||
22142 test -n "$runpath_var" ||
22143 test yes = "$hardcode_automatic"; then
22145 # We can hardcode non-existent directories.
22146 if test no != "$hardcode_direct" &&
22147 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22148 # have to relink, otherwise we might link with an installed library
22149 # when we should be linking with a yet-to-be-installed one
22150 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
22151 test no != "$hardcode_minus_L"; then
22152 # Linking always hardcodes the temporary library directory.
22153 hardcode_action=relink
22155 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22156 hardcode_action=immediate
22159 # We cannot hardcode anything, or else we can only hardcode existing
22161 hardcode_action=unsupported
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
22164 $as_echo "$hardcode_action" >&6; }
22166 if test relink = "$hardcode_action" ||
22167 test yes = "$inherit_rpath"; then
22168 # Fast installation is not supported
22169 enable_fast_install=no
22170 elif test yes = "$shlibpath_overrides_runpath" ||
22171 test no = "$enable_shared"; then
22172 # Fast installation is not necessary
22173 enable_fast_install=needless
22181 if test yes != "$enable_dlopen"; then
22182 enable_dlopen=unknown
22183 enable_dlopen_self=unknown
22184 enable_dlopen_self_static=unknown
22191 lt_cv_dlopen=load_add_on
22193 lt_cv_dlopen_self=yes
22196 mingw* | pw32* | cegcc*)
22197 lt_cv_dlopen=LoadLibrary
22202 lt_cv_dlopen=dlopen
22207 # if libdl is installed we need to link against it
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22209 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22210 if ${ac_cv_lib_dl_dlopen+:} false; then :
22211 $as_echo_n "(cached) " >&6
22213 ac_check_lib_save_LIBS=$LIBS
22215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22216 /* end confdefs.h. */
22218 /* Override any GCC internal prototype to avoid an error.
22219 Use char because int might match the return type of a GCC
22220 builtin and then its argument prototype would still apply. */
22233 if ac_fn_c_try_link "$LINENO"; then :
22234 ac_cv_lib_dl_dlopen=yes
22236 ac_cv_lib_dl_dlopen=no
22238 rm -f core conftest.err conftest.$ac_objext \
22239 conftest$ac_exeext conftest.$ac_ext
22240 LIBS=$ac_check_lib_save_LIBS
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22243 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22244 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22245 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
22250 lt_cv_dlopen_self=yes
22257 # Don't try to run any link tests for TPF. We know it's impossible
22258 # because TPF is a cross-compiler, and we know how we open DSOs.
22259 lt_cv_dlopen=dlopen
22261 lt_cv_dlopen_self=no
22265 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22266 if test "x$ac_cv_func_shl_load" = xyes; then :
22267 lt_cv_dlopen=shl_load
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
22270 $as_echo_n "checking for shl_load in -ldld... " >&6; }
22271 if ${ac_cv_lib_dld_shl_load+:} false; then :
22272 $as_echo_n "(cached) " >&6
22274 ac_check_lib_save_LIBS=$LIBS
22276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22277 /* end confdefs.h. */
22279 /* Override any GCC internal prototype to avoid an error.
22280 Use char because int might match the return type of a GCC
22281 builtin and then its argument prototype would still apply. */
22289 return shl_load ();
22294 if ac_fn_c_try_link "$LINENO"; then :
22295 ac_cv_lib_dld_shl_load=yes
22297 ac_cv_lib_dld_shl_load=no
22299 rm -f core conftest.err conftest.$ac_objext \
22300 conftest$ac_exeext conftest.$ac_ext
22301 LIBS=$ac_check_lib_save_LIBS
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
22304 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22305 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
22306 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
22308 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22309 if test "x$ac_cv_func_dlopen" = xyes; then :
22310 lt_cv_dlopen=dlopen
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22313 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22314 if ${ac_cv_lib_dl_dlopen+:} false; then :
22315 $as_echo_n "(cached) " >&6
22317 ac_check_lib_save_LIBS=$LIBS
22319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22320 /* end confdefs.h. */
22322 /* Override any GCC internal prototype to avoid an error.
22323 Use char because int might match the return type of a GCC
22324 builtin and then its argument prototype would still apply. */
22337 if ac_fn_c_try_link "$LINENO"; then :
22338 ac_cv_lib_dl_dlopen=yes
22340 ac_cv_lib_dl_dlopen=no
22342 rm -f core conftest.err conftest.$ac_objext \
22343 conftest$ac_exeext conftest.$ac_ext
22344 LIBS=$ac_check_lib_save_LIBS
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22347 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22348 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22349 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
22352 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
22353 if ${ac_cv_lib_svld_dlopen+:} false; then :
22354 $as_echo_n "(cached) " >&6
22356 ac_check_lib_save_LIBS=$LIBS
22357 LIBS="-lsvld $LIBS"
22358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22359 /* end confdefs.h. */
22361 /* Override any GCC internal prototype to avoid an error.
22362 Use char because int might match the return type of a GCC
22363 builtin and then its argument prototype would still apply. */
22376 if ac_fn_c_try_link "$LINENO"; then :
22377 ac_cv_lib_svld_dlopen=yes
22379 ac_cv_lib_svld_dlopen=no
22381 rm -f core conftest.err conftest.$ac_objext \
22382 conftest$ac_exeext conftest.$ac_ext
22383 LIBS=$ac_check_lib_save_LIBS
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
22386 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22387 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
22388 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
22391 $as_echo_n "checking for dld_link in -ldld... " >&6; }
22392 if ${ac_cv_lib_dld_dld_link+:} false; then :
22393 $as_echo_n "(cached) " >&6
22395 ac_check_lib_save_LIBS=$LIBS
22397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22398 /* end confdefs.h. */
22400 /* Override any GCC internal prototype to avoid an error.
22401 Use char because int might match the return type of a GCC
22402 builtin and then its argument prototype would still apply. */
22410 return dld_link ();
22415 if ac_fn_c_try_link "$LINENO"; then :
22416 ac_cv_lib_dld_dld_link=yes
22418 ac_cv_lib_dld_dld_link=no
22420 rm -f core conftest.err conftest.$ac_objext \
22421 conftest$ac_exeext conftest.$ac_ext
22422 LIBS=$ac_check_lib_save_LIBS
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
22425 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22426 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
22427 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
22448 if test no = "$lt_cv_dlopen"; then
22454 case $lt_cv_dlopen in
22456 save_CPPFLAGS=$CPPFLAGS
22457 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
22459 save_LDFLAGS=$LDFLAGS
22460 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
22463 LIBS="$lt_cv_dlopen_libs $LIBS"
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
22466 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
22467 if ${lt_cv_dlopen_self+:} false; then :
22468 $as_echo_n "(cached) " >&6
22470 if test yes = "$cross_compiling"; then :
22471 lt_cv_dlopen_self=cross
22473 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22474 lt_status=$lt_dlunknown
22475 cat > conftest.$ac_ext <<_LT_EOF
22476 #line $LINENO "configure"
22477 #include "confdefs.h"
22486 # define LT_DLGLOBAL RTLD_GLOBAL
22489 # define LT_DLGLOBAL DL_GLOBAL
22491 # define LT_DLGLOBAL 0
22495 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22496 find out it does not work in some platform. */
22497 #ifndef LT_DLLAZY_OR_NOW
22499 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22502 # define LT_DLLAZY_OR_NOW DL_LAZY
22505 # define LT_DLLAZY_OR_NOW RTLD_NOW
22508 # define LT_DLLAZY_OR_NOW DL_NOW
22510 # define LT_DLLAZY_OR_NOW 0
22517 /* When -fvisibility=hidden is used, assume the code has been annotated
22518 correspondingly for the symbols needed. */
22519 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22520 int fnord () __attribute__((visibility("default")));
22523 int fnord () { return 42; }
22526 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22527 int status = $lt_dlunknown;
22531 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22534 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22535 else puts (dlerror ());
22537 /* dlclose (self); */
22545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22546 (eval $ac_link) 2>&5
22548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22549 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
22550 (./conftest; exit; ) >&5 2>/dev/null
22552 case x$lt_status in
22553 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
22554 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
22555 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
22558 # compilation failed
22559 lt_cv_dlopen_self=no
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
22567 $as_echo "$lt_cv_dlopen_self" >&6; }
22569 if test yes = "$lt_cv_dlopen_self"; then
22570 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
22572 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22573 if ${lt_cv_dlopen_self_static+:} false; then :
22574 $as_echo_n "(cached) " >&6
22576 if test yes = "$cross_compiling"; then :
22577 lt_cv_dlopen_self_static=cross
22579 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22580 lt_status=$lt_dlunknown
22581 cat > conftest.$ac_ext <<_LT_EOF
22582 #line $LINENO "configure"
22583 #include "confdefs.h"
22592 # define LT_DLGLOBAL RTLD_GLOBAL
22595 # define LT_DLGLOBAL DL_GLOBAL
22597 # define LT_DLGLOBAL 0
22601 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22602 find out it does not work in some platform. */
22603 #ifndef LT_DLLAZY_OR_NOW
22605 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22608 # define LT_DLLAZY_OR_NOW DL_LAZY
22611 # define LT_DLLAZY_OR_NOW RTLD_NOW
22614 # define LT_DLLAZY_OR_NOW DL_NOW
22616 # define LT_DLLAZY_OR_NOW 0
22623 /* When -fvisibility=hidden is used, assume the code has been annotated
22624 correspondingly for the symbols needed. */
22625 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22626 int fnord () __attribute__((visibility("default")));
22629 int fnord () { return 42; }
22632 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22633 int status = $lt_dlunknown;
22637 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22640 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22641 else puts (dlerror ());
22643 /* dlclose (self); */
22651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22652 (eval $ac_link) 2>&5
22654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22655 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
22656 (./conftest; exit; ) >&5 2>/dev/null
22658 case x$lt_status in
22659 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
22660 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
22661 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
22664 # compilation failed
22665 lt_cv_dlopen_self_static=no
22672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
22673 $as_echo "$lt_cv_dlopen_self_static" >&6; }
22676 CPPFLAGS=$save_CPPFLAGS
22677 LDFLAGS=$save_LDFLAGS
22682 case $lt_cv_dlopen_self in
22683 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
22684 *) enable_dlopen_self=unknown ;;
22687 case $lt_cv_dlopen_self_static in
22688 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
22689 *) enable_dlopen_self_static=unknown ;;
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
22712 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
22713 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
22714 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22715 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22717 $as_echo "yes" >&6; }
22719 # FIXME - insert some real tests, host_os isn't really good enough
22722 if test -n "$STRIP"; then
22723 striplib="$STRIP -x"
22724 old_striplib="$STRIP -S"
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22726 $as_echo "yes" >&6; }
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22729 $as_echo "no" >&6; }
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22734 $as_echo "no" >&6; }
22750 # Report what library types will actually be built
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
22752 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
22754 $as_echo "$can_build_shared" >&6; }
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
22757 $as_echo_n "checking whether to build shared libraries... " >&6; }
22758 test no = "$can_build_shared" && enable_shared=no
22760 # On AIX, shared libraries and static libraries use the same namespace, and
22761 # are all built from PIC.
22764 test yes = "$enable_shared" && enable_static=no
22765 if test -n "$RANLIB"; then
22766 archive_cmds="$archive_cmds~\$RANLIB \$lib"
22767 postinstall_cmds='$RANLIB $lib'
22772 if test ia64 != "$host_cpu"; then
22773 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
22774 yes,aix,yes) ;; # shared object as lib.so file only
22775 yes,svr4,*) ;; # shared object as lib.so archive member only
22776 yes,*) enable_static=no ;; # shared object in lib.a archive as well
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
22782 $as_echo "$enable_shared" >&6; }
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
22785 $as_echo_n "checking whether to build static libraries... " >&6; }
22786 # Make sure either enable_shared or enable_static is yes.
22787 test yes = "$enable_shared" || enable_static=yes
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
22789 $as_echo "$enable_static" >&6; }
22796 ac_cpp='$CPP $CPPFLAGS'
22797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22817 ac_config_commands="$ac_config_commands libtool"
22822 # Only expand once:
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
22830 $as_echo_n "checking if sntp will be built... " >&6; }
22832 # Check whether --with-sntp was given.
22833 if test "${with_sntp+set}" = set; then :
22834 withval=$with_sntp;
22836 with_sntp="${withsntp=yes}"
22840 case "$with_sntp" in
22849 if test -n "$SNTP"; then
22851 BUILD_SNTP_FALSE='#'
22853 BUILD_SNTP_TRUE='#'
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
22858 $as_echo "$with_sntp" >&6; }
22872 # NTP has (so far) been relying on leading-edge autogen.
22873 # Therefore, by default:
22874 # - use the version we ship with
22875 # - do not install it
22876 # - build a static copy (AC_DISABLE_SHARED - done earlier)
22877 case "${enable_local_libopts+set}" in
22879 *) enable_local_libopts=yes ;;
22881 case "${enable_libopts_install+set}" in
22883 *) enable_libopts_install=no ;;
22888 ac_header_dirent=no
22889 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22890 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22892 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22893 if eval \${$as_ac_Header+:} false; then :
22894 $as_echo_n "(cached) " >&6
22896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22897 /* end confdefs.h. */
22898 #include <sys/types.h>
22910 if ac_fn_c_try_compile "$LINENO"; then :
22911 eval "$as_ac_Header=yes"
22913 eval "$as_ac_Header=no"
22915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22917 eval ac_res=\$$as_ac_Header
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22919 $as_echo "$ac_res" >&6; }
22920 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22921 cat >>confdefs.h <<_ACEOF
22922 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22925 ac_header_dirent=$ac_hdr; break
22929 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22930 if test $ac_header_dirent = dirent.h; then
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22932 $as_echo_n "checking for library containing opendir... " >&6; }
22933 if ${ac_cv_search_opendir+:} false; then :
22934 $as_echo_n "(cached) " >&6
22936 ac_func_search_save_LIBS=$LIBS
22937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22938 /* end confdefs.h. */
22940 /* Override any GCC internal prototype to avoid an error.
22941 Use char because int might match the return type of a GCC
22942 builtin and then its argument prototype would still apply. */
22955 for ac_lib in '' dir; do
22956 if test -z "$ac_lib"; then
22957 ac_res="none required"
22960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22962 if ac_fn_c_try_link "$LINENO"; then :
22963 ac_cv_search_opendir=$ac_res
22965 rm -f core conftest.err conftest.$ac_objext \
22967 if ${ac_cv_search_opendir+:} false; then :
22971 if ${ac_cv_search_opendir+:} false; then :
22974 ac_cv_search_opendir=no
22976 rm conftest.$ac_ext
22977 LIBS=$ac_func_search_save_LIBS
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22980 $as_echo "$ac_cv_search_opendir" >&6; }
22981 ac_res=$ac_cv_search_opendir
22982 if test "$ac_res" != no; then :
22983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22989 $as_echo_n "checking for library containing opendir... " >&6; }
22990 if ${ac_cv_search_opendir+:} false; then :
22991 $as_echo_n "(cached) " >&6
22993 ac_func_search_save_LIBS=$LIBS
22994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22995 /* end confdefs.h. */
22997 /* Override any GCC internal prototype to avoid an error.
22998 Use char because int might match the return type of a GCC
22999 builtin and then its argument prototype would still apply. */
23012 for ac_lib in '' x; do
23013 if test -z "$ac_lib"; then
23014 ac_res="none required"
23017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23019 if ac_fn_c_try_link "$LINENO"; then :
23020 ac_cv_search_opendir=$ac_res
23022 rm -f core conftest.err conftest.$ac_objext \
23024 if ${ac_cv_search_opendir+:} false; then :
23028 if ${ac_cv_search_opendir+:} false; then :
23031 ac_cv_search_opendir=no
23033 rm conftest.$ac_ext
23034 LIBS=$ac_func_search_save_LIBS
23036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23037 $as_echo "$ac_cv_search_opendir" >&6; }
23038 ac_res=$ac_cv_search_opendir
23039 if test "$ac_res" != no; then :
23040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23047 # =================
23049 # =================
23051 sys/mman.h sys/param.h sys/poll.h sys/procset.h \
23052 sys/select.h sys/socket.h sys/stropts.h sys/time.h \
23053 sys/un.h sys/wait.h dlfcn.h errno.h \
23054 fcntl.h libgen.h libintl.h memory.h \
23055 netinet/in.h setjmp.h stdbool.h sysexits.h \
23058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23059 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23060 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23061 cat >>confdefs.h <<_ACEOF
23062 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23070 for ac_header in stdarg.h varargs.h
23072 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23073 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23074 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23075 cat >>confdefs.h <<_ACEOF
23076 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23078 lo_have_arg_hdr=true;break
23080 lo_have_arg_hdr=false
23086 for ac_header in string.h strings.h
23088 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23089 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23090 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23091 cat >>confdefs.h <<_ACEOF
23092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23094 lo_have_str_hdr=true;break
23096 lo_have_str_hdr=false
23102 for ac_header in limits.h sys/limits.h values.h
23104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23105 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23106 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23107 cat >>confdefs.h <<_ACEOF
23108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23110 lo_have_lim_hdr=true;break
23112 lo_have_lim_hdr=false
23118 for ac_header in inttypes.h stdint.h
23120 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23121 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23122 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23123 cat >>confdefs.h <<_ACEOF
23124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23126 lo_have_typ_hdr=true;break
23128 lo_have_typ_hdr=false
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
23135 $as_echo_n "checking for working stdnoreturn.h... " >&6; }
23136 if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
23137 $as_echo_n "(cached) " >&6
23139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23140 /* end confdefs.h. */
23141 #include <stdlib.h>
23142 #include <stdnoreturn.h>
23143 /* Do not check for 'noreturn' after the return type.
23144 C11 allows it, but it's rarely done that way
23145 and circa-2012 bleeding-edge GCC rejects it when given
23146 -Werror=old-style-declaration. */
23147 noreturn void foo1 (void) { exit (0); }
23148 _Noreturn void foo2 (void) { exit (0); }
23149 int testit (int argc, char **argv) {
23152 (argv[0][0] ? foo1 : foo2) ();
23163 if ac_fn_c_try_compile "$LINENO"; then :
23164 gl_cv_header_working_stdnoreturn_h=yes
23166 gl_cv_header_working_stdnoreturn_h=no
23168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
23171 $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
23173 if test $gl_cv_header_working_stdnoreturn_h = yes; then
23176 STDNORETURN_H='stdnoreturn.h'
23180 if test -n "$STDNORETURN_H"; then
23181 GL_GENERATE_STDNORETURN_H_TRUE=
23182 GL_GENERATE_STDNORETURN_H_FALSE='#'
23184 GL_GENERATE_STDNORETURN_H_TRUE='#'
23185 GL_GENERATE_STDNORETURN_H_FALSE=
23190 # ----------------------------------------------------------------------
23191 # check for various programs used during the build.
23192 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
23193 # ----------------------------------------------------------------------
23194 for ac_header in runetype.h wchar.h
23196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23197 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
23198 $ac_includes_default
23199 #if HAVE_RUNETYPE_H
23200 # include <runetype.h>
23204 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23205 cat >>confdefs.h <<_ACEOF
23206 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23214 # Check whether --enable-nls was given.
23215 if test "${enable_nls+set}" = set; then :
23216 enableval=$enable_nls;
23219 if test "x$enable_nls" != "xno" && \
23220 test "X${ac_cv_header_libintl_h}" = Xyes; then :
23223 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
23227 # --------------------------------------------
23228 # Verify certain entries from AC_CHECK_HEADERS
23229 # --------------------------------------------
23230 ${lo_have_arg_hdr} || \
23231 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
23233 ${lo_have_str_hdr} || \
23234 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
23236 ${lo_have_lim_hdr} || \
23237 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
23239 ${lo_have_typ_hdr} || \
23240 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
23242 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
23243 do eval as_ac_var=\${ac_cv_header_${f}_h}
23244 test "X${as_ac_var}" = Xyes || {
23245 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
23248 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
23249 echo '#include <stdint.h>' > inttypes.h
23251 # ----------------------------------------------------------------------
23252 # Checks for typedefs
23253 # ----------------------------------------------------------------------
23254 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
23255 if test "x$ac_cv_type_wchar_t" = xyes; then :
23257 cat >>confdefs.h <<_ACEOF
23258 #define HAVE_WCHAR_T 1
23264 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
23265 $ac_includes_default
23266 #if HAVE_RUNETYPE_H
23267 # include <runetype.h>
23270 # include <wchar.h>
23274 if test "x$ac_cv_type_wint_t" = xyes; then :
23276 cat >>confdefs.h <<_ACEOF
23277 #define HAVE_WINT_T 1
23283 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
23284 if test "x$ac_cv_type_int8_t" = xyes; then :
23286 cat >>confdefs.h <<_ACEOF
23287 #define HAVE_INT8_T 1
23292 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
23293 if test "x$ac_cv_type_uint8_t" = xyes; then :
23295 cat >>confdefs.h <<_ACEOF
23296 #define HAVE_UINT8_T 1
23301 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
23302 if test "x$ac_cv_type_int16_t" = xyes; then :
23304 cat >>confdefs.h <<_ACEOF
23305 #define HAVE_INT16_T 1
23310 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
23311 if test "x$ac_cv_type_uint16_t" = xyes; then :
23313 cat >>confdefs.h <<_ACEOF
23314 #define HAVE_UINT16_T 1
23319 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
23320 if test "x$ac_cv_type_int32_t" = xyes; then :
23322 cat >>confdefs.h <<_ACEOF
23323 #define HAVE_INT32_T 1
23328 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
23329 if test "x$ac_cv_type_uint32_t" = xyes; then :
23331 cat >>confdefs.h <<_ACEOF
23332 #define HAVE_UINT32_T 1
23337 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23338 if test "x$ac_cv_type_intptr_t" = xyes; then :
23340 cat >>confdefs.h <<_ACEOF
23341 #define HAVE_INTPTR_T 1
23346 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23347 if test "x$ac_cv_type_uintptr_t" = xyes; then :
23349 cat >>confdefs.h <<_ACEOF
23350 #define HAVE_UINTPTR_T 1
23355 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
23356 if test "x$ac_cv_type_uint_t" = xyes; then :
23358 cat >>confdefs.h <<_ACEOF
23359 #define HAVE_UINT_T 1
23364 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23365 if test "x$ac_cv_type_pid_t" = xyes; then :
23367 cat >>confdefs.h <<_ACEOF
23368 #define HAVE_PID_T 1
23373 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23374 if test "x$ac_cv_type_size_t" = xyes; then :
23376 cat >>confdefs.h <<_ACEOF
23377 #define HAVE_SIZE_T 1
23382 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23383 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
23385 cat >>confdefs.h <<_ACEOF
23386 #define HAVE_PTRDIFF_T 1
23392 # The cast to long int works around a bug in the HP C Compiler
23393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23395 # This bug is HP SR number 8606223364.
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
23397 $as_echo_n "checking size of char *... " >&6; }
23398 if ${ac_cv_sizeof_char_p+:} false; then :
23399 $as_echo_n "(cached) " >&6
23401 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
23404 if test "$ac_cv_type_char_p" = yes; then
23405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23407 as_fn_error 77 "cannot compute sizeof (char *)
23408 See \`config.log' for more details" "$LINENO" 5; }
23410 ac_cv_sizeof_char_p=0
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
23416 $as_echo "$ac_cv_sizeof_char_p" >&6; }
23420 cat >>confdefs.h <<_ACEOF
23421 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
23425 # The cast to long int works around a bug in the HP C Compiler
23426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23428 # This bug is HP SR number 8606223364.
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23430 $as_echo_n "checking size of int... " >&6; }
23431 if ${ac_cv_sizeof_int+:} false; then :
23432 $as_echo_n "(cached) " >&6
23434 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23437 if test "$ac_cv_type_int" = yes; then
23438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23440 as_fn_error 77 "cannot compute sizeof (int)
23441 See \`config.log' for more details" "$LINENO" 5; }
23448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23449 $as_echo "$ac_cv_sizeof_int" >&6; }
23453 cat >>confdefs.h <<_ACEOF
23454 #define SIZEOF_INT $ac_cv_sizeof_int
23458 # The cast to long int works around a bug in the HP C Compiler
23459 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23460 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23461 # This bug is HP SR number 8606223364.
23462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23463 $as_echo_n "checking size of long... " >&6; }
23464 if ${ac_cv_sizeof_long+:} false; then :
23465 $as_echo_n "(cached) " >&6
23467 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23470 if test "$ac_cv_type_long" = yes; then
23471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23473 as_fn_error 77 "cannot compute sizeof (long)
23474 See \`config.log' for more details" "$LINENO" 5; }
23476 ac_cv_sizeof_long=0
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23482 $as_echo "$ac_cv_sizeof_long" >&6; }
23486 cat >>confdefs.h <<_ACEOF
23487 #define SIZEOF_LONG $ac_cv_sizeof_long
23491 # The cast to long int works around a bug in the HP C Compiler
23492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23494 # This bug is HP SR number 8606223364.
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23496 $as_echo_n "checking size of short... " >&6; }
23497 if ${ac_cv_sizeof_short+:} false; then :
23498 $as_echo_n "(cached) " >&6
23500 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23503 if test "$ac_cv_type_short" = yes; then
23504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23506 as_fn_error 77 "cannot compute sizeof (short)
23507 See \`config.log' for more details" "$LINENO" 5; }
23509 ac_cv_sizeof_short=0
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23515 $as_echo "$ac_cv_sizeof_short" >&6; }
23519 cat >>confdefs.h <<_ACEOF
23520 #define SIZEOF_SHORT $ac_cv_sizeof_short
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
23529 $as_echo_n "checking for pathfind in -lgen... " >&6; }
23530 if ${ac_cv_lib_gen_pathfind+:} false; then :
23531 $as_echo_n "(cached) " >&6
23533 ac_check_lib_save_LIBS=$LIBS
23535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23536 /* end confdefs.h. */
23538 /* Override any GCC internal prototype to avoid an error.
23539 Use char because int might match the return type of a GCC
23540 builtin and then its argument prototype would still apply. */
23548 return pathfind ();
23553 if ac_fn_c_try_link "$LINENO"; then :
23554 ac_cv_lib_gen_pathfind=yes
23556 ac_cv_lib_gen_pathfind=no
23558 rm -f core conftest.err conftest.$ac_objext \
23559 conftest$ac_exeext conftest.$ac_ext
23560 LIBS=$ac_check_lib_save_LIBS
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
23563 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
23564 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
23565 cat >>confdefs.h <<_ACEOF
23566 #define HAVE_LIBGEN 1
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
23574 $as_echo_n "checking for gettext in -lintl... " >&6; }
23575 if ${ac_cv_lib_intl_gettext+:} false; then :
23576 $as_echo_n "(cached) " >&6
23578 ac_check_lib_save_LIBS=$LIBS
23579 LIBS="-lintl $LIBS"
23580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23581 /* end confdefs.h. */
23583 /* Override any GCC internal prototype to avoid an error.
23584 Use char because int might match the return type of a GCC
23585 builtin and then its argument prototype would still apply. */
23598 if ac_fn_c_try_link "$LINENO"; then :
23599 ac_cv_lib_intl_gettext=yes
23601 ac_cv_lib_intl_gettext=no
23603 rm -f core conftest.err conftest.$ac_objext \
23604 conftest$ac_exeext conftest.$ac_ext
23605 LIBS=$ac_check_lib_save_LIBS
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
23608 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
23609 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
23610 cat >>confdefs.h <<_ACEOF
23611 #define HAVE_LIBINTL 1
23614 LIBS="-lintl $LIBS"
23618 for ac_func in vprintf
23620 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23621 if test "x$ac_cv_func_vprintf" = xyes; then :
23622 cat >>confdefs.h <<_ACEOF
23623 #define HAVE_VPRINTF 1
23626 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23627 if test "x$ac_cv_func__doprnt" = xyes; then :
23629 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23637 for ac_header in vfork.h
23639 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
23640 if test "x$ac_cv_header_vfork_h" = xyes; then :
23641 cat >>confdefs.h <<_ACEOF
23642 #define HAVE_VFORK_H 1
23649 for ac_func in fork vfork
23651 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23652 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23653 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23654 cat >>confdefs.h <<_ACEOF
23655 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23661 if test "x$ac_cv_func_fork" = xyes; then
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
23663 $as_echo_n "checking for working fork... " >&6; }
23664 if ${ac_cv_func_fork_works+:} false; then :
23665 $as_echo_n "(cached) " >&6
23667 if test "$cross_compiling" = yes; then :
23668 ac_cv_func_fork_works=cross
23670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23671 /* end confdefs.h. */
23672 $ac_includes_default
23677 /* By Ruediger Kuhlmann. */
23678 return fork () < 0;
23684 if ac_fn_c_try_run "$LINENO"; then :
23685 ac_cv_func_fork_works=yes
23687 ac_cv_func_fork_works=no
23689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23690 conftest.$ac_objext conftest.beam conftest.$ac_ext
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
23695 $as_echo "$ac_cv_func_fork_works" >&6; }
23698 ac_cv_func_fork_works=$ac_cv_func_fork
23700 if test "x$ac_cv_func_fork_works" = xcross; then
23702 *-*-amigaos* | *-*-msdosdjgpp*)
23703 # Override, as these systems have only a dummy fork() stub
23704 ac_cv_func_fork_works=no
23707 ac_cv_func_fork_works=yes
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23711 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23713 ac_cv_func_vfork_works=$ac_cv_func_vfork
23714 if test "x$ac_cv_func_vfork" = xyes; then
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
23716 $as_echo_n "checking for working vfork... " >&6; }
23717 if ${ac_cv_func_vfork_works+:} false; then :
23718 $as_echo_n "(cached) " >&6
23720 if test "$cross_compiling" = yes; then :
23721 ac_cv_func_vfork_works=cross
23723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23724 /* end confdefs.h. */
23725 /* Thanks to Paul Eggert for this test. */
23726 $ac_includes_default
23727 #include <sys/wait.h>
23728 #ifdef HAVE_VFORK_H
23729 # include <vfork.h>
23731 /* On some sparc systems, changes by the child to local and incoming
23732 argument registers are propagated back to the parent. The compiler
23733 is told about this with #include <vfork.h>, but some compilers
23734 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23735 static variable whose address is put into a register that is
23736 clobbered by the vfork. */
23739 sparc_address_test (int arg)
23741 sparc_address_test (arg) int arg;
23744 static pid_t child;
23762 pid_t parent = getpid ();
23765 sparc_address_test (0);
23770 /* Here is another test for sparc vfork register problems. This
23771 test uses lots of local variables, at least as many local
23772 variables as main has allocated so far including compiler
23773 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23774 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23775 reuse the register of parent for one of the local variables,
23776 since it will think that parent can't possibly be used any more
23777 in this routine. Assigning to the local variable will thus
23778 munge parent in the parent process. */
23780 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23781 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23782 /* Convince the compiler that p..p7 are live; otherwise, it might
23783 use the same hardware register for all 8 local variables. */
23784 if (p != p1 || p != p2 || p != p3 || p != p4
23785 || p != p5 || p != p6 || p != p7)
23788 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23789 from child file descriptors. If the child closes a descriptor
23790 before it execs or exits, this munges the parent's descriptor
23791 as well. Test for this by closing stdout in the child. */
23792 _exit(close(fileno(stdout)) != 0);
23797 while (wait(&status) != child)
23800 /* Was there some problem with vforking? */
23803 /* Did the child fail? (This shouldn't happen.) */
23806 /* Did the vfork/compiler bug occur? */
23807 || parent != getpid()
23809 /* Did the file descriptor bug occur? */
23810 || fstat(fileno(stdout), &st) != 0
23815 if ac_fn_c_try_run "$LINENO"; then :
23816 ac_cv_func_vfork_works=yes
23818 ac_cv_func_vfork_works=no
23820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23821 conftest.$ac_objext conftest.beam conftest.$ac_ext
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
23826 $as_echo "$ac_cv_func_vfork_works" >&6; }
23829 if test "x$ac_cv_func_fork_works" = xcross; then
23830 ac_cv_func_vfork_works=$ac_cv_func_vfork
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23832 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23835 if test "x$ac_cv_func_vfork_works" = xyes; then
23837 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
23841 $as_echo "#define vfork fork" >>confdefs.h
23844 if test "x$ac_cv_func_fork_works" = xyes; then
23846 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
23850 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
23851 strrchr strsignal fchmod fstat chmod
23853 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23854 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23855 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23856 cat >>confdefs.h <<_ACEOF
23857 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
23864 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
23865 if ${ac_cv_path_SED+:} false; then :
23866 $as_echo_n "(cached) " >&6
23868 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
23869 for ac_i in 1 2 3 4 5 6 7; do
23870 ac_script="$ac_script$as_nl$ac_script"
23872 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
23873 { ac_script=; unset ac_script;}
23874 if test -z "$SED"; then
23875 ac_path_SED_found=false
23876 # Loop through the user's path and test for each of PROGNAME-LIST
23877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23878 for as_dir in $PATH
23881 test -z "$as_dir" && as_dir=.
23882 for ac_prog in sed gsed; do
23883 for ac_exec_ext in '' $ac_executable_extensions; do
23884 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
23885 as_fn_executable_p "$ac_path_SED" || continue
23886 # Check for GNU ac_path_SED and select it if it is found.
23887 # Check for GNU $ac_path_SED
23888 case `"$ac_path_SED" --version 2>&1` in
23890 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
23893 $as_echo_n 0123456789 >"conftest.in"
23896 cat "conftest.in" "conftest.in" >"conftest.tmp"
23897 mv "conftest.tmp" "conftest.in"
23898 cp "conftest.in" "conftest.nl"
23899 $as_echo '' >> "conftest.nl"
23900 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
23901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
23902 as_fn_arith $ac_count + 1 && ac_count=$as_val
23903 if test $ac_count -gt ${ac_path_SED_max-0}; then
23904 # Best one so far, save it but keep looking for a better one
23905 ac_cv_path_SED="$ac_path_SED"
23906 ac_path_SED_max=$ac_count
23908 # 10*(2^10) chars as input seems more than enough
23909 test $ac_count -gt 10 && break
23911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
23914 $ac_path_SED_found && break 3
23919 if test -z "$ac_cv_path_SED"; then
23920 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
23923 ac_cv_path_SED=$SED
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
23928 $as_echo "$ac_cv_path_SED" >&6; }
23929 SED="$ac_cv_path_SED"
23934 POSIX_SHELL=`which bash`
23935 test -x "$POSIX_SHELL" && break
23936 POSIX_SHELL=`which dash`
23937 test -x "$POSIX_SHELL" && break
23938 POSIX_SHELL=/usr/xpg4/bin/sh
23939 test -x "$POSIX_SHELL" && break
23940 POSIX_SHELL=`/bin/sh -c '
23942 if ! true ; then exit 1 ; fi
23944 test -x "$POSIX_SHELL" && break
23945 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
23948 cat >>confdefs.h <<_ACEOF
23949 #define POSIX_SHELL "${POSIX_SHELL}"
23956 LIBOPTS_BUILD_BLOCKED=''
23959 NEED_LIBOPTS_DIR=''
23961 # Check whether --enable-local-libopts was given.
23962 if test "${enable_local_libopts+set}" = set; then :
23963 enableval=$enable_local_libopts;
23964 if test x$enableval = xyes ; then
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
23966 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
23967 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
23968 NEED_LIBOPTS_DIR=true
23969 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
23974 # Check whether --enable-libopts-install was given.
23975 if test "${enable_libopts_install+set}" = set; then :
23976 enableval=$enable_libopts_install;
23979 if test "X${enable_libopts_install}" = Xyes; then
23980 INSTALL_LIBOPTS_TRUE=
23981 INSTALL_LIBOPTS_FALSE='#'
23983 INSTALL_LIBOPTS_TRUE='#'
23984 INSTALL_LIBOPTS_FALSE=
23988 if test -z "${NEED_LIBOPTS_DIR}" ; then
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
23990 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
23992 # Check whether --with-autoopts-config was given.
23993 if test "${with_autoopts_config+set}" = set; then :
23994 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
23997 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
23998 if ${lo_cv_with_autoopts_config+:} false; then :
23999 $as_echo_n "(cached) " >&6
24001 if autoopts-config --help 2>/dev/null 1>&2
24002 then lo_cv_with_autoopts_config=autoopts-config
24003 elif libopts-config --help 2>/dev/null 1>&2
24004 then lo_cv_with_autoopts_config=libopts-config
24005 else lo_cv_with_autoopts_config=no ; fi
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
24008 $as_echo "$lo_cv_with_autoopts_config" >&6; }
24011 # end of AC_ARG_WITH
24013 if ${lo_cv_test_autoopts+:} false; then :
24014 $as_echo_n "(cached) " >&6
24017 if test -z "${lo_cv_with_autoopts_config}" \
24018 -o X"${lo_cv_with_autoopts_config}" = Xno
24020 if autoopts-config --help 2>/dev/null 1>&2
24021 then lo_cv_with_autoopts_config=autoopts-config
24022 elif libopts-config --help 2>/dev/null 1>&2
24023 then lo_cv_with_autoopts_config=libopts-config
24024 else lo_cv_with_autoopts_config=false ; fi
24026 lo_cv_test_autoopts=`
24027 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
24028 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
24029 then lo_cv_test_autoopts=no ; fi
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
24034 $as_echo "${lo_cv_test_autoopts}" >&6; }
24036 if test "X${lo_cv_test_autoopts}" != Xno
24038 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
24039 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
24041 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
24042 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
24043 NEED_LIBOPTS_DIR=true
24045 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
24046 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
24047 NEED_LIBOPTS_DIR=''
24049 if test -n "${NEED_LIBOPTS_DIR}"; then
24051 NEED_LIBOPTS_FALSE='#'
24053 NEED_LIBOPTS_TRUE='#'
24054 NEED_LIBOPTS_FALSE=
24059 LIBOPTS_DIR=libopts
24062 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
24065 if test -z "$NEED_LIBOPTS_TRUE"; then :
24069 # Check to see if a reg expr header is specified.
24072 # Check whether --with-regex-header was given.
24073 if test "${with_regex_header+set}" = set; then :
24074 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
24077 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
24078 if ${libopts_cv_with_regex_header+:} false; then :
24079 $as_echo_n "(cached) " >&6
24081 libopts_cv_with_regex_header=no
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
24084 $as_echo "$libopts_cv_with_regex_header" >&6; }
24087 # end of AC_ARG_WITH
24088 if test "X${libopts_cv_with_regex_header}" != Xno
24090 cat >>confdefs.h <<_ACEOF
24091 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
24096 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
24102 # Check to see if a working libregex can be found.
24105 # Check whether --with-libregex was given.
24106 if test "${with_libregex+set}" = set; then :
24107 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
24110 $as_echo_n "checking whether with-libregex was specified... " >&6; }
24111 if ${libopts_cv_with_libregex_root+:} false; then :
24112 $as_echo_n "(cached) " >&6
24114 libopts_cv_with_libregex_root=no
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
24117 $as_echo "$libopts_cv_with_libregex_root" >&6; }
24120 # end of AC_ARG_WITH libregex
24122 if test "${with_libregex+set}" = set && \
24123 test "X${withval}" = Xno
24124 then ## disabled by request
24125 libopts_cv_with_libregex_root=no
24126 libopts_cv_with_libregex_cflags=no
24127 libopts_cv_with_libregex_libs=no
24131 # Check whether --with-libregex-cflags was given.
24132 if test "${with_libregex_cflags+set}" = set; then :
24133 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
24136 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
24137 if ${libopts_cv_with_libregex_cflags+:} false; then :
24138 $as_echo_n "(cached) " >&6
24140 libopts_cv_with_libregex_cflags=no
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
24143 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
24146 # end of AC_ARG_WITH libregex-cflags
24149 # Check whether --with-libregex-libs was given.
24150 if test "${with_libregex_libs+set}" = set; then :
24151 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
24154 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
24155 if ${libopts_cv_with_libregex_libs+:} false; then :
24156 $as_echo_n "(cached) " >&6
24158 libopts_cv_with_libregex_libs=no
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
24161 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
24164 # end of AC_ARG_WITH libregex-libs
24166 case "X${libopts_cv_with_libregex_cflags}" in
24168 case "X${libopts_cv_with_libregex_root}" in
24169 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
24170 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
24173 case "X${libopts_cv_with_libregex_libs}" in
24175 case "X${libopts_cv_with_libregex_root}" in
24176 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
24177 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
24180 libopts_save_CPPFLAGS="${CPPFLAGS}"
24181 libopts_save_LIBS="${LIBS}"
24182 case "X${libopts_cv_with_libregex_cflags}" in
24184 libopts_cv_with_libregex_cflags="" ;;
24185 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
24187 case "X${libopts_cv_with_libregex_libs}" in
24189 libopts_cv_with_libregex_libs="" ;;
24191 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
24196 $as_echo_n "checking whether libregex functions properly... " >&6; }
24197 if ${libopts_cv_with_libregex+:} false; then :
24198 $as_echo_n "(cached) " >&6
24201 if test "$cross_compiling" = yes; then :
24202 libopts_cv_with_libregex=no
24204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24205 /* end confdefs.h. */
24207 #include <stdlib.h>
24208 #include <sys/types.h>
24209 #include REGEX_HEADER
24211 void comp_re(char const * pzPat) {
24212 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
24213 if (res == 0) return;
24217 comp_re( "^.*\$" );
24218 comp_re( "()|no.*" );
24220 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
24221 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
24222 fputs( "error: regex -->.<-- did not match\n", stderr );
24227 if ac_fn_c_try_run "$LINENO"; then :
24228 libopts_cv_with_libregex=yes
24230 libopts_cv_with_libregex=no
24232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24233 conftest.$ac_objext conftest.beam conftest.$ac_ext
24235 # end of AC_RUN_IFELSE
24238 # end of AC_CACHE_VAL for libopts_cv_with_libregex
24239 fi ## disabled by request
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
24241 $as_echo "${libopts_cv_with_libregex}" >&6; }
24242 if test "X${libopts_cv_with_libregex}" != Xno
24245 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
24248 CPPFLAGS="${libopts_save_CPPFLAGS}"
24249 LIBS="${libopts_save_LIBS}"
24250 libopts_cv_with_libregex_root=no
24251 libopts_cv_with_libregex_cflags=no
24252 libopts_cv_with_libregex_libs=no
24253 libopts_cv_with_libregex=no
24258 # Check to see if pathfind(3) works.
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
24261 $as_echo_n "checking whether pathfind(3) works... " >&6; }
24262 if ${libopts_cv_run_pathfind+:} false; then :
24263 $as_echo_n "(cached) " >&6
24266 if test "$cross_compiling" = yes; then :
24267 libopts_cv_run_pathfind=no
24270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24271 /* end confdefs.h. */
24272 #include <string.h>
24273 #include <stdlib.h>
24274 int main (int argc, char ** argv) {
24275 char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
24276 return (pz == 0) ? 1 : 0;
24279 if ac_fn_c_try_run "$LINENO"; then :
24280 libopts_cv_run_pathfind=yes
24282 libopts_cv_run_pathfind=no
24284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24285 conftest.$ac_objext conftest.beam conftest.$ac_ext
24287 # end of RUN_IFELSE
24290 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
24292 $as_echo "${libopts_cv_run_pathfind}" >&6; }
24293 if test "X${libopts_cv_run_pathfind}" != Xno
24296 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
24302 # Check to see if /dev/zero is readable device.
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
24305 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
24306 if ${libopts_cv_test_dev_zero+:} false; then :
24307 $as_echo_n "(cached) " >&6
24310 libopts_cv_test_dev_zero=`exec 2> /dev/null
24311 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
24312 test -z "${dzero}" && exit 1
24314 if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
24315 then libopts_cv_test_dev_zero=no
24319 # end of CACHE_VAL of libopts_cv_test_dev_zero
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
24321 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
24322 if test "X${libopts_cv_test_dev_zero}" != Xno
24325 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
24331 # Check to see if we have a functional realpath(3C).
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
24334 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
24335 if ${libopts_cv_run_realpath+:} false; then :
24336 $as_echo_n "(cached) " >&6
24339 if test "$cross_compiling" = yes; then :
24340 libopts_cv_run_realpath=no
24343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24344 /* end confdefs.h. */
24345 #include <limits.h>
24346 #include <stdlib.h>
24347 int main (int argc, char ** argv) {
24351 char zPath[PATH_MAX+1];
24353 char *pz = realpath(argv[0], zPath);
24354 return (pz == zPath) ? 0 : 1;
24357 if ac_fn_c_try_run "$LINENO"; then :
24358 libopts_cv_run_realpath=yes
24360 libopts_cv_run_realpath=no
24362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24363 conftest.$ac_objext conftest.beam conftest.$ac_ext
24365 # end of RUN_IFELSE
24368 # end of AC_CACHE_VAL for libopts_cv_run_realpath
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
24370 $as_echo "${libopts_cv_run_realpath}" >&6; }
24371 if test "X${libopts_cv_run_realpath}" != Xno
24374 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
24380 # Check to see if strftime() works.
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
24383 $as_echo_n "checking whether strftime() works... " >&6; }
24384 if ${libopts_cv_run_strftime+:} false; then :
24385 $as_echo_n "(cached) " >&6
24388 if test "$cross_compiling" = yes; then :
24389 libopts_cv_run_strftime=no
24392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24393 /* end confdefs.h. */
24395 #include <string.h>
24398 static char const z[] = "Thursday Aug 28 240";
24400 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
24401 tm.tm_min = 44; /* minutes after the hour [0, 59] */
24402 tm.tm_hour = 12; /* hour since midnight [0, 23] */
24403 tm.tm_mday = 28; /* day of the month [1, 31] */
24404 tm.tm_mon = 7; /* months since January [0, 11] */
24405 tm.tm_year = 86; /* years since 1900 */
24406 tm.tm_wday = 4; /* days since Sunday [0, 6] */
24407 tm.tm_yday = 239; /* days since January 1 [0, 365] */
24408 tm.tm_isdst = 1; /* flag for daylight savings time */
24409 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
24410 return (strcmp( t_buf, z ) != 0); }
24412 if ac_fn_c_try_run "$LINENO"; then :
24413 libopts_cv_run_strftime=yes
24415 libopts_cv_run_strftime=no
24417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24418 conftest.$ac_objext conftest.beam conftest.$ac_ext
24420 # end of RUN_IFELSE
24423 # end of AC_CACHE_VAL for libopts_cv_run_strftime
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
24425 $as_echo "${libopts_cv_run_strftime}" >&6; }
24426 if test "X${libopts_cv_run_strftime}" != Xno
24429 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
24435 # Check to see if fopen accepts "b" mode.
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
24438 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
24439 if ${libopts_cv_run_fopen_binary+:} false; then :
24440 $as_echo_n "(cached) " >&6
24443 if test "$cross_compiling" = yes; then :
24444 libopts_cv_run_fopen_binary=no
24447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24448 /* end confdefs.h. */
24450 int main (int argc, char ** argv) {
24451 FILE * fp = fopen("conftest.$ac_ext", "rb");
24452 return (fp == NULL) ? 1 : fclose(fp); }
24454 if ac_fn_c_try_run "$LINENO"; then :
24455 libopts_cv_run_fopen_binary=yes
24457 libopts_cv_run_fopen_binary=no
24459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24460 conftest.$ac_objext conftest.beam conftest.$ac_ext
24462 # end of RUN_IFELSE
24465 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
24467 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
24468 if test "X${libopts_cv_run_fopen_binary}" != Xno
24471 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
24475 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
24481 # Check to see if fopen accepts "t" mode.
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
24484 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
24485 if ${libopts_cv_run_fopen_text+:} false; then :
24486 $as_echo_n "(cached) " >&6
24489 if test "$cross_compiling" = yes; then :
24490 libopts_cv_run_fopen_text=no
24493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24494 /* end confdefs.h. */
24496 int main (int argc, char ** argv) {
24497 FILE * fp = fopen("conftest.$ac_ext", "rt");
24498 return (fp == NULL) ? 1 : fclose(fp); }
24500 if ac_fn_c_try_run "$LINENO"; then :
24501 libopts_cv_run_fopen_text=yes
24503 libopts_cv_run_fopen_text=no
24505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24506 conftest.$ac_objext conftest.beam conftest.$ac_ext
24508 # end of RUN_IFELSE
24511 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
24512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
24513 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
24514 if test "X${libopts_cv_run_fopen_text}" != Xno
24517 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
24521 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
24527 # Check to see if not wanting optional option args.
24529 # Check whether --enable-optional-args was given.
24530 if test "${enable_optional_args+set}" = set; then :
24531 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
24534 $as_echo_n "checking whether not wanting optional option args... " >&6; }
24535 if ${libopts_cv_enable_optional_args+:} false; then :
24536 $as_echo_n "(cached) " >&6
24538 libopts_cv_enable_optional_args=yes
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
24541 $as_echo "$libopts_cv_enable_optional_args" >&6; }
24544 # end of AC_ARG_ENABLE
24545 if test "X${libopts_cv_enable_optional_args}" = Xno
24548 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
24557 ac_config_files="$ac_config_files libopts/Makefile"
24559 # end of AC_DEFUN of LIBOPTS_CHECK
24562 # From when we only used libevent for sntp:
24565 # [NTP_LIBEVENT_CHECK],
24566 # [NTP_LIBEVENT_CHECK_NOBUILD]
24571 ntp_pkgconfig_min_version='0.15.0'
24572 if test -n "$ac_tool_prefix"; then
24573 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24574 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24576 $as_echo_n "checking for $ac_word... " >&6; }
24577 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24578 $as_echo_n "(cached) " >&6
24580 case $PKG_CONFIG in
24582 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24586 for as_dir in $PATH
24589 test -z "$as_dir" && as_dir=.
24590 for ac_exec_ext in '' $ac_executable_extensions; do
24591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24592 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24603 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24604 if test -n "$PKG_CONFIG"; then
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24606 $as_echo "$PKG_CONFIG" >&6; }
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24609 $as_echo "no" >&6; }
24614 if test -z "$ac_cv_path_PKG_CONFIG"; then
24615 ac_pt_PKG_CONFIG=$PKG_CONFIG
24616 # Extract the first word of "pkg-config", so it can be a program name with args.
24617 set dummy pkg-config; ac_word=$2
24618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24619 $as_echo_n "checking for $ac_word... " >&6; }
24620 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24621 $as_echo_n "(cached) " >&6
24623 case $ac_pt_PKG_CONFIG in
24625 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24629 for as_dir in $PATH
24632 test -z "$as_dir" && as_dir=.
24633 for ac_exec_ext in '' $ac_executable_extensions; do
24634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24635 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24646 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24647 if test -n "$ac_pt_PKG_CONFIG"; then
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24649 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24652 $as_echo "no" >&6; }
24655 if test "x$ac_pt_PKG_CONFIG" = x; then
24658 case $cross_compiling:$ac_tool_warned in
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24662 ac_tool_warned=yes ;;
24664 PKG_CONFIG=$ac_pt_PKG_CONFIG
24667 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24670 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
24671 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
24673 case "$PKG_CONFIG" in
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
24676 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
24677 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24679 $as_echo "yes" >&6; }
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24682 $as_echo "no" >&6; }
24691 # Check whether --enable-local-libevent was given.
24692 if test "${enable_local_libevent+set}" = set; then :
24693 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
24695 ntp_use_local_libevent=${ntp_use_local_libevent-detect}
24708 ntp_libevent_min_version=2
24709 ntp_libevent_tearoff=libevent
24715 case "$ntp_use_local_libevent" in
24718 *) # If we have (a good enough) pkg-config, see if it can find libevent
24719 case "$PKG_CONFIG" in
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
24722 $as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
24723 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
24725 ntp_use_local_libevent=no
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
24727 $as_echo "$as_me: Using the installed libevent" >&6;}
24728 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
24729 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
24730 # HMS: I hope the following is accurate.
24731 # We don't need -levent, we only need -levent_core.
24732 # While we could grab only the -L stuff, there *might* be
24733 # other flags there we want. Originally we just removed -levent
24734 # but then somebody decided to install -levent-2.0
24735 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
24736 # So now we dance...
24738 for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
24743 *) case "$LDADD_LIBEVENT" in
24744 '') LDADD_LIBEVENT="$i" ;;
24745 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
24750 case "$LIBISC_PTHREADS_NOTHREADS" in
24752 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
24754 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24756 $as_echo "yes" >&6; }
24758 ntp_use_local_libevent=yes
24759 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
24761 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24763 $as_echo "no" >&6; }
24767 ntp_use_local_libevent=yes
24773 case "$ntp_use_local_libevent" in
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
24776 $as_echo "$as_me: Using libevent tearoff" >&6;}
24777 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
24778 case "$LIBISC_PTHREADS_NOTHREADS" in
24780 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
24783 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
24788 if test "x$ntp_use_local_libevent" = "xyes"; then
24789 BUILD_LIBEVENT_TRUE=
24790 BUILD_LIBEVENT_FALSE='#'
24792 BUILD_LIBEVENT_TRUE='#'
24793 BUILD_LIBEVENT_FALSE=
24799 case "$ntp_libevent_tearoff" in
24803 as_fn_error $? "ntp_libevent.m4 dir must be libevent, not $ntp_libevent_tearoff" "$LINENO" 5
24807 case "$ntp_use_local_libevent" in
24809 ac_configure_args=" --disable-openssl${ac_configure_args}"
24810 ac_configure_args=" --disable-shared${ac_configure_args}"
24811 ac_configure_args=" --disable-libevent-regress${ac_configure_args}"
24812 ac_configure_args=" --disable-libevent-install${ac_configure_args}"
24813 ac_configure_args=" --enable-silent-rules${ac_configure_args}"
24814 ac_configure_args=" --enable-function-sections${ac_configure_args}"
24815 ac_configure_args=" LEP_CFLAGS='${NTP_HARD_CFLAGS}'${ac_configure_args}"
24816 ac_configure_args=" LEP_CPPFLAGS='${NTP_HARD_CPPFLAGS}'${ac_configure_args}"
24817 ac_configure_args=" LEP_LDFLAGS='${NTP_HARD_LDFLAGS}'${ac_configure_args}"
24818 subdirs="$subdirs libevent"
24822 NTP_FORCE_LIBEVENT_DIST=libevent
24828 # Checks for libraries.
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
24834 $as_echo_n "checking for library containing openlog... " >&6; }
24835 if ${ac_cv_search_openlog+:} false; then :
24836 $as_echo_n "(cached) " >&6
24838 ac_func_search_save_LIBS=$LIBS
24839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24840 /* end confdefs.h. */
24842 /* Override any GCC internal prototype to avoid an error.
24843 Use char because int might match the return type of a GCC
24844 builtin and then its argument prototype would still apply. */
24857 for ac_lib in '' gen syslog; do
24858 if test -z "$ac_lib"; then
24859 ac_res="none required"
24862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24864 if ac_fn_c_try_link "$LINENO"; then :
24865 ac_cv_search_openlog=$ac_res
24867 rm -f core conftest.err conftest.$ac_objext \
24869 if ${ac_cv_search_openlog+:} false; then :
24873 if ${ac_cv_search_openlog+:} false; then :
24876 ac_cv_search_openlog=no
24878 rm conftest.$ac_ext
24879 LIBS=$ac_func_search_save_LIBS
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
24882 $as_echo "$ac_cv_search_openlog" >&6; }
24883 ac_res=$ac_cv_search_openlog
24884 if test "$ac_res" != no; then :
24885 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24886 case "$ac_cv_search_openlog" in
24887 'none required') ;;
24889 *) LIB_SYSLOG="$ac_cv_search_openlog $LIB_SYSLOG" ;;
24895 # Checks for header files.
24896 for ac_header in netdb.h string.h strings.h syslog.h
24898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24899 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24900 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24901 cat >>confdefs.h <<_ACEOF
24902 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24911 for ac_header in sysexits.h
24913 ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
24914 if test "x$ac_cv_header_sysexits_h" = xyes; then :
24915 cat >>confdefs.h <<_ACEOF
24916 #define HAVE_SYSEXITS_H 1
24922 $as_echo "#define EX_OK 0" >>confdefs.h
24925 $as_echo "#define EX_SOFTWARE 70" >>confdefs.h
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
24935 $as_echo_n "checking for facilitynames in syslog.h... " >&6; }
24936 if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
24937 $as_echo_n "(cached) " >&6
24940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24941 /* end confdefs.h. */
24943 #define SYSLOG_NAMES
24944 #include <stdlib.h>
24945 #include <syslog.h>
24950 void *fnames; fnames = facilitynames;
24955 if ac_fn_c_try_compile "$LINENO"; then :
24956 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
24958 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
24960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
24963 $as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
24964 case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
24967 $as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
24972 $as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
24976 $as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
24981 # Checks for typedefs, structures, and compiler characteristics.
24982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
24983 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
24984 if ${ac_cv_header_stdbool_h+:} false; then :
24985 $as_echo_n "(cached) " >&6
24987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24988 /* end confdefs.h. */
24990 #include <stdbool.h>
24992 "error: bool is not defined"
24995 "error: false is not defined"
24998 "error: false is not 0"
25001 "error: true is not defined"
25004 "error: true is not 1"
25006 #ifndef __bool_true_false_are_defined
25007 "error: __bool_true_false_are_defined is not defined"
25010 struct s { _Bool s: 1; _Bool t; } s;
25012 char a[true == 1 ? 1 : -1];
25013 char b[false == 0 ? 1 : -1];
25014 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
25015 char d[(bool) 0.5 == true ? 1 : -1];
25016 /* See body of main program for 'e'. */
25017 char f[(_Bool) 0.0 == false ? 1 : -1];
25019 char h[sizeof (_Bool)];
25020 char i[sizeof s.t];
25021 enum { j = false, k = true, l = false * true, m = true * 256 };
25022 /* The following fails for
25023 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
25025 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
25026 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
25027 /* Catch a bug in an HP-UX C compiler. See
25028 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
25029 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
25041 /* Refer to every declared value, to avoid compiler optimizations. */
25042 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
25043 + !m + !n + !o + !p + !q + !pq);
25049 if ac_fn_c_try_compile "$LINENO"; then :
25050 ac_cv_header_stdbool_h=yes
25052 ac_cv_header_stdbool_h=no
25054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
25057 $as_echo "$ac_cv_header_stdbool_h" >&6; }
25058 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
25059 if test "x$ac_cv_type__Bool" = xyes; then :
25061 cat >>confdefs.h <<_ACEOF
25062 #define HAVE__BOOL 1
25069 if test $ac_cv_header_stdbool_h = yes; then
25071 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
25084 # Check whether --with-crypto was given.
25085 if test "${with_crypto+set}" = set; then :
25086 withval=$with_crypto;
25090 # Check whether --with-openssl-libdir was given.
25091 if test "${with_openssl_libdir+set}" = set; then :
25092 withval=$with_openssl_libdir;
25096 # Check whether --with-openssl-incdir was given.
25097 if test "${with_openssl_incdir+set}" = set; then :
25098 withval=$with_openssl_incdir;
25102 # Check whether --with-rpath was given.
25103 if test "${with_rpath+set}" = set; then :
25104 withval=$with_rpath;
25109 ntp_openssl_from_pkg_config=no
25111 with_crypto=${with_crypto:-openssl,libcrypto}
25112 case "$with_crypto" in
25114 with_crypto=openssl,libcrypto
25118 case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
25120 *:notempty:notgiven:notgiven)
25121 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
25122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
25123 $as_echo_n "checking pkg-config for $pkg... " >&6; }
25124 if $PKG_CONFIG --exists $pkg ; then
25125 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
25126 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
25127 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
25128 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
25129 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
25132 ntp_openssl_from_pkg_config=yes
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25134 $as_echo "yes" >&6; }
25138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25139 $as_echo "no" >&6; }
25142 case "$with_crypto:$ntp_openssl" in
25147 case "${with_rpath-notgiven}" in
25149 # Lame - what to do if we need -Wl... but not -R?
25155 # This may really only be true for gcc
25156 need_dash_Wlrpath=1
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
25169 $as_echo_n "checking for openssl library directory... " >&6; }
25170 with_openssl_libdir=${with_openssl_libdir-notgiven}
25171 case "$with_openssl_libdir" in
25175 with_openssl_libdir=default
25178 with_openssl_libdir=no
25182 case "$with_openssl_libdir" in
25185 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
25186 with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
25187 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
25189 case "$with_openssl_libdir" in
25192 *) # Look for libcrypto.a and libssl.a:
25193 for i in $with_openssl_libdir no
25197 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
25200 test -f $i/libcrypto.so -a -f $i/libssl.so && break
25201 test -f $i/libcrypto.a -a -f $i/libssl.a && break
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
25209 $as_echo "$openssl_libdir" >&6; }
25210 case "$openssl_libdir" in
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
25214 $as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
25218 $as_echo_n "checking for openssl include directory... " >&6; }
25219 with_openssl_incdir=${with_openssl_incdir-notgiven}
25220 case "$with_openssl_incdir" in
25223 with_openssl_incdir="/usr/include /usr/sfw/include"
25224 with_openssl_incdir="$with_openssl_incdir /usr/local/include"
25225 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
25227 case "$with_openssl_incdir" in
25230 *) # look for openssl/evp.h:
25231 for i in $with_openssl_incdir no
25233 test -f $i/openssl/evp.h && break
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
25240 $as_echo "$openssl_incdir" >&6; }
25241 case "$openssl_incdir" in
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
25245 $as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
25247 if test -z "$openssl_libdir" -o -z "$openssl_incdir"
25254 case "$ntp_openssl" in
25256 # We have OpenSSL inc/lib dirs - use them.
25257 case "$openssl_incdir" in
25261 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
25264 case "$openssl_libdir" in
25268 LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
25269 case "$need_dash_r" in
25271 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
25273 case "$need_dash_Wlrpath" in
25275 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
25279 LDADD_NTP="$LDADD_NTP -lcrypto"
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
25284 $as_echo_n "checking if we will use crypto... " >&6; }
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
25286 $as_echo "$ntp_openssl" >&6; }
25288 case "$ntp_openssl" in
25291 $as_echo "#define OPENSSL /**/" >>confdefs.h
25293 case "$VER_SUFFIX" in
25295 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
25300 NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
25301 CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
25302 NTPO_SAVED_LIBS="$LIBS"
25305 # check for linking with -lcrypto failure, and try -lcrypto -lz.
25306 # Helps m68k-atari-mint
25308 case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
25310 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
25312 $as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
25313 if ${ntp_cv_bare_lcrypto+:} false; then :
25314 $as_echo_n "(cached) " >&6
25316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25317 /* end confdefs.h. */
25319 #include "openssl/err.h"
25320 #include "openssl/evp.h"
25326 ERR_load_crypto_strings();
25327 OpenSSL_add_all_algorithms();
25334 if ac_fn_c_try_link "$LINENO"; then :
25335 ntp_cv_bare_lcrypto=yes
25337 ntp_cv_bare_lcrypto=no
25340 rm -f core conftest.err conftest.$ac_objext \
25341 conftest$ac_exeext conftest.$ac_ext
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
25345 $as_echo "$ntp_cv_bare_lcrypto" >&6; }
25346 case "$ntp_cv_bare_lcrypto" in
25348 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
25350 $as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
25351 if ${ntp_cv_lcrypto_lz+:} false; then :
25352 $as_echo_n "(cached) " >&6
25354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25355 /* end confdefs.h. */
25357 #include "openssl/err.h"
25358 #include "openssl/evp.h"
25364 ERR_load_crypto_strings();
25365 OpenSSL_add_all_algorithms();
25372 if ac_fn_c_try_link "$LINENO"; then :
25373 ntp_cv_lcrypto_lz=yes
25375 ntp_cv_lcrypto_lz=no
25378 rm -f core conftest.err conftest.$ac_objext \
25379 conftest$ac_exeext conftest.$ac_ext
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
25383 $as_echo "$ntp_cv_lcrypto_lz" >&6; }
25384 case "$ntp_cv_lcrypto_lz" in
25386 LDADD_NTP="$LDADD_NTP -lz"
25392 # Older OpenSSL headers have a number of callback prototypes inside
25393 # other function prototypes which trigger copious warnings with gcc's
25394 # -Wstrict-prototypes, which is included in -Wall.
25398 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
25399 # int (*cb)(), int sgckey);
25404 openssl_triggers_warnings=unknown
25405 NTPO_SAVED_CFLAGS="$CFLAGS"
25407 case "$ntp_openssl:$GCC" in
25409 CFLAGS="$CFLAGS -Werror"
25410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25411 /* end confdefs.h. */
25418 /* see if -Werror breaks gcc */
25425 if ac_fn_c_try_compile "$LINENO"; then :
25426 gcc_handles_Werror=yes
25428 gcc_handles_Werror=no
25431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25432 case "$gcc_handles_Werror" in
25434 # if this gcc doesn't do -Werror go ahead and use
25435 # -Wstrict-prototypes.
25436 openssl_triggers_warnings=yes
25439 CFLAGS="$CFLAGS -Wstrict-prototypes"
25440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25441 /* end confdefs.h. */
25443 #include "openssl/asn1_mac.h"
25444 #include "openssl/bn.h"
25445 #include "openssl/err.h"
25446 #include "openssl/evp.h"
25447 #include "openssl/pem.h"
25448 #include "openssl/rand.h"
25449 #include "openssl/x509v3.h"
25462 if ac_fn_c_try_compile "$LINENO"; then :
25463 openssl_triggers_warnings=no
25465 openssl_triggers_warnings=yes
25468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25470 case "$openssl_triggers_warnings" in
25472 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
25475 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
25479 # gcc without OpenSSL
25480 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
25483 # Because we don't want -Werror for the EVP_MD_do_all_sorted check
25484 CFLAGS="$NTPO_SAVED_CFLAGS"
25486 case "$ntp_openssl" in
25488 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
25489 for ac_func in EVP_MD_do_all_sorted
25491 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
25492 if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
25493 cat >>confdefs.h <<_ACEOF
25494 #define HAVE_EVP_MD_DO_ALL_SORTED 1
25504 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
25505 LIBS="$NTPO_SAVED_LIBS"
25506 { NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
25507 { NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
25508 { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
25509 { openssl_triggers_warnings=; unset openssl_triggers_warnings;}
25510 { ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
25515 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
25516 if ${ntp_cv_sockaddr_storage+:} false; then :
25517 $as_echo_n "(cached) " >&6
25519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25520 /* end confdefs.h. */
25522 #ifdef HAVE_SYS_TYPES_H
25523 # include <sys/types.h>
25525 #ifdef HAVE_SYS_SOCKET_H
25526 # include <sys/socket.h>
25528 #ifdef HAVE_NETINET_IN_H
25529 # include <netinet/in.h>
25536 struct sockaddr_storage n;
25543 if ac_fn_c_try_compile "$LINENO"; then :
25544 ntp_cv_sockaddr_storage=yes
25546 ntp_cv_sockaddr_storage=no
25549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
25553 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
25554 case "$ntp_cv_sockaddr_storage" in
25557 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
25560 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
25561 if ${ntp_cv_have___ss_family+:} false; then :
25562 $as_echo_n "(cached) " >&6
25564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25565 /* end confdefs.h. */
25567 #ifdef HAVE_SYS_TYPES_H
25568 # include <sys/types.h>
25570 #ifdef HAVE_SYS_SOCKET_H
25571 # include <sys/socket.h>
25573 #ifdef HAVE_NETINET_IN_H
25574 # include <netinet/in.h>
25581 struct sockaddr_storage s;
25589 if ac_fn_c_try_compile "$LINENO"; then :
25590 ntp_cv_have___ss_family=yes
25592 ntp_cv_have___ss_family=no
25595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
25599 $as_echo "$ntp_cv_have___ss_family" >&6; }
25600 case "$ntp_cv_have___ss_family" in
25603 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
25611 # Look for in_port_t.
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
25614 $as_echo_n "checking for in_port_t... " >&6; }
25615 if ${isc_cv_have_in_port_t+:} false; then :
25616 $as_echo_n "(cached) " >&6
25618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25619 /* end confdefs.h. */
25621 #include <sys/types.h>
25622 #include <netinet/in.h>
25628 in_port_t port = 25;
25636 if ac_fn_c_try_compile "$LINENO"; then :
25637 isc_cv_have_in_port_t=yes
25639 isc_cv_have_in_port_t=no
25642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
25646 $as_echo "$isc_cv_have_in_port_t" >&6; }
25647 case "$isc_cv_have_in_port_t" in
25650 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
25655 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
25656 if ${ntp_cv_getsockname_socklen_type+:} false; then :
25657 $as_echo_n "(cached) " >&6
25660 getsockname_socklen_type_found=no
25661 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
25662 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
25663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25664 /* end confdefs.h. */
25666 #ifdef HAVE_SYS_TYPES_H
25667 # include <sys/types.h>
25669 #ifdef HAVE_SYS_SOCKET_H
25670 # include <sys/socket.h>
25678 getsockname(int, $getsockname_arg2,
25679 $ntp_cv_getsockname_socklen_type *);
25686 if ac_fn_c_try_compile "$LINENO"; then :
25687 getsockname_socklen_type_found=yes ; break 2
25689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25692 case "$getsockname_socklen_type_found" in
25694 ntp_cv_getsockname_socklen_type='socklen_t'
25696 { getsockname_arg2=; unset getsockname_arg2;}
25697 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
25702 $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
25704 cat >>confdefs.h <<_ACEOF
25705 #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
25710 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
25711 if ${isc_cv_platform_havesalen+:} false; then :
25712 $as_echo_n "(cached) " >&6
25714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25715 /* end confdefs.h. */
25717 #include <sys/types.h>
25718 #include <sys/socket.h>
25724 extern struct sockaddr *ps;
25732 if ac_fn_c_try_compile "$LINENO"; then :
25733 isc_cv_platform_havesalen=yes
25735 isc_cv_platform_havesalen=no
25738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
25742 $as_echo "$isc_cv_platform_havesalen" >&6; }
25743 case "$isc_cv_platform_havesalen" in
25746 $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
25750 # Check whether --enable-ipv6 was given.
25751 if test "${enable_ipv6+set}" = set; then :
25752 enableval=$enable_ipv6;
25756 case "$enable_ipv6" in
25763 $as_echo "#define WANT_IPV6 1" >>confdefs.h
25776 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
25781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
25782 $as_echo_n "checking for IPv6 structures... " >&6; }
25783 if ${isc_cv_found_ipv6+:} false; then :
25784 $as_echo_n "(cached) " >&6
25786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25787 /* end confdefs.h. */
25789 #include <sys/types.h>
25790 #include <sys/socket.h>
25791 #include <netinet/in.h>
25797 struct sockaddr_in6 sin6;
25804 if ac_fn_c_try_compile "$LINENO"; then :
25805 isc_cv_found_ipv6=yes
25807 isc_cv_found_ipv6=no
25810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
25814 $as_echo "$isc_cv_found_ipv6" >&6; }
25817 # See whether IPv6 support is provided via a Kame add-on.
25818 # This is done before other IPv6 linking tests so LIBS is properly set.
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
25821 $as_echo_n "checking for Kame IPv6 support... " >&6; }
25823 # Check whether --with-kame was given.
25824 if test "${with_kame+set}" = set; then :
25825 withval=$with_kame; use_kame="$withval"
25831 case "$use_kame" in
25835 kame_path=/usr/local/v6
25838 kame_path="$use_kame"
25841 case "$use_kame" in
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25844 $as_echo "no" >&6; }
25847 if test -f $kame_path/lib/libinet6.a; then
25848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
25849 $as_echo "$kame_path/lib/libinet6.a" >&6; }
25850 LIBS="-L$kame_path/lib -linet6 $LIBS"
25852 as_fn_error $? "$kame_path/lib/libinet6.a not found.
25854 Please choose the proper path with the following command:
25856 configure --with-kame=PATH
25863 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
25864 # Including it on Kame-using platforms is very bad, though, because
25865 # Kame uses #error against direct inclusion. So include it on only
25866 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
25867 # This is done before the in6_pktinfo check because that's what
25868 # netinet6/in6.h is needed for.
25873 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
25875 isc_netinet6in6_hack="#include <netinet6/in6.h>"
25878 isc_netinet6in6_hack=""
25883 # This is similar to the netinet6/in6.h issue.
25886 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
25888 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
25890 isc_netinetin6_hack="#include <netinet/in6.h>"
25893 isc_netinetin6_hack=""
25898 case "$isc_cv_found_ipv6" in
25901 $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
25904 $as_echo_n "checking for in6_pktinfo... " >&6; }
25905 if ${isc_cv_have_in6_pktinfo+:} false; then :
25906 $as_echo_n "(cached) " >&6
25908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25909 /* end confdefs.h. */
25911 #include <sys/types.h>
25912 #include <sys/socket.h>
25913 #include <netinet/in.h>
25914 $isc_netinetin6_hack
25915 $isc_netinet6in6_hack
25921 struct in6_pktinfo xyzzy;
25928 if ac_fn_c_try_compile "$LINENO"; then :
25929 isc_cv_have_in6_pktinfo=yes
25931 isc_cv_have_in6_pktinfo=no
25934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
25938 $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
25939 case "$isc_cv_have_in6_pktinfo" in
25942 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
25947 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
25949 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
25950 if ${isc_cv_have_sin6_scope_id+:} false; then :
25951 $as_echo_n "(cached) " >&6
25953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25954 /* end confdefs.h. */
25956 #include <sys/types.h>
25957 #include <sys/socket.h>
25958 #include <netinet/in.h>
25959 $isc_netinetin6_hack
25960 $isc_netinet6in6_hack
25966 struct sockaddr_in6 xyzzy;
25967 xyzzy.sin6_scope_id = 0;
25974 if ac_fn_c_try_compile "$LINENO"; then :
25975 isc_cv_have_sin6_scope_id=yes
25977 isc_cv_have_sin6_scope_id=no
25980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
25984 $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
25986 case "$isc_cv_have_sin6_scope_id" in
25989 $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
25995 # We need this check run even without isc_cv_found_ipv6=yes
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
25998 $as_echo_n "checking for in6addr_any... " >&6; }
25999 if ${isc_cv_in6addr_any_links+:} false; then :
26000 $as_echo_n "(cached) " >&6
26004 LIBS="$LDADD_LIBNTP $LIBS"
26005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26006 /* end confdefs.h. */
26007 $ac_includes_default
26008 #include <sys/socket.h>
26009 #include <netinet/in.h>
26010 $isc_netinetin6_hack
26011 $isc_netinet6in6_hack
26017 printf("%x", in6addr_any.s6_addr[15]);
26024 if ac_fn_c_try_link "$LINENO"; then :
26025 isc_cv_in6addr_any_links=yes
26027 isc_cv_in6addr_any_links=no
26030 rm -f core conftest.err conftest.$ac_objext \
26031 conftest$ac_exeext conftest.$ac_ext
26033 { SAVED_LIBS=; unset SAVED_LIBS;}
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
26038 $as_echo "$isc_cv_in6addr_any_links" >&6; }
26040 case "$isc_cv_in6addr_any_links" in
26043 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
26048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
26049 $as_echo_n "checking for struct if_laddrconf... " >&6; }
26050 if ${isc_cv_struct_if_laddrconf+:} false; then :
26051 $as_echo_n "(cached) " >&6
26053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26054 /* end confdefs.h. */
26056 #include <sys/types.h>
26057 #include <net/if6.h>
26063 struct if_laddrconf a;
26070 if ac_fn_c_try_compile "$LINENO"; then :
26071 isc_cv_struct_if_laddrconf=yes
26073 isc_cv_struct_if_laddrconf=no
26076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
26080 $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
26082 case "$isc_cv_struct_if_laddrconf" in
26085 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
26090 $as_echo_n "checking for struct if_laddrreq... " >&6; }
26091 if ${isc_cv_struct_if_laddrreq+:} false; then :
26092 $as_echo_n "(cached) " >&6
26094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26095 /* end confdefs.h. */
26097 #include <sys/types.h>
26098 #include <net/if6.h>
26104 struct if_laddrreq a;
26111 if ac_fn_c_try_compile "$LINENO"; then :
26112 isc_cv_struct_if_laddrreq=yes
26114 isc_cv_struct_if_laddrreq=no
26117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
26121 $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
26123 case "$isc_cv_struct_if_laddrreq" in
26126 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
26131 $as_echo_n "checking for multicast IP support... " >&6; }
26132 if ${ntp_cv_multicast+:} false; then :
26133 $as_echo_n "(cached) " >&6
26136 ntp_cv_multicast=no
26138 i386-sequent-sysv4)
26141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26142 /* end confdefs.h. */
26144 #ifdef HAVE_NETINET_IN_H
26145 # include <netinet/in.h>
26152 struct ip_mreq ipmr;
26153 ipmr.imr_interface.s_addr = 0;
26160 if ac_fn_c_try_compile "$LINENO"; then :
26161 ntp_cv_multicast=yes
26163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
26170 $as_echo "$ntp_cv_multicast" >&6; }
26171 case "$ntp_cv_multicast" in
26174 $as_echo "#define MCAST 1" >>confdefs.h
26176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
26177 $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
26178 if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
26179 $as_echo_n "(cached) " >&6
26183 *-*-netbsd*|*-*-*linux*)
26184 ntp_cv_typeof_ip_multicast_loop=u_int
26187 ntp_cv_typeof_ip_multicast_loop=u_char
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
26194 $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
26196 cat >>confdefs.h <<_ACEOF
26197 #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
26202 # Check whether --enable-getifaddrs was given.
26203 if test "${enable_getifaddrs+set}" = set; then :
26204 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
26206 want_getifaddrs="yes"
26211 case $want_getifaddrs in
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
26214 $as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
26216 case $want_getifaddrs in
26221 LIBS="$LDADD_LIBNTP $LIBS"
26222 for ac_func in getifaddrs
26224 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
26225 if test "x$ac_cv_func_getifaddrs" = xyes; then :
26226 cat >>confdefs.h <<_ACEOF
26227 #define HAVE_GETIFADDRS 1
26234 { SAVED_LIBS=; unset SAVED_LIBS;}
26239 # Check for if_nametoindex() for IPv6 scoped addresses support
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
26244 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
26245 if ${ac_cv_search_if_nametoindex+:} false; then :
26246 $as_echo_n "(cached) " >&6
26248 ac_func_search_save_LIBS=$LIBS
26249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26250 /* end confdefs.h. */
26252 /* Override any GCC internal prototype to avoid an error.
26253 Use char because int might match the return type of a GCC
26254 builtin and then its argument prototype would still apply. */
26258 char if_nametoindex ();
26262 return if_nametoindex ();
26267 for ac_lib in '' ipv6; do
26268 if test -z "$ac_lib"; then
26269 ac_res="none required"
26272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26274 if ac_fn_c_try_link "$LINENO"; then :
26275 ac_cv_search_if_nametoindex=$ac_res
26277 rm -f core conftest.err conftest.$ac_objext \
26279 if ${ac_cv_search_if_nametoindex+:} false; then :
26283 if ${ac_cv_search_if_nametoindex+:} false; then :
26286 ac_cv_search_if_nametoindex=no
26288 rm conftest.$ac_ext
26289 LIBS=$ac_func_search_save_LIBS
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
26292 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
26293 ac_res=$ac_cv_search_if_nametoindex
26294 if test "$ac_res" != no; then :
26295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26301 LIBS="$LDADD_LIBNTP $LIBS"
26302 for ac_func in if_nametoindex
26304 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
26305 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
26306 cat >>confdefs.h <<_ACEOF
26307 #define HAVE_IF_NAMETOINDEX 1
26314 { SAVED_LIBS=; unset SAVED_LIBS;}
26315 case "$ac_cv_func_if_nametoindex" in
26318 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
26327 # these need work if we're to move libntp under sntp
26329 $as_echo "#define HAVE_NO_NICE 1" >>confdefs.h
26332 $as_echo "#define HAVE_TERMIOS 1" >>confdefs.h
26335 # Checks for library functions.
26336 for ac_func in socket
26338 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
26339 if test "x$ac_cv_func_socket" = xyes; then :
26340 cat >>confdefs.h <<_ACEOF
26341 #define HAVE_SOCKET 1
26349 # We may not need have_unity
26351 # Extract the first word of "ruby", so it can be a program name with args.
26352 set dummy ruby; ac_word=$2
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26354 $as_echo_n "checking for $ac_word... " >&6; }
26355 if ${ac_cv_path_PATH_RUBY+:} false; then :
26356 $as_echo_n "(cached) " >&6
26360 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
26363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26364 for as_dir in $PATH
26367 test -z "$as_dir" && as_dir=.
26368 for ac_exec_ext in '' $ac_executable_extensions; do
26369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26370 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
26371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26381 PATH_RUBY=$ac_cv_path_PATH_RUBY
26382 if test -n "$PATH_RUBY"; then
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
26384 $as_echo "$PATH_RUBY" >&6; }
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26387 $as_echo "no" >&6; }
26391 case "$PATH_RUBY" in
26395 *) PATH_RUBY="false"
26398 # We may not need UNITYBUILD_AVAILABLE
26399 if $have_unity; then
26400 UNITYBUILD_AVAILABLE_TRUE=
26401 UNITYBUILD_AVAILABLE_FALSE='#'
26403 UNITYBUILD_AVAILABLE_TRUE='#'
26404 UNITYBUILD_AVAILABLE_FALSE=
26409 ## HMS: if we don't find c++ we should not look for gtest.
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
26420 $as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
26421 # Check whether --enable-problem-tests was given.
26422 if test "${enable_problem_tests+set}" = set; then :
26423 enableval=$enable_problem_tests; sntp_ept=$enableval
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_ept" >&5
26430 $as_echo "$sntp_ept" >&6; }
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-kodDatabase" >&5
26433 $as_echo_n "checking if we can run test-kodDatabase... " >&6; }
26434 sntp_test_kodDatabase="no"
26435 case "$sntp_ept:$cross:$host" in
26436 no:0:*-apple-darwin12.6.0) ;;
26437 *) sntp_test_kodDatabase="yes" ;;
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_test_kodDatabase" >&5
26440 $as_echo "$sntp_test_kodDatabase" >&6; }
26441 if test x$sntp_test_kodDatabase = xyes; then
26442 BUILD_TEST_KODDATABASE_TRUE=
26443 BUILD_TEST_KODDATABASE_FALSE='#'
26445 BUILD_TEST_KODDATABASE_TRUE='#'
26446 BUILD_TEST_KODDATABASE_FALSE=
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-kodFile" >&5
26451 $as_echo_n "checking if we can run test-kodFile... " >&6; }
26452 sntp_test_kodFile="no"
26453 case "$sntp_ept:$cross:$host" in
26454 no:0:*-apple-darwin12.6.0) ;;
26455 *) sntp_test_kodFile="yes" ;;
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_test_kodFile" >&5
26458 $as_echo "$sntp_test_kodFile" >&6; }
26459 if test x$sntp_test_kodFile = xyes; then
26460 BUILD_TEST_KODFILE_TRUE=
26461 BUILD_TEST_KODFILE_FALSE='#'
26463 BUILD_TEST_KODFILE_TRUE='#'
26464 BUILD_TEST_KODFILE_FALSE=
26470 # All libraries should be in various LIB_* variables now.
26472 # Sadly not. There is a gettext() check somewhere, and on Solaris this pulls
26473 # in -lintl -lgen, outside our "scope".
26475 ac_config_files="$ac_config_files Makefile"
26477 ac_config_files="$ac_config_files include/Makefile"
26479 ac_config_files="$ac_config_files scripts/Makefile"
26481 ac_config_files="$ac_config_files tests/Makefile"
26483 ac_config_files="$ac_config_files tests/fileHandlingTest.h"
26485 ac_config_files="$ac_config_files unity/Makefile"
26488 cat >confcache <<\_ACEOF
26489 # This file is a shell script that caches the results of configure
26490 # tests run on this system so they can be shared between configure
26491 # scripts and configure runs, see configure's option --config-cache.
26492 # It is not useful on other systems. If it contains results you don't
26493 # want to keep, you may remove or edit it.
26495 # config.status only pays attention to the cache file if you give it
26496 # the --recheck option to rerun configure.
26498 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26499 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26500 # following values.
26504 # The following way of writing the cache mishandles newlines in values,
26505 # but we know of no workaround that is simple, portable, and efficient.
26506 # So, we kill variables containing newlines.
26507 # Ultrix sh set writes to stderr and can't be redirected directly,
26508 # and sets the high bit in the cache file unless we assign to the vars.
26510 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26511 eval ac_val=\$$ac_var
26515 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26516 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26519 _ | IFS | as_nl) ;; #(
26520 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26521 *) { eval $ac_var=; unset $ac_var;} ;;
26527 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26528 *${as_nl}ac_space=\ *)
26529 # `set' does not quote correctly, so add quotes: double-quote
26530 # substitution turns \\\\ into \\, and sed turns \\ into \.
26533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26536 # `set' quotes correctly as required by POSIX, so do not add quotes.
26537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26546 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26548 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26550 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26551 if test -w "$cache_file"; then
26552 if test "x$cache_file" != "x/dev/null"; then
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26554 $as_echo "$as_me: updating cache $cache_file" >&6;}
26555 if test ! -f "$cache_file" || test -h "$cache_file"; then
26556 cat confcache >"$cache_file"
26558 case $cache_file in #(
26560 mv -f confcache "$cache_file"$$ &&
26561 mv -f "$cache_file"$$ "$cache_file" ;; #(
26563 mv -f confcache "$cache_file" ;;
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26569 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26574 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26575 # Let make expand exec_prefix.
26576 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26578 DEFS=-DHAVE_CONFIG_H
26583 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26584 # 1. Remove the extension, and $U if already installed.
26585 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26586 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26587 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26588 # will be set to the directory where LIBOBJS objects are built.
26589 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26590 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26592 LIBOBJS=$ac_libobjs
26594 LTLIBOBJS=$ac_ltlibobjs
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26598 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26599 if test -n "$am_sleep_pid"; then
26600 # Hide warnings about reused PIDs.
26601 wait $am_sleep_pid 2>/dev/null
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26604 $as_echo "done" >&6; }
26605 if test -n "$EXEEXT"; then
26607 am__EXEEXT_FALSE='#'
26609 am__EXEEXT_TRUE='#'
26613 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26614 as_fn_error $? "conditional \"AMDEP\" was never defined.
26615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26617 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26618 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26622 if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
26623 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
26624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26626 if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
26627 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
26628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26630 if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
26631 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
26632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26634 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
26635 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
26636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26638 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
26639 as_fn_error $? "conditional \"PTHREADS\" was never defined.
26640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26642 if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
26643 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
26644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26646 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
26647 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
26648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26650 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
26651 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
26652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26654 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
26655 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
26656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26658 if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
26659 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
26660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26662 if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
26663 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
26664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26666 if test -z "${BUILD_TEST_KODDATABASE_TRUE}" && test -z "${BUILD_TEST_KODDATABASE_FALSE}"; then
26667 as_fn_error $? "conditional \"BUILD_TEST_KODDATABASE\" was never defined.
26668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26670 if test -z "${BUILD_TEST_KODFILE_TRUE}" && test -z "${BUILD_TEST_KODFILE_FALSE}"; then
26671 as_fn_error $? "conditional \"BUILD_TEST_KODFILE\" was never defined.
26672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26675 : "${CONFIG_STATUS=./config.status}"
26677 ac_clean_files_save=$ac_clean_files
26678 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26679 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26680 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26682 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26684 # Generated by $as_me.
26685 # Run this file to recreate the current configuration.
26686 # Compiler output produced by configure, useful for debugging
26687 # configure, is in config.log if it exists.
26690 ac_cs_recheck=false
26693 SHELL=\${CONFIG_SHELL-$SHELL}
26696 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26697 ## -------------------- ##
26698 ## M4sh Initialization. ##
26699 ## -------------------- ##
26701 # Be more Bourne compatible
26702 DUALCASE=1; export DUALCASE # for MKS sh
26703 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26706 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26707 # is contrary to our usage. Disable this feature.
26708 alias -g '${1+"$@"}'='"$@"'
26709 setopt NO_GLOB_SUBST
26711 case `(set -o) 2>/dev/null` in #(
26723 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26724 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26725 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26727 # Prefer a ksh shell builtin over an external printf program on Solaris,
26728 # but without wasting forks for bash or zsh.
26729 if test -z "$BASH_VERSION$ZSH_VERSION" \
26730 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26731 as_echo='print -r --'
26732 as_echo_n='print -rn --'
26733 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26734 as_echo='printf %s\n'
26735 as_echo_n='printf %s'
26737 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26738 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26739 as_echo_n='/usr/ucb/echo -n'
26741 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26742 as_echo_n_body='eval
26746 expr "X$arg" : "X\\(.*\\)$as_nl";
26747 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26749 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26751 export as_echo_n_body
26752 as_echo_n='sh -c $as_echo_n_body as_echo'
26754 export as_echo_body
26755 as_echo='sh -c $as_echo_body as_echo'
26758 # The user is always right.
26759 if test "${PATH_SEPARATOR+set}" != set; then
26761 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26762 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26769 # We need space, tab and new line, in precisely that order. Quoting is
26770 # there to prevent editors from complaining about space-tab.
26771 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26772 # splitting by setting IFS to empty value.)
26775 # Find who we are. Look in the path if we contain no directory separator.
26778 *[\\/]* ) as_myself=$0 ;;
26779 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26780 for as_dir in $PATH
26783 test -z "$as_dir" && as_dir=.
26784 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26790 # We did not find ourselves, most probably we were run as `sh COMMAND'
26791 # in which case we are not to be found in the path.
26792 if test "x$as_myself" = x; then
26795 if test ! -f "$as_myself"; then
26796 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26800 # Unset variables that we do not need and which cause bugs (e.g. in
26801 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26802 # suppresses any "Segmentation fault" message there. '((' could
26803 # trigger a bug in pdksh 5.2.14.
26804 for as_var in BASH_ENV ENV MAIL MAILPATH
26805 do eval test x\${$as_var+set} = xset \
26806 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26819 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26822 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26823 # ----------------------------------------
26824 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26825 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26826 # script with STATUS, using 1 if that was 0.
26829 as_status=$1; test $as_status -eq 0 && as_status=1
26831 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26832 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26834 $as_echo "$as_me: error: $2" >&2
26835 as_fn_exit $as_status
26839 # as_fn_set_status STATUS
26840 # -----------------------
26841 # Set $? to STATUS, without forking.
26842 as_fn_set_status ()
26845 } # as_fn_set_status
26847 # as_fn_exit STATUS
26848 # -----------------
26849 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26853 as_fn_set_status $1
26859 # Portably unset VAR.
26862 { eval $1=; unset $1;}
26864 as_unset=as_fn_unset
26865 # as_fn_append VAR VALUE
26866 # ----------------------
26867 # Append the text in VALUE to the end of the definition contained in VAR. Take
26868 # advantage of any shell optimizations that allow amortized linear growth over
26869 # repeated appends, instead of the typical quadratic growth present in naive
26871 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26872 eval 'as_fn_append ()
26883 # as_fn_arith ARG...
26884 # ------------------
26885 # Perform arithmetic evaluation on the ARGs, and store the result in the
26886 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26887 # must be portable across $(()) and expr.
26888 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26889 eval 'as_fn_arith ()
26896 as_val=`expr "$@" || test $? -eq 1`
26901 if expr a : '\(a\)' >/dev/null 2>&1 &&
26902 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26908 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26909 as_basename=basename
26914 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26920 as_me=`$as_basename -- "$0" ||
26921 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26922 X"$0" : 'X\(//\)$' \| \
26923 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26925 sed '/^.*\/\([^/][^/]*\)\/*$/{
26939 # Avoid depending upon Character Ranges.
26940 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26941 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26942 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26943 as_cr_digits='0123456789'
26944 as_cr_alnum=$as_cr_Letters$as_cr_digits
26946 ECHO_C= ECHO_N= ECHO_T=
26947 case `echo -n x` in #(((((
26949 case `echo 'xy\c'` in
26950 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26952 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26959 rm -f conf$$ conf$$.exe conf$$.file
26960 if test -d conf$$.dir; then
26961 rm -f conf$$.dir/conf$$.file
26964 mkdir conf$$.dir 2>/dev/null
26966 if (echo >conf$$.file) 2>/dev/null; then
26967 if ln -s conf$$.file conf$$ 2>/dev/null; then
26969 # ... but there are two gotchas:
26970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26972 # In both cases, we have to default to `cp -pR'.
26973 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26975 elif ln conf$$.file conf$$ 2>/dev/null; then
26983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26984 rmdir conf$$.dir 2>/dev/null
26989 # Create "$as_dir" as a directory, including parents if necessary.
26994 -*) as_dir=./$as_dir;;
26996 test -d "$as_dir" || eval $as_mkdir_p || {
27000 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27001 *) as_qdir=$as_dir;;
27003 as_dirs="'$as_qdir' $as_dirs"
27004 as_dir=`$as_dirname -- "$as_dir" ||
27005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27006 X"$as_dir" : 'X\(//\)[^/]' \| \
27007 X"$as_dir" : 'X\(//\)$' \| \
27008 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27009 $as_echo X"$as_dir" |
27010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27014 /^X\(\/\/\)[^/].*/{
27027 test -d "$as_dir" && break
27029 test -z "$as_dirs" || eval "mkdir $as_dirs"
27030 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27034 if mkdir -p . 2>/dev/null; then
27035 as_mkdir_p='mkdir -p "$as_dir"'
27037 test -d ./-p && rmdir ./-p
27042 # as_fn_executable_p FILE
27043 # -----------------------
27044 # Test if FILE is an executable regular file.
27045 as_fn_executable_p ()
27047 test -f "$1" && test -x "$1"
27048 } # as_fn_executable_p
27049 as_test_x='test -x'
27050 as_executable_p=as_fn_executable_p
27052 # Sed expression to map a string onto a valid CPP name.
27053 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27055 # Sed expression to map a string onto a valid variable name.
27056 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27060 ## ----------------------------------- ##
27061 ## Main body of $CONFIG_STATUS script. ##
27062 ## ----------------------------------- ##
27064 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27067 # Save the log message, to keep $0 and so on meaningful, and to
27068 # report actual input values of CONFIG_FILES etc. instead of their
27069 # values after options handling.
27071 This file was extended by sntp $as_me 4.2.8p10, which was
27072 generated by GNU Autoconf 2.69. Invocation command line was
27074 CONFIG_FILES = $CONFIG_FILES
27075 CONFIG_HEADERS = $CONFIG_HEADERS
27076 CONFIG_LINKS = $CONFIG_LINKS
27077 CONFIG_COMMANDS = $CONFIG_COMMANDS
27080 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27085 case $ac_config_files in *"
27086 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27089 case $ac_config_headers in *"
27090 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27095 # Files that config.status was made for.
27096 config_files="$ac_config_files"
27097 config_headers="$ac_config_headers"
27098 config_commands="$ac_config_commands"
27102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27104 \`$as_me' instantiates files and other configuration actions
27105 from templates according to the current configuration. Unless the files
27106 and actions are specified as TAGs, all are instantiated by default.
27108 Usage: $0 [OPTION]... [TAG]...
27110 -h, --help print this help, then exit
27111 -V, --version print version number and configuration settings, then exit
27112 --config print configuration, then exit
27113 -q, --quiet, --silent
27114 do not print progress messages
27115 -d, --debug don't remove temporary files
27116 --recheck update $as_me by reconfiguring in the same conditions
27117 --file=FILE[:TEMPLATE]
27118 instantiate the configuration file FILE
27119 --header=FILE[:TEMPLATE]
27120 instantiate the configuration header FILE
27122 Configuration files:
27125 Configuration headers:
27128 Configuration commands:
27131 Report bugs to <http://bugs.ntp.org./>.
27132 sntp home page: <http://www.ntp.org./>."
27135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27136 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27138 sntp config.status 4.2.8p10
27139 configured by $0, generated by GNU Autoconf 2.69,
27140 with options \\"\$ac_cs_config\\"
27142 Copyright (C) 2012 Free Software Foundation, Inc.
27143 This config.status script is free software; the Free Software Foundation
27144 gives unlimited permission to copy, distribute and modify it."
27151 test -n "\$AWK" || AWK=awk
27154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27155 # The default lists apply if the user does not specify any file.
27161 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27162 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27166 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27178 # Handling of the options.
27179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27181 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27182 $as_echo "$ac_cs_version"; exit ;;
27183 --config | --confi | --conf | --con | --co | --c )
27184 $as_echo "$ac_cs_config"; exit ;;
27185 --debug | --debu | --deb | --de | --d | -d )
27187 --file | --fil | --fi | --f )
27190 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27191 '') as_fn_error $? "missing file argument" ;;
27193 as_fn_append CONFIG_FILES " '$ac_optarg'"
27194 ac_need_defaults=false;;
27195 --header | --heade | --head | --hea )
27198 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27200 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27201 ac_need_defaults=false;;
27203 # Conflict between --help and --header
27204 as_fn_error $? "ambiguous option: \`$1'
27205 Try \`$0 --help' for more information.";;
27206 --help | --hel | -h )
27207 $as_echo "$ac_cs_usage"; exit ;;
27208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27209 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27212 # This is an error.
27213 -*) as_fn_error $? "unrecognized option: \`$1'
27214 Try \`$0 --help' for more information." ;;
27216 *) as_fn_append ac_config_targets " $1"
27217 ac_need_defaults=false ;;
27223 ac_configure_extra_args=
27225 if $ac_cs_silent; then
27227 ac_configure_extra_args="$ac_configure_extra_args --silent"
27231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27232 if \$ac_cs_recheck; then
27233 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27235 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27236 CONFIG_SHELL='$SHELL'
27237 export CONFIG_SHELL
27242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27246 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27247 ## Running $as_me. ##
27253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27257 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27260 # The HP-UX ksh and POSIX shell print the target directory to stdout
27261 # if CDPATH is set.
27262 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27264 sed_quote_subst='$sed_quote_subst'
27265 double_quote_subst='$double_quote_subst'
27266 delay_variable_subst='$delay_variable_subst'
27267 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27268 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27269 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27270 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27271 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27272 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27273 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27274 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27275 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27276 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27277 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27278 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27279 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27280 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27281 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27282 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27283 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27284 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27285 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27286 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27287 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27288 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27289 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27290 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27291 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27292 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27293 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27294 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27295 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27296 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27297 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27298 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27299 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27300 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27301 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27302 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27303 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27304 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27305 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27306 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27307 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27308 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27309 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27310 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27311 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27312 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27313 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27314 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27315 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27316 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27317 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27318 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27319 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27320 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27321 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27322 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27323 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27324 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27325 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"`'
27326 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27327 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27328 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27329 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27330 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27331 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27332 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27333 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27334 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27335 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27336 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27337 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27338 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27339 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27340 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27341 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27342 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27343 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27344 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27345 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27346 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27347 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27348 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27349 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27350 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27351 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27352 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27353 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27354 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27355 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27356 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27357 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27358 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27359 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27360 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27361 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27362 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27363 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27364 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27365 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27366 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27367 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27368 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27369 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27370 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27371 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27372 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27373 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27374 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27375 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27376 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27377 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27378 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27379 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27380 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27381 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27382 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27383 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27384 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27385 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27386 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27387 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27388 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27389 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27390 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27391 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27392 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27393 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27394 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27395 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27396 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27397 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27398 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27399 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27400 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27401 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27404 LTCFLAGS='$LTCFLAGS'
27405 compiler='$compiler_DEFAULT'
27407 # A function that is used when there is no print builtin or printf.
27408 func_fallback_echo ()
27410 eval 'cat <<_LTECHO_EOF
27415 # Quote evaled strings.
27430 deplibs_check_method \
27435 sharedlib_from_linklib_cmd \
27438 archiver_list_spec \
27444 lt_cv_sys_global_symbol_pipe \
27445 lt_cv_sys_global_symbol_to_cdecl \
27446 lt_cv_sys_global_symbol_to_import \
27447 lt_cv_sys_global_symbol_to_c_name_address \
27448 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27449 lt_cv_nm_interface \
27450 nm_file_list_spec \
27451 lt_cv_truncate_bin \
27452 lt_prog_compiler_no_builtin_flag \
27453 lt_prog_compiler_pic \
27454 lt_prog_compiler_wl \
27455 lt_prog_compiler_static \
27456 lt_cv_prog_compiler_c_o \
27465 export_dynamic_flag_spec \
27466 whole_archive_flag_spec \
27467 compiler_needs_object \
27469 allow_undefined_flag \
27470 no_undefined_flag \
27471 hardcode_libdir_flag_spec \
27472 hardcode_libdir_separator \
27476 variables_saved_for_relink \
27478 library_names_spec \
27480 install_override_mode \
27484 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27485 *[\\\\\\\`\\"\\\$]*)
27486 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27489 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27494 # Double-quote double-evaled strings.
27495 for var in reload_cmds \
27496 old_postinstall_cmds \
27497 old_postuninstall_cmds \
27499 extract_expsyms_cmds \
27500 old_archive_from_new_cmds \
27501 old_archive_from_expsyms_cmds \
27503 archive_expsym_cmds \
27505 module_expsym_cmds \
27506 export_symbols_cmds \
27510 postuninstall_cmds \
27512 sys_lib_search_path_spec \
27513 configure_time_dlsearch_path \
27514 configure_time_lt_sys_library_path; do
27515 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27516 *[\\\\\\\`\\"\\\$]*)
27517 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27520 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27525 ac_aux_dir='$ac_aux_dir'
27527 # See if we are running on zsh, and set the options that allow our
27528 # commands through without removal of \ escapes INIT.
27529 if test -n "\${ZSH_VERSION+set}"; then
27530 setopt NO_GLOB_SUBST
27544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27546 # Handling of arguments.
27547 for ac_config_target in $ac_config_targets
27549 case $ac_config_target in
27550 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27551 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27552 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27553 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
27554 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27555 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27556 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
27557 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27558 "tests/fileHandlingTest.h") CONFIG_FILES="$CONFIG_FILES tests/fileHandlingTest.h" ;;
27559 "unity/Makefile") CONFIG_FILES="$CONFIG_FILES unity/Makefile" ;;
27561 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27566 # If the user did not use the arguments to specify the items to instantiate,
27567 # then the envvar interface is used. Set only those that are not.
27568 # We use the long form for the default assignment because of an extremely
27569 # bizarre bug on SunOS 4.1.3.
27570 if $ac_need_defaults; then
27571 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27572 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27573 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27576 # Have a temporary directory for convenience. Make it in the build tree
27577 # simply because there is no reason against having it here, and in addition,
27578 # creating and moving files from /tmp can sometimes cause problems.
27579 # Hook for its removal unless debugging.
27580 # Note that there is a small window in which the directory will not be cleaned:
27581 # after its creation but before its name has been assigned to `$tmp'.
27585 trap 'exit_status=$?
27586 : "${ac_tmp:=$tmp}"
27587 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27589 trap 'as_fn_exit 1' 1 2 13 15
27591 # Create a (secure) tmp directory for tmp files.
27594 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27598 tmp=./conf$$-$RANDOM
27599 (umask 077 && mkdir "$tmp")
27600 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27603 # Set up the scripts for CONFIG_FILES section.
27604 # No need to generate them if there are no CONFIG_FILES.
27605 # This happens for instance with `./config.status config.h'.
27606 if test -n "$CONFIG_FILES"; then
27609 ac_cr=`echo X | tr X '\015'`
27610 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27611 # But we know of no other shell where ac_cr would be empty at this
27612 # point, so we can use a bashism as a fallback.
27613 if test "x$ac_cr" = x; then
27614 eval ac_cr=\$\'\\r\'
27616 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27617 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27620 ac_cs_awk_cr=$ac_cr
27623 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27628 echo "cat >conf$$subs.awk <<_ACEOF" &&
27629 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27631 } >conf$$subs.sh ||
27632 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27633 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27635 for ac_last_try in false false false false false :; do
27636 . ./conf$$subs.sh ||
27637 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27639 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27640 if test $ac_delim_n = $ac_delim_num; then
27642 elif $ac_last_try; then
27643 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27645 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27648 rm -f conf$$subs.sh
27650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27651 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27655 s/^/S["/; s/!.*/"]=/
27665 s/\(.\{148\}\)..*/\1/
27667 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27672 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27679 s/\(.\{148\}\)..*/\1/
27681 s/["\\]/\\&/g; s/^/"/; s/$/"/
27685 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27690 ' <conf$$subs.awk | sed '
27695 ' >>$CONFIG_STATUS || ac_write_fail=1
27696 rm -f conf$$subs.awk
27697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27699 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27700 for (key in S) S_is_set[key] = 1
27706 nfields = split(line, field, "@")
27708 len = length(field[1])
27709 for (i = 2; i < nfields; i++) {
27711 keylen = length(key)
27712 if (S_is_set[key]) {
27714 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27715 len += length(value) + length(field[++i])
27726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27727 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27728 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27731 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27732 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27735 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27736 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27737 # trailing colons and then remove the whole line if VPATH becomes empty
27738 # (actually we leave an empty line to preserve line numbers).
27739 if test "x$srcdir" = x.; then
27740 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27759 fi # test -n "$CONFIG_FILES"
27761 # Set up the scripts for CONFIG_HEADERS section.
27762 # No need to generate them if there are no CONFIG_HEADERS.
27763 # This happens for instance with `./config.status Makefile'.
27764 if test -n "$CONFIG_HEADERS"; then
27765 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27769 # Transform confdefs.h into an awk script `defines.awk', embedded as
27770 # here-document in config.status, that substitutes the proper values into
27771 # config.h.in to produce config.h.
27773 # Create a delimiter string that does not exist in confdefs.h, to ease
27774 # handling of long lines.
27776 for ac_last_try in false false :; do
27777 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27778 if test -z "$ac_tt"; then
27780 elif $ac_last_try; then
27781 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27783 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27787 # For the awk script, D is an array of macro values keyed by name,
27788 # likewise P contains macro parameters if any. Preserve backslash
27789 # newline sequences.
27791 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27793 s/.\{148\}/&'"$ac_delim"'/g
27796 s/^[ ]*#[ ]*define[ ][ ]*/ /
27803 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27805 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27809 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27810 D["\1"]=" \3\\\\\\n"\\/p
27812 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27817 s/.\{148\}/&'"$ac_delim"'/g
27822 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27825 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27827 ' <confdefs.h | sed '
27828 s/'"$ac_delim"'/"\\\
27829 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27832 for (key in D) D_is_set[key] = 1
27835 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27837 split(line, arg, " ")
27838 if (arg[1] == "#") {
27842 defundef = substr(arg[1], 2)
27845 split(mac1, mac2, "(") #)
27847 prefix = substr(line, 1, index(line, defundef) - 1)
27848 if (D_is_set[macro]) {
27849 # Preserve the white space surrounding the "#".
27850 print prefix "define", macro P[macro] D[macro]
27853 # Replace #undef with comments. This is necessary, for example,
27854 # in the case of _POSIX_SOURCE, which is predefined and required
27855 # on some systems where configure will not decide to define it.
27856 if (defundef == "undef") {
27857 print "/*", prefix defundef, macro, "*/"
27865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27866 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27867 fi # test -n "$CONFIG_HEADERS"
27870 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27875 :[FHLC]) ac_mode=$ac_tag; continue;;
27877 case $ac_mode$ac_tag in
27879 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27880 :[FH]-) ac_tag=-:-;;
27881 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27898 -) ac_f="$ac_tmp/stdin";;
27899 *) # Look for the file first in the build tree, then in the source tree
27900 # (if the path is not absolute). The absolute path cannot be DOS-style,
27901 # because $ac_f cannot contain `:'.
27905 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27907 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27909 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27910 as_fn_append ac_file_inputs " '$ac_f'"
27913 # Let's still pretend it is `configure' which instantiates (i.e., don't
27914 # use $as_me), people would be surprised to read:
27915 # /* config.h. Generated by config.status. */
27916 configure_input='Generated from '`
27917 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27919 if test x"$ac_file" != x-; then
27920 configure_input="$ac_file. $configure_input"
27921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27922 $as_echo "$as_me: creating $ac_file" >&6;}
27924 # Neutralize special characters interpreted by sed in replacement strings.
27925 case $configure_input in #(
27926 *\&* | *\|* | *\\* )
27927 ac_sed_conf_input=`$as_echo "$configure_input" |
27928 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27929 *) ac_sed_conf_input=$configure_input;;
27933 *:-:* | *:-) cat >"$ac_tmp/stdin" \
27934 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27939 ac_dir=`$as_dirname -- "$ac_file" ||
27940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27941 X"$ac_file" : 'X\(//\)[^/]' \| \
27942 X"$ac_file" : 'X\(//\)$' \| \
27943 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27944 $as_echo X"$ac_file" |
27945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27949 /^X\(\/\/\)[^/].*/{
27962 as_dir="$ac_dir"; as_fn_mkdir_p
27966 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27968 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27969 # A ".." for each directory in $ac_dir_suffix.
27970 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27971 case $ac_top_builddir_sub in
27972 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27973 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27976 ac_abs_top_builddir=$ac_pwd
27977 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27978 # for backward compatibility:
27979 ac_top_builddir=$ac_top_build_prefix
27982 .) # We are building in place.
27984 ac_top_srcdir=$ac_top_builddir_sub
27985 ac_abs_top_srcdir=$ac_pwd ;;
27986 [\\/]* | ?:[\\/]* ) # Absolute name.
27987 ac_srcdir=$srcdir$ac_dir_suffix;
27988 ac_top_srcdir=$srcdir
27989 ac_abs_top_srcdir=$srcdir ;;
27990 *) # Relative name.
27991 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27992 ac_top_srcdir=$ac_top_build_prefix$srcdir
27993 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27995 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28005 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28006 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28008 ac_MKDIR_P=$MKDIR_P
28010 [\\/$]* | ?:[\\/]* ) ;;
28011 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28016 # If the template does not know about datarootdir, expand it.
28017 # FIXME: This hack should be removed a few years after 2.60.
28018 ac_datarootdir_hack=; ac_datarootdir_seen=
28029 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28030 *datarootdir*) ac_datarootdir_seen=yes;;
28031 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28033 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28036 ac_datarootdir_hack='
28037 s&@datadir@&$datadir&g
28038 s&@docdir@&$docdir&g
28039 s&@infodir@&$infodir&g
28040 s&@localedir@&$localedir&g
28041 s&@mandir@&$mandir&g
28042 s&\\\${datarootdir}&$datarootdir&g' ;;
28046 # Neutralize VPATH when `$srcdir' = `.'.
28047 # Shell code in configure.ac might set extrasub.
28048 # FIXME: do we really want to maintain this feature?
28049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28050 ac_sed_extra="$ac_vpsub
28053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28056 s|@configure_input@|$ac_sed_conf_input|;t t
28057 s&@top_builddir@&$ac_top_builddir_sub&;t t
28058 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28059 s&@srcdir@&$ac_srcdir&;t t
28060 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28061 s&@top_srcdir@&$ac_top_srcdir&;t t
28062 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28063 s&@builddir@&$ac_builddir&;t t
28064 s&@abs_builddir@&$ac_abs_builddir&;t t
28065 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28066 s&@INSTALL@&$ac_INSTALL&;t t
28067 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28068 $ac_datarootdir_hack
28070 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28071 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28073 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28074 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28075 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28076 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28078 which seems to be undefined. Please make sure it is defined" >&5
28079 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28080 which seems to be undefined. Please make sure it is defined" >&2;}
28082 rm -f "$ac_tmp/stdin"
28084 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28085 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28087 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28093 if test x"$ac_file" != x-; then
28095 $as_echo "/* $configure_input */" \
28096 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28097 } >"$ac_tmp/config.h" \
28098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28099 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28100 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28101 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28104 mv "$ac_tmp/config.h" "$ac_file" \
28105 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28108 $as_echo "/* $configure_input */" \
28109 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28110 || as_fn_error $? "could not create -" "$LINENO" 5
28112 # Compute "$ac_file"'s index in $config_headers.
28115 for _am_header in $config_headers :; do
28116 case $_am_header in
28117 $_am_arg | $_am_arg:* )
28120 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28123 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28124 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28125 X"$_am_arg" : 'X\(//\)[^/]' \| \
28126 X"$_am_arg" : 'X\(//\)$' \| \
28127 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28128 $as_echo X"$_am_arg" |
28129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28133 /^X\(\/\/\)[^/].*/{
28145 s/.*/./; q'`/stamp-h$_am_stamp_count
28148 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28149 $as_echo "$as_me: executing $ac_file commands" >&6;}
28154 case $ac_file$ac_mode in
28155 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28156 # Older Autoconf quotes --file arguments for eval, but not when files
28157 # are listed without --file. Let's play safe and only enable the eval
28158 # if we detect the quoting.
28159 case $CONFIG_FILES in
28160 *\'*) eval set x "$CONFIG_FILES" ;;
28161 *) set x $CONFIG_FILES ;;
28166 # Strip MF so we end up with the name of the file.
28167 mf=`echo "$mf" | sed -e 's/:.*$//'`
28168 # Check whether this is an Automake generated Makefile or not.
28169 # We used to match only the files named 'Makefile.in', but
28170 # some people rename them; so instead we look at the file content.
28171 # Grep'ing the first line is not enough: some people post-process
28172 # each Makefile.in and add a new line on top of each file to say so.
28173 # Grep'ing the whole file is not good either: AIX grep has a line
28174 # limit of 2048, but all sed's we know have understand at least 4000.
28175 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28176 dirpart=`$as_dirname -- "$mf" ||
28177 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28178 X"$mf" : 'X\(//\)[^/]' \| \
28179 X"$mf" : 'X\(//\)$' \| \
28180 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28186 /^X\(\/\/\)[^/].*/{
28202 # Extract the definition of DEPDIR, am__include, and am__quote
28203 # from the Makefile without running 'make'.
28204 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28205 test -z "$DEPDIR" && continue
28206 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28207 test -z "$am__include" && continue
28208 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28209 # Find all dependency output files, they are included files with
28210 # $(DEPDIR) in their names. We invoke sed twice because it is the
28211 # simplest approach to changing $(DEPDIR) to its actual value in the
28213 for file in `sed -n "
28214 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28215 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28216 # Make sure the directory exists.
28217 test -f "$dirpart/$file" && continue
28218 fdir=`$as_dirname -- "$file" ||
28219 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28220 X"$file" : 'X\(//\)[^/]' \| \
28221 X"$file" : 'X\(//\)$' \| \
28222 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28223 $as_echo X"$file" |
28224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28228 /^X\(\/\/\)[^/].*/{
28241 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28242 # echo "creating $dirpart/$file"
28243 echo '# dummy' > "$dirpart/$file"
28250 # See if we are running on zsh, and set the options that allow our
28251 # commands through without removal of \ escapes.
28252 if test -n "${ZSH_VERSION+set}"; then
28253 setopt NO_GLOB_SUBST
28257 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28260 cat <<_LT_EOF >> "$cfgfile"
28262 # Generated automatically by $as_me ($PACKAGE) $VERSION
28263 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28264 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28266 # Provide generalized library-building support services.
28267 # Written by Gordon Matzigkeit, 1996
28269 # Copyright (C) 2014 Free Software Foundation, Inc.
28270 # This is free software; see the source for copying conditions. There is NO
28271 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28273 # GNU Libtool is free software; you can redistribute it and/or modify
28274 # it under the terms of the GNU General Public License as published by
28275 # the Free Software Foundation; either version 2 of of the License, or
28276 # (at your option) any later version.
28278 # As a special exception to the GNU General Public License, if you
28279 # distribute this file as part of a program or library that is built
28280 # using GNU Libtool, you may include this file under the same
28281 # distribution terms that you use for the rest of that program.
28283 # GNU Libtool is distributed in the hope that it will be useful, but
28284 # WITHOUT ANY WARRANTY; without even the implied warranty of
28285 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28286 # GNU General Public License for more details.
28288 # You should have received a copy of the GNU General Public License
28289 # along with this program. If not, see <http://www.gnu.org/licenses/>.
28292 # The names of the tagged configurations supported by this script.
28295 # Configured defaults for sys_lib_dlsearch_path munging.
28296 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28298 # ### BEGIN LIBTOOL CONFIG
28300 # A sed program that does not truncate output.
28303 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28304 Xsed="\$SED -e 1s/^X//"
28306 # A grep program that handles long lines.
28312 # A literal string matcher.
28315 # Shell to use when invoking shell scripts.
28318 # An echo program that protects backslashes.
28321 # Whether or not to build shared libraries.
28322 build_libtool_libs=$enable_shared
28324 # Which release of libtool.m4 was used?
28325 macro_version=$macro_version
28326 macro_revision=$macro_revision
28328 # Whether or not to build static libraries.
28329 build_old_libs=$enable_static
28331 # What type of objects to build.
28334 # Whether or not to optimize for fast installation.
28335 fast_install=$enable_fast_install
28337 # Shared archive member basename,for filename based shared library versioning on AIX.
28338 shared_archive_member_spec=$shared_archive_member_spec
28340 # The PATH separator for the build system.
28341 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28344 host_alias=$host_alias
28348 # The build system.
28349 build_alias=$build_alias
28353 # A BSD- or MS-compatible name lister.
28356 # Whether we need soft or hard links.
28359 # What is the maximum length of a command?
28360 max_cmd_len=$max_cmd_len
28362 # Object file suffix (normally "o").
28365 # Executable file suffix (normally "").
28368 # whether the shell understands "unset".
28371 # turn spaces into newlines.
28374 # turn newlines into spaces.
28377 # convert \$build file names to \$host format.
28378 to_host_file_cmd=$lt_cv_to_host_file_cmd
28380 # convert \$build files to toolchain format.
28381 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28383 # An object symbol dumper.
28384 OBJDUMP=$lt_OBJDUMP
28386 # Method to check whether dependent libraries are shared objects.
28387 deplibs_check_method=$lt_deplibs_check_method
28389 # Command to use when deplibs_check_method = "file_magic".
28390 file_magic_cmd=$lt_file_magic_cmd
28392 # How to find potential files when deplibs_check_method = "file_magic".
28393 file_magic_glob=$lt_file_magic_glob
28395 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28396 want_nocaseglob=$lt_want_nocaseglob
28398 # DLL creation program.
28399 DLLTOOL=$lt_DLLTOOL
28401 # Command to associate shared and link libraries.
28402 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28407 # Flags to create an archive.
28408 AR_FLAGS=$lt_AR_FLAGS
28410 # How to feed a file listing to the archiver.
28411 archiver_list_spec=$lt_archiver_list_spec
28413 # A symbol stripping program.
28416 # Commands used to install an old-style archive.
28418 old_postinstall_cmds=$lt_old_postinstall_cmds
28419 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28421 # Whether to use a lock for old archive extraction.
28422 lock_old_archive_extraction=$lock_old_archive_extraction
28427 # LTCC compiler flags.
28428 LTCFLAGS=$lt_CFLAGS
28430 # Take the output of nm and produce a listing of raw symbols and C names.
28431 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28433 # Transform the output of nm in a proper C declaration.
28434 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28436 # Transform the output of nm into a list of symbols to manually relocate.
28437 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28439 # Transform the output of nm in a C name address pair.
28440 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28442 # Transform the output of nm in a C name address pair when lib prefix is needed.
28443 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28445 # The name lister interface.
28446 nm_interface=$lt_lt_cv_nm_interface
28448 # Specify filename containing input files for \$NM.
28449 nm_file_list_spec=$lt_nm_file_list_spec
28451 # The root where to search for dependent libraries,and where our libraries should be installed.
28452 lt_sysroot=$lt_sysroot
28454 # Command to truncate a binary pipe.
28455 lt_truncate_bin=$lt_lt_cv_truncate_bin
28457 # The name of the directory that contains temporary libtool files.
28460 # Used to examine libraries when file_magic_cmd begins with "file".
28461 MAGIC_CMD=$MAGIC_CMD
28463 # Must we lock files when doing compilation?
28464 need_locks=$lt_need_locks
28467 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28469 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28470 DSYMUTIL=$lt_DSYMUTIL
28472 # Tool to change global to local symbols on Mac OS X.
28475 # Tool to manipulate fat objects and archives on Mac OS X.
28478 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28481 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28482 OTOOL64=$lt_OTOOL64
28484 # Old archive suffix (normally "a").
28487 # Shared library suffix (normally ".so").
28488 shrext_cmds=$lt_shrext_cmds
28490 # The commands to extract the exported symbol list from a shared archive.
28491 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28493 # Variables whose values should be saved in libtool wrapper scripts and
28494 # restored at link time.
28495 variables_saved_for_relink=$lt_variables_saved_for_relink
28497 # Do we need the "lib" prefix for modules?
28498 need_lib_prefix=$need_lib_prefix
28500 # Do we need a version for libraries?
28501 need_version=$need_version
28503 # Library versioning type.
28504 version_type=$version_type
28506 # Shared library runtime path variable.
28507 runpath_var=$runpath_var
28509 # Shared library path variable.
28510 shlibpath_var=$shlibpath_var
28512 # Is shlibpath searched before the hard-coded library search path?
28513 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28515 # Format of library name prefix.
28516 libname_spec=$lt_libname_spec
28518 # List of archive names. First name is the real one, the rest are links.
28519 # The last name is the one that the linker finds with -lNAME
28520 library_names_spec=$lt_library_names_spec
28522 # The coded name of the library, if different from the real name.
28523 soname_spec=$lt_soname_spec
28525 # Permission mode override for installation of shared libraries.
28526 install_override_mode=$lt_install_override_mode
28528 # Command to use after installation of a shared archive.
28529 postinstall_cmds=$lt_postinstall_cmds
28531 # Command to use after uninstallation of a shared archive.
28532 postuninstall_cmds=$lt_postuninstall_cmds
28534 # Commands used to finish a libtool library installation in a directory.
28535 finish_cmds=$lt_finish_cmds
28537 # As "finish_cmds", except a single script fragment to be evaled but
28539 finish_eval=$lt_finish_eval
28541 # Whether we should hardcode library paths into libraries.
28542 hardcode_into_libs=$hardcode_into_libs
28544 # Compile-time system search path for libraries.
28545 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28547 # Detected run-time system search path for libraries.
28548 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28550 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28551 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28553 # Whether dlopen is supported.
28554 dlopen_support=$enable_dlopen
28556 # Whether dlopen of programs is supported.
28557 dlopen_self=$enable_dlopen_self
28559 # Whether dlopen of statically linked programs is supported.
28560 dlopen_self_static=$enable_dlopen_self_static
28562 # Commands to strip libraries.
28563 old_striplib=$lt_old_striplib
28564 striplib=$lt_striplib
28567 # The linker used to build libraries.
28570 # How to create reloadable object files.
28571 reload_flag=$lt_reload_flag
28572 reload_cmds=$lt_reload_cmds
28574 # Commands used to build an old-style archive.
28575 old_archive_cmds=$lt_old_archive_cmds
28577 # A language specific compiler.
28580 # Is the compiler the GNU compiler?
28583 # Compiler flag to turn off builtin functions.
28584 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28586 # Additional compiler flags for building library objects.
28587 pic_flag=$lt_lt_prog_compiler_pic
28589 # How to pass a linker flag through the compiler.
28590 wl=$lt_lt_prog_compiler_wl
28592 # Compiler flag to prevent dynamic linking.
28593 link_static_flag=$lt_lt_prog_compiler_static
28595 # Does compiler simultaneously support -c and -o options?
28596 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28598 # Whether or not to add -lc for building shared libraries.
28599 build_libtool_need_lc=$archive_cmds_need_lc
28601 # Whether or not to disallow shared libs when runtime libs are static.
28602 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28604 # Compiler flag to allow reflexive dlopens.
28605 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28607 # Compiler flag to generate shared objects directly from archives.
28608 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28610 # Whether the compiler copes with passing no objects directly.
28611 compiler_needs_object=$lt_compiler_needs_object
28613 # Create an old-style archive from a shared archive.
28614 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28616 # Create a temporary old-style archive to link instead of a shared archive.
28617 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28619 # Commands used to build a shared archive.
28620 archive_cmds=$lt_archive_cmds
28621 archive_expsym_cmds=$lt_archive_expsym_cmds
28623 # Commands used to build a loadable module if different from building
28624 # a shared archive.
28625 module_cmds=$lt_module_cmds
28626 module_expsym_cmds=$lt_module_expsym_cmds
28628 # Whether we are building with GNU ld or not.
28629 with_gnu_ld=$lt_with_gnu_ld
28631 # Flag that allows shared libraries with undefined symbols to be built.
28632 allow_undefined_flag=$lt_allow_undefined_flag
28634 # Flag that enforces no undefined symbols.
28635 no_undefined_flag=$lt_no_undefined_flag
28637 # Flag to hardcode \$libdir into a binary during linking.
28638 # This must work even if \$libdir does not exist
28639 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28641 # Whether we need a single "-rpath" flag with a separated argument.
28642 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28644 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28645 # DIR into the resulting binary.
28646 hardcode_direct=$hardcode_direct
28648 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28649 # DIR into the resulting binary and the resulting library dependency is
28650 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28651 # library is relocated.
28652 hardcode_direct_absolute=$hardcode_direct_absolute
28654 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28655 # into the resulting binary.
28656 hardcode_minus_L=$hardcode_minus_L
28658 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28659 # into the resulting binary.
28660 hardcode_shlibpath_var=$hardcode_shlibpath_var
28662 # Set to "yes" if building a shared library automatically hardcodes DIR
28663 # into the library and all subsequent libraries and executables linked
28665 hardcode_automatic=$hardcode_automatic
28667 # Set to yes if linker adds runtime paths of dependent libraries
28668 # to runtime path list.
28669 inherit_rpath=$inherit_rpath
28671 # Whether libtool must link a program against all its dependency libraries.
28672 link_all_deplibs=$link_all_deplibs
28674 # Set to "yes" if exported symbols are required.
28675 always_export_symbols=$always_export_symbols
28677 # The commands to list exported symbols.
28678 export_symbols_cmds=$lt_export_symbols_cmds
28680 # Symbols that should not be listed in the preloaded symbols.
28681 exclude_expsyms=$lt_exclude_expsyms
28683 # Symbols that must always be exported.
28684 include_expsyms=$lt_include_expsyms
28686 # Commands necessary for linking programs (against libraries) with templates.
28687 prelink_cmds=$lt_prelink_cmds
28689 # Commands necessary for finishing linking programs.
28690 postlink_cmds=$lt_postlink_cmds
28692 # Specify filename containing input files.
28693 file_list_spec=$lt_file_list_spec
28695 # How to hardcode a shared library path into an executable.
28696 hardcode_action=$hardcode_action
28698 # ### END LIBTOOL CONFIG
28702 cat <<'_LT_EOF' >> "$cfgfile"
28704 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28706 # func_munge_path_list VARIABLE PATH
28707 # -----------------------------------
28708 # VARIABLE is name of variable containing _space_ separated list of
28709 # directories to be munged by the contents of PATH, which is string
28712 # string "DIR[ DIR]" will be prepended to VARIABLE
28714 # string "DIR[ DIR]" will be appended to VARIABLE
28715 # "DIRP[:DIRP]::[DIRA:]DIRA"
28716 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28717 # "DIRA[ DIRA]" will be appended to VARIABLE
28719 # VARIABLE will be replaced by "DIR[ DIR]"
28720 func_munge_path_list ()
28726 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28729 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28732 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28733 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28736 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28742 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
28743 func_cc_basename ()
28745 for cc_temp in $*""; do
28747 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28748 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28753 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28757 # ### END FUNCTIONS SHARED WITH CONFIGURE
28763 cat <<\_LT_EOF >> "$cfgfile"
28764 # AIX sometimes has problems with the GCC collect2 program. For some
28765 # reason, if we set the COLLECT_NAMES environment variable, the problems
28766 # vanish in a puff of smoke.
28767 if test set != "${COLLECT_NAMES+set}"; then
28769 export COLLECT_NAMES
28776 ltmain=$ac_aux_dir/ltmain.sh
28779 # We use sed instead of cat because bash on DJGPP gets confused if
28780 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28781 # text mode, it properly converts lines to CR/LF. This bash problem
28782 # is reportedly fixed, but why not run on old versions too?
28783 sed '$q' "$ltmain" >> "$cfgfile" \
28784 || (rm -f "$cfgfile"; exit 1)
28786 mv -f "$cfgfile" "$ofile" ||
28787 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28798 ac_clean_files=$ac_clean_files_save
28800 test $ac_write_fail = 0 ||
28801 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28804 # configure is writing to config.log, and then calls config.status.
28805 # config.status does its own redirection, appending to config.log.
28806 # Unfortunately, on DOS this fails, as config.log is still kept open
28807 # by configure, so config.status won't be able to write to it; its
28808 # output is simply discarded. So we exec the FD to /dev/null,
28809 # effectively closing config.log, so it can be properly (re)opened and
28810 # appended to by config.status. When coming back to configure, we
28811 # need to make the FD available again.
28812 if test "$no_create" != yes; then
28814 ac_config_status_args=
28815 test "$silent" = yes &&
28816 ac_config_status_args="$ac_config_status_args --quiet"
28818 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28820 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28821 # would make configure fail if this is the last instruction.
28822 $ac_cs_success || as_fn_exit 1
28826 # CONFIG_SUBDIRS section.
28828 if test "$no_recursion" != yes; then
28830 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28831 # so they do not pile up.
28832 ac_sub_configure_args=
28834 eval "set x $ac_configure_args"
28838 if test -n "$ac_prev"; then
28843 -cache-file | --cache-file | --cache-fil | --cache-fi \
28844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28845 ac_prev=cache_file ;;
28846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28850 --config-cache | -C)
28852 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28854 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28856 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28858 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28860 --disable-option-checking)
28864 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28866 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28870 # Always prepend --prefix to ensure using the same prefix
28871 # in subdir configurations.
28872 ac_arg="--prefix=$prefix"
28874 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28876 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28879 if test "$silent" = yes; then
28880 ac_sub_configure_args="--silent $ac_sub_configure_args"
28883 # Always prepend --disable-option-checking to silence warnings, since
28884 # different subdirs can have different --enable and --with options.
28885 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28888 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28890 # Do not complain, so a configure script can configure whichever
28891 # parts of a large source tree are present.
28892 test -d "$srcdir/$ac_dir" || continue
28894 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28895 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28896 $as_echo "$ac_msg" >&6
28897 as_dir="$ac_dir"; as_fn_mkdir_p
28901 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28903 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28904 # A ".." for each directory in $ac_dir_suffix.
28905 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28906 case $ac_top_builddir_sub in
28907 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28908 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28911 ac_abs_top_builddir=$ac_pwd
28912 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28913 # for backward compatibility:
28914 ac_top_builddir=$ac_top_build_prefix
28917 .) # We are building in place.
28919 ac_top_srcdir=$ac_top_builddir_sub
28920 ac_abs_top_srcdir=$ac_pwd ;;
28921 [\\/]* | ?:[\\/]* ) # Absolute name.
28922 ac_srcdir=$srcdir$ac_dir_suffix;
28923 ac_top_srcdir=$srcdir
28924 ac_abs_top_srcdir=$srcdir ;;
28925 *) # Relative name.
28926 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28927 ac_top_srcdir=$ac_top_build_prefix$srcdir
28928 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28930 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28935 # Check for guested configure; otherwise get Cygnus style configure.
28936 if test -f "$ac_srcdir/configure.gnu"; then
28937 ac_sub_configure=$ac_srcdir/configure.gnu
28938 elif test -f "$ac_srcdir/configure"; then
28939 ac_sub_configure=$ac_srcdir/configure
28940 elif test -f "$ac_srcdir/configure.in"; then
28941 # This should be Cygnus configure.
28942 ac_sub_configure=$ac_aux_dir/configure
28944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28945 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28949 # The recursion is here.
28950 if test -n "$ac_sub_configure"; then
28951 # Make the cache file name correct relative to the subdirectory.
28952 case $cache_file in
28953 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28954 *) # Relative name.
28955 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28958 { $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
28959 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28960 # The eval makes quoting arguments work.
28961 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28962 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28963 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28969 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28971 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}